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
TL;DR
FlashVID tackles the computational bottleneck of Video Large Language Models by compressing visual tokens in a training-free, plug-and-play manner. It combines Attention and Diversity-based Token Selection (ADTS) to pick semantically informative and diverse tokens per frame, with Event relevance calibration and [CLS] attention to guide selection, and Tree-based Spatiotemporal Token Merging (TSTM) to form spatiotemporal redundancy trees for joint reduction across frames. Across five benchmarks and three VLLMs, FlashVID achieves up to 99.1% of full-token accuracy at only 10% retention and enables processing up to 10x more frames under the same budget, yielding substantial efficiency gains (e.g., 6.3x prefilling, 2.1x TTFT). This demonstrates that training-free, structure-aware spatiotemporal compression can extend temporal context and maintain performance, broadening the accessibility of VLLMs in resource-constrained settings.
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.
