Layer-Aware Position Embeddings for Visual Token Pruning in Multimodal Large Language Models

Yahong Wang, Zhangkai Ni, Juncheng Wu, Yuyin Zhou, Ying Wen, Lianghua HearXiv 2026

TL;DR

Visual token pruning effectively speeds up Multimodal Large Language Models (MLLMs) but forces an artificial trade-off: continuous position embeddings boost visual perception but ruin spatial grounding, while sparse embeddings do the exact opposite. By discovering that visual grounding is heavily concentrated in intermediate decoder layers, this paper introduces a training-free, "layer-aware" position embedding strategy that delivers the best of both worlds.

What Problem Does This Paper Address?

Multimodal Large Language Models (MLLMs) like LLaVA are computationally expensive because they process hundreds of visual tokens per image. To accelerate inference, researchers use training-free token pruning to discard redundant visual information.

However, pruning introduces a hidden dilemma regarding Rotary Position Embeddings (RoPE):

  1. Continuous Position Embeddings: Re-indexing the remaining tokens consecutively maintains tight token distances, which keeps the model's attention focused on visual content (good for general perception). However, it destroys the original spatial grid arrangement (bad for visual grounding tasks like object localization).
  2. Sparse Position Embeddings: Keeping the original indices preserves spatial coordinates (good for grounding), but introduces massive index gaps. Because RoPE attention naturally decays over long positional distances, these gaps cause text tokens to ignore visual tokens, severely degrading perception.
Figure 1: Position embedding trade-off after visual to- ken pruning. (a) Continuous position embeddings re-index the position indices of retained visual tokens into a consecu- tive sequence, preserving MLLMs’ attention to visual tokens but disrupting spatial correspondence, thereby degrading the grounding capability of pruned MLLMs. (b) Sparse position embeddings preserve original positional indices and spatial correspondence, but large index gaps reduce MLLMs’ atten- tion to visual tokens and weaken the perception capability of pruned MLLMs. Our method better balances perception and grounding performance.

Methods

The authors propose a Layer-Aware Position Embedding Strategy, a plug-and-play method compatible with existing pruning algorithms (e.g., FastV, CDPruner).

Instead of applying one embedding style globally, the method dynamically switches strategies based on a layer's functional role:

  • Grounding-Sensitive Layer Calibration: The authors perform a one-time layer-wise probing analysis using a small validation set. They selectively apply sparse embeddings to individual layers to identify the exact interval $[L^{gs}, L^{ge}]$ where the model is highly sensitive to spatial correspondence.
  • Hybrid Assignment: During inference, the model applies continuous position embeddings to early and deep layers to maximize text-to-visual attention. It switches exclusively to sparse position embeddings within the intermediate grounding-sensitive layers to restore spatial awareness.
Overview of the layer-aware position embedding calibration and inference strategy.

Datasets

The approach was evaluated across a diverse suite of benchmarks targeting different multimodal capabilities:

  • Visual Perception: MME (perception subset), MMstar (coarse-perception subsets), and MMVP.
  • Knowledge Reasoning: ScienceQA ($SQA^I$) and AI2D.
  • Relation Understanding: Visual Spatial Reasoning (VSR).
  • Visual Grounding: RefCOCO (referring expression comprehension).

Key Insights and Ideas

  • The RoPE Attention Penalty: Probing attention maps revealed that continuous embeddings yield consistently higher text-to-visual attention values across almost all layers compared to sparse embeddings. This explains why sparse embeddings hurt general perception tasks—they literally cause the text decoder to "blind" itself to the image tokens.
  • Grounding is an Intermediate Phenomenon: The most striking finding is that the need for spatial coordinates is not uniform. In LLaVA-1.5-7B, switching to sparse embeddings in layers 7 through 21 caused a massive spike in grounding accuracy (over 400% relative improvement), while doing so in deeper layers had virtually zero impact.
Figure 3: Layer-wise grounding sensitivity to sparse po- sition embeddings in pruned LLaVA-1.5-7B. Change in grounding accuracy when replacing continuous position em- beddings with sparse position embeddings at each decoder layer. A consistent layer-wise trend is observed across prun- ing methods and retention ratios, with grounding accuracy increasing sharply at intermediate layers and remaining near zero in deeper layers.

Key Results

The layer-aware strategy was tested on LLaVA-1.5 (7B and 13B) and InternVL3.5-8B, consistently outperforming standard fixed embedding strategies:

  • Performance Retention: On LLaVA-1.5-7B pruned via CDPruner (removing 77.8% of visual tokens), the layer-aware strategy preserved 98.2% of the original unpruned model's performance.
  • The Best of Both Worlds: Under the same 77.8% pruning rate, the layer-aware method achieved an MME perception score of 1400 (compared to sparse's 1151) and a RefCOCO grounding accuracy of 45.1% (compared to continuous's abysmal 5.4%).
  • Architecture Robustness: When applied to InternVL3.5-8B (which uses dynamic resolutions) alongside DivPrune at a 25% token retention rate, it improved average accuracy by 12.5% over continuous and 19.4% over sparse baselines.

Limitations and Future Work

  • Calibration Overhead: The method requires a preliminary layer-wise sensitivity analysis to find the grounding-sensitive boundaries for each specific model architecture. While this is a one-time, training-free cost, a more automated or analytical selection mechanism would be ideal.
  • Scope Constraints: The evaluations were restricted to image-based MLLMs. Extending this layer-aware logic to video models—where tokens span both complex spatial and long temporal dimensions—remains an open challenge.
  • Positional Encoding Dependency: The mathematical foundation relies on the distance-decay properties of RoPE; its efficacy on models utilizing alternative positional encoding mechanisms has not yet been explored.

Summary updated

BibTeX
@misc{wang2026layer,
  author = {Yahong Wang and Zhangkai Ni and Juncheng Wu and Yuyin Zhou and Ying Wen and Lianghua He},
  title = {{Layer-Aware Position Embeddings for Visual Token Pruning in Multimodal Large Language Models}},
  year = {2026},
  eprint = {2609.23715},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.23715},
}
Figure