VisiPruner: Decoding Discontinuous Cross-Modal Dynamics for Efficient Multimodal LLMs

Yingqi Fan, Anhao Zhao, Jinlan Fu, Junlong Tong, Hui Su, Yijie Pan, Wei Zhang, Xiaoyu Shen

TL;DR

This paper introduces VisiPruner, a novel framework that significantly reduces computational costs in multimodal Large Language Models (MLLMs) by understanding and exploiting their discontinuous cross-modal processing. By revealing that visual information is primarily fused in middle layers and largely ignored in shallow and deep layers, VisiPruner achieves up to 99% reduction in visual attention computation and 62.8% FLOPs reduction without sacrificing performance.

What Problem Does This Paper Address?

Multimodal Large Language Models (MLLMs) excel at tasks combining vision and language, but their computational demands are a major bottleneck. This is largely due to the quadratic complexity of attention mechanisms with the number of visual tokens. While existing methods try to prune tokens, they often lack a deep understanding of how MLLMs actually process and integrate visual information across their layers. This paper aims to fill that gap by systematically analyzing the cross-modal dynamics within MLLMs to develop a more principled and efficient pruning strategy.

Methods

The core of VisiPruner lies in its three-stage analysis of MLLM cross-modal processing:

  1. Shallow Layers: Task Recognition & Attention Sinks: The authors demonstrate that shallow layers primarily focus on understanding the task from text instructions. Visual tokens in these layers act as "attention sinks," absorbing attention weights for stability rather than contributing meaningful content. They propose "Attention Merging" to consolidate visual attention into a single token in the first layer, and then skip cross-attention computation for visual tokens in subsequent shallow layers.
  2. Middle Layers: Sparse Cross-Modal Fusion: This is identified as the critical stage for actual visual-text fusion. However, the fusion is sparse, driven by a small subset of "critical visual tokens." The paper introduces an "influence-based method" using cosine similarity and L2 distance to accurately identify these crucial tokens, rather than relying solely on attention weights.
  3. Deep Layers: Linguistic Refinement: In deep layers, after visual information has been integrated, the model focuses on refining the linguistic output. Vision tokens become redundant and can be safely discarded. VisiPruner identifies an "early vision exit" layer where visual processing can be stopped without performance degradation.

VisiPruner is a training-free framework that applies these insights by strategically masking or merging attention computations and discarding tokens based on their identified roles in each stage.

Datasets

The paper evaluates VisiPruner on several standard multimodal benchmarks, including:

  • GQA (visual question answering)
  • MMBench (comprehensive multimodal benchmark)
  • MMStar (multimodal reasoning benchmark)
  • SQA (visual question answering)
  • VQAT (visual question answering)
  • POPE (object hallucination benchmark)
  • MMVet (multimodal benchmark)
  • TextVQA (OCR benchmark)

The authors do not introduce new datasets.

Key Insights and Ideas

  • The "Attention Sink" Phenomenon: Contrary to common assumptions, shallow layers don't fuse visual and textual information. Instead, visual tokens act as passive "attention sinks" to stabilize the model's processing, especially in the very first layer. This is a significant revision of how we understand early-stage multimodal processing.
  • Sparse Fusion in Middle Layers: Cross-modal fusion isn't a uniform process. It happens abruptly in middle layers, but only a few critical visual tokens are truly responsible for it. This sparsity is key to efficient pruning.
  • Vision Becomes Redundant in Deep Layers: Once visual information is integrated, deep layers primarily focus on language generation. Continuing to process visual tokens in these layers can even introduce noise.
  • Attention Weights are Misleading: The paper strongly argues that attention scores alone are insufficient to understand token importance for cross-modal fusion. Their proposed influence-based method provides a more robust way to identify critical visual tokens.
  • Discontinuous Vision Dependence: The need for visual information is not continuous across all layers. Models can "exit" visual processing at specific points without performance loss, especially in deeper layers.

Key Results

  • Computational Reduction: VisiPruner achieves up to 99% reduction in vision-related attention computations and 62.8% reduction in overall FLOPs on LLaVA-1.5 7B.
  • Performance Preservation: Despite significant pruning, VisiPruner maintains competitive performance across various benchmarks and MLLMs. For example, on LLaVA-v1.5 7B, it achieves 61.9% GQA score compared to the dense baseline's 63.8%.
  • Generalization: The framework demonstrates effectiveness across diverse MLLMs, including LLaVA-v1.5 13B, MobileVLM-V2-3B, Qwen2-VL 7B, and InternVL2.5-8B.
  • Outperforms Baselines: VisiPruner significantly outperforms existing token pruning methods.
  • Failure Case Analysis: Misclassifications in the pruned model are often related to subtle word choice variations rather than fundamental misunderstandings, indicating the robustness of the pruning.

Limitations and Future Work

  • Training the Projector: The authors suggest that further strengthening findings regarding intra-modal processing in shallow layers could be achieved by training the projector to align vision tokens with semantic representations and inserting them at later layers.
  • Model Scale: Due to hardware constraints, the analysis was limited to models up to 13 billion parameters. Replicating the study on larger models could reveal additional insights.
  • Actionable Guidelines: The paper provides practical guidelines for future MLLM design, including truncating shallow visual layers, training for sparse attention in middle layers, and enabling early vision exits in deep layers. Integrating these principles directly into training pipelines is suggested for further optimization.

Summary updated

BibTeX
@inproceedings{fan2025visipruner,
  author = {Yingqi Fan and Anhao Zhao and Jinlan Fu and Junlong Tong and Hui Su and Yijie Pan and Wei Zhang and Xiaoyu Shen},
  title = {{VisiPruner: Decoding Discontinuous Cross-Modal Dynamics for Efficient Multimodal LLMs}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2025},
  url = {https://openreview.net/forum?id=AGso8qYh9Z},
}
Figure