TL;DR
High-resolution Large Vision-Language Models (LVLMs) suffer from quadratic computational costs due to processing thousands of image tokens. PyramidDrop solves this by progressively pruning visual tokens across transformer layers—keeping full tokens in shallow layers for global scene comprehension and discarding redundant visual tokens in deeper layers. This simple, elegant strategy slashes training time by 40% and inference FLOPs by ~55% with virtually no loss in multimodal benchmark performance.
What Problem Does This Paper Address?
Modern LVLMs like LLaVA-NeXT achieve impressive reasoning by feeding high-resolution images into a vision encoder and projecting the resulting visual patches as tokens into an autoregressive Large Language Model (LLM). However, high resolution comes at a steep price: an image can produce thousands of tokens (e.g., up to 2,880 in LLaVA-NeXT). Because transformer self-attention scales quadratically with sequence length, training and inference become prohibitively slow and expensive.
Prior token reduction methods generally fall into two camps:
- Pre-LLM token reduction: Merging or compressing tokens before feeding them to the language model, which causes irreversible loss of fine-grained spatial and text information.
- Early-layer dropping (e.g., FastV): Aggressively pruning visual tokens at very early layers (like layer 2), which harms accuracy because the model has not yet developed a holistic understanding of the scene.
Methods
The authors first conduct an empirical study showing that token redundancy is layer-dependent. In early layers, the LLM pays broad, uniform attention across all visual tokens to grasp global structure; in middle and late layers, attention concentrates narrowly on a tiny subset of task-relevant tokens.
Based on this insight, PyramidDrop implements a stage-wise, pyramid-shaped reduction:
- Multi-Stage Partitioning: The LLM’s $L$ decoder layers are split into $S$ equal stages (e.g., $S=4$ stages of 8 layers in a 32-layer LLM).
- Stage-End Pruning: At the end of each stage $s$, a fraction $(1 - \lambda)$ of visual tokens are pruned (default retention ratio $\lambda = 0.5$). Visual tokens decrease exponentially stage-by-stage ($V_s = V_0 \cdot \lambda^{s-1}$).
- Lightweight Selection Metric: To determine token importance with minimal overhead, the model reuses the self-attention projections from the stage’s final layer. It computes the dot-product similarity between the query state of the last instruction token ($q_j^{t^I}$) and the key states of all image tokens ($k_j^v$). This $O(n)$ operation requires negligible computation and integrates cleanly with FlashAttention.
- Dual Applicability: PyramidDrop can be incorporated during pre-training and instruction tuning, or applied as a training-free, plug-and-play inference acceleration technique.
Input Tokens ──> [Stage 1: Layers 1-8] ──> Keep 100% tokens
[Stage 2: Layers 9-16] ──> Keep 50% tokens
[Stage 3: Layers 17-24] ──> Keep 25% tokens
[Stage 4: Layers 25-32] ──> Keep 12.5% tokens ──> Final Output
Datasets
The authors evaluate PyramidDrop across 14 standard multimodal benchmarks:
- General Perception & Reasoning: MME, MMBench, MMBench-CN, SEED-Bench (Image), MM-Vet, MMStar, and POPE (hallucination evaluation).
- Traditional VQA: VQA-v2, VizWiz, and GQA.
- High-Resolution & Text-Rich VQA: TextVQA, DocVQA, ChartQA, and InfographicVQA.
(No new datasets were introduced; training was conducted on standard subsets via the open-source Open-LLaVA-NeXT codebase.)
Key Insights and Ideas
- Uniform vs. Sparse Attention: Shallow layers exhibit uniform visual attention (global context parsing). Middle/deep layers exhibit sparse, localized attention (answering specific questions). Therefore, uniform token compression across all layers is suboptimal.
- Compaction Encourages Better Representations: Training with PyramidDrop actively trains the model to consolidate critical visual facts into fewer tokens earlier in the network. Consequently, models trained with PyramidDrop are substantially more robust to aggressive test-time pruning than vanilla models.
- Higher Resolution, Greater Benefit: In high-token scenarios (e.g., expanding from 5 image patches to 9 image patches), visual redundancy grows disproportionately. PyramidDrop prevents redundant tokens from confusing the language backbone while delivering its highest relative speedups.
Key Results
- Training Acceleration:
- LLaVA-NeXT-7B (5 patches): Reduced training time from 366 to 218 GPU hours (~40% speedup) on 8× A100 GPUs, maintaining an average score of 67.3% vs. 67.4% on general benchmarks and 62.6% vs. 63.0% on fine-grained VQA tasks.
- LLaVA-NeXT-7B (9 patches): Cut training time from 483 to 269 GPU hours (44% reduction) while actually improving average performance from 63.5% to 64.4% on fine-grained benchmarks.
- Inference FLOPs Reduction:
- Reduces theoretical computation by 53.2%, dropping LLaVA-NeXT inference from 20.8 TFLOPs to 9.46 TFLOPs (~55% reduction).
- Training-Free Plug-and-Play Superiority:
- When applied strictly at inference time on a pre-trained vanilla model, PyramidDrop outperforms existing SOTA (FastV) across nearly all benchmarks at lower FLOPs (e.g., on LLaVA-NeXT: +3.5% on DocVQA, +3.2% on ChartQA, and +2.5% on MME). Under an 8 TFLOP budget, the gap expands to +6.0% on DocVQA over FastV.
Limitations and Future Work
- Fixed Heuristics: The current implementation uses predetermined stage boundaries ($S=4$) and a constant reduction ratio ($\lambda=0.5$). Dynamic, per-instance pruning based on question complexity or image entropy remains unexplored.
- Single-Token Importance Metric: Importance ranking depends solely on the last token of the prompt instruction. For lengthy, multi-sentence prompts or multi-turn dialogues, this single token might fail to capture all visual intents.
- Model Scale: Experiments were restricted to 7B-parameter architectures (LLaVA-1.5 and LLaVA-NeXT). Validating scalability on larger models (e.g., 34B or 70B) or varied architectures (like Qwen2-VL or InternLM-XComposer) is left for future research.
Summary updated