FrameFusion: Combining Similarity and Importance for Video Token Reduction on Large Vision Language Models

Tianyu Fu, Tengxuan Liu, Qinghao Han, Guohao Dai, Shengen Yan, Huazhong Yang, Xuefei Ning, Yu Wang

TL;DR

Large Vision-Language Models (LVLMs) struggle with processing long videos due to the massive number of visual tokens. This paper introduces FrameFusion, a novel approach that combines similarity-based merging with importance-based pruning to significantly reduce these tokens, leading to substantial speedups with minimal performance loss.

What Problem Does This Paper Address?

Large Vision-Language Models (LVLMs) have shown impressive capabilities in understanding video content, but their application to long and high-resolution videos is severely hampered by computational costs. This is primarily due to the enormous number of visual tokens generated from video frames, which overwhelm the models' processing capacity. Existing methods often rely on pruning tokens based on their importance (e.g., attention scores). However, these methods overlook the redundancy introduced by visual similarity between adjacent frames, where many "important" tokens might be nearly identical. This redundancy leads to inefficient processing and limits the practical application of LVLMs to real-world, lengthy video analysis.

Methods

FrameFusion tackles this problem with a two-stage token compression strategy:

  1. Similarity-Based Merging: This is the core novelty. Instead of just pruning, FrameFusion first merges visually similar tokens. It specifically focuses on tokens that correspond spatially across adjacent frames, as these are found to have the highest similarity. This merging is done by averaging the features of similar tokens and assigning the result to the earliest token in the group. This process is applied at the initial, shallower layers of the LVLM, where token similarities are most pronounced.
  2. Importance-Based Pruning: After merging, FrameFusion applies traditional importance-based pruning (using cumulative attention scores) to further reduce the token count, ensuring the model adheres to computational constraints. This pruning is applied in deeper layers, where importance metrics become more critical.

The paper also details several design choices:

  • Targeted Similarity Computation: To avoid the computational burden of comparing all token pairs, FrameFusion only computes similarity between spatially corresponding tokens from adjacent frames, leveraging an observed insight.
  • Layered Strategy: Merging is prioritized in shallow layers, while pruning is used in deeper layers, aligning with the observed trends of similarity and importance across model layers.
  • Cascaded Merging: Merged tokens are permanently reduced in count throughout subsequent layers, maximizing efficiency gains.

Datasets

The paper evaluates FrameFusion on five video benchmarks:

  • VideoNIAH (Video Needle In A Haystack): For visual content retrieval.
  • NExT-QA: For video question-answering.
  • VideoMME: For general video understanding, focusing on spatial and temporal aspects.
  • EgoSchema: For general video understanding.
  • MVBench: For general video understanding.

The experiments are conducted on six diverse LVLMs, including models from Immslab (LLaVA-Video), NVLabs (NVILA), and OpenBMB (MiniCPM-V).

Key Insights and Ideas

  • Similarity is a Crucial, Underutilized Signal: The paper highlights that visual similarity, especially between adjacent frames, is a significant source of redundancy that importance-based methods miss.
  • Similarity Peaks in Early Layers: Token similarity is highest in the initial layers of LVLMs and decreases in deeper layers. This suggests that merging similar tokens early is most effective.
  • Rankings Remain Stable: While the degree of similarity decreases in deeper layers, the ranking of which tokens are similar remains remarkably consistent. This stability justifies the early merging strategy.
  • Orthogonal to Importance: Token similarity provides a complementary signal to token importance, allowing for a more comprehensive token reduction strategy.

Key Results

  • Significant Token Reduction: FrameFusion reduces visual tokens by an average of 70%.
  • Substantial Speedups: Achieves 1.6x to 3.6x end-to-end speedups.
  • Minimal Performance Impact: Maintains performance with an average drop of less than 3% across various benchmarks and models.
  • Advancing the Pareto Front: FrameFusion significantly improves the trade-off between computation and accuracy compared to existing methods like StreamingLLM, FastV, and PruMerge.
  • Scalability: Demonstrates effectiveness across a wide range of LVLM sizes (2B to 72B parameters) and input lengths.

Limitations and Future Work

  • Computational Cost of Similarity: While FrameFusion optimizes similarity computation, it still adds some overhead compared to pure importance-based pruning. The paper notes that this overhead is manageable and outweighed by the gains.
  • Threshold Tuning: The paper mentions that adjustments to similarity and merging thresholds result in minor performance variations, suggesting that optimal thresholds might require some tuning for specific applications.
  • Future Work: The paper's findings on token similarity provide a foundation for future research into more efficient and effective token reduction strategies for LVLMs, potentially exploring more sophisticated similarity metrics or adaptive merging strategies. The authors suggest that their work offers insights into token similarity for LVLMs, paving the way for more efficient and scalable video language applications.

Summary updated

BibTeX
@inproceedings{fu2025framefusion,
  author = {Tianyu Fu and Tengxuan Liu and Qinghao Han and Guohao Dai and Shengen Yan and Huazhong Yang and Xuefei Ning and Yu Wang},
  title = {{FrameFusion: Combining Similarity and Importance for Video Token Reduction on Large Vision Language Models}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure