Skip to content
AI.info

Research

$\mathcal{V}isi\mathcal{P}runer$: Decoding Discontinuous Cross-Modal Dynamics for Efficient Multimodal LLMs

Overview Research area: Efficient multimodal large language models (MLLMs) — specifically, interpreting how visual tokens flow through a vision-language transformer and using that interpretation to pr

arXiv
2510.17205
Published
2025-10-20
Authors
Yingqi Fan, Anhao Zhao, Jinlan Fu, Junlong Tong, Hui Su, Yijie Pan, Wei Zhang, Xiaoyu Shen

AI summary

Overview

Research area: Efficient multimodal large language models (MLLMs) — specifically, interpreting how visual tokens flow through a vision-language transformer and using that interpretation to prune computation.

Technical level: Advanced. The paper assumes familiarity with transformer attention (queries, keys, values), cross-attention versus self-attention, KV caching, prefill versus decoding stages, FLOPs accounting, and benchmark conventions for vision-language evaluation.

Scope: A mechanistic analysis of layer-wise cross-modal interaction in MLLMs that yields a training-free pruning framework, validated on five model families across seven benchmarks.

What This Paper Is About

Multimodal LLMs pay a large computational cost because visual encoders emit far more tokens than text (for example, N_v = 576 tokens for a 336×336 image with patch size 14), and attention cost grows quadratically with token count. Prior token-pruning methods operate without a grounded theory of where and when visual information is actually fused into text.

This paper first dissects cross-modal information flow layer by layer, then builds a pruning framework on the resulting three-stage picture: shallow layers recognize task intent with visual tokens acting as passive attention sinks, middle layers perform abrupt and sparse cross-modal fusion, and deep layers discard vision and refine language.

Key Contributions

  1. A systematic analysis of cross-modal interactions claiming to be the first to characterize them as discontinuous, sparse, and decoupled — including the counter-intuitive finding that shallow layers operate independently of vision.
  2. Evidence that attention scores are an inadequate proxy for visual token utility, demonstrated through attention merging and masking experiments rather than attention-map inspection alone.
  3. VisiPruner, a training-free pruning framework that combines layer-wise compression (disabling shallow visual attention, removing deep-layer visual tokens) with token-wise influence-based selection in middle layers, validated across diverse MLLMs and benchmarks.
  4. Actionable design guidelines for future MLLMs, recommending truncation of shallow visual layers, training for sparse attention in middle layers, and early exiting in deep visual layers.

Main Findings

  • Shallow layers ignore vision content. Masking the top 10% most attended visual tokens in layers 1–2 produced minimal change across four models: LLaVA-v1.5 7B GQA 62.0 → 62.0, MME P 1507.6 → 1506.6, POPE 85.9 → 85.7, MMB 64.3 → 64.3; LLaVA-v1.5 13B 63.3 → 63.2, 1531.3 → 1518.6, 85.9 → 86.3, 67.7 → 68.9; InternVL2.5 8B 63.6 → 63.2, 1700.0 → 1689.5, 90.6 → 90.6, 84.6 → 84.3; MobileVLM-v2 3B 61.0 → 60.9, 1440.5 → 1440.8, 84.7 → 84.6, 63.2 → 63.3.

  • The redundancy paradox. Masking the remaining 90% of tokens also caused only minor degradation (72.6 → 71.5, averaged over GQA, MME, POPE and MMB for LLaVA-v1.5 7B and 13B, with MME divided by 20 before averaging). Randomly masking half the visual tokens was equally inert: left half masking (first 288 of 576 tokens) gave 72.6 → 72.6, right half masking (last 288) gave 72.6 → 72.4.

  • Vision tokens act as attention stabilizers. Forcing all shallow cross-attention weights onto a single randomly chosen visual token (attention merging) changed nothing meaningful across choices of the merge index. Masking all vision tokens hurts only in layer 1 (72.6 → 65.2); from layers 2–7, system prompts can substitute as attention sinks with no drop (72.6 → 72.1). The paper attributes this to diverging value-vector distributions between early vision and text tokens.

  • Shallow text layers do task recognition. Projecting the last token's hidden state through the unembedding matrix yields task-aligned words rather than visual content — "How many cars…" maps to "number" at Layer 10, and "What kind of…" maps to "type" at Layer 7.

  • Shallow visual layers align features, not fuse them. Masking visual self-attention across layers 1–2 caused only a small drop in GQA (61.95 → 57.41 with 576 tokens), while attention merging restored performance to 61.98 with 575 tokens.

  • Middle layers perform real, sparse fusion. Full cross-attention masking degrades performance starting around the 9th layer. In layers 9–15, masking the top 10% attended tokens dropped GQA from 61.95 to 54.09, while masking the bottom 10% left it at 61.95 → 61.93. Retaining only the top 5% most attended tokens preserved the average score (72.6 → 71.3). The paper reports that critical tokens stay in instruction-relevant regions and do not need to be re-identified per layer.

  • Influence beats attention for token selection. Value-aware (influence-based) pruning outperformed attention-based selection: POPE 86.1 vs 85.9, GQA 61.3 vs 60.3, VQA T 57.8 vs 57.1, MMVet 31.9 vs 25.4. The method drops tokens whose masking leaves cosine similarity below 0.995 and prunes tokens with L2 distance below 0.2, cutting 576 vision tokens to an average of 10.3 with a 0.7% drop in GQA.

  • Deep layers do linguistic alignment, not vision. Discarding all visual tokens from layer 20 dropped GQA 61.95 → 59.13, but merely skipping visual processing at layer 20 gave 61.95 → 61.66. Discarding from layer 26 changed almost nothing (61.95 → 61.91), while skipping processing at 26 hurt more (61.95 → 61.40), suggesting visual information becomes noise rather than signal. Semantic projection shows "Lux" at layer 25 progressively resolving into "The" by the final layers.

  • Vision exit is detectable. Tracking retained tokens, the method finds an average vision exit layer of 23.9 on LLaVA-v1.5 7B, with GQA moving 62.0 → 61.3 → 61.0.

  • Efficiency and generalization. The abstract reports up to 99% reduction of vision-related attention computations and 53.9% of FLOPs on LLaVA-v1.5 7B; the complexity analysis reports a 98.3% reduction in visual-related attention computation and 53.9% FLOPs reduction. On LLaVA-v1.5 7B, FLOPs fall from 3.82T (dense, average 63.8) to 1.76T (61.9); 13B from 7.44T (66.1) to 3.31T (64.9); InternVL-v2.5 8B from 11.00T (80.1) to 5.34T (77.0); QwenVL-v2 7B from 9.62T (64.6) to 4.69T (63.5); MobileVLM-v2 3B from 0.37T (63.5) to 0.25T (63.3).

  • Comparison against other training-free methods at similar pruning levels. At roughly 98% visual attention reduction, VisiPruner scores an average of 61.3 versus FitPrune (reduction 0.9) at 53.3, SparseVLM (retained=64) at 58.2, and PyramidDrop (retained=64) at 46.6.

Methodology in Plain English

The authors work in two phases. First, they interrogate a model they did not train. Instead of reading attention maps as evidence of information flow, they intervene: they mask specific visual tokens at specific layers and see whether the answer changes, they collapse all shallow cross-attention onto one arbitrary visual token, they mask visual self-attention, and they delete vision from the KV cache at chosen depth ranges. They also decode what the model is "thinking" by projecting hidden states through the unembedding matrix, turning internal representations into vocabulary words.

Second, they convert those interventions into a pruning recipe. Shallow layers get visual attention merged into a sink in layer 1, and vision-text attention is skipped from layer 2 onward, with visual self-attention removed. Middle layers get a cheap influence test: rather than masking each visual token and re-running the network, they zero out one attention weight at a time, recompute only that attention output, and measure how much it shifts using cosine similarity and L2 distance. A layer where masking drops cosine similarity below 0.995 is flagged as a filtering layer, and at that layer tokens with L2 distance below 0.2 are discarded. Deep layers are handled by tracking the surviving tokens; two consecutive layers with no measurable impact define the vision exit layer, beyond which the remaining visual tokens are removed entirely.

Why This Matters

The paper reframes MLLM efficiency as an architecture-mechanism matching problem rather than a heuristic token-importance problem. If shallow visual attention is largely structural and deep visual attention is largely noise, then a substantial share of the quadratic cost in current MLLMs is being spent for reasons unrelated to content transfer. That is a stronger claim than "many tokens are redundant," and it is supported with masking, merging, and KV-cache ablations rather than attention statistics.

Real-world applications:

  • On-device or edge multimodal assistants, where MobileVLM-v2 3B is reported to drop from 0.37T to 0.25T FLOPs with an average of 63.5 versus 63.3.
  • High-resolution or document/OCR pipelines, where token counts are large; on LLaVA-v1.5 7B, TextVQA moves from 58.2 to 55.2 with FLOPs at 1.76T versus 3.82T.
  • Long-context video or multi-image dialogue, since removing visual tokens from KV caching in shallow and deep layers reduces memory in long-sequence decoding.
  • Cost-constrained batch inference services, where a 53.9% FLOPs reduction on LLaVA-v1.5 7B translates directly into throughput.

Industry relevance: the method is training-free, which means it can be applied to already-deployed checkpoints without retraining or access to the model's original training pipeline. The paper also argues the layer-wise compression is compatible with existing token pruning methods, so it composes with production pruning stacks.

Future Directions

  • Embedding the insights into training. The paper suggests training models to attend sparsely in middle layers so critical tokens are identified intrinsically, bypassing post-hoc influence measurement.
  • Training-based validation of shallow-layer independence. The limitations section notes that training the projector to align vision tokens with semantic representations and inserting them only until later layers could further strengthen the shallow-layer findings.
  • Scaling beyond 13B parameters. The authors state that hardware constraints limited analysis to models up to 13 billion parameters, and that larger models may reveal additional structure under the three-stage framework.
  • Architectural co-design. The proposed guidelines — truncating shallow visual layers, sparse middle-layer attention, and built-in vision exit — remain recommendations rather than trained systems, leaving open how much further the performance-efficiency tradeoff improves when they are baked in.

Target Audience

Researchers and engineers working on multimodal LLM efficiency, token pruning, KV-cache compression, or mechanistic interpretability of vision-language models. It is also relevant to practitioners deploying MLLMs under latency or memory budgets, since the framework is training-free and tested on LLaVA-v1.5 7B and 13B, InternVL2.5 8B, Qwen2-VL 7B, and MobileVLM-V2 3B. Readers looking for a first introduction to vision-language transformers will find the analysis difficult without prior familiarity with attention mechanics and multimodal benchmarks.

Authors’ abstract

Multimodal Large Language Models (MLLMs) have achieved strong performance across vision-language tasks, but suffer from significant computational overhead due to the quadratic growth of attention computations with the number of multimodal tokens. Though efforts have been made to prune tokens in MLLMs, \textit{they lack a fundamental understanding of how MLLMs process and fuse multimodal information.} Through systematic analysis, we uncover a \textbf{three-stage} cross-modal interaction process: (1) Shallow layers recognize task intent, with visual tokens acting as passive attention sinks; (2) Cross-modal fusion occurs abruptly in middle layers, driven by a few critical visual tokens; (3) Deep layers discard vision tokens, focusing solely on linguistic refinement. Based on these findings, we propose \emph{VisiPruner}, a training-free pruning framework that reduces up to 99\% of vision-related attention computations and 53.9\% of FLOPs on LLaVA-v1.5 7B. It significantly outperforms existing token pruning methods and generalizes across diverse MLLMs. Beyond pruning, our insights further provide actionable guidelines for training efficient MLLMs by aligning model architecture with its intrinsic layer-wise processing dynamics. Our code is available at: https://github.com/EIT-NLP/VisiPruner.

Read the original paper