Video Large Language Models (VLLMs) have achieved remarkable capabilities in video understanding, but they are currently caught in a "computational trap." Because Transformer architectures scale quadratically with sequence length, processing a long video—which might consist of thousands of visual tokens—leads to massive memory overhead and sluggish inference times.
To address this bottleneck, researchers have introduced DyToK (Dynamic Token compression via LLM-guided Keyframe prior). DyToK is a training-free, plug-and-play method that makes VLLMs significantly faster by identifying which video frames actually matter for a given query. By using a lightweight "assistant" model to guide token allocation, it achieves up to a 4.3x inference speedup while maintaining—and sometimes even exceeding—the accuracy of uncompressed models.
The Problem with Existing Compression
Existing solutions usually try to prune visual tokens in one of two suboptimal ways:
- Uniform Pruning: Treating every frame the same and cutting tokens equally across the board. This is inefficient because it ignores the fact that a 10-second clip of a static wall is far less important than a 1-second clip of a person entering a room.
- Binary Selection: Using an auxiliary model to decide which frames to keep and which to discard entirely. This blunt approach risks losing subtle but necessary context when a frame is completely dropped.
The authors identified a critical gap: How can we dynamically allocate a "token budget" so that semantically rich keyframes get more resources, while redundant frames are compressed more aggressively?
The DyToK Framework
To solve this, the authors introduce a two-stage, training-free framework that acts as a smart manager for existing token compression methods.
1. Temporal Importance Estimation
To avoid the high cost of running a full, massive VLLM just to decide what to prune, DyToK uses a "lightweight assistant" (e.g., a much smaller model from the same family, like LLaVA-0.5B guiding LLaVA-7B). This assistant looks at the cross-modal attention weights—specifically how much the user's text query attends to the visual tokens of each frame in the deeper layers of the model.
The researchers discovered a "Deep Layer Prior": while shallow attention layers in VLLMs are noisy and focus on local features, deeper layers naturally develop an inherent understanding of which frames are relevant to the user's question. Surprisingly, an assistant model up to 14x smaller than the primary model can identify these keyframes with nearly identical accuracy, allowing for "cheap" importance estimation.
2. Dynamic Frame-Level Compression
Instead of a "keep or drop" binary choice, DyToK calculates an importance score for every frame and distributes a global token budget proportionally. Important keyframes retain a high density of tokens, while less relevant frames are compressed into just a few representative tokens.
To prevent the model from fixating on "attention sinks" (a systematic bias where VLLMs over-attend to the start, middle, and end frames even if they are blank), DyToK imposes a per-frame upper limit on tokens. Crucially, DyToK is modular. It doesn't replace existing pruning methods like VisionZip or FastV; instead, it tells those methods exactly how many tokens they are allowed to keep for each specific frame.
Key Results and Performance
The researchers evaluated DyToK across several rigorous long-video understanding benchmarks, including VideoMME, LongVideoBench, MLVU, and EgoSchema. The results demonstrate state-of-the-art efficiency-accuracy trade-offs:
- Massive Efficiency Gains: DyToK achieved a 4.3x speedup in prefilling time at a 25% token retention ratio.
- Accuracy Improvements: On LongVideoBench, DyToK with 20% token retention actually outperformed the uncompressed vanilla baseline by 2.6%. By removing redundant "noise" tokens, the model is forced to focus better on relevant information.
- Robustness under Extreme Compression: At a 10% retention ratio—where most traditional methods fail entirely—DyToK maintained 90.2% of the original model's accuracy, representing a massive 24.0% performance gain over competing compression methods.
Limitations and Future Work
While DyToK is highly effective and easily integrated into state-of-the-art models like LLaVA-OneVision or Qwen2.5-VL, the authors note a few areas for refinement. The lightweight assistant still introduces a slight computational overhead before the main inference begins. Additionally, while extracting attention from the "last third of layers" works well generally, some unique architectures might require manual tuning to find the most knowledgeable layers. Future work will explore ways to generate these keyframe priors in a single pass, eliminating the need for an auxiliary model entirely.
Summary updated