Risk Awareness Injection: Calibrating Vision-Language Models for Safety without Compromising Utility
Mengxuan Wang, Yuxin Chen, Gang Xu, Tao He, Hongjie Jiang, Ming Li
TL;DR
Risk Awareness Injection (RAI) tackles safety vulnerabilities in vision-language models caused by Risk Signal Dilution during visual-text alignment. It presents a training-free, token-level safety calibration that constructs an Unsafe Prototype Subspace from unsafe keywords, localizes high-risk visual tokens via cosine similarity, and injects risk signals at the model's earliest layer (Layer 0) to boost safety cues without harming cross-modal reasoning. Across image and video benchmarks on multiple architectures, RAI achieves substantial reductions in Attack Success Rate (ASR) while preserving near-original utility in MM-E and MM-Vet tasks, and with modest inference overhead. The approach is lightweight, domain-robust, and easily generalizable, offering a scalable safety guardrail for multimodal systems without retraining.
Abstract
Vision language models (VLMs) extend the reasoning capabilities of large language models (LLMs) to cross-modal settings, yet remain highly vulnerable to multimodal jailbreak attacks. Existing defenses predominantly rely on safety fine-tuning or aggressive token manipulations, incurring substantial training costs or significantly degrading utility. Recent research shows that LLMs inherently recognize unsafe content in text, and the incorporation of visual inputs in VLMs frequently dilutes risk-related signals. Motivated by this, we propose Risk Awareness Injection (RAI), a lightweight and training-free framework for safety calibration that restores LLM-like risk recognition by amplifying unsafe signals in VLMs. Specifically, RAI constructs an Unsafe Prototype Subspace from language embeddings and performs targeted modulation on selected high-risk visual tokens, explicitly activating safety-critical signals within the cross-modal feature space. This modulation restores the model's LLM-like ability to detect unsafe content from visual inputs, while preserving the semantic integrity of original tokens for cross-modal reasoning. Extensive experiments across multiple jailbreak and utility benchmarks demonstrate that RAI substantially reduces attack success rate without compromising task performance.
