TL;DR
Vision-Language Models (VLMs) burn massive compute on hundreds of visual patches—most of which are just background noise—so researchers usually speed them up by throwing away "unimportant" tokens in early layers. This paper reveals a fatal flaw in that logic: tokens that look useless in shallow layers often turn out to be the exact details needed for reasoning in deeper layers. To fix this without retraining, SwiftVLM introduces a "bypass" highway that parks unselected tokens on the side and brings them back later for a second look, preserving fine-grained accuracy while slashing inference compute by roughly 60–70%.
What Problem Does This Paper Address?
When you feed an image into a VLM, the vision encoder chops it into hundreds of visual tokens (e.g., 576 tokens in LLaVA-1.5). Pushing all of them through every transformer layer creates a massive latency bottleneck, especially since only a small fraction of an image usually matters for a given prompt.
To speed things up, standard training-free methods look at text-to-vision attention scores in early layers and either drop low-ranking tokens or merge similar ones together. This works fine for broad questions ("Is it sunny?"), where general context suffices. However, it fails Spectacularly on fine-grained tasks like reading small text or localizing specific objects. Why? Because once you drop or blur a token in layer 3, that visual evidence is gone forever—forcing deeper layers to guess with incomplete information.
Methods
SwiftVLM is a training-free framework built around two novel components: Dynamic Programming Layer Selection and Cross-Layer Token Bypass.
- Finding the Best "Judge" Layers: Instead of pruning at arbitrary or uniform intervals, the authors profile each layer’s ability to pick task-relevant tokens on a small calibration set. Because this capability fluctuates across depth, they use dynamic programming to find a fixed, model-specific sequence of pruning layers where token-selection skill monotonically improves (e.g., layers 3, 11, and 15 for LLaVA-1.5-7B).
- The Bypass & Alignment Mechanism: At an early pruning layer $x$, top-ranked visual tokens proceed normally. Instead of deleting the low-ranked tokens, SwiftVLM does two things:
- Merge for the main path: It groups low-ranked tokens by hidden-state similarity and averages each group into a single representative token so subsequent layers retain coarse context cheaply.
- Bypass & Align: The original, unmerged tokens skip the intermediate layers entirely via a side pathway. Right before the next pruning layer $y$, SwiftVLM calculates how much each merged group's representation shifted ($\Delta \mathbf{h}_{gm}$) through the intermediate layers and adds that offset to the bypassed raw tokens. Once aligned to the deeper representation space, all tokens are re-evaluated via text-to-vision attention so newly relevant details can re-enter the main stream.
Datasets
SwiftVLM requires no training; calibration for layer selection uses 1,000 random training samples per dataset across six benchmarks, and test evaluation spans 11 existing benchmarks (no new datasets are introduced):
- Fine-grained Localization: RefCOCO, RefCOCO+, and RefCOCOg.
- Image VQA & Holistic Reasoning: TextVQA (without OCR prompts), GQA, ScienceQA (SQA), MME, MMBench (MMB), and POPE.
- Video Question-Answering: MSRVTT-QA and MSVD-QA (first 1,000 samples).
Key Insights and Ideas
- Shallow layers have terrible FOMO: Comparing LLaVA-1.5’s early layers (1–9) against deeper layers (10–20) on TextVQA revealed huge overlap between the bottom 50% of tokens in early layers and the top 10% most important tokens in deeper layers. Early layers simply haven't fused enough text-vision context yet to know which tiny jersey number or street sign will matter later.
- Layer discriminability isn't monotonic: Deeper doesn't automatically mean smarter at token selection. A layer-by-layer profile shows selection capability peaks in intermediate layers (around layer 15 in LLaVA-1.5) before dipping—meaning uniform progressive pruning often trusts layers with poor judgment.
- Group offsets accurately fake deep computation: Why can bypassed tokens skip 7+ transformer layers and still make sense? Because causal attention only lets visual tokens attend to preceding visual tokens, semantically similar patches evolve along nearly identical trajectories in representation space. Adding a merged token's vector shift ($\Delta \mathbf{h}_{gm}$) closely approximates running every individual token through those layers.
Key Results
Tested across LLaVA-1.5-7B, LLaVA-NeXT-7B, Qwen3-VL-2B, and Video-LLaVA, SwiftVLM shines brightest when token budgets get tight and details matter:
- Massive gains on localization: On LLaVA-1.5-7B, cutting visual tokens by 66.7% (retaining 192 of 576 tokens) reduces FLOPs from 4.29T to 1.75T. While drop/merge baselines collapse on RefCOCO benchmarks (FastV retains 40.3% relative accuracy; PDrop 27.6%; FEATHER 66.9%), SwiftVLM retains 86.9% on localization and 99.0% on non-localization tasks.
- Extreme compression resilience: Dropping 77.8% of tokens (128 retained, 1.31T FLOPs), SwiftVLM still holds 69.8% relative localization accuracy and 96.7% non-localization accuracy, beating the strongest baseline (FEATHER) by nearly 19 percentage points on localization with lower FLOPs.
- Strong generalization: On LLaVA-NeXT-7B at a strict 22.2% token budget, SwiftVLM retains 97.1% overall relative accuracy (79.6 on RefCOCO vs. FEATHER’s 53.1) and reaches 97.1%–99.5% relative performance on Video-LLaVA benchmarks.
Limitations and Future Work
Not discussed in the paper. (While the authors note that boundary cases of representation alignment under extreme coarse-grained grouping are analyzed in Appendix A.4, the main paper does not include a dedicated limitations or future work section.)
Summary updated