FastVID: Dynamic Density Pruning for Fast Video Large Language Models

Leqi Shen, Guoqiang Gong, Tao He, Yifeng Zhang, pengzhang liu, Sicheng Zhao, Guiguang Ding

Abstract

Video Large Language Models (Video LLMs) are increasingly powerful but suffer from significant computational overhead due to the massive number of tokens generated by high-resolution, high-frame-rate video inputs. This redundancy—both spatial and temporal—leads to high latency during the prefill stage. We present FastVID, a novel inference-time pruning framework that accelerates Video LLMs by removing up to 90% of redundant visual tokens. By employing dynamic temporal segmentation and density-based pruning, FastVID achieves a 7x speedup in the prefill stage while maintaining 98% of the original model's accuracy, all without requiring any retraining.

Introduction

While Video LLMs have made strides in multimodal understanding, their practical deployment is hindered by the "token explosion" problem. A single minute of video can generate thousands of tokens, creating a bottleneck in processing speed and memory usage. The core of this issue lies in spatiotemporal redundancy: most video frames are highly similar to their neighbors, and many pixels within those frames represent static backgrounds or non-essential information.

Existing solutions typically fall into two categories, both with significant drawbacks. Training-time compression methods require expensive retraining of the entire model architecture. Conversely, naive pruning methods—such as uniform sampling or simple clustering—often disrupt the temporal flow of the video or inadvertently delete small, crucial details, leading to model hallucinations and a loss of context.

The FastVID Framework

FastVID is a "plug-and-play" inference-time method designed to operate during the prefill stage—the phase where the model first processes the video input. It can be integrated into existing state-of-the-art models like LLaVA or Qwen2-VL without modifying their weights. The framework consists of two primary components:

1. Dynamic Temporal Segmentation (DySeg)

Rather than segmenting a video into fixed-duration chunks, DySeg adaptively analyzes the visual similarity between adjacent frames. It groups highly similar frames into segments of varying lengths. This approach ensures that the model preserves the chronological integrity and temporal structure of the video while identifying specific windows where pruning can be most aggressive.

2. Density Spatiotemporal Pruning (STPrune)

Within each identified segment, FastVID employs a dual-strategy approach to select the most informative tokens:

  • Density-based Token Merging (DTM): This identifies "anchor tokens" by locating "density peaks"—tokens that are surrounded by many similar neighbors but are spatially distant from other high-density areas. These anchors serve as the most mathematically representative pixels for the visual scene.
  • Attention-based Token Selection (ATS): To ensure that small but salient details (like a moving object or a specific gesture) are not lost, FastVID integrates attention scores from the vision encoder (e.g., SigLIP). This allows the model to retain tokens that are visually important even if they do not reside in a high-density cluster.

Experimental Results

Efficiency and Performance

The researchers evaluated FastVID across a comprehensive suite of benchmarks, including MVBench, VideoMME, LongVideoBench, MLVU, and ANet-QA. The results demonstrate that FastVID significantly outperforms existing acceleration methods like VisionZip and PruneVID, particularly in extreme compression scenarios.

Key performance metrics on the LLaVA-OneVision-7B model include:

  • Token Reduction: Pruned 90.3% of video tokens.
  • Computational Savings: Reduced FLOPs to just 8.3% of the baseline.
  • Speedup: Accelerated the LLM prefill stage by 7.1×.
  • Fidelity: Retained 98.0% of the original model's accuracy across all benchmarks.

Length Extrapolation

One of the most striking findings is that FastVID's efficiency allows models to effectively "see" more than they were originally designed for. By pruning a 320-frame video down to the token budget of a 32-frame video, the model often performs better than the baseline. This is because the model benefits from a higher-resolution temporal view of events without exceeding its native token capacity.

Discussion and Future Work

FastVID demonstrates that temporal integrity is fragile; the authors found that random frame omission or shuffling destroys performance far more than spatial pruning. This validates their "segment-first" approach to maintaining the temporal narrative.

However, the current framework is query-agnostic, meaning it decides what is important based solely on visual density and attention, rather than the user's specific question. If a user asks about a minor background detail that the pruner deemed redundant, the information may be lost. Future research will focus on "query-guided keyframe selection," where the user's prompt informs the pruning process to ensure that task-specific details are preserved even at high compression ratios.

Conclusion

FastVID offers a robust, training-free solution to the computational challenges of Video LLMs. By intelligently navigating the trade-off between token density and temporal flow, it enables high-speed, high-fidelity video understanding across multiple model families, including LLaVA and Qwen2-VL.

Summary updated

BibTeX
@inproceedings{shen2025fastvid,
  author = {Leqi Shen and Guoqiang Gong and Tao He and Yifeng Zhang and pengzhang liu and Sicheng Zhao and Guiguang Ding},
  title = {{FastVID: Dynamic Density Pruning for Fast Video Large Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=2xS4VtpApy},
}
Figure