NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

LearnPruner: Rethinking Attention-based Token Pruning in Vision Language Models

Rinyoichi Takezoe, Yaqian Li, Zi-Hao Bo, Anzhou Hou, Mo Guang, Kaiwen Long

TL;DR

LearnPruner is a novel two-stage framework designed to slash the computational cost of Vision-Language Models (VLMs) by pruning up to 94.5% of visual tokens. By replacing unreliable raw attention scores with a learnable pruning module and query-aware selection in the LLM's middle layers, it achieves a 3.2× inference speedup while maintaining roughly 95% of original performance.

What Problem Does This Paper Address?

Vision-Language Models (like LLaVA) are powerful but computationally "heavy." When you feed an image into a VLM, the vision encoder breaks it down into hundreds or even thousands of "visual tokens." Processing all these tokens through a Large Language Model (LLM) is expensive, leading to high latency and massive memory usage.

Researchers usually try to solve this by "pruning"—throwing away unimportant tokens before or during the LLM processing. However, current pruning methods rely on raw attention scores to decide what is important. The authors identify two major flaws in this standard approach:

  1. Attention Sink in Vision Encoders: Vision encoders often suffer from "artifacts" where the model focuses heavily on uninformative background regions or corners (the "attention sink" phenomenon) rather than the actual objects of interest.
  2. Attention Shift in LLMs: LLMs have a natural bias toward certain token positions (often the beginning or end of a sequence) regardless of their actual visual content, making raw attention a noisy signal for pruning.
Extracted figure from page 2 of LearnPruner: Rethinking Attention-based Token Pruning in Vision Language Models

Methods

The authors propose LearnPruner, which tackles token reduction in two distinct stages to overcome the limitations of raw attention:

  • Stage 1: Removing Visual Redundancy (Post-Encoder). Instead of trusting the vision encoder's internal attention, the authors insert a Learnable Pruning Module (LPM). This is a lightweight Multi-Layer Perceptron (MLP) trained specifically to predict which tokens are actually useful for the task. To ensure the model doesn't lose the "big picture," they also implement Diversity-based Token Selection, which retains a small set of tokens that are visually distinct from the "important" ones to provide necessary background context.
  • Stage 2: Removing Task-Irrelevant Content (Inside the LLM). Not every part of an image is relevant to every user query. In the middle layers of the LLM, the authors found that text-to-vision attention is remarkably robust against positional bias. They use this clean signal to discard tokens that the user's specific text query isn't "looking at."

The LPM is trained using a Straight-Through Estimator (STE), allowing the model to learn discrete pruning decisions during an end-to-end training process.

Datasets

The model was trained on a small subset (10%) of the LLaVA-665K dataset. Evaluation was performed across a massive battery of benchmarks to prove generalization:

  • Image Benchmarks: GQA, POPE, MME, TextVQA, VQAv2, ScienceQA, and MMBench.
  • Video Benchmarks: TGIF-QA, MSVD-QA, and MSRVTT-QA.
  • Architectures: Tested on LLaVA-1.5, LLaVA-NeXT, Video-LLaVA, and the newer Qwen2.5-VL.

Key Insights and Ideas

  • The [CLS] Token is Unreliable: The paper demonstrates that the standard practice of using the [CLS] token's attention to prune often leads to keeping background noise. A simple learnable MLP outperforms it significantly.
  • The "Middle Layer" Sweet Spot: Pruning too early in the LLM is inaccurate because the model hasn't processed the relationship between text and image yet. Pruning too late saves no computation. Layer 12 (in a standard 32-layer model) was found to be the optimal point where text-to-vision attention becomes highly focused on query-relevant objects.
  • Text-to-Vision Resilience: While vision-to-vision attention in LLMs is plagued by positional bias, the attention flowing from text tokens to vision tokens is surprisingly "clean" and useful for identifying task-relevant regions.
Extracted figure from page 4 of LearnPruner: Rethinking Attention-based Token Pruning in Vision Language Models

Key Results

  • Efficiency: On LLaVA-v1.5-7B, LearnPruner achieved a 3.2× total time speedup and a 5.4× prefill speedup.
  • Aggressive Pruning: The model can retain just 32 tokens (down from 576) and still keep 94.8% of the vanilla model's accuracy.
  • Memory Savings: KV cache storage was reduced by up to 8.9×, which is critical for deploying these models on edge devices or consumer GPUs.
  • SOTA Comparison: LearnPruner consistently outperformed other pruning methods like FastV and SparseVLM, especially at high compression ratios (where 90%+ of tokens are removed).

Limitations and Future Work

  • Cascading Errors: If the first stage (LPM) accidentally prunes a critical object, the second stage cannot recover it. The authors noted some failure cases in highly complex scenes.
  • Base Model Dependency: The pruning is only as good as the underlying VLM's reasoning. If the base model fails to understand a relationship, pruning won't fix it.
  • Future Directions: The authors suggest exploring more sophisticated ways to integrate the learnable module directly into the LLM's architecture rather than just as a "gatekeeper" between modules.

Summary updated

BibTeX
@inproceedings{takezoe2026learnpruner,
  author = {Rinyoichi Takezoe and Yaqian Li and Zi-Hao Bo and Anzhou Hou and Mo Guang and Kaiwen Long},
  title = {{LearnPruner: Rethinking Attention-based Token Pruning in Vision Language Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=Dxb6gBJHby},
}
Figure