Mechanistically Interpreting Compression in Vision-Language Models
Organizations: Indian Institute of Technology Jodhpur · AIM Intelligence · National Institute of Technology Agartala · Fordham University ·
Abstract
Compressed vision-language models (VLMs) are widely used to reduce memory and compute costs, making them a suitable choice for real-world deployment. However, compressing these models raises concerns about whether internal computations and safety behaviors are preserved. In this work, we use causal circuit analysis and crosscoder-based feature comparisons to examine how pruning and quantization fundamentally change the internals across representative VLMs. We observe that pruning generally keeps circuit structure intact but rotates and attenuates internal features, while quantization modifies the circuits at a higher level yet leaves the surviving features better aligned. Leveraging this insight, we also introduce VLMSafe-420, a novel benchmark that pairs harmful inputs with matched benign counterfactuals across various safety categories. Our findings show that pruning causes a sharp drop in genuine refusal behavior, suggesting that the choice of compression has safety implications.
Figures & tables
| Model | Method | TextVQA | ScienceQA | GQA |
|---|---|---|---|---|
| BLIP-VQA | 28.5 | 56.5 | 47.5 | |
| INT4 | 26.7 | 54.3 | 45.2 | |
| Wanda | 22.7 | 51.1 | 40.8 | |
| LLaVA | 47.9 | 59.9 | 54.1 | |
| INT4 | 45.6 | 56.5 | 51.8 | |
| Wanda | 42.0 | 52.2 | 47.5 |
| Model | Method | EF | FVE U | FVE C | DL (%) |
|---|---|---|---|---|---|
| BLIP-VQA | INT4 | 4 | 0.91 | 0.79 | 23.82 |
| INT4 | 8 | 0.94 | 0.86 | 61.16 | |
| Wanda | 4 | 0.86 | 0.86 | 75.34 | |
| Wanda | 8 | 0.90 | 0.89 | 85.62 | |
| LLaVA | INT4 | 4 | 0.86 | 0.70 | 37.83 |
| INT4 | 8 | 0.85 | 0.71 | 71.29 |
| Top- | Bottom- | ||||
|---|---|---|---|---|---|
| Model | Method | IoU | IoU | ||
| BLIP-VQA | INT4 | 0.76 | 0.51 | 0.16 | 0.24 |
| Wanda | 0.72 | 0.69 | 0.56 | 0.55 | |
| LLaVA | INT4 | 0.80 | 0.47 | 0.12 | 0.20 |
| Wanda | 0.76 | 0.76 | 0.44 | 0.63 | |
| Model | Method | FSR | SSS | CSS | CSS | CSS |
|---|---|---|---|---|---|---|
| BLIP-VQA | INT4 | 0.64 | 0.69 | 0.03 | 0.01 | 0.00 |
| Wanda | 0.98 | 0.10 | 0.07 | 0.00 | 0.00 | |
| LLaVA | INT4 | 0.76 | 0.73 | 0.02 | 0.16 | 0.01 |
| Wanda | 0.92 | 0.47 | 0.00 | -0.01 | -0.01 |
| Type | Count | Description |
|---|---|---|
| Text | 226 | Harmful vs. benign text for a fixed image |
| Image | 150 | Harmful vs. benign image for a neutral prompt |
| Typographic | 44 | Harmful text embedded in the image |
| Component | Recovery | Type |
|---|---|---|
| projector | 0.461 | Projector |
| layer_13_attn | 0.442 | Attention |
| layer_14_attn | 0.439 | Attention |
| layer_17_mlp | 0.366 | MLP |
| layer_16_attn | 0.325 | Attention |
| layer_19_mlp | 0.253 | MLP |
| Method | Genuine (%) | Failure (%) | Comply (%) |
|---|---|---|---|
| Baseline | 39.0 | 0.0 | 61.0 |
| Wanda 10% | 37.0 | 1.4 | 61.6 |
| Wanda 20% | 35.6 | 2.1 | 62.3 |
| Wanda 30% | 31.7 | 3.8 | 64.4 |
| Wanda 50% | 22.0 | 22.0 | 56.1 |
| NF4 4-bit | 33.9 | 1.9 | 64.2 |
| Ablation Target | Genuine (%) | Failure (%) | Comply (%) |
|---|---|---|---|
| 10 Random Trials | |||
| Projector only | 35.8 | 1.0 | 63.2 |
| Safety-critical (30) | 32.5 | 2.1 | 65.4 |
| Non-safety (51) | 27.7 | 12.6 | 59.7 |
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
| Hyperparameter | Value |
|---|---|
| Optimizer | AdamW ( ) |
| Weight Decay | |
| Learning rate | |
| Warmup | 5% of steps |
| Gradient Clipping | magnitude = 1.0 |
| Batch size | 32 |
| Model | Method | = | ||
|---|---|---|---|---|
| BLIP-VQA | INT4 | 0.40 | 0.96 | 0.53 |
| Wanda | 0.40 | 0.66 | 0.45 | |
| LLaVA | INT4 | 0.40 | 0.96 | 0.55 |
| Wanda | 0.40 | 0.55 | 0.45 | |
| Qwen3-VL-2B | INT4 | 0.22 | 0.50 | 0.22 |
| Wanda | 0.22 | 0.50 | 0.22 |
| Top- | Bottom- | |||||
|---|---|---|---|---|---|---|
| Model | Method | Module | IoU | IoU | ||
| BLIP-VQA | INT4 | Encoder | 0.74 | 0.67 | 0.21 | 0.28 |
| INT4 | Q-Former | 0.81 | 0.74 | 0.14 | 0.19 | |
| Wanda | Encoder | 0.73 | 0.62 | 0.53 | 0.69 | |
| Wanda | Q-Former | 0.68 | 0.66 | 0.46 | 0.62 | |
| LLaVA | INT4 | Encoder | 0.74 | 0.79 | 0.18 | 0.24 |
| 38 Safety Categories for VLMSafe-420 | ||
|---|---|---|
| child_safety | jb_child_safety | sabotage |
| cyber_crime | jb_cyber | self_harm |
| dangerous_substances | jb_drugs | sexual_content |
| drugs_substances | jb_fraud | social_engineering |
| environmental_misc | jb_harassment | theft_burglary |
| explosives_incendiary | jb_hate | typographic |