Abstract
Video Large Language Models (VideoLLMs) have achieved remarkable success in multimodal understanding, yet they are hindered by the immense computational cost of processing high-resolution, multi-frame video data. We introduce Video Compression Commander (VidCom²), a training-free, plug-and-play framework that accelerates VideoLLM inference by up to 70% while maintaining nearly 100% of the original model's accuracy. By identifying and prioritizing "unique" frames over redundant ones, VidCom² intelligently prunes visual tokens before they enter the LLM, ensuring high efficiency and full compatibility with modern hardware kernels like Flash Attention.
Introduction
As VideoLLMs scale to handle longer and more complex content, the sheer volume of visual tokens becomes a significant bottleneck. Processing these tokens follows a quadratic complexity curve, leading to high latency and massive memory requirements. Current token compression methods often suffer from two primary flaws:
- Design Myopia: Most existing techniques treat every frame as equally important, applying uniform compression across the entire video. This ignores the temporal dynamics of video; a static background sequence requires far less representation than a brief, high-motion action sequence. Pruning these frames identically leads to significant information loss.
- Implementation Constraints: Many intra-model compression methods rely on specific attention weights that are incompatible with high-speed hardware kernels like Flash Attention 2. Consequently, some "acceleration" methods inadvertently increase peak memory usage and slow down real-world execution.
VidCom² addresses these issues by shifting the focus to frame uniqueness and ensuring the compression process occurs "pre-LLM," maintaining operator compatibility.
Methodology
VidCom² introduces a two-stage, training-free approach designed around three core principles: model adaptability, frame uniqueness, and operator compatibility.
Stage 1: Global Frame Compression Adjustment
The system first constructs a "global video representation" by averaging all tokens across the video sequence. It then calculates a uniqueness score for each individual frame by measuring the deviation of its tokens from this global average. Frames that exhibit high uniqueness (e.g., scene changes or sudden movements) are allocated a larger token budget, while redundant or static frames are compressed more aggressively.
Stage 2: Adaptive Token Compression
Within each frame, VidCom² evaluates tokens based on a dual-metric system: local uniqueness (compared to its own frame) and global uniqueness (compared to the entire video). Using a simple TopK selection mechanism, the framework retains only the most informative tokens. Because this pruning happens before the tokens enter the LLM, the model can utilize Flash Attention 2 without modification, ensuring tangible speedups on modern GPUs.
Experimental Evaluation
To validate the robustness of VidCom², the researchers evaluated the framework across a comprehensive suite of benchmarks and models:
- Benchmarks: MVBench (20 tasks), LongVideoBench (long-context understanding up to 1 hour), MLVU (multi-task long video), VideoMME (large-scale multi-modal evaluation), and EgoSchema/PerceptionTest (egocentric and fundamental perceptual skills).
- Models: LLaVA-OneVision, LLaVA-Video, and Qwen2-VL.
Key Insights
- The Power of Uniqueness: Empirical results show that dropping 24 redundant frames has almost no impact on performance, whereas dropping just 8 unique frames can cause a complete model failure. VidCom²'s ability to distinguish between the two is central to its success.
- Avoiding the Efficiency Trap: The study highlights that some intra-LLM compression methods (like FastV or PDrop) can increase peak memory usage by nearly 40% due to kernel incompatibility. VidCom² avoids this overhead, actually reducing peak memory usage by approximately 2 GB compared to standard processing.
Results
VidCom² demonstrates state-of-the-art (SOTA) performance in the field of video token compression:
- Performance Retention: On the LLaVA-OneVision model, VidCom² retains 99.6% of the original performance while utilizing only 25% of the visual tokens.
- Inference Acceleration: The framework reduces LLM generation latency by 70.8% and increases overall throughput by 1.38x.
- Comparative Advantage: At a 25% token retention rate, VidCom² outperformed the previous leading method (DyCoke) by 12.6% on LLaVA-OV and 7.3% on LLaVA-Video.
Conclusion and Future Work
VidCom² provides a highly effective, plug-and-play solution for the computational challenges of VideoLLMs. By prioritizing frame uniqueness and maintaining hardware compatibility, it achieves significant speedups without sacrificing accuracy.
While the current research focused on 7B-parameter models due to hardware constraints, the authors anticipate the benefits will scale to larger architectures (e.g., 72B models). Future development will focus on adapting VidCom² for real-time streaming scenarios, where the global context of the video is not available upfront, requiring a more dynamic approach to uniqueness estimation.
Summary updated