Abstract
Video Large Language Models (VLLMs) face a significant efficiency bottleneck due to visual redundancy, where thousands of tokens—many irrelevant to the user's query—are processed with quadratic complexity. We introduce PruneVid, a training-free framework that prunes over 80% of visual tokens. By combining spatial-temporal merging with a "question-aware" selection process guided by the LLM’s internal attention, PruneVid achieves up to a 1.55x speedup and an 80% reduction in FLOPs. Notably, the framework maintains or improves accuracy by effectively denoising visual inputs, demonstrating that LLMs can serve as their own relevance filters.
Introduction
While Large Language Models (LLMs) have revolutionized video understanding, the sheer volume of visual data remains a computational challenge. A typical video contains significant redundancy, such as static backgrounds or objects irrelevant to the specific question asked. Processing every token is computationally ruinous for Transformer-based architectures.
Existing solutions often require expensive retraining or rely on generic visual importance. PruneVid offers a "plug-and-play" alternative that reduces token counts based on both the inherent video structure and the specific context of the user's query.
Methodology
PruneVid employs a two-stage pruning strategy that requires zero additional training, making it highly adaptable to existing models.
Spatial-Temporal Token Merging
The first stage condenses visual representations before they reach the LLM.
- Temporal Merging: The algorithm identifies "static" regions (areas with minimal change across frames) and merges them along the temporal dimension.
- Spatial Merging: It utilizes a clustering technique (DPC-KNN) to group similar tokens within each frame, further reducing the input size.
LLM-Guided Token Selection and KV Cache Compression
Once the condensed tokens enter the LLM, PruneVid leverages the model's internal reasoning. By analyzing attention scores in an intermediate layer (specifically the 10th layer), the framework identifies which visual tokens the "question tokens" prioritize. It prunes the bottom-ranked tokens, typically retaining only the top 40% most relevant to the query.
To optimize the decoding phase, PruneVid discards the Key-Value (KV) caches of pruned tokens from previous layers. This significantly reduces memory overhead during text generation.
Experiments and Results
The authors evaluated PruneVid across diverse benchmarks, including MVBench for temporal QA, Video-MME and EgoSchema for long-form understanding, and VideoChatGPT-Bench for open-ended generation.
Performance and Efficiency
- Speed and Compute: PruneVid consistently pruned over 80% of visual tokens, leading to a 74% to 80% reduction in FLOPs and a 1.55x speedup in Time-To-First-Token (TTFT).
- Memory Optimization: GPU memory usage was notably reduced, for instance, from 20G to 17G in PLLaVA-based tests.
- Accuracy Gains: On the MVBench benchmark, PruneVid achieved 47.6% accuracy compared to the baseline's 46.6%. This performance boost suggests that pruning acts as a "denoiser," removing irrelevant information that might otherwise lead to hallucinations or distractions.
Conclusion
PruneVid demonstrates that the internal attention mechanism of an LLM is a highly effective filter for visual relevance. By removing redundant data without requiring fine-tuning, PruneVid provides a scalable path toward more efficient video understanding. Future work will focus on optimizing layer selection across different model scales and refining pre-processing for real-time applications.
Summary updated