Skip to content

Study reveals the impact of Token-Pruning on VLM safety and proposes SAP as a mitigation mechanismUnderstanding and Mitigating Token-Pruning-Induced Vulnerabilities in VLMs

arXiv: Dangerous Capabilities & Safety Evals· arXiv:2610.09703· ICML 2026· Shuailong Wang, Xinyu Lyu, Shengming Yuan, Jingkuan Song, Heng Tao Shen, Lianli Gao·Indexed by this site · 2026-10-08· Originally publishedEvaluation

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

On LLaVA-1.5-7B, SAP† reduces FasterVLM's MM-Safety ASR from 72.02% to 10.32%.

Threat modelThe defender uses a white-box defense: it can access VLM internal representations and adds SAP as an inference-time defense on top of Token-Pruning. The attacker is black-box, constructing multimodal jailbreak inputs (harmful foreground with adversarial text), unaware of the pruning strategy or SAP. Malicious queries can be mixed with benign inputs.

Questions
Token pruning accelerates VLMs by removing redundant visual tokens, but the authors state its safety impact remains understudied. The core question is how different pruning strategies change safety behavior under multimodal jailbreaks, and whether safety can be improved while maintaining acceleration.
Methods
The authors attribute the risk to pruning-induced malicious amplification: after removing background tokens, attention collapses onto foreground malicious anchors. SAP identifies these anchors at inference time, swaps back a portion of the pruned benign tokens, and redistributes excess attention to them. The setting is white-box for the defender and black-box for the attacker.
Experiments and results
On LLaVA-1.5-7B, most 75% pruning increases average ASR; LLaVA-Mini (99.8% pruning) is 31.98%. With SAP, the average ASR of five pruning methods decreases, and FasterVLM+SAP† has an MM-Safety ASR of 10.32%.
Limitations and future work
The authors point out that SAP relies on white-box access to attention weights and is therefore limited to open-source architectures; the design and evaluation of adaptive attacks are listed as future work. Appendix I also states that BTR may theoretically fail when the pruning ratio is >95%. The experimental backbone is LLaVA-1.5-7B, and the paper does not report the number of samples per benchmark.
Experimental setupLLaVA-1.5-7B · MM-SafetyBench、FigStep et al. · ASR、Utility et al.
Evaluated models
LLaVA-1.5-7B
Benchmarks
MM-SafetyBenchFigStepJailBreakV-28KMMBenchMM-VetLLaVA-BenchScienceQA
Metrics
ASRUtilityLatencyFLOPsMemoryAttention Entropy
AI summaryThis study is the first to systematically evaluate the impact of Token-Pruning mechanisms on the safety of vision-language models, finding that most pruning strategies significantly reduce safety as the pruning ratio increases, while Query-based Compression, in contrast, improves model safety even under extreme pruning of up to 99.8%. The authors identify a pruning-induced malicious amplification mechanism, where after background tokens are removed, attention collapses onto a few retained malicious anchors in the foreground, amplifying their harmful semantics in jailbreak scenarios. To address this, they propose Safety-Aware Pruning (SAP), a plug-and-play inference-time method that mitigates the issue in three steps: identifying malicious anchors, restoring pruned benign tokens, and reallocating excessive attention from malicious anchors to benign tokens. Across three safety benchmarks and four utility benchmarks, SAP reduces attack success rate by up to 62% without sacrificing efficiency or utility.

This study is the first to systematically evaluate the impact of Token-Pruning mechanisms on the safety of vision-language models, finding that most pruning strategies significantly reduce safety as the pruning ratio increases, while Query-based Compression, in contrast, improves model safety even under extreme pruning of up to 99.8%. The authors identify a pruning-induced malicious amplification mechanism, where after background tokens are removed, attention collapses onto a few retained malicious anchors in the foreground, amplifying their harmful semantics in jailbreak scenarios. To address this, they propose Safety-Aware Pruning (SAP), a plug-and-play inference-time method that mitigates the issue in three steps: identifying malicious anchors, restoring pruned benign tokens, and reallocating excessive attention from malicious anchors to benign tokens. Across three safety benchmarks and four utility benchmarks, SAP reduces attack success rate by up to 62% without sacrificing efficiency or utility.

Related events and news

1 events · 0 news mentions

  • This event's paper

    Token剪枝加剧VLM越狱脆弱性

    研究揭示多数 Token 剪枝策略降低 VLM 安全性,并提出推理期即插即用的 SAP 缓解机制。

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Token pruning may amplify VLM jailbreak risk; the authors use inference-time SAP to redistribute malicious and benign attention.

    How token pruning changes safety behavior under multimodal jailbreaks when removing visual tokens to accelerate VLMs, and whether safety can be improved without sacrificing acceleration.

    • Scenario: The authors state that VLM inference costs hinder scalable deployment, and token pruning has become a major acceleration route, but its safety impact remains understudied. Multimodal jailbreaks make VLM safety more urgent.
    • Current gaps: The introduction states that parameter pruning can amplify safety risks in jailbreak settings (Wei et al., 2024; Awal et al., 2025; Li et al., 2025; Zhao et al., 2024). The authors state it is unclear whether token pruning creates similar vulnerabilities in VLMs.
    • Core hypothesis: The authors propose Pruning-Induced Malicious Amplification: removing background tokens breaks attention balance, causing attention to collapse onto the remaining foreground malicious anchors, amplifying toxic semantics under jailbreak conditions.
    • What this paper proposes: The authors state they conduct a safety evaluation of eight pruning strategies across three categories, and propose an inference-time, plug-and-play Safety-Aware Pruning (SAP). They claim this is the first comprehensive safety evaluation of token pruning mechanisms.
    • Threat model:
      • Defender: white-box defense. Full access to VLM internal representations; the authors state this is a prerequisite for all token pruning methods. SAP is added as an inference-time defense on top of pruning.
      • Attacker: black-box. Constructs multimodal jailbreak inputs (harmful foregrounds from generative models or typography, paired with adversarial text), unaware of the pruning strategy or SAP.
      • Victim system: A VLM that accepts visual sequences and text instructions. Malicious queries can be mixed with benign inputs.
      • Success criterion: The model follows the malicious instruction rather than refusing, counted as attack success, measured by ASR.
  2. What related research exists?

    Related work mainly covers multimodal jailbreaks and three categories of token pruning; the authors state that the safety impact of pruning remains understudied.
    • Multimodal jailbreak: Liu et al. (2023b)'s MM-SafetyBench shows that safety-aligned LLM backbones can still be induced to produce harmful content when connected to vision. Luo et al. (2024)'s JailBreakV-28K emphasizes the transferability of text jailbreaks combined with visual inputs. Gong et al. (2025)'s FigStep shows that embedding harmful instructions in images can bypass defenses. The introduction also cites Qi et al. (2024) for visual adversarial examples, and Yuan et al. (2022), Sun et al. (2024).
    • Three categories of token pruning: Vision-centric methods use internal attention within the visual sequence to discard spatially redundant regions (Zhang et al., 2024; Shang et al., 2025), and use ViT hierarchical structure to locate semantic anchors (Liu et al., 2025). Text-guided methods filter visual tokens by instruction relevance (Song et al., 2024). Query-based compression uses learnable queries to compress visual context into hidden representations (Hu et al., 2024).
    • Parameter pruning and safety: The introduction uses Wei et al. (2024) and others to show that parameter pruning amplifies risk in jailbreak settings, and explicitly states that this literature does not address whether token pruning behaves similarly. The authors do not frame these works as token pruning baselines in the Related Work.
    • Baseline methods and benchmarks: Safety evaluation compares against Original, with pruning methods Random, TRIM, FitPrune, SparseVLM, HiPrune, PruMerge, FasterVLM, LLaVA-MQT, LLaVA-Mini. SAP main experiments use TRIM, HiPrune, PruMerge, FasterVLM, FitPrune among these. Safety benchmarks are MM-SafetyBench, FigStep, JailBreakV-28K; utility benchmarks are MMBench, MM-Vet, LLaVA-Bench, SQA. External guardrail comparison is LLaVAGuard (Helff et al., 2025).

    The authors distinguish this paper from the above work in that the safety implications of token pruning remain understudied; the authors claim to evaluate how pruning reshapes safety behavior and provide a mitigation method that does not sacrifice acceleration.

  3. How does the paper address this problem?

    SAP identifies malicious anchors after pruning, swaps in benign tokens, and redistributes excess attention to these tokens.

    The authors attribute post-pruning jailbreak risk to attention imbalance and use inference-time Safety-Aware Pruning (SAP) to rebuild a benign buffer without increasing the number of retained tokens.

    Pruning Settings and Three Scoring Categories

    • The input visual sequence is V. The goal is to retain a subset Vkeep of size K much smaller than the original length while maintaining inference utility. Selection is done by an importance function Φ and a threshold determined by the pruning rate.
    • Vision-Centric: Context comes from the visual sequence itself, scoring by attention among visual tokens. Examples in the text are HiPrune, FasterVLM; Table 1 also classifies PruMerge into this category.
    • Text-Guided: Context is the text instruction, scoring by attention of text queries to visual tokens. Examples are SparseVLM, TRIM; Table 1 also classifies FitPrune into this category.
    • Query-based Compression: Context is learnable queries, aggregating visual features via cross-attention. Examples are LLaVA-Mini and MQT-LLaVA (also written as LLaVA-MQT in the text).

    Formalization of Malicious Amplification

    • The authors divide visual tokens into a malicious subspace M and a safety buffer B. After normalizing attention only over visual tokens, they define malicious semantic density ρ=S/(S+N) using malicious energy S and buffer energy N, i.e., the proportion of malicious energy in total visual energy.
    • The authors state that standard pruning discards background buffer by importance, making N approach 0 while S remains relatively unchanged, so ρ approaches 1 and attention flows back to malicious anchors. Random pruning shrinks S and N proportionally in expectation, so the authors state density remains approximately unchanged.
    • Attention entropy is defined on the softmax cross-attention of pruned visual tokens. The temperature experiment only scales attention of image tokens, not text token attention.

    SAP's Three Steps

    • Malicious Anchor Identification: For each retained visual token, multiply the average attention from text instruction tokens to it by its cosine deviation from the safety direction vector vsafe. The authors state that SafePTR only identifies harmful tokens by representation deviation, while here both "having malicious semantics" and "receiving more attention" are required. The top-m by this score are malicious anchors. vsafe is obtained by a forward pass of a safety instruction to get hidden states at each layer, computed once and reused; the text example is an instruction requiring safe and accurate answers. Appendix G gives different phrasings, not listed here.
    • Benign Token Restoration: Uniformly sample k tokens from the discarded set; then by the original pruning importance (or random if no Φ), find the lowest-scoring k in the retained set and replace them. The active set length after replacement equals the original retained set. In main experiments, k is 10% of the retained set.
    • Attention Reallocation: At decoding step t, for malicious anchors, multiply attention by (1-λ), i.e., Ât[vi]=(1−λ)At[vi]; the subtracted mass is uniformly added to restored benign tokens, other tokens unchanged. The authors state total attention mass is unchanged, so softmax need not be recomputed. Per-head, in all layers, after softmax, before value aggregation.

    Implementation Parameters and Theoretical Propositions

    • Main experiments uniformly use 75% pruning, m=10, λ=0.6. SAP requires no training, uses precomputed vsafe, runs on a single RTX 4090. Default greedy decoding, temperature=0, seed 42.
    • Section 5 uses three propositions as theoretical motivation: Top-K pruning shrinks the attention support set and reduces Shannon entropy; as buffer energy approaches 0, the KL divergence between the pruned model's output and the original safe-aligned output tends to increase; writing SAP as a mixture of pruning and restoration distributions gives an entropy lower bound by concavity. The authors state this characterizes how pruning lowers entropy and SAP raises the entropy lower bound, rather than being standalone empirical results.
  4. What experiments did the paper conduct?

    On LLaVA-1.5-7B, after adding SAP to five pruning methods, average ASR is lower than the corresponding pruning baselines.

    Experimental Setup

    • Models: The backbone for all experiments is LLaVA-1.5-7B. Table 1 evaluates Original, Random, and TRIM, FitPrune, SparseVLM, HiPrune, PruMerge, FasterVLM, LLaVA-MQT, LLaVA-Mini. SAP main comparisons are TRIM, HiPrune, PruMerge, FasterVLM, FitPrune. External guardrail is LLaVAGuard.
    • Benchmarks: Safety: MM-SafetyBench, FigStep, JailBreakV-28K; Utility: MMBench, MM-Vet, LLaVA-Bench, SQA. The paper does not report the number of evaluation items per benchmark.
    • Metrics: ASR is defined as the proportion of following malicious instructions rather than refusing. Utility is task scores and the average of four benchmarks. Efficiency is latency, FLOPs, and peak memory. Mechanism analysis uses attention entropy.
    • Evaluation: MM-SafetyBench uses GPT-4o-mini, covering 13 risk scenarios, with labels Safe, Unsafe, or Refusal. FigStep first does rule-based refusal keyword matching, then uses GPT-4o-mini to check whether the formatting instruction was executed. JailBreakV-28K uses Llama-Guard, giving binary labels for 16 harm categories. Appendix A states these protocols align with human safety judgments, without giving agreement numbers.
    • Run settings: SAP main experiments uniformly use 75% pruning, m=10, λ=0.6, BTR restoration amount is 10% of the retained set. Default greedy, temperature=0, seed 42, single RTX 4090. Appendix F additionally uses nucleus sampling (temperature=0.7), with 5 seeds for each decoding.
    • Methods not in Table 2: SparseVLM, LLaVA-MQT, LLaVA-Mini have pruning safety numbers, but the paper does not report their results with SAP added.

    Main Results

    According to Table 2, LLaVA-1.5-7B, pruning rate 75%. The table below lists only Original, the highest-ASR FasterVLM, FitPrune, and TRIM used later; HiPrune, PruMerge, and Random are not listed.

    Swipe horizontally to read the table

    MethodMM-SafetyFigStepJailBreakVAverage ASRAverage Utility
    Original59.3751.6051.0554.0164.46
    FasterVLM72.0263.0054.6463.2264.28
    FasterVLM+SAP54.5641.8046.4347.6063.98
    FitPrune71.4361.2056.7963.1464.26
    FitPrune+SAP56.3546.8042.5048.5562.91
    TRIM65.8762.2058.9362.3363.84
    TRIM+SAP52.7847.8050.0050.1963.45
    • The authors state that adding SAP to the five pruning methods reduces average ASR, citing TRIM from 62.33 to 50.19 and utility from 63.84 to 63.45. HiPrune not listed above goes from 59.83 to 48.58, PruMerge from 61.88 to 44.78, Random is 52.73 (Table 2).
    • Utility does not increase in every row. FitPrune+SAP average utility drops from 64.26 to 62.91, the largest marked decrease in Table 2 (relative change ↓2.1%). The authors still summarize overall as minimal utility trade-off.
    • In Table 1, at 75% pruning, Text-Guided average ASR is higher than HiPrune (59.83) in Vision-Centric, but the highest single method is FasterVLM at 63.22, not Text-Guided. The authors state Text-Guided has the heaviest average side effects, citing SparseVLM and TRIM with ASR increases of about 10%; Table 1 corresponding numbers are 62.73 and 62.33, Original is 54.01.

    Pruning Paradigms and Mechanism Interventions

    • Query-based: In Table 1, LLaVA-Mini at 99.8% pruning has average ASR 31.98, utility 64.60; LLaVA-MQT at 99.3% has ASR 46.84, utility 57.45, lower than Original utility 64.46. The authors state this type of compression is opposite to the other two, calling the phenomenon counterintuitive.
    • Temperature and deletion: Based on Fig. 5, the authors state that when τ decreases from 1.9 to 1.0, TRIM's attention entropy drops from 2.8 to 2.3, MM-SafetyBench ASR rises from 58% to 65%, and SQA accuracy ranges between 60% and 69%. In Table 9, after deleting foreground, MM-SafetyBench ASR goes from 59.37 to 50.00, SQA from 69.56 to 65.25; after deleting background, ASR is 65.87, SQA 69.46. The authors state malicious semantics are mainly in the foreground, with background acting as a safety buffer.
    • Entropy and random pruning: In Table 10, Original entropy 3.39, ASR 54.01; FitPrune entropy 2.21, ASR 63.14; Random entropy 3.20, ASR 52.73. The authors state that methods with lower entropy generally have higher ASR. Table 11 gives Random ASR on MM-SafetyBench: 50% is 60.12, 80% is 55.56, 99% is 34.92. The text states that up to 80% sparsity, it is about 60% and statistically stable.

    External Guardrails, Text Extension, and Efficiency

    • LLaVAGuard: Table 3 compares on TRIM. LLaVAGuard's MM-Safety/FigStep are 51.59/49.40, latency 160.09 ms; SAP is 52.78/47.80, latency 57.19 ms. The authors state safety is comparable, latency about 3x lower. Combined they are 41.07/35.80, latency 162.44 ms; the authors state they are orthogonal, and the combination is strongest.
    • SAP†: Table 4 applies the same MAI, BTR, AR to text tokens. FasterVLM's MM-Safety goes from 72.02 to visual SAP's 54.56, then to SAP†'s 10.32; FigStep and JailBreakV are 12.60 and 18.57. TRIM+SAP† is 20.04, 8.20, 15.36. The authors state a 62% reduction (from 72.02 to 10.32), and that the principle is modality-agnostic.
    • Efficiency and figures: Table 8: Original latency 94.29 ms, FLOPs 8.79 T, memory 14.66 GB; TRIM is 55.90 ms, 2.22 T, 14.51 GB; TRIM+SAP is 57.19 ms, 2.22 T, 14.53 GB. Figure 7 labels TRIM entropy as 2.678 and 2.509, TRIM+SAP as 2.927 and 3.192. The authors state SAP increases entropy, mitigating attention collapse.

    Other Ablations and Analyses

    • BTR/AR (Table 5, TRIM): BTR only: MM-Safety 63.89, FigStep 59.20; AR only: 53.57, 50.40, MMBench from 66.92 to 63.23; both together: 52.78, 47.80, MMBench 67.27.
    • Anchor count m (Table 6): m=10: FigStep 47.80, MMBench 67.27; m=30: MM-Safety 47.42, FigStep 42.80, MMBench 59.02.
    • Pruning rate (Table 7, TRIM+SAP): 50%: MM-Safety 51.59, FigStep 49.60, SQA 69.76; 90%: 50.40, 46.40, 69.21. TRIM alone in the table is 65.87, 62.20, 69.46.
    • Layers (Table 12): Shallow 0–15: MM-Safety 60.71, FigStep 58.60; Deep 16–31: 56.15, 56.00; All layers: 52.78, 47.80.
    • Heads (Table 13): Cross-head averaging MM-Safety is 67.26, higher than TRIM baseline 65.87; per-head is 52.78, FigStep 47.80.
    • Safety instructions and decoding: Table 15 four instructions MM-Safety are 52.78, 53.57, 50.99, 54.17; the authors state maximum ASR deviation is 3.0%. In Appendix F, TRIM+SAP greedy is 53.2±0.4 and 48.1±0.5, sampling is 52.9±0.6 and 48.6±0.7, the authors state standard deviation does not exceed 0.7%.
  5. What are some points that can be further explored?

    The authors note that SAP requires white-box attention and lists adaptive attack evaluation as future work.

    Limitations and Future Directions Noted by the Authors

    • White-box access: The Impact Statement states that SAP relies on white-box access to attention weights, limiting applicability to open-source architectures. Appendix I calls this a limitation discussed in the Impact Statement.
    • Adaptive attacks: Appendix I states that an attacker aware of SAP could in principle craft inputs targeting restored tokens and malicious anchors; designing and evaluating such adaptive attacks remains future work.
    • BTR boundary: Appendix I states that when pruning ratio >95%, the retained set is too small, and restoring background tokens could theoretically crowd out important foreground anchors. The authors also state this scenario would not occur in practice because Fig. 3 shows such ratios cause utility collapse (the authors state a drop of about 40%), making speedup itself meaningless.

    Experimental Coverage

    • The tested backbone is LLaVA-1.5-7B. Table 1 reports eight pruning strategies plus Random and Original; Table 2's SAP main comparisons are TRIM, HiPrune, PruMerge, FasterVLM, FitPrune, at 75% pruning.
    • Safety benchmarks are MM-SafetyBench, FigStep, JailBreakV-28K; utility benchmarks are MMBench, MM-Vet, LLaVA-Bench, SQA. The paper does not report sample counts per benchmark.
    • Evaluation models are GPT-4o-mini and Llama-Guard; FigStep additionally has a rule-based keyword stage. Appendix A states evaluations align with human safety judgments, but the paper does not report agreement values.
    • Main experiments are greedy, temperature=0, seed 42. Appendix F reports greedy and sampling with temperature=0.7, each with 5 seeds, means and standard deviations.
    • External comparisons include LLaVAGuard and SAP† on text tokens. Efficiency is reported on a single RTX 4090 with latency, FLOPs, and memory (Table 8). Appendix I lists design and evaluation of adaptive attacks as future work.
  6. Summarize the main content of the paper

    After pruning removes background tokens, attention collapses onto malicious foreground; SAP uses restoration and reallocation to reduce jailbreak ASR.

    This work evaluates how visual token pruning changes VLM behavior under multimodal jailbreaks and provides an inference-time defense, SAP.

    • Problem: Pruning can speed up, but the authors state that safety consequences are understudied. The defender is white-box, adding SAP on top of pruning; the attacker is black-box, submitting inputs with harmful foreground plus adversarial text, unaware of pruning or SAP.
    • Mechanism: The authors state that the risk is not simply fewer tokens, but that after the background buffer is biasedly removed, attention collapses onto foreground malicious anchors. Query-based methods fuse various tokens into learnable queries, which the authors state leads to the opposite safety trend.
    • Method: SAP simultaneously considers attention and deviation from a safety vector for retained tokens to select malicious anchors; replaces the lowest-scoring portion of the retained set with pruned background tokens, keeping length unchanged; then reallocates attention from anchors to restored tokens by a coefficient. Main setting: 75% pruning, m=10, λ=0.6.
    • Results: On LLaVA-1.5-7B, Original average ASR across three benchmarks is 54.01; 75% FasterVLM is 63.22, TRIM is 62.33 (Table 1, Table 2). LLaVA-Mini at 99.8% pruning is 31.98 (Table 1). After adding visual SAP to five pruning methods, average ASR is lower than corresponding baselines; TRIM+SAP is 50.19 (Table 2). FasterVLM+SAP† MM-Safety ASR is 10.32, which the authors state is a 62% reduction relative to 72.02 (Table 4). TRIM+SAP latency is 57.19 ms, FLOPs remain 2.22 T (Table 8).
    • Authors' conclusion: The authors state that pruning-induced safety risks stem from an imbalance between malicious and benign attention after pruning; restoring this balance can counteract malicious amplification. The authors state that SAP mitigates this vulnerability while preserving the speedup of Token-Pruning with minimal utility trade-off.

Related papers

Show 3 more papers
Read originalICML 2026