TL;DR
Large Vision-Language Models (LVLMs) waste massive amounts of compute staring at empty skies and repetitive textures because they convert every image patch into a dense visual token. TPRL uses reinforcement learning to teach a lightweight network how to spot and throw away up to two-thirds of these visual tokens before the heavy language model ever sees them. By doing the slow, step-by-step thinking during training and snapping a single-pass decision at runtime, TPRL cuts inference compute by 65% with virtually zero loss in accuracy.
What Problem Does This Paper Address?
When you feed a high-resolution image into a modern LVLM (like LLaVA or Qwen-VL), the vision encoder chops it up into hundreds or thousands of "visual tokens" and hands them to a Large Language Model (LLM). Because attention mechanisms scale poorly with sequence length, this flood of tokens creates a massive bottleneck in memory and latency. Yet, if you ask a model, "What word is painted on the airplane?", it really doesn't need 400 tokens describing the clouds above it.
Existing attempts to prune redundant tokens fall into a classic Catch-22:
- Static heuristics (like dropping tokens with low attention scores) are fast, but they are blind to the user's text prompt and ignore how removing one token changes the importance of its neighbors.
- Dynamic, multi-step pruners figure out token dependencies iteratively, which preserves accuracy—but running a multi-step decision loop during inference adds so much latency that it defeats the whole point of speeding up the model.
The authors ask: Can we get the deep, context-aware reasoning of sequential pruning during training, while keeping the lightning-fast execution of a single-pass filter at test time?
Methods
TPRL (Token Pruning via Reinforcement Learning) sits right at the interface between the vision encoder and the LLM. It solves the training-versus-inference dilemma through a clever three-stage pipeline:
- 1. State Compression (Taming the Space): Visual tokens are huge (e.g., 4096 dimensions), making RL exploration a nightmare. The authors train a tiny, self-supervised MLP autoencoder to squash each token down to a 256-dimensional latent code ($1/16$th the size). Crucially, these compressed codes are only used by the pruner to make decisions; the surviving original, uncompressed tokens are what get passed to the LLM.
- 2. Learning from Demonstrations (Warm Start): Training an RL agent from scratch in a combinatorial token space is painfully slow. Instead, TPRL gets a warm start via supervised learning, imitating 50K progressive pruning trajectories generated offline by an existing heuristic method (VisPruner).
- 3. Sequential RL Training $\rightarrow$ One-Shot Inference: Framed as a Markov Decision Process (MDP), the policy network (which shares a self-attention module with a critic network to see how visual tokens relate to the text query) practices pruning step-by-step using Proximal Policy Optimization (PPO). The reward balances downstream task accuracy against the fraction of tokens dropped.
The Magic Trick (Amortized Reasoning): Even though the policy learns via multi-step trajectories during training, all that sequential wisdom gets baked directly into its weights. At inference time, TPRL runs in one shot: it looks at the compressed tokens and text query once, outputs retention probabilities, and drops anything below a user-defined threshold $\tau$.
Datasets
No new benchmarks were introduced; instead, the authors used standard multimodal datasets:
- Training (Autoencoder, demonstrations, and RL): Training splits of MME and VQA-v2.
- Evaluation: Eight diverse benchmarks covering general VQA, reasoning, and object hallucination: GQA, MMBench, MME, POPE, SEED-Bench, ScienceQA-Image, VQA-v2, and VizWiz.
Key Insights and Ideas
- Less Vision Can Mean Better Thinking: On several benchmarks (MMBench, MME, VizWiz), pruning 66.7% of the tokens actually beats the unpruned baseline. Filtering out redundant background patches removes visual "noise" that otherwise distracts the LLM's reasoning.
- Sequential Training Matters, Even for One-Shot Execution: Ablations show that trying to distill a one-shot mask directly—or doing single-step RL—consistently underperforms multi-step RL ($T_{\text{max}}=3$). The agent needs to experience progressive removal during training to understand inter-token dependencies.
- 16$\times$ Compression is the Sweet Spot: Shrinking 4096-D tokens down to 256-D preserves enough high-level semantics to match uncompressed accuracy while speeding up RL convergence dramatically. Pushing further to 128-D hits an information cliff.
- MDP > Specific RL Algorithm: Swapping PPO out for GRPO or MAPO yields nearly identical results, proving the secret sauce is the compressed, language-guided MDP formulation itself rather than policy-gradient hyperparameter wizardry.
Key Results
Tested primarily on LLaVA-1.5-7B (and validated on LLaVA-1.5-13B and Qwen-VL-2.5-3B), TPRL sets a strong accuracy-efficiency Pareto frontier:
- Near-Lossless Compression: Dropping 66.7% of visual tokens (retaining ~192 of 576) cuts total FLOPs by 65.3%, slashes KV-cache memory by 65.3%, and reduces latency by 38.8% (57.8 ms $\rightarrow$ 35.4 ms)—all with just a 0.6% average accuracy drop on a frozen LLM, and a mere 0.2% drop when the LLM is LoRA-tuned.
- Extreme Pruning: Even when throwing away 88.9% of the image (~64 tokens left), TPRL retains 95.8% relative accuracy, cutting FLOPs by 87.0% and latency in half (52.8% reduction), handily outperforming heuristic baselines like FastV (74.8% accuracy).
- Qualitative Smarts: Heatmaps confirm the pruner genuinely reads the prompt—peeling away uniform skies first, then discarding non-queried objects, leaving bright red high-probability islands right over the answer (like the text painted on an airplane's fuselage).
Limitations and Future Work
Not explicitly discussed in a dedicated section of the main text. However, two practical trade-offs are apparent from the methodology and experiments:
- Upfront Training Pipeline: Unlike zero-shot, plug-and-play heuristics (e.g., FastV), TPRL requires a multi-stage training setup (autoencoder $\rightarrow$ offline heuristic demonstrations $\rightarrow$ PPO rollouts) for a given vision-LLM interface, plus optional LoRA fine-tuning of the LLM for peak accuracy.
- Non-Zero Pruner Overhead: Because TPRL runs a lightweight encoder and self-attention layer before the LLM, its pruner module incurs slightly more compute overhead than simple internal attention-dropping rules—though this tiny upfront cost is massively repaid during LLM prefill and decoding.
Summary updated