TL;DR
Vision-language models (VLMs) choke on high-resolution images and videos because thousands of visual tokens bog down attention mechanisms. While existing "token pruning" methods speed up initial prompt processing on paper, they often break modern GPU optimizations (like FlashAttention) and completely ignore the slow, token-by-token text generation phase. This paper introduces FlashPruner and LoFT, a duo that trims up to 95% of visual tokens in a hardware-friendly way while simultaneously doubling text generation speed—all with minimal accuracy loss.
What Problem Does This Paper Address?
When you feed a high-res image or a long video into a VLM, the vision encoder chops it into thousands of "vision tokens." Because standard Transformer attention scales quadratically with sequence length, this flood of tokens creates a massive bottleneck.
VLM inference happens in two distinct phases:
- Prefill (computation-bound): Reading all the visual and text tokens at once to produce the very first output word.
- Decoding (memory-bandwidth-bound): Generating the rest of the response one word at a time.
Previous attempts to accelerate VLMs drop redundant vision tokens using attention maps to see what the model is "looking" at. This hits two major snags. First, explicitly extracting attention maps is incompatible with FlashAttention, the de facto GPU kernel optimization used in modern inference—meaning theoretical FLOP reductions rarely translate to real-world wall-clock speedups. Second, pruning visual tokens mainly speeds up the prefill stage. When a model generates a long Chain-of-Thought (CoT) reasoning trace, the decoding phase dominates latency, leaving existing pruning methods stuck in the slow lane.
Methods
The authors tackle both inference stages with two complementary innovations: a hardware-friendly pruning module (FlashPruner) for prefill, and an on-policy training recipe (LoFT) that unlocks self-speculative decoding for generation.
- FlashPruner (Accelerating Prefill): Placed right after the VLM's vision projector, FlashPruner scores and selects the top-$K$ most useful vision tokens without materializing full attention maps, keeping it 100% compatible with FlashAttention and FlexAttention. It blends three lightweight signals:
- Global Attention: Downsamples vision tokens via pooling before running self-attention to cheaply grasp the big picture.
- Local Attention: Computes self-attention within small, isolated windows to spot adjacent pixel/frame redundancy.
- Cross Attention: Checks the text prompt against the vision tokens so the pruner knows what the user is actually asking about.
- Self-Speculative Decoding & LoFT (Accelerating Decoding): Standard speculative decoding uses a small "draft" model to rapidly guess the next few words, which the full "target" model verifies in parallel in a single forward pass. Here, the authors use self-speculative decoding: the first $E$ layers of the language model act as the drafter, and the full $T$-layer model is the verifier (reusing the KV cache so no work is wasted).
To make those early layers good at drafting and make the full model comfortable reading pruned tokens, they introduce LoFT (fewer Layers and Tokens Fine-Tuning). After a brief supervised warm-up for FlashPruner, LoFT runs on-policy distillation: the pruned student model generates its own responses, and both its early-exit branch (dropped with probability $\epsilon$) and full-depth branch are trained to match the probability distributions of a frozen, unpruned teacher model seeing 100% of the vision tokens.
Datasets
No new benchmarks are introduced. Evaluation spans standard image and video suites:
- Image Understanding: GQA, MMBench, MME, POPE (object hallucination), ScienceQA, $\text{VQA}^{\text{Text}}$, and OCRBench.
- Video Understanding: VideoMME, EgoSchema, LongVideoBench, and MVBench. (Note: Specific training datasets used for the warm-up and distillation stages are deferred to the paper's Appendix and not named in the main text.)
Key Insights and Ideas
- Theoretical guarantee for speculative acceptance: The authors prove mathematically (Theorem 1) that bounding the KL divergence between the early-exit draft distribution and full-depth target distribution guarantees a lower bound on the expected token acceptance rate. Using the full-token original model as a "teacher bridge" aligns the drafter and verifier without letting both drift away from the original VLM's accuracy.
- Why on-policy matters: Training the student on its own generated text prefixes (on-policy) rather than static ground-truth labels eliminates the mismatch between training and real-world autoregressive generation, directly boosting speculative acceptance rates.
- CoT exposes the decoding trap: In experiments with Chain-of-Thought prompts, baseline token-pruning methods (like FlashVID) drop from a $1.3\times$ overall speedup down to $1.0\times$ (virtually zero speedup!) because long text generation dwarfs prefill time. Accelerating decoding isn't optional for reasoning models.
Key Results
Evaluated primarily on Qwen2.5-VL-7B on an RTX 5090 GPU:
- Image Accuracy: Retaining just 20%, 10%, and an extreme 5% of vision tokens, FlashPruner preserves 98.7%, 93.5%, and 82.2% relative accuracy across five benchmarks—outperforming VisionZip, DivPrune, and MMTok across the board (and reducing hallucinations on POPE).
- Video Accuracy: Across four video benchmarks, it retains 99.8% relative accuracy with 25% tokens, and 96.4% with just 10% tokens.
- Real-World Speedups: FlashPruner accelerates language model prefill by up to $5.3\times$. End-to-end on MVBench (at 10% tokens), it cuts time-to-first-token by $1.53\times$ (646.5 ms $\rightarrow$ 423.6 ms) and boosts decoding speed by $1.96\times$ (hitting 116.7 tokens/s). Under long CoT prompts, it maintains a $1.7\times$ total latency speedup where prior pruning methods stall out.
Limitations and Future Work
Not explicitly discussed in a dedicated section in the main text. However, two practical trade-offs are apparent from the methodology and tables:
- Training requirement: Unlike plug-and-play, training-free pruning heuristics, FlashPruner + LoFT requires a two-stage fine-tuning and on-policy distillation phase.
- Text-heavy visual tasks: While general VQA holds up remarkably well at 5–10% token retention, dense text-reading tasks like OCRBench still see steep absolute drops under extreme compression (dropping from 83.80 at 100% tokens to 33.80 at 5% tokens, though still beating baselines).
- For future/extended directions, the authors note exploring adaptations beyond standard "ViT-Projector-LM" setups to newer architectures like Qwen3-VL (with DeepStack) and the Qwen3.5 family (detailed in their Appendix).
Summary updated