FlashVID: Efficient Video Large Language Models via Training-free Tree-based Spatiotemporal Token Merging

Ziyang Fan, Keyu Chen, Ruilong Xing, Yulin Li, Li Jiang, Zhuotao Tian

Executive Summary

FlashVID is a training-free, "plug-and-play" acceleration framework designed to reduce the visual token count in Video Large Language Models (VLLMs) by up to 90% while maintaining 99.1% of their original performance. By replacing rigid, frame-by-frame compression with a dynamic, tree-based merging strategy, FlashVID enables models to process 10x more video frames within the same computational budget. This breakthrough leads to significant gains in long-video understanding and overall efficiency.

The Challenge: Token Explosion in Video LLMs

Video Large Language Models are incredibly powerful but computationally expensive. The core issue is "token explosion": a single minute of video can generate thousands of visual tokens. Because the attention mechanism in these models scales quadratically with sequence length, processing long videos quickly becomes a memory and latency nightmare.

Existing solutions typically attempt to compress these tokens by addressing spatial redundancy (within a single frame) and temporal redundancy (across multiple frames) independently. However, this approach is fundamentally flawed for dynamic content. In a video, objects move, rotate, and change scale. A token representing a "cat" at coordinates (x, y) in Frame 1 might shift to (x+10, y+5) in Frame 2. Rigidly merging tokens at the exact same spatial location across frames ignores these dynamics, leading to noisy representations and critical information loss.

FlashVID's Methodology

To handle video dynamics more intelligently, FlashVID introduces a two-stage, training-free pipeline:

  1. ADTS (Attention and Diversity-based Token Selection): Instead of solely picking the tokens the model "looks at" most via attention scores, ADTS solves a "Calibrated Max-Min Diversity Problem." It selects tokens that are both highly relevant to the video's events and diverse in their feature representation. This ensures the model captures the full context of the scene rather than hyper-focusing on a single high-attention area.
  2. TSTM (Tree-based Spatiotemporal Token Merging): This is the framework's core innovation. Rather than assuming redundancy occurs at fixed grid locations, TSTM builds hierarchical trees. A token in one frame searches for its most similar counterpart in the previous frame. If they are sufficiently similar, they are linked and merged.
Illustration of token merging across frames, allowing the model to track dynamic objects.

This dynamic linking allows the compression to "follow" moving objects across the screen, merging redundant information even as its spatial position shifts. Because this method is entirely training-free, it can be seamlessly integrated into existing models like LLaVA or Qwen without any additional fine-tuning.

Datasets and Generalization

The researchers evaluated FlashVID across five rigorous video understanding benchmarks to prove its generalization capabilities:

  • VideoMME: A comprehensive multi-modal benchmark.
  • EgoSchema: Focused on very long-form egocentric (first-person) videos.
  • LongVideoBench: Specifically designed for long-context understanding.
  • MVBench: Tests fine-grained temporal and spatial reasoning.
  • MLVU: A multi-task long video understanding benchmark.

The framework was tested on three state-of-the-art VLLMs: LLaVA-OneVision, LLaVA-Video, and Qwen2.5-VL, demonstrating consistent improvements across the board.

Key Insights

  • The "Less is More" Pattern: Surprisingly, at certain compression levels (retaining 15-25% of tokens), FlashVID actually outperformed the vanilla model using 100% of tokens. This suggests that aggressive, intelligent pruning acts as a "denoiser," removing redundant visual information that might otherwise distract the LLM.
  • Spatiotemporal Coupling: The paper demonstrates that spatial and temporal redundancy are inherently linked. By modeling them jointly through trees rather than in separate steps, the framework achieves much higher inter-frame merging similarity.
  • Unlocking Long Context: Efficiency isn't just about speed—it's about capacity. By reducing the computational cost per frame, FlashVID allows a model with a fixed memory budget to "see" significantly more frames, fundamentally changing its ability to understand long-term narratives.

Key Results

  • Performance Preservation: On LLaVA-OneVision, FlashVID preserved 99.1% of the original performance while utilizing only 10% of the visual tokens.
  • Massive Speedups: The framework achieved a 6.3x speedup in prefilling time and a 2.1x speedup in Time-To-First-Token (TTFT).
  • Long Video Gains: When integrated with Qwen2.5-VL, FlashVID enabled a 10x increase in frame input (scaling from 16 to 160 frames).
FlashVID maintains high relative accuracy even as the number of processed video frames increases to 160.

As shown above, this expanded context window resulted in an 8.6% relative improvement in accuracy on long-video tasks within the exact same computational footprint.

Limitations and Future Work

The primary limitation identified by the authors is semantic confusion. Because TSTM merges tokens based on feature similarity, it can occasionally merge tokens belonging to different but visually similar entities (e.g., two people wearing the same uniform). This can lead to minor errors in tasks requiring highly precise entity tracking.

Future work may involve leveraging specific "visual perception layers" within the LLM to better guide the pruning process. Certain deeper layers in VLLMs are particularly adept at identifying keyframes, which could be used to make the token selection process even more surgical and context-aware.

Summary updated

BibTeX
@inproceedings{fan2026flashvid,
  author = {Ziyang Fan and Keyu Chen and Ruilong Xing and Yulin Li and Li Jiang and Zhuotao Tian},
  title = {{FlashVID: Efficient Video Large Language Models via Training-free Tree-based Spatiotemporal Token Merging}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=H6rDX4w6Al},
}
Figure