Understanding and Mitigating Token-Pruning-Induced Vulnerabilities in VLMs

Shuailong Wang, Xinyu Lyu, Shengming Yuan, Jingkuan Song, Heng Tao Shen +1 more
10/7/2026
cs.CRcs.LG

No official code found. Best implementation: liongliong/SAP (7 stars, MIT, last commit 2026-06-12).

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.

View on arXivView PDF

Code Implementations(1)

liongliong/SAPCommunity75%
MIT

Official implementation of "Understanding and Mitigating Token-Pruning-Induced Vulnerabilities in VLMs" (ICML 2026).

70May 27, 20264 months agoMIT

Similar Papers

Cite this paper

@article{wang2026understanding,
  title  = {Understanding and Mitigating Token-Pruning-Induced Vulnerabilities in VLMs},
  author = {Shuailong Wang and Xinyu Lyu and Shengming Yuan and Jingkuan Song and Heng Tao Shen and Lianli Gao},
  year   = {2026},
  eprint = {2610.09703},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.09703v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.09703.svg)](https://codeofpaper.com/paper/2610.09703)

Discussion