Thinking in Frames: How Visual Context and Test-Time Scaling Empower Video Reasoning

Chengzu Li, Zanyi Wang, Jiaang Li, Yi Xu, Han Zhou, Huanyu Zhang, Ruichuan An, Dengyang Jiang, Zhaochong An, Ivan Vulić, Serge Belongie, Anna KorhonenarXiv 2026

TL;DR

Instead of forcing AI to reason about the physical world using text or abstract coordinates, this paper repurposes video generation models as visual planners, treating generated frames as intermediate "Chain-of-Thought" reasoning steps. By leveraging visual context as control constraints and scaling the inference frame budget, this approach achieves remarkable zero-shot generalization on complex spatial tasks like maze navigation and geometry puzzles, vastly outperforming traditional text-based models.

What Problem Does This Paper Address?

While Multimodal Large Language Models (MLLMs) excel at textual and semantic reasoning, they notoriously struggle with fine-grained spatial understanding, continuous action planning, and physical dynamics. Typically, these models are forced to reason via textual descriptions or discrete coordinate outputs (e.g., JSON formats). However, text is a low-bandwidth, imprecise medium for capturing continuous geometric transformations—like the exact rotation and placement of a tangram piece or a collision-free trajectory in an irregular maze.

Prior attempts at visual planning have largely been confined to simple, in-distribution settings with minimal visual changes. The authors address this gap by exploring whether video generation models can act as continuous proxies for the visual reasoning process, handling both discrete sequential logic and highly volatile continuous manipulations.

Methods

The authors formulate visual reasoning as a video generation problem. Given an initial state image and a goal specification, the model must generate a temporally consistent video sequence where the evolving frames represent the execution of a plan.

Figure 1. Video generation models as visual reasoners, empowered by (1) enriched visual context for improved geometric control and (2) visual test-time scaling that allocates a larger inference-frame budget and enables stronger performance on long-horizon, complex sequential planning tasks, together demonstrating robust generalization across diverse scenarios.

The core architecture relies on Wan 2.2 TI2V 5B, a state-of-the-art text-to-video diffusion model, which the authors fine-tune using Low-Rank Adaptation (LoRA). They evaluate this approach across two distinct regimes:

  1. MAZENAVIGATION: Representing structured, sequential planning with low visual change (an agent icon moving through a grid).
  2. TANGRAMPUZZLE: A novel, continuous spatial manipulation stress test requiring high visual change and strict geometric preservation (moving and rotating puzzle pieces to fill a silhouette).

Crucially, the authors introduce Visual Test-Time Scaling, systematically increasing the generated video length (inference compute budget) to see if "thinking in more frames" empowers the model to solve harder problems.

Datasets

  • MAZENAVIGATION: Built using standard grid-world maze environments but heavily modified to test robustness. The training set consists of 4,000 instances (sizes 3x3 to 6x6, path lengths $\le$ 12 steps) featuring 40 unique agent icons. The evaluation set introduces out-of-distribution (OOD) challenges: larger spatial scales (7x7 and 8x8), longer paths (13–18 steps), and entirely unseen visual icons.
  • TANGRAMPUZZLE: Repurposed from the Kilogram dataset, this benchmark contains 692 items stripped of underlying grid structures. It requires arranging seven disjoint, color-coded geometric pieces into a target silhouette. It features three variants: Fade-In (pieces appear sequentially), Rotation (pieces start with random orientations and positions), and Translation (pieces are pre-aligned but must be translated).

Key Insights and Ideas

  • Frames as Visual Chain-of-Thought: Operating on a dense temporal manifold allows the video model to simulate physical dynamics continuously. This provides native interpretability and verifiability; failure modes (like collisions or object morphing) are immediately visible in the intermediate frames.
  • Visual Context as Control Constraints: Conditioning the model on explicit visual context (such as the visual avatar of an agent or the shapes of the puzzle pieces) acts as a powerful geometric prior. This visual anchoring allows the model to maintain object permanence and adapt to unseen patterns zero-shot, far outperforming text prompts.
  • A Visual Test-Time Scaling Law: Paralleling "System 2" compute scaling in LLMs (like OpenAI's o1), the authors discovered that increasing the inference frame budget allows the model to solve spatially and temporally complex paths that fail at lower frame counts.
  • Emergent Self-Correction: When allocated a higher frame budget on long-horizon mazes, the model exhibits emergent backtracking behaviors. If the agent takes a wrong turn, the model actively generates frames where the agent stops, reverses, and corrects its path—a capability never explicitly provided in the training data.

Key Results

The video generation paradigm demonstrated massive performance leaps over text-based alternatives:

Table 2. Results across different maze sizes and path lengths. All open-sourced models are fine-tuned and proprietary models are evaluated in a zero-shot setting.  represents texts, Õ represents images, and r represents videos. ■represents visual reasoning systems.
  • Maze Navigation Mastery: In-distribution, the video model achieved a 96.0% Exact Match (EM) score, compared to just 12.5% for GPT-5.2 and 58.3% for Qwen3-VL-8B.
  • Robust OOD Generalization: When faced with longer paths (Temporal OOD), standard MLLMs dropped to 0% success, whereas the video model maintained 42.0%–44.0% EM. When tested with entirely unseen agent icons, the model suffered virtually no performance loss.
  • Tangram Success: Text-based models failed completely (near 0% strict goal completion) at verbalizing continuous coordinates for the Tangram puzzle. In contrast, the video model achieved up to 68.0% strict goal completion in the translation setting and generalized robustly to unseen target silhouettes (60.8%).

Limitations and Future Work

Despite its promise, the authors highlight two primary bottlenecks:

  1. Positional Embedding Constraints: Visual test-time scaling hits a ceiling. When scaling beyond 121 frames to 141 frames, performance degrades because the underlying diffusion model's positional embeddings struggle to extrapolate too far beyond the pre-trained sequence length.
  2. Geometric Distortion: In high-volatility tasks like the Tangram rotation variant, the model suffers from pixel-level warping and chromatic drift over long generation windows.

Future work will focus on developing video architectures with better long-context extrapolation capabilities and integrating explicit geometric preservation mechanisms to prevent visual reasoning traces from dissolving into artifacts over extended horizons.

Summary updated

BibTeX
@misc{li2026thinking,
  author = {Chengzu Li and Zanyi Wang and Jiaang Li and Yi Xu and Han Zhou and Huanyu Zhang and Ruichuan An and Dengyang Jiang and Zhaochong An and Ivan Vulić and Serge Belongie and Anna Korhonen},
  title = {{Thinking in Frames: How Visual Context and Test-Time Scaling Empower Video Reasoning}},
  year = {2026},
  eprint = {2601.21037},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.21037},
}
Figure