Skip to content

StandIn: Restoring Position and Attention Mass in Training-Free Visual Token Pruning

Xia Guo, Huilong Pi

cs.CV

Abstract

Multimodal large language models (MLLMs) spend most of their inference cost on visual tokens, and training-free visual token pruning has become a standard remedy. Existing methods focus on which tokens to keep, then pass them to the language model as if nothing had been removed. We show that this discards more than content: the removed tokens take their share of the softmax with them, so the attention that the LLM pays to vision drops sharply, from 62% to 26% in the first layer of LLaVA-1.5-7B with 64 tokens. Two natural corrections, restoring the original position ids of the kept tokens and up-weighting each kept token by the number of tokens it represents, each fail on their own, but together they bring the layer-wise attention close to that of the full model. We propose StandIn, in which each kept token, chosen by coverage-based selection, stands in for the tokens it replaces: it stays at its original position and inherits their attention mass through a log-mass logit bias, calibrated without labels on 100 unlabeled images. StandIn is training-free and runs with fused attention kernels. On LLaVA-1.5-7B and 13B, it achieves the best average retention at every token budget, retaining 98.1% of the full 7B model's performance with 64 tokens, against 96.4% for the strongest baseline, at a 1.94x speed-up. Its position and bias changes also transfer to AnchorPrune on Qwen2.5-VL-7B, raising average retention by up to 1.7 points.

Create a lesson