Temporal Chain of Thought: Long-Video Understanding by Thinking in Frames

Anurag Arnab, Ahmet Iscen, Mathilde Caron, Alireza Fathi, Cordelia Schmid

TL;DR

Temporal Chain of Thought (TCoT) is a novel inference strategy that enables Vision-Language Models (VLMs) to understand long videos by using the model itself to iteratively select only the most relevant frames before answering a question. By filtering out irrelevant "distractor" frames, TCoT scales inference-time computation to deliver state-of-the-art accuracy on long-video benchmarks while drastically reducing the required context window size.

What Problem Does This Paper Address?

While modern Vision-Language Models (VLMs) boast massive context windows capable of processing up to a thousand frames, they suffer from a classic "lost in the middle" problem. When fed an entire long video, VLMs frequently get overwhelmed by irrelevant background information and misleading distractors, causing their question-answering accuracy to saturate or degrade.

Prior attempts to solve this relied on complex multi-model pipelines—using one model to caption every frame, another to retrieve relevant frames via text embeddings, and a final Large Language Model (LLM) to answer the question. These pipelines are brittle, computationally expensive, and lose critical visual details because the initial captioning step isn't conditioned on the user's question. The authors of this paper ask: Can a single VLM dynamically curate its own visual context?

Methods

The authors introduce Temporal Chain of Thought (TCoT), an elegant two-stage inference strategy that uses a single, unmodified VLM for both context curation and final reasoning.

Figure 1: Temporal Chain of Thought. Motivated by the fact that long input contexts can have distractors which confuse the model, we use the VLM itself to first extract relevant context (blue box) before processing it. Our approach improves accuracy, and by iteratively processing parts of the video at a time, can also reduce the model’s required context window.

1. Single-Step TCoT

For shorter video clips, the VLM is given the question and a sequence of frames labeled with IDs. It is prompted to output a JSON object containing a list of frame IDs essential to answering the question, along with a textual justification for its choices. These selected frames act as "visual thoughts."

2. Dynamic-Segment TCoT

To scale to videos spanning hours, the authors propose a divide-and-conquer approach:

  • Segmentation: The long video is split into $l$ non-overlapping segments.
  • Independent Selection: A uniform sample of $s$ frames from each segment is passed to the VLM to perform Single-Step TCoT independently across segments.
  • Aggregation & Refinement: The selected frames from all segments are pooled together. To ensure the model doesn't lose global temporal awareness, a small number of coarse, uniformly sampled frames ($u$) from the entire video are mixed in.
  • Answering: The final curated frame sequence is passed to the VLM to generate the answer.
Figure 2: Temporal Chain of Thought. We use Single-Step TCoT (left, Sec. 3.2) to construct our final approach (right). Namely, we use the VLM itself to extract relevant frames from an input video clip, conditioned on the input question. To scalably process longer videos, we perform this approach within l segments which span the video to extract the most relevant context. Finally, we use only the extracted context for answering.

Datasets

The approach was evaluated across four diverse video question-answering benchmarks:

  • LVBench: An extreme long-video dataset featuring YouTube videos averaging 68 minutes in length.
  • EgoSchema: A benchmark consisting of 180-second egocentric videos requiring holistic video understanding.
  • OpenEQA: An embodied AI dataset featuring open-ended questions about indoor environments (averaging 452 frames).
  • NExT-QA: A popular short-video QA dataset (averaging 39.5 seconds) used to benchmark against prior methods.

Key Insights and Ideas

  • Visual Thoughts > Textual Thoughts: Traditional Chain-of-Thought prompting relies on text generation to solve problems step-by-step. In long-video understanding, the authors show that pure linguistic CoT provides negligible gains. Instead, the "thoughts" must be visual—manifesting as the precise selection of relevant frames.
  • Inference-Time Scaling for Vision: Recent LLM breakthroughs (like DeepSeek-R1 or OpenAI's o1) show that scaling compute during inference yields massive performance gains. TCoT brings this paradigm to video: by increasing the number of segments ($l$), you spend more compute filtering context, which smoothly translates to higher accuracy.
  • Dynamic Adaptability: The VLM naturally adjusts its selection density based on the question type. For "temporal grounding" tasks (e.g., pinpointing a specific action), it selects fewer than 10% of the frames. For "summarization" tasks, it automatically retains a much higher percentage of frames to capture the full narrative.

Key Results

TCoT achieved state-of-the-art results across all four datasets and demonstrated compatibility across multiple architectures, including Gemini 1.5 Flash, Qwen-2.5-VL, and GPT-4o-mini.

  • Context Window Efficiency on LVBench: On hour-long videos, TCoT restricted to a tight 32K token context window (approx. 120 frames) outperformed standard baseline inference utilizing a massive 700K token context window by 2.8 points (61.7 vs 58.9), while using the exact same total number of tokens.
  • Saturating Baselines Defeated: As shown in the compute-vs-accuracy trade-off curve, standard baseline inference completely saturates after processing around 1,000 frames due to distractor confusion. TCoT's accuracy continues to scale upward as more frames are processed.
Figure 4: Accuracy vs computation trade-off. We compare Temporal Chain of Thought to two alternatives: baseline in- ference and self-consistency CoT [58]. We use the total num- ber of visual tokens and frames (in parentheses) processed to measure computation, and vary l from 2 to 32 to do so for TCoT. Our approach improves consistently whilst baseline inference saturates in the presence of distractors from more frames. Self-consistency CoT is ineffective, underlining the need for inference-time scaling approaches tailored to video.

Limitations and Future Work

While highly effective, TCoT relies heavily on the zero-shot instruction-following capabilities of the underlying VLM. The model must be capable of reliably outputting structured JSON data and valid frame IDs. If the VLM fails to parse the selection prompt correctly, the system defaults back to uniform sampling.

The authors note that a promising direction for future work is to move away from zero-shot prompting and explicitly train VLMs to perform this iterative frame-selection process using reinforcement learning.

Summary updated

BibTeX
@inproceedings{arnab2025temporal,
  author = {Anurag Arnab and Ahmet Iscen and Mathilde Caron and Alireza Fathi and Cordelia Schmid},
  title = {{Temporal Chain of Thought: Long-Video Understanding by Thinking in Frames}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=BDkNRlGmP9},
}
Figure