Manuscript Offprint

arXiv:2610.09703

Understanding and Mitigating Token-Pruning-Induced Vulnerabilities in VLMs

Shuailong Wang, Xinyu Lyu, Shengming Yuan, Jingkuan Song, Heng Tao Shen, Lianli Gao

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Token-Pruning accelerates Vision-Language Models by removing redundant visual tokens, yet its safety implications remain underexplored. In this work, we present the first comprehensive safety evaluation of Token-Pruning mechanisms and find that: most pruning strategies significantly degrade safety as pruning ratios increase, whereas Query-based Compression shows the opposite, with extreme pruning (up to 99.8%), unexpectedly improves model safety. This sharp contrast prompts a key question: How do different Token-Pruning strategies reshape model safety behavior, and is it possible to enhance safety without sacrificing acceleration? To answer this, we identify an unrecognized mechanism, termed Pruning-Induced Malicious Amplification, where removal of background tokens triggers a side effect: forcing the model's attention to collapse onto a few retained malicious anchors within the foreground, inadvertently amplifying their toxic semantics under jailbreak. To address that, we propose an inference-time and plug-and-play Safety-Aware Pruning (SAP) mechanism that counteracts such dominance via three steps: (1) identifying malicious anchors, (2) restoring pruned benign tokens, and (3) reallocating excessive attention from malicious anchors to benign tokens. Extensive experiments across three safety and four utility benchmarks demonstrate that SAP mitigates pruning-induced vulnerabilities, i.e., reducing ASR by up to 62%, without compromising efficiency or utility.

1. Introduction

Vision-Language Models (VLMs) (Alayrac et al., 2022; OpenAI, 2023; Chen et al., 2024; Lu et al., 2024; Liu et al., 2023a; Bai et al., 2023; Zhu et al., 2023) excel across diverse tasks, but their high inference costs hinder scalable deployment. To improve efficiency, Token-Pruning has emerged as a key strategy, typically categorized into three paradigms: vision-centric selection based on vision anchors (Zhang et al., 2024; Shang et al., 2025; Liu et al., 2025), text-guided selection using instruction-conditioned attention (Song et al., 2024; Zhang et al., 2025b; Chen et al., 2025b), and Query-based Compression via learnable queries (Hu et al., 2024; Zhang et al., 2025a; Li et al., 2024). Despite significant efficiency gains, the safety implications of Token-Pruning remain largely unexplored.

Meanwhile, multimodal jailbreak attacks have made VLM safety an increasingly pressing concern (Liu et al., 2023b; Luo et al., 2024; Gong et al., 2025; Qi et al., 2024). Recent studies on parameter pruning show that pruning can markedly amplify safety risks under jailbreak settings (Wei et al., 2024; Awal et al., 2025; Li et al., 2025; Zhao et al., 2024). Yet it remains unclear whether token pruning induces similar vulnerabilities in VLMs. This gap motivates our central question: Does Token-Pruning introduce new safety risks in Vision-Language Models?

In this work, we present the first comprehensive safety evaluation of Token-Pruning under multimodal jailbreak settings as shown in Fig. 1, benchmarking eight representative strategies across three multimodal safety benchmarks (MM-Safety, FigStep, and JailBreakV) and revealing three key findings: First, Token-Pruning strategies lead to noticeable safety degradation, with Text-Guided Pruning exhibiting the most severe adverse effects on average (e.g., SparseVLM and TRIM, about 10% increase in ASR). Second, higher pruning ratios (from 0% to 80%) increase attack vulnerability before utility degradation emerges, indicating that safety degradation is not simply a byproduct of reduced model capacity. Third, in contrast, Query-based Compression at extremely high pruning ratios (up to 99.8%) unexpectedly improves model safety, demonstrating that maintaining, and even enhancing, model safety under Token-Pruning is feasible rather than an inherent trade-off of acceleration.

Beyond these observations, we delve into a fundamental

1^{1}University of Electronic Science and Technology of China, Chengdu, China 2^{2}Southwestern University of Finance and Economics, Chengdu, China 3^{3}Tongji University, Shanghai, China 4^{4}Shanghai Innovation Institute, Shanghai, China. Correspondence to: Xinyu Lyu xinyulyu68@gmail.com.

Proceedings of the 43rd43^{rd} International Conference on Machine Learning, Seoul, South Korea. PMLR 306, 2026. Copyright 2026 by the author(s).

Figure

Figure 1. Comparison of Attack Success Rate (ASR) across Token-Pruning methods. Most methods increase vulnerability to jailbreak attacks, while query-based ones improve safety.

question: How do different Token-Pruning strategies reshape model safety behavior, and is it possible to enhance safety without sacrificing acceleration? We attribute this phenomenon to a previously overlooked mechanism, termed Pruning-Induced Malicious Amplification. Intuitively, background visual tokens typically carry benign contextual information and serve as a semantic buffer that maintains an attention equilibrium between benign and potentially malicious content. However, Token-Pruning strategies primarily discard these background tokens, disrupting this equilibrium and forcing attention to collapse onto the retained foreground tokens. Since some of these foreground tokens encode malicious semantics (Chen et al., 2025a), the redistributed attention disproportionately amplifies their influence. When combined with jailbreak prompts, such amplification enables malicious semantics to hijack the generation process. In sharp contrast, Query-based Compression (e.g., LLaVA-MQT and LLaVA-Mini) reshapes post-pruning attention toward a balanced distribution by fusing malicious and benign tokens into learnable queries, thereby improving safety behavior. This analysis yields a key insight: pruning-induced safety risks stem from imbalanced post-pruning attention allocation; restoring a balanced attention distribution between malicious and benign semantics can effectively counteract Pruning-Induced Malicious Amplification.

Motivated by this insight, we propose Safety-Aware Pruning (SAP), a plug-and-play mechanism for mitigating pruning-induced safety risks. SAP operates in three stages: (i) Malicious Anchor Identification: identifying foreground tokens that carry malicious semantics, (ii) Benign Token Restoration: selectively restoring pruned benign tokens from the background to construct a semantic buffer, and (iii) Attention Reallocation: reallocating excessive attention from malicious anchors to the restored benign tokens, thereby diluting the concentrated malicious influence. This design mitigates pruning-induced safety risks while preserving

Figure

Figure 2. Overall safety–utility comparison across benchmarks. Radar charts compare Token-Pruning methods with and without SAP on safety and utility benchmarks. SAP enhances safety while maintaining utility.

ing the efficiency gains of Token-Pruning. Extensive experiments demonstrate that SAP effectively mitigates pruning-induced safety degradation across 5 representative Token-Pruning methods (i.e., TRIM, HiPrune, PruMerge, FasterVLM, and FitPrune) on three multimodal safety benchmarks (i.e., MM-Safety, FigStep and JailBreakV), reducing jailbreak ASR by up to 62%, without losing efficiency gains (FLOPs and Latency) or compromising task performance on MMBench (Liu et al., 2024), MM-Vet (Yu et al., 2024), LLaVA-Bench (Liu et al., 2023a) and SQA (Lu et al., 2022) benchmarks, as summarized in Fig. 2. In summary, our contributions are threefold:

① We conduct the first analysis of how Token-Pruning strategies reshape VLM safety under multimodal jail-break settings.

② Building on this analysis, we propose Safety-Aware Pruning, a plug-and-play and inference-time method that mitigates pruning-induced safety degradation while preserving acceleration.

③ Extensive experiments on five pruning strategies across three safety benchmarks show that SAP improves safety without sacrificing utility or efficiency.

References (44)