Introduction
Vision Large Language Models (VLLMs) have demonstrated remarkable capabilities in video understanding. However, as video length increases, these models encounter a "token explosion." Standard architectures convert every video frame into hundreds of tokens, leading to sequence lengths that exceed the computational and memory limits of modern GPUs. This is primarily due to the quadratic complexity of self-attention and the massive memory footprint required for the Key-Value (KV) Cache.
Existing compression techniques often rely on single-stage pruning or uniform downsampling, which can discard critical temporal details or fail to account for the evolving role of visual tokens as they progress through the model's layers. To address these challenges, we present METok (Multi-Stage Event-based Token compression), a training-free framework designed to optimize long video understanding by progressively pruning redundant visual tokens across the encoding, prefilling, and decoding stages.
Methodology: The METok Framework
METok operates across three distinct stages of the VLLM pipeline. This multi-stage approach ensures that token reduction is both context-aware and computationally efficient without requiring any additional training.
1. Vision Encoding (Event-Aware Reduction)
The first stage focuses on reducing the initial token count before they enter the Large Language Model (LLM).
- Temporal Segmentation: Rather than treating frames as isolated snapshots, METok uses cosine similarity between adjacent frame features to detect "event boundaries," grouping the video into coherent segments.
- Semantic Identification: Leveraging the model's inherent vision-text alignment (e.g., CLIP or SigLIP), METok ranks these segments based on their relevance to the user's specific query.
- Adaptive Pooling: High-resolution tokens are preserved for "key events" (highly relevant segments), while "non-key events" are aggressively pooled to minimize redundancy.
2. Prefilling (Hierarchical Token Pruning)
As tokens pass through the LLM layers during the prefilling stage, METok implements hierarchical pruning. This strategy is guided by the observation that early layers primarily process raw visual features, while deeper layers transition toward high-level semantic reasoning. By retaining more tokens for key events and fewer for others based on attention scores, METok aligns computational effort with information density.
3. Decoding (KV Cache Optimization)
During the autoregressive generation of text, the relevance of visual tokens typically diminishes in deeper layers. METok optimizes the KV Cache by selectively removing visual tokens after a specific layer boundary. This drastically reduces the memory overhead required to generate long responses without sacrificing accuracy.
Key Insights
A core finding of this work is the "Shallow-to-Deep" shift in attention. Analysis of models like LLaVA and LongVA reveals that visual tokens dominate computation in early layers, but attention shifts heavily toward text tokens in deeper layers. METok exploits this by dropping visual tokens once their primary contribution to feature extraction is complete.
Furthermore, METok emphasizes task-driven compression. Unlike methods that compress based solely on visual similarity, METok uses the text prompt to determine importance. This ensures that even subtle visual cues are preserved if they are relevant to the user's question.
Experimental Results
METok was evaluated on several rigorous benchmarks, including MVBench, EgoSchema, MLVU, and VideoMME. The results demonstrate that METok significantly enhances efficiency while maintaining competitive performance.
On the LongVA-7B model, METok achieved an 80.6% reduction in FLOPs and a 93.5% saving in KV Cache memory. Notably, on the VideoMME "Long" subset, METok-enhanced models occasionally outperformed their base counterparts (e.g., 47.7% vs. 47.6% for LongVA-7B), suggesting that strategic pruning can act as a form of noise reduction. Additionally, METok improves scalability; for VILA-1.5-13B, it allowed processing 64 frames within the same memory budget that previously only supported 16 frames.
Conclusion
METok provides a robust, training-free solution for the "token explosion" problem in long video understanding. By integrating event-aware reduction, hierarchical pruning, and KV Cache optimization, it enables VLLMs to handle hour-long videos with significantly reduced computational resources. Future work will explore the application of METok to larger frontier models and more complex multimodal reasoning tasks.
Summary updated