From Patching to Pruning Visual Computation in Vision Language Models
Rahul Chowdhury, Timothy A Rupprecht, Xuan Shen, Shaoyi Huang, Pu Zhao, Yanzhi Wang
Abstract
Vision language models (VLMs) incur substantial inference cost because every visual token is processed by the attention and MLP projections of every decoder layer, even when token-specific visual computation is unnecessary at many depths. We introduce Patch-to-Prune (P2P), inspired by Mechanistic Interpretability, a training-free framework that converts activation patching from a diagnostic tool into an inference-time computation bypass. P2P performs validation-guided forward and backward layer sweeps to identify decoder regions whose visual-token projection outputs can be replaced by fixed neutral proxy activation vectors within a user-specified accuracy tolerance. Unlike conventional token-pruning methods, P2P preserves the sequence length, token order, positional information, attention mask, and residual pathways, thereby pruning computation without removing tokens or modifying the pretrained model weights. We evaluate P2P on four VLMs from the Qwen2.5-VL and LLaVA families across seven multi-modal benchmarks using mutually disjoint calibration, validation, and test partitions. P2P at a 3% tolerance retains around 94% of dense accuracy while reducing FLOPs by 55%. Beyond these efficiency gains, our layer-wise analysis suggests that visual processing in VLMs is non-uniformly distributed across decoder depth: early and late layers often require little token-specific visual computation, whereas intermediate layers appear to perform most task-relevant visual integration, enabling later reasoning to rely largely on visual information already embedded in shared residual and textual representations. This makes P2P both an efficient inference framework and a causal lens into visual information processing in VLMs.
Create a lesson
Metadata
- Categories
- cs.CV, cs.LG
Related papers
Read Before You Use: Improving Visual Memory Utilization in Vision-Language Models
Shared title terminologycs.CVJunseok Kim, Kyungmin Min, Kyomin Jung
EgoExo-Next:Benchmarking Vision-Language Models on Visual-Option Next-State and Cross-View Reasoning
Shared title terminologycs.CVYutong Li, Molin Wang, Xiaotong Li et al.
FlipVLA: Backdoor Attacks on Vision-Language-Action(VLA) Models Only Through Bit Flips
Shared title terminologycs.CVZexi Zhao, Zizhen Liu, Jing Justin Ye et al.
VTK-Bench: A Diagnostic Benchmark for Distinguishing Language Priors and Text Modal Bias in Visual Language Models
Shared title terminologycs.CVYao Lu, Yuhang Zheng, Yaxin Gao et al.
StageVLN: Spatial and Trajectory Auxiliary Guidance for Efficient Vision-Language Navigation
Shared title terminologycs.CVAnh Dao, Quan-Dung Pham, Le Danh Vinh et al.
The Margin Knows the Background: Uneven Abstention in Frozen Vision-Language Models
Shared title terminologycs.CVSatwik Sai Prakash Sahoo, Bibhor Puhan, Shubhankar Mahanta