OpenCoF: Learning to Reason Through Video Generation

Xinyan Chen, Ziyu Guo, Renrui Zhang, Dongzhi Jiang, Hongsheng LiarXiv 2026

TL;DR

OpenCoF introduces a novel framework to advance "Chain-of-Frame" (CoF) reasoning in video generation models. By creating the diverse OpenCoF-17K dataset and proposing specialized visual and textual reasoning tokens, the authors successfully transition video models from simple pixel-level generators to structured visual reasoners, achieving significant out-of-distribution performance gains across multiple benchmarks.

What Problem Does This Paper Address?

While Large Language Models (LLMs) have made massive strides in logical reasoning using Chain-of-Thought (CoT) prompting, multimodal models remain largely limited by static visual observations. Dynamic tasks—like predicting the trajectory of a bouncing ball, solving a maze, or playing chess—require understanding temporal consequences.

Video generation models offer a natural alternative: reasoning can unfold dynamically across temporally connected frames, a concept termed Chain-of-Frame (CoF) reasoning. However, current video generators are primarily trained on general video corpora (like movies or internet clips). They lack both the diverse, reasoning-focused training data and the internal architectural mechanisms needed to maintain and organize intermediate reasoning states. High visual realism does not automatically equal reliable logical continuity.

Methods

To bridge this gap, the authors propose two core strategies:

  1. Data-Centric Fine-Tuning: They fine-tune a state-of-the-art open-source video generation model, Wan2.2-I2V-A14B, on their newly curated dataset using LoRA, creating a baseline reasoning model called Wan-CoF.
  2. Dedicated Reasoning Tokens: Current Diffusion Transformer (DiT) models force reasoning to happen implicitly within visual latents. OpenCoF introduces two explicit token mechanisms to host intermediate reasoning states:
  3. Visual Reasoning Tokens ($vt$): Learnable tokens are prepended directly to the visual latent sequence before the first DiT block. Through bidirectional self-attention, these tokens capture low-level visual cues and global context.
  4. Textual Reasoning Tokens ($tt$): Learnable tokens are prepended to the text-conditioning sequence. Through cross-attention, they provide prompt-independent, high-level semantic priors.
Overview of the OpenCoF framework and token techniques

Datasets

The authors introduced OpenCoF-17K, a dataset containing 17,312 video samples across 11 task families. All videos are standardized to 480p, 15 fps, and 81 frames. The dataset was built using four distinct curation pipelines to ensure diversity:

  • Instance-based Rendering: Rule-based environments like Chess (finding checkmate moves) and Sudoku (solving 4x4 grids).
  • Expert-guided Rendering: 2D Geometry (drawing auxiliary lines) and Dot-to-dot puzzles.
  • Procedural Scene Synthesis: 3D physics engines generating Tangram puzzles, Cube folding, and 3D polycube rotations.
  • External Video Repurposing: Adapting high-quality data from existing suites like Maze (VR-Bench), VBVR, and Embodied Manipulation (BridgeData V2).
Composition of the OpenCoF-17K dataset

For evaluation, the models were tested on four independent, external video-reasoning benchmarks to measure true out-of-distribution generalizability: MME-CoF, Gen-ViRe, VIPER, and RULER-Bench.

Key Insights and Ideas

  • Supervision Elicits CoF: Simply fine-tuning a general video model on diverse temporal reasoning data (Wan-CoF) significantly improves its logical performance, proving that CoF behavior can be effectively unlocked via targeted data.
  • Functional Specialization of Tokens: Attention analysis revealed that $vt$ and $tt$ tokens specialize in opposite, complementary ways. Visual tokens ($vt$) dominate tasks requiring global visual planning and spatial stability (like tracking objects or planning paths), peaking in attention during early denoising steps. Textual tokens ($tt$) act as steady semantic constraints, keeping the model aligned with the prompt's instructions throughout the generation process.
  • Reasoning $\neq$ Capacity Scaling: In ablation studies, doubling the number of reasoning tokens from 16 to 32 did not uniformly improve performance. This indicates that these tokens function as structured routing mechanisms for reasoning states rather than just adding raw parameter capacity.

Key Results

Fine-tuning on OpenCoF-17K yielded substantial improvements over the Wan2.2 baseline across all external benchmarks:

  • MME-CoF: The baseline score jumped from 1.00 to 1.30 (on a 0-4 scale), with the token variants ($Wan-CoF_{tt}$) pushing it further to 1.35.
  • VIPER: The baseline [email protected] score dramatically increased from 3.3 to 7.5 with data alone, and reached 8.8 when equipped with textual reasoning tokens ($Wan-CoF_{tt}$).
  • Gen-ViRe: Average performance rose from 0.304 to 0.391, with visual tokens ($Wan-CoF_{vt}$) achieving the highest score of 0.441.

Crucially, the largest improvements occurred in reasoning-heavy sub-dimensions like Temporal Consistency, Physics, and Algorithmic & Logical reasoning, rather than pure visual fidelity.

Limitations and Future Work

The primary limitation acknowledged by the authors is that Visual Reasoning Tokens ($vt$) and Textual Reasoning Tokens ($tt$) were investigated completely separately. While both showed distinct strengths, the framework does not yet combine them into a unified architecture. The authors note that effectively integrating both visual and textual channels to co-organize intermediate reasoning states is a promising direction for future work.

Summary updated

BibTeX
@misc{chen2026opencof,
  author = {Xinyan Chen and Ziyu Guo and Renrui Zhang and Dongzhi Jiang and Hongsheng Li},
  title = {{OpenCoF: Learning to Reason Through Video Generation}},
  year = {2026},
  eprint = {2607.08763},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.08763},
}
Figure