Spot Risks Before Speaking! Unraveling Safety Attention Heads in Large Vision-Language Models
On the map: Multimodal LLMs / vision-language models → MLLM jailbreaks and adversarial robustness
also in 1 more
Abstract (arXiv)
With the integration of an additional modality, large vision-language models (LVLMs) exhibit greater vulnerability to safety risks (e.g., jailbreaking) compared to their language-only predecessors. Although recent studies have devoted considerable effort to the post-hoc alignment of LVLMs, the inner safety mechanisms remain largely unexplored. In this paper, we discover that internal activations of LVLMs during the first token generation can effectively identify malicious prompts across different attacks. This inherent safety perception is governed by sparse attention heads, which we term ``safety heads." Further analysis reveals that these heads act as specialized shields against malicious prompts; ablating them leads to higher attack success rates, while the model's utility remains unaffected. By locating these safety heads and concatenating their activations, we construct a straightforward but powerful malicious prompt detector that integrates seamlessly into the generation process with minimal extra inference overhead. Despite its simple structure of a logistic regression model, the detector surprisingly exhibits strong zero-shot generalization capabilities. Experiments across various prompt-based attacks confirm the effectiveness of leveraging safety heads to protect LVLMs. Code is available at urlhttps://github.com/Ziwei-Zheng/SAHs.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Placed in MLLM jailbreaks and adversarial robustness, one of 16 directions in Multimodal LLMs / vision-language models. Builds on 35 of its 47 references that are in the map. First posted on arXiv 3 Jan 2025.
Builds on
35 of 47 references.
Closest ancestors · 11
Same direction, newest first
- 2024MultiTrust: A Comprehensive Benchmark Towards Trustworthy Multimodal Large Language Models11 Jun
- 2024JailBreakV: A Benchmark for Assessing the Robustness of MultiModal Large Language Models against Jailbreak Attacks3 Apr
- 2024Safety of Multimodal Large Language Models on Images and Texts1 Feb
- 2024Red Teaming Visual Language Models23 Jan
- 2024MLLM-Protector: Ensuring MLLM's Safety without Hurting Performance5 Jan
- 2023MM-SafetyBench: A Benchmark for Safety Evaluation of Multimodal Large Language Models29 Nov
- 2023FigStep: Jailbreaking Large Vision-Language Models via Typographic Visual Prompts9 Nov
- 2023How Robust is Google's Bard to Adversarial Image Attacks?21 Sep
- 2023Jailbreak in pieces: Compositional Adversarial Attacks on Multi-Modal Language Models26 Jul
- 2023Abusing Images and Sounds for Indirect Instruction Injection in Multi-Modal LLMs19 Jul
- 2023Visual Adversarial Examples Jailbreak Aligned Large Language Models22 Jun
Other references · 24
- 2023GPT-4 Technical Reportcited by 18,132
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2023Visual Instruction Tuningcited by 7,792
- 2022Flamingo: a Visual Language Model for Few-Shot Learningcited by 4,337
- 2023InstructBLIP: Towards General-purpose Vision-Language Models with Instruction Tuningcited by 2,855
- 2023Qwen-VL: A Versatile Vision-Language Model for Understanding, Localization, Text Reading, and Beyondcited by 2,179
- 2016Understanding intermediate layers using linear classifier probescited by 1,279
- 2023MM-Vet: Evaluating Large Multimodal Models for Integrated Capabilitiescited by 1,221
- 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,046
- 2023ShareGPT4V: Improving Large Multi-Modal Models with Better Captionscited by 1,000
12 more
- 2016Bag of Tricks for Efficient Text Classificationcited by 869
- 2023The Linear Representation Hypothesis and the Geometry of Large Language Modelscited by 679
- 2023MiniGPT-v2: large language model as a unified interface for vision-language multi-task learningcited by 617
- 2023mPLUG-Owl2: Revolutionizing Multi-modal Large Language Model with Modality Collaborationcited by 545
- 2023Emergent Linear Representations in World Models of Self-Supervised Sequence Modelscited by 313
- 2023Image Hijacks: Adversarial Images can Control Generative Models at Runtimecited by 165
- 2024Jailbreaking Attack against Multimodal Large Language Modelcited by 128
- 2023Mixture of Cluster-conditional LoRA Experts for Vision-language Instruction Tuningcited by 106
- 2023How Many Unicorns Are in This Image? A Safety Evaluation Benchmark for Vision LLMscited by 103
- 2023DRESS: Instructing Large Vision-Language Models to Align and Interact with Humans via Natural Language Feedbackcited by 99
- 2023Jailbreaking GPT-4V via Self-Adversarial Attacks with System Promptscited by 62
- 2023Misusing Tools in Large Language Models With Visual Adversarial Examplescited by 40
Built on by
Citing papers per year: 2025: 2; 2026: 5.
7 papers.
- 2025HiProbe-VAD: Video Anomaly Detection via Hidden States Probing in Tuning-Free Multimodal LLMscited by 8
- 2026SafeSeek: Universal Attribution of Safety Circuits in Language Modelscited by 4
- 2026Steering and Rectifying Latent Representation Manifolds in Frozen Multi-modal LLMs for Video Anomaly Detectioncited by 2
- 2025Security Tensors as a Cross-Modal Bridge: Extending Text-Aligned Safety to Vision in LVLMcited by 0
- 2026Beyond Standard Benchmarks: A Systematic Audit of Vision-Language Model's Robustness to Natural Semantic Variation Across Diverse Taskscited by 0
- 2026V-DEAL: Diagnosing Video Safety De-Calibration as an Understanding-Refusal Coupling Failurecited by 0
- 2026SafeEvo: Deciphering the Safety Alignment Mechanism and Evolution in Language Modelscited by 0
- 2026SafeEvo: Deciphering the Safety Alignment Mechanism and Evolution in Language Models7 Oct 2026
- 2026V-DEAL: Diagnosing Video Safety De-Calibration as an Understanding-Refusal Coupling Failure23 Jul 2026
- 2026Beyond Standard Benchmarks: A Systematic Audit of Vision-Language Model's Robustness to Natural Semantic Variation Across Diverse Tasks6 Apr 2026
- 2026SafeSeek: Universal Attribution of Safety Circuits in Language Models24 Mar 2026
- 2026Steering and Rectifying Latent Representation Manifolds in Frozen Multi-modal LLMs for Video Anomaly Detection27 Feb 2026
- 2025Security Tensors as a Cross-Modal Bridge: Extending Text-Aligned Safety to Vision in LVLM28 Jul 2025
- 2025HiProbe-VAD: Video Anomaly Detection via Hidden States Probing in Tuning-Free Multimodal LLMs23 Jul 2025
Similar, not cited
Close in wording, no citation either way
- 2025The Safety Reminder: A Soft Prompt to Reactivate Delayed Safety Awareness in Vision-Language Models
- 2025HiddenDetect: Detecting Jailbreak Attacks against Large Vision-Language Models via Monitoring Hidden States
- 2025Safety Alignment Should Be Made More Than Just A Few Attention Heads
- 2026Seeing No Evil: Blinding Large Vision-Language Models to Safety Instructions via Adversarial Attention Hijacking
- 2025Seeing the Threat: Vulnerabilities in Vision-Language Models to Adversarial Attack
- 2025A Survey of Safety on Large Vision-Language Models: Attacks, Defenses and Evaluations
- 2026Attention Is Where You Attack
- 2026Risk Awareness Injection: Calibrating Vision-Language Models for Safety without Compromising Utility