TL;DR
This paper introduces "Chain-of-Shot prompting" (CoS), a novel test-time optimization technique for large multi-modal models (LMMs) to better understand long videos. CoS tackles the challenge of excessive visual tokens by intelligently selecting relevant shots and filtering out irrelevant ones, significantly improving performance on long-form video comprehension tasks.
What Problem Does This Paper Address?
Modern large multi-modal models (LMMs) are powerful, but they struggle with understanding long videos (e.g., hour-long). The core issue is the sheer volume of visual information. Processing every frame or even a large number of sampled frames generates an overwhelming number of visual tokens, far exceeding the context window of these models. This leads to two problems: either sparse sampling misses crucial details, or exhaustive sampling floods the model with irrelevant "noise," hindering accurate understanding. Effectively selecting the right shots is a critical, unsolved problem for long video comprehension.
Methods
The paper proposes "Chain-of-Shot prompting" (CoS), a training-free, test-time optimization method. CoS has two main components:
- Binary Video Summary: This mechanism uses an LMM to perform "pseudo temporal grounding." It processes the video in aggregated "mosaiced" chunks (e.g., 4 shots per chunk) and assigns a binary label ("yes" or "no") to each chunk, indicating whether it contains task-relevant information. This creates a binary code for the video, identifying segments likely to be important.
- Video Co-Reasoning: This module uses the binary summary to construct two sets of sub-shots:
- Positive Shots (SP): These are the shots identified as task-relevant.
- Negative Shots (Sn): These are the shots identified as task-irrelevant. These positive and negative sub-shots, along with the original sampled shots, are then fed into the LMM for co-reasoning. A dynamic weighting mechanism adjusts the influence of SP and Sn based on the confidence of the shot selection, allowing the model to focus on relevant content while minimizing distractions.
Datasets
The paper evaluates CoS on five datasets:
- VideoMME: A large-scale dataset with videos of varying lengths (short, medium, long) and diverse scenarios.
- MLVU: A large-scale long-video dataset.
- LongVideoBench: A benchmark for precise retrieval and reasoning over detailed multimodal information in extended inputs.
- NEXT-QA: A short-video benchmark focusing on temporal reasoning.
- MVBench: A benchmark with over 20 challenging video understanding tasks.
Key Insights and Ideas
- Shot selection is crucial for long video understanding: The paper strongly emphasizes that how shots are sampled directly impacts the model's ability to understand a video, as illustrated by the example in Figure 2.
- Leveraging LMMs for self-supervision: CoS cleverly uses the reasoning and summarization capabilities of LMMs themselves to identify relevant shots, rather than relying on external supervision or hand-crafted prompts.
- Balancing relevance and noise: The core innovation is creating both positive (relevant) and negative (irrelevant) shot sets to guide the model. This dual approach helps the model focus on what's important while actively ignoring distractions.
- Test-time optimization is powerful: CoS operates at inference time, meaning it can adapt to specific video-task pairs without requiring model retraining, making it a flexible and efficient solution.
- Generalizability: CoS shows improvements not only on long videos but also on short-video benchmarks, suggesting its shot selection strategy is broadly beneficial.
Key Results
- CoS consistently improves performance across various baselines (LongVA, Video-XL, LLaVA-Video) and temporal scales on the VideoMME dataset.
- On MLVU and LongVideoBench, CoS achieves superior performance compared to closed-source and other open-source models.
- On NEXT-QA and MVBench, CoS delivers significant improvements, demonstrating its effectiveness even for shorter videos.
- Ablation studies confirm the effectiveness of each component of CoS, including the binary video summary, positive/negative shot construction, and the dynamic weighting mechanism. For instance, removing the binary video summary module leads to a significant performance drop.
Limitations and Future Work
- Computational Cost: While CoS is a test-time optimization, the process of generating binary summaries and constructing sub-shots adds computational overhead. The paper notes that the inference time complexity and space complexity remain O(n) (where n is the number of shots), but the actual processing time is increased.
- MLLM Dependency: The effectiveness of CoS relies on the underlying MLLM's ability to perform accurate binary classification and reasoning. The paper suggests that using diverse MLLMs for the binary summary phase can mitigate biases.
- Future Work: The paper doesn't explicitly detail future work, but the success of CoS suggests potential avenues for exploring more sophisticated shot selection strategies, integrating it with other video understanding techniques, or applying it to different modalities. The dynamic weighting mechanism also hints at further research into adaptive influence adjustments.
Summary updated