AdaptInfer: Adaptive Token Pruning for Vision-Language Model Inference with Dynamical Text Guidance

Weichen Zhang, Zhui Zhu, Ningbo Li, Kebin Liu, Yunhao Liu · DOI

Introduction

Vision-Language Models (VLMs) have demonstrated remarkable capabilities in multimodal reasoning, yet their deployment is often hindered by significant computational costs. A primary bottleneck occurs during the "prefill" stage of inference, where the processing of high-resolution images generates a massive volume of visual tokens. For instance, a $672 \times 672$ image can yield 2,304 tokens, dwarfing the accompanying text prompt. Processing these redundant tokens through every layer of a large transformer architecture leads to high latency.

Previous attempts to mitigate this via token pruning have relied on static guidance or manual tuning, failing to account for the evolving internal state of the model across layers. This paper introduces AdaptInfer, a training-free, plug-and-play framework that dynamically identifies salient visual tokens using text-to-text attention as a guide, coupled with a principled pruning schedule derived from attention shift analysis.

Methodology

AdaptInfer optimizes VLM inference by integrating dynamic guidance into the transformer blocks without requiring additional training or fine-tuning.

The AdaptInfer framework pipeline, illustrating the three-step Rank & Prune mechanism guided by dynamic text priors.

Dynamic Text-Guided Pruning

The core innovation of AdaptInfer is its use of the model's own internal signals to guide pruning. Rather than using fixed keywords, the method leverages text-to-text (t2t) attention maps at each layer. By calculating which text tokens are prioritized by the model at a specific depth, AdaptInfer generates a "soft prior." This prior is used to reweight the text-to-vision (t2v) attention, ensuring that the visual tokens retained are those most relevant to the model's current stage of reasoning. This "dynamical" approach respects the fact that token importance is fluid and evolves as information passes through the network.

Principled Pruning Schedule

To determine when to prune, the authors conducted an offline "attention shift" analysis using change-point detection. By measuring the Mean Intersection over Union (mIoU) of important tokens between layers, they identified distinct phases in the model's processing.

Attention shift analysis on LLaVA-1.5-7B. The mIoU heatmap (left) and distribution (right) reveal stable layers suitable for pruning.

The analysis revealed "high-frequency" regions (e.g., layers 1 and 10–20 in LLaVA-7B) where attention patterns are volatile and token importance is actively being reassigned. Pruning in these "stormy" regions risks removing critical information. Conversely, "stable" regions (layers 2–9 and 20+) provide reliable signals for pruning. AdaptInfer utilizes this data-driven schedule to prune only when internal signals have stabilized, maximizing efficiency without sacrificing accuracy.

Experimental Results

The framework was evaluated across a diverse set of benchmarks, including MME, GQA, ScienceQA, and various video-based QA tasks, using models like LLaVA-1.5, InternVL, and Qwen2-VL.

Efficiency and Speedup

On the LLaVA-1.5-7B model, AdaptInfer achieved a 61.3% reduction in CUDA latency. Remarkably, it maintained 93.1% of the original accuracy while retaining an average of only 64 vision tokens—an 88.9% reduction in the visual token load.

Performance and Robustness

AdaptInfer consistently outperformed state-of-the-art methods such as SparseVLM and PDrop under identical token budgets. An interesting finding was that at moderate pruning rates (e.g., 50%), AdaptInfer occasionally outperformed the vanilla model. This suggests that removing redundant visual data can act as a form of denoising, allowing the model to focus more effectively on salient features. The method also demonstrated strong cross-architecture generalizability and scaled effectively to 13B parameter models.

Conclusion

AdaptInfer presents a significant step forward in making VLM inference more efficient. By moving from static to dynamic guidance and employing a principled pruning schedule, it achieves substantial speedups with minimal performance loss. Future work may explore integrating these dynamic pruning strategies directly into the training phase or developing token-specific schedules to further push the boundaries of efficient multimodal AI.

Summary updated

BibTeX
@inproceedings{zhang2025adaptinfer,
  author = {Weichen Zhang and Zhui Zhu and Ningbo Li and Kebin Liu and Yunhao Liu},
  title = {{AdaptInfer: Adaptive Token Pruning for Vision-Language Model Inference with Dynamical Text Guidance}},
  booktitle = {ER @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=RPYlQYj1Dv},
}
Figure