Temporal Backtracking Search for Test-time Generative Video Reasoning

SeJoon Jun, Zheng Ding, Huangyuan Su, Weirui Ye, Yilun Du

TL;DR

Generative video models struggle with long-horizon reasoning due to early trajectory commitment. This paper introduces Temporal Backtracking Search (TBS), a novel test-time scaling method that shifts search from denoising steps to the temporal axis. TBS iteratively generates, verifies, and restarts video segments, significantly improving reasoning capabilities across various domains, especially in challenging out-of-distribution scenarios.

What Problem Does This Paper Address?

Current generative video models, while impressive at generating realistic frames, often fail at complex, long-horizon reasoning tasks. This is because their generated trajectories tend to commit to a flawed spatial path early in the generation process. Standard test-time scaling methods, like Best-of-N (BoN) sampling, which treat entire video rollouts as indivisible units, are inefficient. They waste computation by repeatedly resampling from the beginning, even after a valid prefix has been generated, and cannot recover from early errors. This paper aims to bridge this gap by enabling video models to effectively scale their reasoning capabilities over time.

Methods

The core innovation is Temporal Backtracking Search (TBS), which reframes video generation as an iterative generate-verify-restart loop. Instead of searching over denoising steps, TBS searches along the temporal axis. Key components include:

  • Variable-K Conditioning: A fine-tuned diffusion model that can resume generation from arbitrary "clean" prefixes (verified segments of the video) while preserving the motion context of that prefix. This is crucial for restarting from a specific point in time.
  • Temporal Process Verification: A verifier that not only checks if a video is correct but also localizes the first frame where a logical failure occurs. This allows for the extraction of valid "restart anchors" – the last correct frame before the failure.
  • Prefix-Based Search: TBS uses these verified prefixes and restart anchors to guide its search. It prioritizes extending valid trajectories rather than resampling from the beginning, effectively reallocating compute to repair errors.

Datasets

The paper evaluates TBS across three main regimes:

  • Rule-based Grid-Worlds: Includes 2D Maze, 3D Maze, Keys-and-Doors, Sliding Puzzle, and Sokoban. These domains use deterministic rules for verification.
  • Continuous Navigation: Uses the Target-Bench benchmark, which involves mapless path planning. The verifier here is a learned trajectory predictor.
  • Robotic Manipulation: Evaluated on RoboTwin, a benchmark using a physics simulator for bimanual robot tasks. The verifier uses simulator state and task predicates.

Key Insights and Ideas

  • Early Commitment is Key: The paper strongly demonstrates that video diffusion models commit to their spatial trajectory very early in the generation process. Later denoising steps cannot fix an early, fundamental error.
  • Temporal Search is Superior: Shifting test-time scaling from the denoising axis to the temporal axis is critical for long-horizon reasoning. This allows for targeted repair rather than wholesale resampling.
  • Prefix Reuse is Powerful: The ability to salvage and extend verified prefixes dramatically improves performance, especially in scenarios where single-shot generation fails completely.
  • Verifier Quality Matters: The effectiveness of TBS is highly dependent on the quality of the process verifier. Domain-specific verifiers that can accurately identify failures and provide good restart anchors are crucial.
  • Local Competence Amplification: TBS doesn't magically imbue models with reasoning abilities they don't possess. Instead, it effectively unlocks and amplifies the existing local reasoning competence of video models by allowing them to build upon successful segments.

Key Results

  • Significant Gains in Structured Reasoning: TBS consistently outperforms matched-budget BoN across rule-based domains, with particularly large improvements on harder, longer-horizon tasks (e.g., a +22.0 absolute point gain on Keys-and-Doors Strict-OOD).
  • Robustness to Noisy Supervision: TBS shows resilience to noisy learned verifiers in the Target-Bench navigation task, maintaining performance gains even with corrupted ground-truth paths.
  • Effective in Robotics: In RoboTwin, TBS improves success rates by +4% in clean scenes, demonstrating its utility in physics-based simulation.
  • Out-of-Distribution Success: In a strict OOD setting where BoN achieved only 0.7% exact match, TBS achieved 22.7%, with all successes stemming from restarted branches.

Limitations and Future Work

  • Dependency on Verified Prefix: TBS requires the base model to generate at least a short, valid prefix. If the model consistently fails to produce any meaningful progress (e.g., due to extreme OOD conditions), TBS's gains diminish.
  • Verifier Dependency: The current implementation relies on domain-specific external verifiers. Future work could involve training implicit video process reward models (PRMs) to internalize supervision, enabling autonomous temporal search across broader domains.
  • Base Model Competence: TBS amplifies existing competence; it cannot create competence the base model lacks. If the generator fundamentally fails at a task, TBS will also struggle.

Summary updated

BibTeX
@inproceedings{jun2026temporal,
  author = {SeJoon Jun and Zheng Ding and Huangyuan Su and Weirui Ye and Yilun Du},
  title = {{Temporal Backtracking Search for Test-time Generative Video Reasoning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=VbbMjAFFHD},
}
Figure