← Latest papers
🤖 AI

HPP: Hierarchical Programmatic Probing for Long Video Understanding by Decoupling Perception and Reasoning

This paper proposes Hierarchical Programmatic Probing (HPP), a framework that decouples semantic perception from higher-order temporal reasoning by leveraging an LLM to iteratively plan and execute programmatic queries on a hierarchically segmented video, thereby overcoming the limitations of latent multi-step planning in standard vision-language models for long video understanding.

Original authors: Awais Rauf, Ahmed Hasssan, Greg Slabaugh

Published 2026-06-23
📖 4 min read☕ Coffee break read

Original authors: Awais Rauf, Ahmed Hasssan, Greg Slabaugh

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to solve a mystery in a library that contains one million books (representing a long video with thousands of frames).

The Old Way (Traditional AI):
Most current AI models try to read every single page of every single book in the library all at once, in one giant gulp. They try to memorize the whole story, find the clues, and solve the mystery simultaneously.

  • The Problem: The library is too big. The AI gets overwhelmed, forgets the beginning by the time it reaches the end, and misses tiny details because it's trying to process too much information at once. It's like trying to drink the ocean through a straw.

The New Way (HPP - Hierarchical Programmatic Probing):
The authors of this paper propose a smarter strategy. Instead of one AI trying to do everything, they split the job into two specialized workers who talk to each other:

  1. The Detective (The Coding LLM): This is a smart, logical brain that knows how to write code and plan strategies. It doesn't look at the pictures; it just thinks.
  2. The Librarian (The Small VLM): This is a smaller, faster AI that is very good at looking at pictures and describing what it sees, but it's not great at solving complex puzzles on its own.

How the Detective Solves the Mystery

The Detective doesn't read the whole library. Instead, it uses a three-step process to find the answer efficiently:

1. Organizing the Library (Hierarchical Segmentation)

First, the Detective realizes the library is messy. It uses a special tool to quickly sort the books.

  • The Metaphor: Imagine the video is a long movie. The Detective uses the "movie file" itself (which already has built-in markers for scene changes) to chop the movie into Scenes, then into Shots, and finally into Key Moments.
  • Why it helps: Instead of looking at 100,000 individual frames, the Detective now only has to look at 100 "scenes." It ignores the boring, repetitive parts (like a character walking down a hall for 5 minutes) and focuses only on where the action happens.

2. Asking the Right Questions (Semantic Search)

The Detective has a specific question, like "When did the character drop the red apple?"

  • The Metaphor: Instead of walking down every aisle, the Detective uses a smart search engine. It types in keywords and asks the Librarian to find the specific "scenes" that might contain an apple.
  • The Trick: The Detective is clever. It doesn't just ask "apple." It asks "red fruit," "fruit falling," "character eating," etc., all at once. It then combines the results to make sure it hasn't missed anything.

3. Zooming In for Proof (Targeted Perception)

Once the search engine gives the Detective a list of 5 likely scenes, it doesn't ask the Librarian to describe the whole movie again.

  • The Metaphor: The Detective says, "Okay, Librarian, I think the apple dropped in Scene 42. Please look only at the 5 seconds around that moment and tell me exactly what you see."
  • The Result: The Librarian gives a precise answer. The Detective then uses that tiny piece of evidence to solve the puzzle.

Why This is a Big Deal

The paper claims this method is much better at understanding long videos for three main reasons:

  • It Decouples Thinking from Seeing: The "Thinking" (planning the search) and the "Seeing" (looking at the pixels) are separated. The smart brain doesn't get tired from looking at millions of pictures; it just directs the eyes where to look.
  • It Saves Money and Power: Because the AI only looks at the specific parts of the video that matter, it uses far less computer power (tokens) than models that try to watch the whole video at once. For very long videos, this method is up to 16 times more efficient.
  • It Gets Smarter with Better Tools: The system gets better automatically if you give the "Detective" a smarter brain (a better coding LLM). The paper shows that as the coding ability of the AI improves, its video understanding improves right along with it.

The Bottom Line

The paper introduces HPP, a system that treats a long video not as a giant wall of images, but as a structured document. It uses a "Detective" to write code that navigates the video, finds the relevant scenes, and asks a "Librarian" to look closely only at those specific moments. This allows the AI to solve complex, long-range puzzles in videos without getting overwhelmed.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →