TL;DR
Patch-to-Prune (P2P) is a training-free framework that slashes the inference cost of Vision-Language Models (VLMs) by identifying and bypassing redundant visual computation across decoder layers. By replacing complex visual token projections with simple, pre-computed proxy vectors in "safe" layers, P2P achieves a 55% reduction in FLOPs and a 22% reduction in latency while retaining approximately 94% of the original model's accuracy.
What Problem Does This Paper Address?
Large-scale Vision-Language Models are computationally expensive because they treat every visual token as equally important at every depth of the decoder. In a typical VLM, hundreds or thousands of visual tokens are repeatedly processed by every attention and MLP layer, even if those specific computations contribute little to the final answer.
Existing acceleration methods like FastV or PyramidDrop focus on token pruning—permanently discarding visual tokens early in the network based on importance scores. However, the authors argue this approach is flawed: a token that seems unimportant in layer 2 might become critical for reasoning in layer 15. Instead of asking which tokens to prune, this paper asks: Which layers are actually responsible for processing visual tokens?
Methods
P2P draws inspiration from Mechanistic Interpretability, specifically a technique called activation patching. The framework operates in three distinct stages:
- Calibration: The model runs on a small, disjoint calibration set to compute a "modality-conditioned activation prototype"—essentially the mean output vector for visual tokens at every projection module in every layer.
- Validation-Guided Selection: P2P performs cumulative forward and backward sweeps on a validation set. It replaces visual token outputs with the cached prototypes and measures the accuracy drop. Layers that can be "patched" without exceeding a user-defined accuracy tolerance ($\tau$) are marked as "safe."
- Computation-Bypassed Inference: During actual inference, the model skips the heavy matrix multiplications (matmuls) for visual tokens in these safe layers, directly filling the outputs with the cached prototypes.
Crucially, P2P preserves the original sequence length, token order, and residual pathways. It doesn't remove tokens; it simply bypasses the math for them in specific regions of the network.
Datasets
The authors evaluated P2P across four VLMs (Qwen2.5-VL-3B/7B and LLaVA-v1.6-Vicuna-7B/13B) using seven diverse multimodal benchmarks:
- WhatsUp-VLM: Spatial-relation understanding.
- POPE: Object hallucination/recognition.
- ScienceQA-IMG: Image-grounded scientific reasoning.
- GQA: Compositional reasoning.
- TextVQA: Reading and reasoning over scene text.
- CV-Bench: 2D and 3D vision-centric understanding.
- AI2D: Reasoning over scientific diagrams.
Key Insights and Ideas
- Non-Uniform Visual Processing: The most striking finding is that visual processing is not distributed evenly across the decoder. Early layers begin encoding features, and late layers generate answers based on already-integrated information. The "heavy lifting" of task-relevant visual integration happens primarily in a sensitive intermediate band of layers.
- The "Safe" Zones: Because early and late layers are often redundant for visual tokens, they can be bypassed. In contrast, patching text tokens is almost always damaging, suggesting that the visual stream has significantly higher redundancy than the textual stream.
- Causal Lens: P2P isn't just an efficiency tool; it acts as a diagnostic lens, revealing exactly where a model "looks" at an image during the reasoning process.
Key Results
- Efficiency vs. Accuracy: At a 3% tolerance level, P2P reduces average FLOPs by ~60% for LLaVA models while retaining ~94% accuracy.
- Wall-Clock Speedup: Unlike token pruning methods that introduce overhead for ranking and reorganizing sequences, P2P provides direct latency gains. On LLaVA-13B, it achieved a 25.4% reduction in latency, outperforming both FastV and PyramidDrop in real-world speed.
- Fine-tuning Recovery: While P2P is training-free, the authors show that an optional "P2P-aware" fine-tuning using LoRA can recover nearly all accuracy lost during aggressive pruning, even at higher tolerance levels.
Limitations and Future Work
- Task-Specific Sensitivity: The amount of "pressable" visual computation varies by task. For example, TextVQA and CV-Bench were found to be more sensitive to aggressive patching than object recognition tasks like POPE.
- Static Layer Selection: Currently, the "safe" layers are determined once during validation and fixed for all inputs. A promising future direction is dynamic patching, where the model decides which layers to bypass on-the-fly based on the complexity of the specific image and question.
- Orthogonality: P2P is complementary to token pruning. Future work could combine the two: using P2P to bypass layers and token pruning to reduce the sequence length within the remaining "vital" layers.
Summary updated