Research
FlashVID: Efficient Video Large Language Models via Training-free Tree-based Spatiotemporal Token Merging
Overview Research area: Efficient inference for Video Large Language Models (VLLMs) / multimodal token compression. Technical level: Intermediate — assumes familiarity with transformer attention, KV c
- arXiv
- 2602.08024
- Published
- 2026-02-08
- Authors
- Ziyang Fan, Keyu Chen, Ruilong Xing, Yulin Li, Li Jiang, Zhuotao Tian
AI summary
Overview
Research area: Efficient inference for Video Large Language Models (VLLMs) / multimodal token compression.
Technical level: Intermediate — assumes familiarity with transformer attention, KV caching, and vision-language models, but the core idea is explained conceptually.
Scope: A training-free, plug-and-play framework (FlashVID) that compresses spatiotemporal visual tokens in video LLMs to cut inference cost while preserving accuracy.
What This Paper Is About
Video LLMs must process huge numbers of visual tokens — far more than the text tokens they generate — and because self-attention scales quadratically with sequence length, this dominates compute and memory cost. Existing compression methods treat spatial and temporal redundancy separately, assuming that semantically similar content stays at the same pixel location across frames, which fails when objects move, scale, or rotate. FlashVID's goal is to compress video tokens by jointly modeling spatial and temporal redundancy, without any retraining, so that models can either run faster on the same input or process much longer videos at the same cost.
Key Contributions
- Diagnosis of a structural flaw in prior work. The authors identify that existing token compression pipelines decouple spatial and temporal redundancy and rely on rigid spatial correspondence across frames, which mismatches the dynamic nature of video content.
- Tree-based Spatiotemporal Token Merging (TSTM). A method that builds "spatiotemporal redundancy trees" by linking each token to its most similar counterpart in the previous frame (above a similarity threshold), then aggregating tokens within each tree. This allows merging across shifting positions, scales, and orientations rather than fixed grid locations.
- Attention and Diversity-based Token Selection (ADTS). A pre-filtering module that selects representative tokens per frame by solving a Max-Min Diversity Problem, calibrated by two signals: [CLS] attention from the vision encoder and "event relevance" (similarity to the frame's global average pooling embedding).
- Broad empirical validation. Evaluated on three VLLMs (LLaVA-OneVision, LLaVA-Video, Qwen2.5-VL) across five benchmarks (VideoMME, EgoSchema, LongVideoBench, MVBench, MLVU), showing state-of-the-art accuracy at aggressive retention ratios plus a demonstration that longer temporal context can be bought with the freed compute budget.
Main Findings
- Extreme compression with near-zero loss. On LLaVA-OneVision, retaining only 10% of visual tokens preserves 99.1% of the vanilla model's average accuracy — whereas the closest baseline (FastVID) needs a 25% retention ratio to reach a comparable 98.5%.
- "Less is more" effect. At retention ratios of 15%, 20%, and 25%, FlashVID actually exceeds the vanilla LLaVA-OneVision accuracy with full tokens (e.g., 58.6 avg. at 25% vs. 58.4 vanilla), suggesting excessive redundant tokens can mildly degrade performance.
- Better speed and accuracy than the strongest baseline. On LLaVA-OneVision, FlashVID at 10% retention achieves 6.3x prefilling speedup and 2.1x Time-To-First-Token improvement while scoring 58.4, versus FastVID at 25% retention with only 4.0x / 1.8x speedups and a lower 58.0.
- Longer videos within the same budget. Applied to Qwen2.5-VL, FlashVID lets the model process 10x more frames (160 vs. 16) under the same memory budget, yielding an 8.6% relative improvement (52.6 → 57.1 average) — the largest gain among all compared compression methods.
- Consistent generalization. FlashVID outperforms FastV, VisionZip, PruneVID, and FastVID across all three VLLM architectures and all tested retention ratios (10%–25%), including on LLaVA-Video (95.9% relative accuracy at 10% retention with 5.3x prefilling speedup).
- Both components matter, and balance matters most. Ablations show ADTS alone beats TSTM alone, but the peak (99.1% relative accuracy) occurs at a 0.7 split toward ADTS. Both calibration signals in ADTS ([CLS] attention and event relevance) contribute, with their combination being best.
- Tree constraints are unnecessary. Limiting tree depth or breadth to prevent merging spatially or temporally distant tokens produced negligible gains, so no constraints are applied in practice.
Methodology in Plain English
The pipeline runs in two stages, both before the tokens reach the LLM backbone.
Stage 1 — pick the best tokens per frame (ADTS). For each frame, the method computes pairwise dissimilarities between visual features and solves a Max-Min Diversity Problem: choose a subset of tokens that are maximally spread apart from one another, so the frame is represented without near-duplicates. Diversity alone, however, could pick visually distinct but irrelevant content. So two calibration terms are folded in: (a) how much attention each token receives from the vision encoder's [CLS] token (a proxy for informativeness), and (b) how similar each token is to the frame's average embedding (a proxy for relevance to the overall video event). These selected tokens are kept as-is — they form the base representation.
Stage 2 — merge the rest across frames (TSTM). The unselected tokens are organized into trees. Starting from the second frame, each remaining token is compared against the remaining tokens of the previous frame; if its best match exceeds a similarity threshold, it is attached as a child of that token. Otherwise it becomes a new root. This grows chains that follow a visual element even as it moves or changes appearance over time. Once trees are built, all tokens within a tree are aggregated (e.g., mean-pooled) into a single compact token.
The final compressed set is the union of ADTS-selected tokens and the aggregated tree tokens, which is then fed to the LLM. Because a similarity threshold controls how aggressively trees absorb tokens, a light additional frame-wise compression step (DPC-kNN) is applied to hit a target token budget. Nothing is trained or fine-tuned — the whole procedure is a drop-in inference-time wrapper.
Why This Matters
Impact on research. The paper reframes video token compression as a joint spatiotemporal problem and shows that the common assumption of fixed spatial correspondence across frames is actively harmful. It provides a training-free baseline that raises the bar for future acceleration work, and demonstrates the "longer context at fixed cost" paradigm — spending efficiency gains on more frames rather than faster answers — as a concrete way to improve video understanding.
Real-world applications:
- Long-form video assistants — summarizing or answering questions about hour-long recordings (lectures, meetings, documentaries) on fixed hardware budgets.
- Surveillance and monitoring — analyzing continuous multi-camera footage where relevant events are rare and often brief.
- Robotics and autonomous systems — onboard perception with tight latency and memory constraints, where longer observation windows improve decision quality.
- Video moderation and media search — scanning large archives for policy violations or specific moments without proportional compute growth.
Industry relevance. FlashVID is plug-and-play and training-free, so it can be bolted onto deployed VLLM serving stacks without retraining or architectural change. The concrete speedups (6.3x prefilling, 2.1x TTFT) directly reduce GPU cost per request, and the 10x-frame capability offers a cheaper path to better quality than scaling hardware.
Future Directions
- Adaptive or learned thresholds. The merging threshold
T_τand the ADTS/TSTM splitαare fixed hyperparameters; making them content-adaptive per video segment could improve robustness across diverse footage. - Combining with KV-cache and inner-LLM optimization. This work focuses on pre-LLM compression; stacking it with inner-LLM pruning or KV-cache eviction is an obvious route to further gains.
- Streaming and online video. The current design processes fixed-length inputs with bidirectional frame comparisons; extending it to real-time, unbounded streams requires incremental tree construction.
- Multimodal and task-specific extension. Whether the same tree structure generalizes to audio-visual inputs, and whether task type (retrieval vs. temporal reasoning vs. captioning) should influence compression, remain open.
Target Audience
Researchers and engineers working on multimodal LLM efficiency, video understanding, or model serving infrastructure. It is most valuable to practitioners who need to deploy video LLMs under fixed compute budgets, and to academic researchers looking for a strong training-free baseline and a conceptual argument against decoupled spatial/temporal compression. Readers without a background in vision-language models will benefit from the clear framing of the redundancy problem, but the methodology section requires comfort with token embeddings and attention.
Authors’ abstract
Although Video Large Language Models (VLLMs) have shown remarkable capabilities in video understanding, they are required to process high volumes of visual tokens, causing significant computational inefficiency. Existing VLLMs acceleration frameworks usually compress spatial and temporal redundancy independently, which overlooks the spatiotemporal relationships, thereby leading to suboptimal spatiotemporal compression. The highly correlated visual features are likely to change in spatial position, scale, orientation, and other attributes over time due to the dynamic nature of video. Building on this insight, we introduce FlashVID, a training-free inference acceleration framework for VLLMs. Specifically, FlashVID utilizes Attention and Diversity-based Token Selection (ADTS) to select the most representative tokens for basic video representation, then applies Tree-based Spatiotemporal Token Merging (TSTM) for fine-grained spatiotemporal redundancy elimination. Extensive experiments conducted on three representative VLLMs across five video understanding benchmarks demonstrate the effectiveness and generalization of our method. Notably, by retaining only 10% of visual tokens, FlashVID preserves 99.1% of the performance of LLaVA-OneVision. Consequently, FlashVID can serve as a training-free and plug-and-play module for extending long video frames, which enables a 10x increase in video frame input to Qwen2.5-VL, resulting in a relative improvement of 8.6% within the same computational budget. Code is available at https://github.com/Fanziyang-v/FlashVID.