Abstract
Recent studies reveal that vision-language models (VLMs) become more susceptible to harmful requests and jailbreak attacks after integrating the vision modality, exhibiting greater vulnerability than their text-only LLM backbones. To uncover the root cause of this phenomenon, we conduct an in-depth analysis and identify a key issue: multimodal inputs introduce a modality-induced activation shift toward a "safer" direction compared to their text-only counterparts, leading VLMs to systematically overestimate the safety of harmful inputs. We refer to this issue as safety perception distortion. To mitigate such distortion, we propose Activation Shift Disentanglement and Calibration (ShiftDC), a training-free method that decomposes and calibrates the modality-induced activation shift to reduce the impact of modality on safety. By isolating and removing the safety-relevant component, ShiftDC restores the inherent safety alignment of the LLM backbone while preserving the vision-language capabilities of VLMs. Empirical results demonstrate that ShiftDC significantly enhances alignment performance on safety benchmarks without impairing model utility.
Introduction
While Large Language Models (LLMs) have achieved significant robustness against harmful prompts through extensive safety alignment, their multimodal descendants—Vision-Language Models (VLMs)—remain surprisingly fragile. A common vulnerability involves "jailbreaking" the model by embedding harmful instructions within images or pairing a benign-looking question with a dangerous visual context. For instance, a VLM might refuse the text query "How do I make a bomb?" but provide instructions when presented with an image of explosive components and the query "How do I make this?"
Existing defenses often rely on expensive safety fine-tuning or defensive prompting. However, fine-tuning requires massive datasets and compute, while defensive prompting frequently leads to "over-cautiousness," where the model refuses benign requests. This research identifies the underlying cause of this vulnerability—safety perception distortion—and introduces a training-free solution called ShiftDC.
The Phenomenon: Safety Perception Distortion
The core discovery of this work is that the integration of visual input causes a systematic shift in the model's internal activations. In text-only mode, safe and unsafe queries are typically linearly separable within the activation space of the LLM backbone. However, when an image is introduced, the resulting activation shifts toward the "safe" side of the decision boundary, regardless of the actual content's harm.
This "modality-induced activation shift" effectively blinds the model's internal safety mechanisms. Because the activations for harmful multimodal inputs are pushed into the region the model associates with safe content, the VLM underestimates the risk, leading to a failure to trigger refusal responses. Interestingly, even blank images can trigger this shift, suggesting the vulnerability is inherent to the vision-language integration architecture rather than specific visual triggers.
Methodology: ShiftDC
To rectify this distortion without the need for retraining, we propose Activation Shift Disentanglement and Calibration (ShiftDC). This inference-time method functions by "re-anchoring" the multimodal activations back into a space where the LLM backbone's existing safety guardrails can operate effectively.
The ShiftDC pipeline consists of three primary stages:
- Isolating the Safety Direction: By analyzing the activations of a small set of safe versus unsafe text-only queries, we identify a specific "safety-relevant" vector in the model's activation space.
- Disentangling the Modality Shift: During inference, the model processes the image-text query and a generated text-only counterpart (where the image is replaced by a caption). The difference between these two activation states represents the modality shift.
- Calibration: The modality shift is projected onto the safety-relevant vector. ShiftDC then subtracts only the component of the shift that distorts safety perception, while leaving the safety-irrelevant visual information—such as color, texture, and spatial arrangement—intact.
Experimental Evaluation
We evaluated ShiftDC across five VLM architectures, including LLaVA-1.5, MiniGPT-4, and Qwen-VL, using a variety of safety and utility benchmarks.
Safety Performance
On MM-SafetyBench, which covers 13 harmful scenarios, ShiftDC demonstrated a marked reduction in Attack Success Rate (ASR). For LLaVA-1.5-7B, the ASR in complex "SD+OCR" (Stable Diffusion + Optical Character Recognition) attack scenarios dropped from 70.5% to 43.6%. The method also proved effective against typographic attacks in the FigStep benchmark, where harmful instructions are hidden within images as text.
Model Utility
A critical requirement for any safety intervention is the preservation of model helpfulness. Using MME and MM-Vet benchmarks, we confirmed that ShiftDC maintains the model's general visual reasoning and knowledge capabilities. Unlike defensive prompting, which often degrades performance on benign tasks, ShiftDC occasionally improved utility scores by reducing unnecessary refusals.
Discussion and Limitations
ShiftDC offers a highly efficient, training-free defense, but it is not without limitations. Its effectiveness is partially dependent on the quality of the generated captions; if a caption fails to capture the harmful context of an image, the calibration may be less precise. Additionally, the method requires a small initial set of harmful examples to define the safety direction vector, and the optimal layers for calibration currently require manual selection (typically the middle layers of the model).
Conclusion
Safety perception distortion represents a fundamental challenge in the development of robust VLMs. By identifying that visual inputs systematically bias model activations toward a "safe" interpretation, we can address the root cause of multimodal jailbreaks. ShiftDC provides a scalable, inference-only mechanism to restore the inherent safety alignment of LLM backbones, ensuring that VLMs remain both helpful and harmless across modalities.
Summary updated