← Latest papers
💻 computer science

Searching Videos as Trees: Self-Correcting Agents for Grounded Long Video QA

The paper proposes VideoTreeSearch (VTS), a self-correcting agent framework that models grounded long-video QA as an iterative search over an adaptive temporal tree with explicit backtracking operations, significantly outperforming prior methods by enabling recovery from early mistakes and achieving state-of-the-art results across multiple benchmarks.

Original authors: Ce Zhang, Ziyang Wang, Yulu Pan, Oluwatumininu Oguntola, Pranav Wagh, Qiyu Wu, Hiromi Wakaki, Mohit Bansal, Gedas Bertasius

Published 2026-07-20
📖 6 min read🧠 Deep dive

Original authors: Ce Zhang, Ziyang Wang, Yulu Pan, Oluwatumininu Oguntola, Pranav Wagh, Qiyu Wu, Hiromi Wakaki, Mohit Bansal, Gedas Bertasius

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 find a specific, tiny moment in a movie that lasts for hours. Maybe you need to see exactly what a chef added to a bowl right before it went into the oven, but the video is a full-length cooking tutorial. If you just scan the whole movie quickly, you might miss that split-second action. But if you watch every single frame at normal speed, it would take you forever. This is the challenge of "Grounded Long-Video Question Answering." It's a task where a computer needs to not only answer a question about a long video but also point to the exact few seconds where the answer hides.

For a while, scientists tried to solve this by giving the computer a "scissors" tool. The computer would guess a time range, cut the video there, and look at the result. If it guessed wrong, it would try to cut again. But this approach was like trying to find a needle in a haystack by only being allowed to cut the haystack in half; if you cut the wrong half, you can't easily go back to the other side to try again. You just keep cutting the wrong piece smaller and smaller until you give up. This paper introduces a smarter way to search, turning the video into a map that the computer can explore, backtrack, and correct its mistakes on, much like a detective solving a mystery.


The Detective's Map: How VTS Solves the Video Mystery

Meet VideoTreeSearch (VTS), a new framework designed to help computers become expert video detectives. The researchers behind this paper realized that the old way of searching videos was too clumsy. Previous methods acted like a person who could only move forward, narrowing down a video clip by constantly cropping it. If they made a mistake early on—say, they thought the answer was in the first ten minutes when it was actually in the last ten—they were stuck. They had no way to say, "Wait, I went the wrong way," and go back to try a different path. They would just keep digging in the wrong hole.

The Tree Analogy
To fix this, the authors turned the video into a tree. Imagine the entire video is the trunk of a giant tree. The trunk splits into a few big branches, representing major scenes or chapters. Those branches split again into smaller twigs, and the twigs split into tiny leaves.

  • The Root: The whole video.
  • The Branches: Big chunks of the video where the scene changes (like moving from the kitchen to the dining room).
  • The Leaves: The tiny, specific moments where the answer might be hiding.

Crucially, this tree isn't built with equal-sized slices. Instead, the computer looks at the video and cuts the tree exactly where the visual story changes. If a scene lasts for five minutes, that branch is long; if a scene is just a quick flash, that branch is short. This means every part of the tree makes sense as a story unit, rather than just a random slice of time.

The Four Magic Moves
Once the video is a tree, the computer agent doesn't just "crop" anymore. It has four specific moves to navigate this map:

  1. Zoom In: Go down a branch to see a smaller, more detailed part of the video.
  2. Zoom Out: Go back up to the parent branch if you realize you went too deep in the wrong direction.
  3. Shift: Move sideways to a different branch at the same level (like checking the next room instead of the current one).
  4. Answer: Stop searching and give the final answer with the exact time stamp.

The most exciting part is Zoom Out and Shift. These are the "I made a mistake, let's try again" buttons. In the old methods, going back was impossible or very hard. In VTS, it's a standard, built-in move. The agent can dive into a wrong branch, realize it's a dead end, climb back up, and jump to a different branch to find the truth.

Training the Detective
You can't just give a computer a tree and expect it to know how to use it. The researchers had to teach the agent how to handle mistakes. They created a special training process where they deliberately sent the agent down the wrong path on purpose.

  • The Detour: The agent would be guided to pick a wrong branch.
  • The Recovery: Then, it had to figure out how to climb back up and find the right path.

By practicing these "detour-and-recovery" scenarios, the agent learned that making a mistake isn't the end of the game; it's just part of the search. It learned that if it gets stuck, it should use its Zoom Out and Shift tools to recover.

The Results
When they tested this new detective on three different video question-answering challenges, the results were impressive.

  • On the CG-Bench test, VTS improved the ability to find the right time interval by 12.5 points compared to the best previous method.
  • On the Haystack-Ego4D test (which uses very long videos), it improved by 7.4 points.
  • Even on general video questions where it didn't have to find the exact time, it still beat other methods by up to 7.1 points in accuracy.

The paper suggests that this "hierarchical search" (searching in layers) is the secret sauce. When they removed the ability to Zoom Out or Shift, the performance dropped significantly. This proves that the ability to backtrack is what makes the system so good.

Why It Matters
The authors found that VTS doesn't just guess; it explores. On average, it takes about 4.8 turns (steps) to solve a problem, whereas older methods usually gave up after just 1 or 2 turns. The new agent actively uses its backtracking tools in about 60% of its searches. It's not just a faster calculator; it's a smarter explorer that knows how to admit when it's wrong and try a different route.

In short, this paper shows that treating a long video like a structured map, rather than a flat list of frames, allows computers to solve complex questions with much higher accuracy. By giving them the tools to back up and change direction, we've taught them to be much better at finding the needle in the haystack.

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 →