TL;DR
Video Large Language Models (Video-LLMs) face massive computational bottlenecks due to token explosion in long or complex videos. OTT-Vid introduces a training-free token compression framework that leverages Optimal Transport (OT) to intelligently prune and merge visual tokens across frames. By balancing token semantic importance with a locality-aware matching cost, it retains just 10% of visual tokens while preserving up to 95.8% of video question-answering performance.
What Problem Does This Paper Address?
Processing long or high-frame-rate videos in Video-LLMs creates a massive sequence length bottleneck during the prefill stage due to the quadratic complexity of self-attention. While training-free "outer-LLM" token compression methods compress tokens before they enter the LLM, existing approaches rely heavily on simple cross-frame similarity metrics.
This creates a major flaw: they cannot distinguish between uninformative background repetition and the persistence of semantically critical stationary objects. For instance, if a question asks "How many stationary objects are in this video?", similarity-driven methods might merge those objects away as redundant, losing vital temporal evidence. Furthermore, existing methods apply uniform compression or hard thresholds, failing to dynamically allocate token budgets based on how much redundancy actually exists between specific frame pairs.
Methods
OTT-Vid tackles these issues through a two-stage, training-free framework:
- Spatial Compression & Importance-Aware Mass Assignment: Each frame is first pruned independently using a saliency-weighted coverage objective to remove spatial redundancy. Crucially, the remaining tokens are assigned a "transport mass" inversely proportional to their irreplaceable semantic contribution (calculated via a leave-one-out approach). In the Optimal Transport formulation, smaller mass means the token resists compression, protecting critical content.
- Temporal Compression via Optimal Transport: The framework solves an entropically regularized OT problem between adjacent frames. The cost matrix combines semantic dissimilarity (feature distance) and spatial dissimilarity (grid distance), dynamically mixed based on local scene dynamics.
- Transport-Derived Budget Allocation: The total cost of the optimal transport plan defines the "transport difficulty" ($W_t$) for a frame pair. If $W_t$ is low, the frames are highly redundant and can tolerate aggressive compression. OTT-Vid uses a negative softmax over these difficulties to dynamically distribute the global token compression budget non-uniformly across frame pairs.
Finally, tokens are merged or pruned based on the transport plan, and token chains across multiple frames are resolved efficiently in parallel using a union-find algorithm.
Datasets
The authors evaluated OTT-Vid across two major task families:
- Video Question Answering (VQA): Evaluated on MVBench, VideoMME, LongVideoBench, and MLVU, covering short, medium, and long-form video understanding.
- Video Temporal Grounding (VTG): Evaluated on Charades-TimeLens and ActivityNet-TimeLens (featuring refined, high-quality manual annotations from TimeLens). VTG tasks require precise event localization and are highly sensitive to fine-grained temporal structures, making them an excellent stress test for token compression.
Key Insights and Ideas
- Counter-Intuitive Mass Assignment: Traditional OT uses mass to represent abundance, but OTT-Vid flips this logic. By assigning smaller mass to semantically important tokens, it forces the optimization to protect them from being aggressively transported (compressed) away.
- Similarity $\neq$ Redundancy: High similarity across frames can represent meaningful persistence rather than useless redundancy. Incorporating intra-frame token importance as a prior is essential to safeguard temporal evidence.
- Dynamic Pair-wise Budgeting: Not all frame transitions are equal. A static scene can tolerate massive token reductions, while a rapid action sequence needs a larger token budget. Using the total OT cost as a proxy for "compressibility" allows for elegant, data-dependent budget allocation.
Key Results
- High Retention, Low Performance Drop: At a strict 10% token retention ratio, OTT-Vid preserves 95.8% of uncompressed VQA performance and 73.9% of VTG performance on Qwen2.5-VL-7B. It consistently outperforms state-of-the-art baselines like FlashVID and FastVID by significant margins (especially on VTG, where the next best baseline drops to 66.6%).
- Efficiency Gains: It delivers a 2.0× speedup in Time-to-First-Token (TTFT) while maintaining a comparable memory footprint and reducing TFLOPs from 120.25 to roughly 26.
- Cross-Backbone Generalization: The method's performance gains hold up across different architectures, including LLaVA-OneVision and LLaVA-Video, proving it generalizes well across different vision encoder setups.
Limitations and Future Work
- Parallel vs. Sequential Trade-off: To keep computational overhead low, OTT-Vid computes all pairwise transport plans in parallel based on the initial spatially-pruned frames. However, this means it does not account for cascading representational changes induced by compression in earlier frame pairs.
- Future Directions: The authors suggest that exploring sequential execution strategies that propagate compression changes forward could further refine the transport plans, albeit at the cost of higher computational complexity.
Summary updated