Multi-Granular Spatio-Temporal Token Merging for Training-Free Acceleration of Video LLMs

Jeongseok Hyun, Sukjun Hwang, Su Ho Han, Taeoh Kim, Inwoong Lee, Dongyoon Wee, Joon-Young Lee, Seon Joo Kim, Minho Shim

TL;DR

This paper introduces STTM, a novel training-free method to accelerate Video Large Language Models (LLMs) by efficiently merging redundant spatio-temporal tokens. STTM achieves significant speedups with minimal accuracy loss, enabling faster and more efficient video understanding, especially for conversational scenarios.

What Problem Does This Paper Address?

Video LLMs have shown remarkable progress in understanding visual content, but they face a major bottleneck: the quadratic computational scaling of attention mechanisms with the number of spatio-temporal tokens. This means processing longer videos or videos with higher resolution requires an exponentially larger amount of computation and memory. Existing methods to reduce token count either require retraining the LLM or focus on query-aware strategies that discard tokens based on specific questions, preventing the reuse of cached information (KV cache) for subsequent queries. This lack of query-agnostic token reduction limits the efficiency of conversational or multi-turn interactions with Video LLMs.

Methods

The core of STTM is a two-stage, training-free token merging process:

  1. Spatial Token Merging: This stage leverages the redundancy within individual video frames. It employs a multi-level quadtree structure to represent each frame. The algorithm performs a "coarse-to-fine" search: if a parent node's representation is sufficiently similar to its four child nodes, the search stops, and the parent token is retained. Otherwise, the search continues to finer levels. This process results in "multi-granular" spatial tokens, meaning some regions are represented by coarse tokens while others, with more detail, are represented by finer tokens. This is implemented efficiently with a complexity of O(HW) per frame.
  2. Temporal Token Merging: This stage merges tokens across consecutive frames, exploiting spatio-temporal locality. It identifies spatially overlapping tokens between adjacent frames that exhibit high similarity. These similar token pairs are chained into directed graphs, and tokens are merged into their earliest occurrence. This strategy consolidates temporal changes into the token where the content first appears. The method handles varying spatial granularities across frames by merging tokens within overlapping regions. To ensure efficient parallel processing, an approximation is used for merging direction (selecting the top-left token among candidates) instead of a costly similarity-based search.

Crucially, STTM is query-agnostic. This means the token reduction process doesn't depend on the specific question being asked, allowing the KV cache to be reused across different questions for the same video, significantly improving efficiency for interactive applications.

Datasets

The paper evaluates STTM on six video QA benchmarks:

  • Short-form datasets: EgoSchema, NEXT-QA
  • Long-form datasets: VideoMME, LongVideoBench, MLVU
  • Fine-grained spatio-temporal understanding: VNBench (a synthetic dataset designed to test the ability to find subtle "needles" in a haystack of video data).

Key Insights and Ideas

  • Exploiting Local Redundancy: The paper highlights that both spatial and temporal redundancy in video data, often overlooked, can be effectively leveraged for token reduction.
  • Multi-Granularity is Key: Representing frames with tokens of varying granularities (coarse for redundant areas, fine for detailed areas) is crucial for balancing compression and accuracy.
  • Query-Agnostic is Essential for Efficiency: The most significant insight for practical deployment is that token reduction must be independent of the query to enable KV cache reuse, a critical feature for conversational LLMs.
  • Decomposed Merging Works Best: A sequential approach of first merging spatially and then temporally proved more effective than a joint spatio-temporal merging strategy (like an octree), especially in dynamic scenarios.

Key Results

  • Significant Speedup: STTM achieves a 2× speed-up with only a 0.5% accuracy drop under a 50% token budget, and a 3× speed-up with just a 2% drop under a 30% budget.
  • State-of-the-Art Performance: STTM outperforms other training-free token reduction methods (both query-aware and query-agnostic) across multiple benchmarks, particularly excelling on the challenging VNBench dataset.
  • Generalization: The method demonstrates strong generalization by outperforming other methods when applied to different LLMs (LLaVA-OneVision, Qwen2VL) and a large-scale 72B model.
  • Accuracy Preservation: Even with aggressive token reduction (e.g., 30% budget), STTM shows minimal accuracy degradation, often preserving fine-grained spatio-temporal details better than other methods.

Limitations and Future Work

  • Manually Adjusted Thresholds: The current implementation relies on manually adjusted threshold values (Ts and TT) to meet specific token budgets.
  • Future Work: The authors suggest exploring adaptive threshold selection for automatic adjustment of token merging based on the given token budget, which would further enhance the method's usability. They also mention investigating the impact of different positional embedding strategies and optimal layer positions for merging.

Summary updated

BibTeX
@inproceedings{hyun2025multi,
  author = {Jeongseok Hyun and Sukjun Hwang and Su Ho Han and Taeoh Kim and Inwoong Lee and Dongyoon Wee and Joon-Young Lee and Seon Joo Kim and Minho Shim},
  title = {{Multi-Granular Spatio-Temporal Token Merging for Training-Free Acceleration of Video LLMs}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure