Localize and Neutralize: Gradient-guided Token Suppression against Visual Prompt Injection Attack
On the map: LLM safety and security → Vision-language and text-to-image safety
Abstract (arXiv)
Adversarial images pose a severe security threat to multimodal large language models through prompt injection. Existing defenses largely lack a principled understanding of the underlying mechanisms and struggle to balance efficiency and defense utility. In this work, we show that successful adversarial attacks do not rely on the entire image uniformly but instead depend on a small subset of critical image tokens. Based on this insight, we propose Gradient Token Masking (GTM), which localizes these tokens via gradient analysis and neutralizes them through masking. We find that attribution based on the first generated token's output probability fails when attacks preserve the predicted token. To overcome this, GTM utilizes the Hidden-State Gradient Norm score for generation-influence attribution under adversarial inputs. We prove that its ranking is consistent with that of the full adversarial loss gradient, providing a theoretical guarantee for accurate localization. Our method requires only a single forward-backward pass to identify and zero out a small number of high-scoring tokens, effectively disrupting the adversarial attack path. Extensive experiments on prompt injection and multimodal jailbreak attacks demonstrate that our approach reduces attack success rates (ASR) to near zero while preserving model utility with negligible computational overhead.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Vision-language and text-to-image safety, one of 12 directions in LLM safety and security. Builds on 41 of its 47 references that are in the map. First posted on arXiv 24 May 2026.
Builds on
41 of 47 references.
Closest ancestors · 14
Same direction, newest first
- 2026Toward Universal and Transferable Jailbreak Attacks on Vision-Language Models1 Feb
- 2025JPS: Jailbreak Multimodal Large Language Models with Collaborative Visual Perturbation and Textual Steering7 Aug
- 2025SafePTR: Token-Level Jailbreak Defense in Multimodal LLMs via Prune-then-Restore Mechanism2 Jul
- 2025Attention! Your Vision Language Model Could Be Maliciously Manipulated26 May
- 2024Steering Away from Harm: An Adaptive Approach to Defending Vision Language Model Against Jailbreaks23 Nov
- 2024Cross-modality Information Check for Detecting Jailbreaking in Multimodal Large Language Models31 Jul
- 2024A Survey of Attacks on Large Vision-Language Models: Resources, Advances, and Future Trends10 Jul
- 2024Jailbreak Vision Language Models via Bi-Modal Adversarial Prompt6 Jun
- 2024White-box Multimodal Jailbreaks Against Large Vision-Language Models28 May
- 2024Visual-RolePlay: Universal Jailbreak Attack on MultiModal Large Language Models via Role-playing Image Character25 May
- 2024Images are Achilles' Heel of Alignment: Exploiting Visual Vulnerabilities for Jailbreaking Multimodal Large Language Models14 Mar
- 2024AdaShield: Safeguarding Multimodal Large Language Models from Structure-based Attack via Adaptive Shield Prompting14 Mar
2 more
Other references · 27
- 2023Visual Instruction Tuningcited by 7,792
- 2024Qwen2-VL: Enhancing Vision-Language Model's Perception of the World at Any Resolutioncited by 4,151
- 2017Axiomatic Attribution for Deep Networkscited by 3,350
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 2,914
- 2023InstructBLIP: Towards General-purpose Vision-Language Models with Instruction Tuningcited by 2,855
- 2013Deep Inside Convolutional Networks: Visualising Image Classification Models and Saliency Mapscited by 2,348
- 2024HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusalcited by 1,330
- 2023MM-Vet: Evaluating Large Multimodal Models for Integrated Capabilitiescited by 1,221
- 2023MiniGPT-v2: large language model as a unified interface for vision-language multi-task learningcited by 617
- 2022Diffusion Models for Adversarial Purificationcited by 469
- 2019On Evaluating Adversarial Robustnesscited by 442
- 2021Generic Attention-model Explainability for Interpreting Bi-Modal and Encoder-Decoder Transformerscited by 316
15 more
- 2023MM-SafetyBench: A Benchmark for Safety Evaluation of Multimodal Large Language Modelscited by 255
- 2023Image Hijacks: Adversarial Images can Control Generative Models at Runtimecited by 165
- 2024Divide, Conquer and Combine: A Training-Free Framework for High-Resolution Image Perception in Multimodal Large Language Modelscited by 151
- 2023Abusing Images and Sounds for Indirect Instruction Injection in Multi-Modal LLMscited by 117
- 2024Eyes Closed, Safety On: Protecting Multimodal LLMs via Image-to-Text Transformationcited by 114
- 2025PromptArmor: Simple yet Effective Prompt Injection Defensescited by 98
- 2023VLATTACK: Multimodal Adversarial Attacks on Vision-Language Tasks via Pre-trained Modelscited by 66
- 2021Mind the box: l1-APGD for sparse adversarial attacks on image classifierscited by 50
- 2025VPI-Bench: Visual Prompt Injection Attacks for Computer-Use Agentscited by 42
- 2018Attacks Meet Interpretability: Attribute-steered Detection of Adversarial Samplescited by 38
- 2022XPrompt: Exploring the Extreme of Prompt Tuningcited by 30
- 2022A Tale of HodgeRank and Spectral Method: Target Attack Against Rank Aggregation Is the Fixed Point of Adversarial Gamecited by 16
- 2025Cannot See the Forest for the Trees: Invoking Heuristics and Biases to Elicit Irrational Choices of LLMscited by 8
- 2024Sequential Manipulation Against Rank Aggregation: Theory and Algorithmcited by 7
- 2025Diffusion-based Adversarial Purification from the Perspective of the Frequency Domaincited by 7
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025An Image Is Worth Ten Thousand Words: Verbose-Text Induction Attacks on VLMs
- 2024Enhancing Cross-Prompt Transferability in Vision-Language Models through Contextual Injection of Target Tokens
- 2026LocalAlign: Enabling Generalizable Prompt Injection Defense via Generation of Near-Target Adversarial Examples for Alignment Training
- 2026Feature-Aware Token Attack for Compression-Triggered Stealthy Failures in Large Vision-Language Models
- 2024Safeguarding Vision-Language Models Against Patched Visual Prompt Injectors
- 2024MaskPure: Improving Defense Against Text Adversaries with Stochastic Purification
- 2024Break the Visual Perception: Adversarial Attacks Targeting Encoded Visual Tokens of Large Vision-Language Models
- 2026Covert Visual Prompt Injection against Commercial Multimodal Large Language Models