Source-linked AI summary
CoS: Chain-of-Shot Prompting for Long Video Understanding
Jian Hu, Zixu Cheng, Chenyang Si, Wei Li, Shaogang Gong
TL;DR
MLLMs struggle with long videos because task-relevant shots are sparse within excessive visual-token inputs, making effective shot selection an open problem. CoS performs training-free test-time visual prompt optimisation through binary video summarisation and video co-reasoning, and experiments report improved long-video understanding across baselines and datasets. Its binary-summary stage can be computationally expensive when evaluating many shots, and single-shot analysis may miss events spanning consecutive shots.
Problem
Long-video understanding is difficult because sparse task-relevant shots coexist with excessive visual tokens, creating a need to balance omitted information against irrelevant content.
Source: §1 · pp. 1–2Method
CoS is a training-free test-time strategy that uses mosaicing binary coding for pseudo temporal grounding and co-reasoning over positive and negative task-specific shots.
Source: §1 · p. 2Results
CoS improves long-video understanding across three baselines and five datasets, with reported gains across temporal scales and strong performance on MLVU and LongVideoBench.
Source: §4.2 · p. 7, §5 · p. 8Takeaways & Limitations
Dynamically selecting task-relevant shots and pairing them with irrelevant shots provides an adaptive visual-prompt approach for long-video reasoning.
Source: §1 · p. 2, §5 · p. 8Evaluating every shot individually is computationally expensive, and single-shot analysis may miss temporal-spatial events spanning consecutive shots.
Source: §3.2 · p. 4
Abstract
from arXiv · showhide
Multi-modal Large Language Models (MLLMs) struggle with long videos due to the need for excessive visual tokens. These tokens exceed massively the context length of MLLMs, resulting in filled by redundant task-irrelevant shots. How to select shots is an unsolved critical problem: sparse sampling risks missing key details, while exhaustive sampling overwhelms the model with irrelevant content, leading to video misunderstanding. To solve this problem, we propose Chain-of-Shot prompting (CoS). The key idea is to frame shot selection as test-time visual prompt optimisation, choosing shots adaptive to video understanding semantic task by optimising shots-task alignment. CoS has two key parts: (1) a binary video summary mechanism that performs pseudo temporal grounding, discovering a binary coding to identify task-relevant shots, and (2) a video co-reasoning module that deploys the binary coding to pair (learning to align) task-relevant positive shots with irrelevant negative shots. It embeds the optimised shot selections into the original video, facilitating a focus on relevant context to optimize long video understanding. Experiments across three baselines and five datasets demonstrate the effectiveness and adaptability of CoS. Code given in https://lwpyh.github.io/CoS.
1. Introduction
Long-video understanding remains difficult because MLLMs face excessive visual tokens, while shot selection must balance omitted details against irrelevant content. CoS treats shot selection as test-time visual prompt optimisation, using binary summarisation and co-reasoning to adapt video inputs to each task.
- Shot selection must minimise redundant distractions while preserving sparsely distributed task-relevant information.Source: Figure 1 · p. 1, §1 · pp. 1–2
- Long videos remain difficult for MLLMs because massive visual-token inputs can exceed model context and computational capacity.Source: §1 · p. 1
- Different shot selections from the same video can produce sharply different semantic interpretations, exposing visual selection as a reasoning issue.Source: Figure 2 · p. 2, §1 · p. 2
- CoS introduces a training-free test-time optimisation strategy that treats video inputs as visual prompts for long-video understanding.Source: §1 · p. 2
- Binary Video Summary uses mosaicing-based binary coding for pseudo temporal grounding, while Video Co-Reasoning constructs task-relevant positive and irrelevant negative videos to filter noise.Source: §1 · p. 2
- Experiments across five datasets and 17 models validate CoS’s effectiveness for dynamically optimising task-specific video inputs.Source: §1 · p. 2
2. Related Works
Related work improves visual-language processing, long-video capacity, and textual reasoning, but CoS focuses on selecting and modelling visual inputs for long-video understanding. Its framework combines binary video summarisation with positive-negative video co-reasoning.
MLLMs for visual understanding
- MLLM research improves cross-modal alignment and visual-token handling through projectors, pooling, token dropping, and related connector enhancements.Source: §2 · pp. 2–3
Prompt Engineering
- CoS’s framework uses mosaicing binary coding for pseudo temporal grounding and then combines task-relevant positive with irrelevant negative shots for co-reasoning.Source: Figure 3 · p. 3
MLLMs for Long Video Understanding
- Long-video methods extend context, compress inputs, or preserve key information through fine-grained data, parallel processing, and compact representations.Source: §2 · p. 3
Prompt Engineering
- Prompt-engineering methods such as VideoCoT and VoT mainly optimise textual reasoning inputs, whereas CoS models temporal and spatial structure in visual inputs.Source: §2 · p. 3
3. Methodology
CoS performs task-specific visual prompt optimisation by pseudo-grounding shots with binary summaries, then co-reasoning over balanced positive, negative, and original video inputs.
Overview
- CoS dynamically optimises visual inputs at test time for each video-understanding task by constructing task-relevant positive and irrelevant negative shots.The method is training-free and uses an MLLM’s spatial reasoning and summarisation abilities for per-instance shot selection.Source: §3 · pp. 3–4
Motivation
- Long-video shot selection must balance capturing sparse task-relevant information against reducing redundant and distracting shots.Low sampling rates risk omissions, whereas denser sampling increases irrelevant content and computational burden.Source: §3.1 · p. 4, §3.2 · p. 4
Binary Video Summary
- Binary video summarisation asks whether each shot or aggregated shot group contains task-relevant content, producing a binary coding for pseudo temporal grounding.Grouping k consecutive shots into mosaicing images reduces evaluation cost while preserving temporal information; the implementation uses k=4 and LLaVA.Source: §3.2 · p. 4
Constructing Balanced Sub-Shots
- Positive shots are selected from shots labelled relevant, while negative shots use irrelevant shots and replacement rules to maintain balanced sequence lengths.If suitable neighbouring shots are unavailable, the positive sequence falls back to the original video, while negative construction can use a black shot.Source: §3.3.1 · pp. 4–5
Co-Reasoning with Sub-Shots
- The model jointly reasons over the original sequence and constructed positive and negative sub-shots, with a weight α controlling their influence.A smaller positive-shot ratio indicates stronger selection and increases α; when α=0, reasoning uses only the original sequence X.Source: §3.3.2 · pp. 5–6
4. Experiments
Experiments evaluate CoS across three baselines and five datasets spanning short, medium, and long videos, showing improvements across settings and analyzing its components and parameters.
Results
- CoS significantly improves three baselines across short, medium, and long videos, with larger gains on LLaVA-Video and LongVA than Video-XL.The smaller Video-XL gains are attributed to its built-in context attention mechanism overlapping with CoS’s design.Source: §4.2 · p. 7
- CoS outperforms closed-source methods and other open-source 7B-scale models on the MLVU and LongVideoBench development sets.These results cover two long-video benchmarks.Source: §4.2 · p. 7
- CoS delivers significant improvements on NEXT-QA and MVBench across two baselines, achieving leading performance on both short-video benchmarks.This indicates that the visual prompting modification generalizes beyond long-video tasks.Source: Table 3 · p. 6, §4.2 · p. 7
Module Analysis
- Ablations show that binary video summary, original videos, positive shots, negative shots, and dynamic weighting each contribute to the full CoS model.Removing binary video summary regresses toward the baseline, while removing original videos eliminates a margin of error for shot-selection mistakes.Source: §4.2 · p. 7, Table 4 · p. 7
Shot Selection Model Analysis
- Using LongVA for shot selection performs worst, whereas other MLLMs improve results, suggesting diverse model strengths can mitigate biases in unlabelled shot selection.Qwen2 and LLaVA1.5 perform comparably in this analysis.Source: §4.2 · pp. 7–8
Impact of Shot-sampling Rate
- With 64 sampled shots performance is mediocre, but it remains stable from 96 to 192 shots, indicating robustness to sampling rate.The analysis attributes the 64-shot result to inadequate sampling and suggests dynamic selection helps when relevant shots are sparse.Source: Table 5 · p. 7, §4.2 · p. 8
Image Aggregation Shot Count Analysis
- Aggregation count 4 balances grounding granularity and inference speed, while counts above 4 reduce grounding accuracy and spatial positioning.Count 2 offers finer grounding but is more time-consuming; count 4 was selected for effective temporal-spatial grounding.Source: Table 5 · p. 7, §4.2 · p. 8
5. Conclusion
CoS is a training-free test-time optimisation plug-in that dynamically selects task-relevant and task-irrelevant shots per video instance to improve long-video understanding.
- CoS dynamically selects shots for each video instance and query task, constructing task-relevant positive and task-irrelevant negative videos to improve reasoning performance.The method is presented as a training-free test-time optimisation plug-in mechanism.Source: §5 · p. 8
Related papers
This paper cites
- Learning Transferable Visual Models From Natural Language Supervision2021
- DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning2025
- MiniGPT-4: Enhancing Vision-Language Understanding with Advanced Large Language Models2023
- Gemini 1.5: Unlocking multimodal understanding across millions of tokens of context2024
- InternVL: Scaling up Vision Foundation Models and Aligning for Generic Visual-Linguistic Tasks2023
- Video-LLaVA: Learning United Visual Representation by Alignment Before Projection2023