TL;DR
Video Multimodal Large Language Models (MLLMs) suffer from massive computational and memory overhead due to the excessive number of visual tokens required to process long videos. This paper introduces Visual Token Coding (VTC), a training-free, plug-and-play token compression framework inspired by classical video compression algorithms (like HEVC) that leverages frame-wise residuals and dynamic budgeting to prune redundant tokens. The advanced variant, $\text{VTC}_{\text{Dy}}$, reduces the visual token budget by 50% while maintaining or even slightly improving baseline performance across multiple long-video understanding benchmarks.
What Problem Does This Paper Address?
State-of-the-art video MLLMs (such as Qwen3-VL and LLaVA-OneVision) process videos by converting frames into massive sequences of visual tokens. For long-form videos, this token count explodes exponentially—for instance, an hour-long video can easily require up to 460,000 tokens. This creates a severe bottleneck in computation and memory during the LLM inference phase.
While existing token compression methods attempt to prune or merge tokens based on visual saliency, token diversity, or query relevance, they typically treat frames independently or rely on complex cross-frame attention. Furthermore, previous attempts to integrate traditional video codec signals (like motion vectors) into MLLMs require expensive retraining or architectural modifications to align the codec data with the model's feature space. The authors of this paper sought a general, training-free method to apply structured video compression principles directly to the visual token space of any off-the-shelf MLLM.
Methods
The core idea behind Visual Token Coding (VTC) is to map the classical video compression concepts of Intra-coded (I) frames and Predictive-coded (P) frames directly onto the visual token feature space.
1. Baseline VTC
VTC designates the first frame of a video chunk as a semantic I-frame, which retains its full context. For subsequent frames (semantic P-frames), it calculates the feature-level residual (difference) between the current frame and the reference frame. Tokens with small residuals represent static or highly predictable information and are aggressively pruned, while tokens with high residual energy (indicating motion or scene changes) are preserved.
2. Advanced $\text{VTC}_{\text{Dy}}$
To handle the non-uniform distribution of information across time and space, the authors introduced three dynamic extensions:
- Dynamic Resolution Input (DyRSO): Groups frames into a multi-resolution Group of Pictures (GOP). Low-resolution P-frames are tiled into a single $2\times2$ canvas, expanding temporal coverage without increasing the total token count or visual encoding cost.
- Dynamic Token Allocation (DyTA): Uses the video's native HEVC bitcost as a query-independent proxy for temporal complexity. Instead of distributing tokens uniformly, it dynamically allocates a larger token budget to high-action or complex scenes.
- Spatial Coverage Top-K (SC-TopK): Prevents global pruning from clustering all retained tokens into a single high-motion region (e.g., a moving hand) at the expense of background context. It divides the frame into a grid and ensures a minimum level of spatial coverage across all regions.
Datasets
The authors evaluated their approach on four popular long-video understanding benchmarks, spanning short clips to two-hour videos:
- MLVU (Multi-task Long Video Understanding)
- LongVideoBench (LVB)
- LVBench
- Video-MME (Video Multi-Modal Evaluation)
No new datasets were introduced, ensuring a fair comparison against existing state-of-the-art token compression baselines.
Key Insights and Ideas
- Feature-Space Residuals Work: Traditional video coding principles translate remarkably well to frozen Vision Transformer (ViT) features. Measuring simple $\ell_2$ residuals between sequential feature maps effectively captures temporal redundancy without needing explicit motion vectors.
- Bitcost as a Cheap Complexity Prior: Using a video's pre-existing HEVC bitcost metadata provides a "free" and highly effective signal for temporal complexity, allowing the system to dynamically budget tokens across time before the LLM even processes them.
- Spatial Diversity is Crucial: Purely residual-driven pruning can suffer from "local collapse," where all tokens focus on a single moving object. Forcing spatial distribution via SC-TopK preserves the holistic scene context necessary for complex video QA tasks.
Key Results
- Performance Retention: On Qwen3-VL-8B, $\text{VTC}_{\text{Dy}}$ achieved an average performance retention of 100.1% with a 50% token budget, and maintained 97.8% of the original performance even when slashed to a 25% token budget.
- Outperforming SOTA: $\text{VTC}_{\text{Dy}}$ consistently beat representative visual token compression methods (like FastV, VisionZip, HoliTom, and FlashVID) across the board, particularly at highly restrictive compression rates (25% retention).
- Significant Speedups: At a 25% token retention rate, $\text{VTC}_{\text{Dy}}$ reduced end-to-end model latency on an NVIDIA RTX 3090 from 4109 ms to 1644 ms—a 2.50× inference speedup driven by the massive reduction in LLM processing time.
Limitations and Future Work
- Codec Metadata Reliance: The dynamic token allocation (DyTA) module relies specifically on HEVC bitcost metadata. If a video is uncompressed or uses a format where this metadata is inaccessible, the system would require an alternative, potentially more expensive method to estimate frame complexity.
- Simplistic Inter-frame Prediction: The current baseline uses identity prediction (assuming the next frame is identical to the reference frame minus the residual). The authors note that incorporating more sophisticated feature-level motion compensation or predictive modeling could yield even higher compression ratios in the future.
Summary updated