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

Ce Zhang, Ziyang Wang, Yulu Pan, Oluwatumininu Oguntola, Pranav Wagh +4 more
7/17/2026
cs.CV

Official code: CeeZh/VTS (6 stars, Python, MIT, last commit 2026-09-23).

Abstract

Grounded long-video question answering (Grounded LVQA) requires answering a question about a long video while localizing the short evidence interval that supports the answer. Recent agentic methods frame this task as multi-turn exploration with a single crop_video(start, end) action, which supports coarse-to-fine narrowing but provides no primitive for fine-to-coarse backtracking.

Show full abstract

As a result, these agents typically converge prematurely and cannot recover from an early mistake. We propose VideoTreeSearch (VTS), a framework that casts grounded LVQA as iterative self-correcting search over an adaptive temporal tree. VTS constructs a non-uniform tree from visual scene boundaries so that each node corresponds to a semantically coherent segment, and trains an agent to navigate the tree through four discrete operations: zoom_in, zoom_out, shift, and answer. These operations expose backtracking and recovery as explicit, learnable primitives rather than implicit behaviors. To train this navigation, we introduce a trajectory synthesis pipeline that produces multi-step paths through the tree, including deliberate detours into incorrect branches followed by recovery. We use these trajectories for supervised fine-tuning, followed by reinforcement learning with grounding and answer-accuracy rewards. On three Grounded LVQA benchmarks (CG-Bench, Haystack-LVBench, Haystack-Ego4D), VTS outperforms the strongest prior agentic methods by +12.5 mIoU on CG-Bench and +7.4 T-F1 on Haystack-Ego4D. The learned policy also transfers to general long-video QA, surpassing all prior agentic baselines on Video-MME, MLVU, and LVBench by up to +7.1 accuracy points. Ablations confirm that self-correcting hierarchical search is the central mechanism behind these gains: removing either adaptive descent or explicit backtracking substantially degrades performance. Code is available at https://github.com/CeeZh/VTS.

View on arXivView PDF

Code Implementations(1)

CeeZh/VTSOfficial100%
MIT

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

61Python, ShellMay 22, 20262 months agoMIT

Similar Papers

Cite this paper

@article{zhang2026searching,
  title  = {Searching Videos as Trees: Self-Correcting Agents for Grounded Long Video QA},
  author = {Ce Zhang and Ziyang Wang and Yulu Pan and Oluwatumininu Oguntola and Pranav Wagh and Qiyu Wu and Hiromi Wakaki and Mohit Bansal and Gedas Bertasius},
  year   = {2026},
  eprint = {2607.16189},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.16189v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.16189.svg)](https://codeofpaper.com/paper/2607.16189)

Discussion