TL;DR
Video Large Language Models drown in redundant visual tokens—every frame looks a whole lot like the one before it—making video inference painfully slow and memory-hungry. Rather than throwing away data using rigid, hand-crafted rules, the authors introduce COMPACT, a lightweight, learnable module that clusters and blends redundant video patches into smart "prototype" summaries. Best of all, because it blends the original features rather than inventing a new mathematical dialect, you don't have to retrain the massive language model to understand the compressed video.
What Problem Does This Paper Address?
When a Multimodal LLM looks at an image, it chops it into patches ("visual tokens"). When it watches a video, it samples dozens of frames, multiplying that token count until the LLM's prefill computation and KV-cache memory balloon out of control. Yet videos are notoriously redundant: the kitchen counter in frame 1 is the exact same kitchen counter in frame 32.
Existing fixes generally fall into two camps, both with frustrating tradeoffs:
- Training-free heuristics: Plug-and-play rules (like merging adjacent frames if they look similar enough). They require zero training, which is great, but static rules aren't guided by downstream tasks and struggle to adapt to diverse, complex videos.
- Existing learnable methods: Trainable modules that compress tokens. However, they still lean heavily on predefined grouping rules, or worse, they transform the visual tokens into a new feature space—meaning you have to pay for expensive alignment training so the frozen LLM can understand them again.
The authors ask: Can we learn how to compress video tokens end-to-end for downstream reasoning, while keeping the compressed tokens strictly inside the LLM's native visual vocabulary?
Methods
COMPACT (COMpression via Prototype-guided Adaptive ClusTering) sits right between the vision projector and the LLM. Both the vision encoder and the LLM stay completely frozen; only COMPACT's lightweight attention and linear layers are trained.
It works in two clean stages:
- Clustering-Based Prototype Construction: First, visual tokens are stamped with temporary 3D Rotary Position Embeddings ($\text{RoPE}_{3\text{D}}$) for time, height, and width so the model doesn't confuse two identical-looking patches from completely different moments or corners of the screen. Standard iterative cosine-similarity clustering then groups tokens across all frames into $K$ initial "prototypes" (where $K$ is your target token budget).
- Learnable Refinement & Soft Aggregation (The Secret Sauce): Static clusters are a good start, not the finish line. COMPACT passes these prototypes through self-attention (so prototypes talk to each other) and cross-attention with the full sequence of visual tokens (so they absorb global video context). Finally, it combines initial cosine similarities with learned affinities via a softmax to create differentiable soft assignments—essentially a recipe of weights.
Crucially, the final compressed tokens are computed as a convex combination (a weighted average) of the original, un-rotated visual tokens. Furthermore, the compression is query-agnostic—it doesn't look at the user's text prompt, meaning you can compress a video once and ask it twenty different questions in a multi-turn chat without re-compressing.
Datasets
No new benchmarks were introduced. COMPACT is trained in two stages—first for global semantics, then for fine-grained reasoning—while randomly splitting batches across retention budgets from 1% to 25%:
- Stage 1 (Pretraining): 100K video-caption pairs from LLaVA-Video-178K.
- Stage 2 (QA Tuning): 111K video QA pairs from LLaVA-Video-178K, NExT-QA, CLEVRER, STAR, and PerceptionTest.
- Evaluation: Tested across five standard benchmarks spanning short to long videos: VideoMME, LongVideoBench, MLVU, MVBench, and EgoSchema.
Key Insights and Ideas
- Convex combinations bypass alignment training: If a neural network alters visual features arbitrarily, a frozen LLM sees gibberish. By restricting the learnable module to only output weights for averaging original tokens, the outputs stay safely inside the original feature distribution—achieving end-to-end task learning with lightweight training.
- Unifying the field: The authors show mathematically that popular heuristic methods (VisionZip, FastVID, AOT, EarlyTom) are actually just constrained special cases of COMPACT's general weighted-aggregation equation—using hard 0/1 assignments or rigid transport plans instead of learned soft weights.
- Less can literally be more: Removing 85% of visual tokens on LLaVA-OneVision-7B actually improved average benchmark scores slightly over the uncompressed model (59.7 vs. 59.3), suggesting smart clustering filters out distracting spatiotemporal noise.
Key Results
Tested on LLaVA-OneVision-7B, LLaVA-Video-7B, and InternVL3-8B, COMPACT beats state-of-the-art baselines across every token budget, with massive leads under extreme compression:
- Extreme 1% Token Retention: When throwing away 99% of visual tokens, COMPACT outperforms the strongest competing baselines by +6.8, +9.2, and +7.6 percentage points on the three respective backbones (retaining ~87%–90% of the uncompressed models' capabilities).
- Efficiency Gains: At a 15% token budget on LLaVA-OneVision-7B, COMPACT slashes prefill FLOPs by 72% (from 125.6T down to 34.6T), drops Time-To-First-Token from 944.5 ms to 587.3 ms, and boosts overall generation throughput from 30.9 to 37.1 tokens/s—all while scoring 100.5% of the uncompressed baseline's accuracy.
Limitations and Future Work
Not discussed in the paper.
Summary updated