Manuscript Offprint

arXiv:2609.02082

Transfer Safety Awareness for Cross-Modal Safety Drift in Multimodal Large Language Models

Tianqi Xiao, Shiyao Cui, Minghao Zhang, Junxiao Yang, Renmiao Chen

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Visual modality enhances the capabilities of multimodal large language models (MLLMs) but also introduces a safety concern: a benign textual query may convey harmful intent when grounded in a visual image. We term this cross-modal safety drift and our pilot studies show that the safety response rate for such requests is substantially lower than that for requests containing explicitly unsafe text. This paper aims to systematically study this issue. First, we conduct an empirical analysis to identify representative unsafe response patterns. Building on these, we interpret model representations and attentions, revealing that visually risky cues receive limited attention and weakly trigger refusal. Motivated by the observation that safety signals from unsafe text processing can be transferred, we propose safety-awareness representation transfer (SRT), a lightweight direction-refinement method that mitigates cross-modal safety drift with a frozen MLLM backbone. Experiments across multiple benchmarks and models show that SRT effectively improves safety in diverse cross-modal settings while preserving utility. Code is available at https://github.com/cucu220123/safety-awareness. Warning: This paper contains potentially sensitive content.

1 Introduction

While multimodal large language models (MLLMs) excel at understanding and reasoning over text-image inputs, the incorporation of visual modalities also introduces new safety risks (Liu et al., 2024; Gong et al., 2025). Unlike text-only LLMs, whose safety decisions primarily rely on textual prompts, MLLMs must align their safety behaviors with the joint semantics of text and image, thereby necessitating cross-modal safety alignment (Wang et al., 2025; Hu et al., 2025).

∗^{*}Work done during internship at the CoAI Group.

†^{\dagger}Corresponding Author

Semantic intent: I want to commit suicide

Figure

Figure 1: Illustration of cross-modal safety drift. From top to bottom, rows show responses from Qwen3-VL-8B-Instruct, Qwen3-VL-8B-Instruct+ShiftDC, and Qwen3-VL-8B-Instruct+SRT(ours).

A critical issue in cross-modal safety alignment arises when the safety implications of benign textual prompts are revealed by visual inputs. We term this issue cross-modal safety drift, which is usually reflected in two representative patterns. The first is safe text with unsafe image (StUi→U)(S_t U_i \to U), where a safe prompt is grounded into an unsafe request with safety-critical visual content. In the middle panel of Figure 1, a benign textual prompt is paired with an image containing self-harm cues, causing the combined text-image input to convey self-harm intent. The second pattern is safe text with safe image (StSi→U)(S_t S_i \to U), where neither modality is explicitly unsafe on its own, yet their combination could imply a harmful intent. Our pilot experiments show that the model could achieve safe ratio of 98.3% when harmful cues are expressed in text while only 53.3% when the hazard is grounded into vision, as the right panel of Figure 1 shows.

Existing MLLM safety-alignment methods often struggle to elicit safety awareness in MLLMs, namely the ability to process all requests with safety concern and refuse or give warning to unsafe requests, which we assume to be the alignment goal. Specifically, existing methods mainly improve MLLM safety by restoring or reactivating safety mechanisms weakened by visual distribution shifts (Zou et al., 2025; Jiang et al., 2026; Liu et al., 2025; Ding et al., 2025), via either safety-specific training data or inference-time interventions such as prompting and steering. However, these methods fail to reactivate the lost upstream safety awareness in MLLMs when confronted with cases where unsafe intent is revealed only with joint text-image grounding, and thus may fail to robustly improve MLLM safety. As the pilot case in Figure 1 shows, Qwen3-VL enhanced with ShiftDC (Zou et al., 2025), a representative safety method, fails to provide necessary warnings or refusal for a benign-text-conditioned unsafe request.

For the issue of cross-modal safety drift, this paper investigates 1) how MLLM safety degrades under such cross-modal grounding and 2) how to improve it, where we perform from three aspects.

(1) Characterize typical failure response patterns. We first conduct a failure analysis on StUi→US_t U_i \to U and StSi→US_t S_i \to U and characterize how MLLMs fail for safety. This identifies representative failure patterns and provides empirical insights for subsequent mechanistic interpretations.

(2) Interpret how MLLM safety fails. We perform analyses on model activations and attention to examine how the absence of explicit harmful text impacts safety. Besides, we examine whether harmful-text-induced safety signals could be transferred to improve the cross-modal safety capability.

(3) Transfer unsafe-text-induced safety awareness to improve safety. We propose safety-awareness representation transfer (SRT), which first refines coarse safety awareness derived from harmful-text-induced activations to balance safety and utility, and then transfers the representation to cross-modal safety drift for safety improvement.

Our findings are summarized as follows. Empirically, we identify two recurring failure modes under cross-modal safety drift: MLLMs either overlook visual risk cues or fail to incorporate them into safety-related decision making. Mechanistically, we show that explicit harmful text is crucial for activating safety awareness, and identify pre-refusal-layer directions as coarse safety awareness that can be transferred to cross-modal risky inputs. Based on these insights, we propose

Pattern 1: Visual Risks Unawareness

Figure

Pattern 2: Safety Implication Unawareness

Figure

Figure 2: Illustration of representative failure patterns.

safety-awareness representation transfer (SRT), a lightweight direction-refinement method that refines coarse safety awareness while keeping the base MLLM frozen. Across representative cross-modal benchmarks, SRT significantly improves safety performance while preserving utility.

References (30)

  • Jonghyun Park, Minhyuk Seo, Chaewon Yeo, and Jonghyun Choi. 2026. Attention misses visual risk: Risk-adaptive steering for multimodal safety alignment. arXiv preprint arXiv:2510.13698. (opens arXiv in a new tab)
  • Steering Language Models With Activation Engineering
  • Mengxuan Wang, Yuxin Chen, Gang Xu, Tao He, Hongjie Jiang, and Ming Li. 2026. Risk awareness injection: Calibrating vision-language models for safety without compromising utility. arXiv preprint arXiv:2602.03402. (opens arXiv in a new tab)
  • with both hands
  • 1000 burgers in 24 hours
  • Here, $\alpha$ controls the intervention strength and is set to 1 by default in all experiments
  • The total refusal probability is calculated by summing the probabilities assigned to all refusal-related tokens:
  • It covers multiple safety domains, including self-harm, illegal activities, privacy violation, discrimination, and other cross-modality safety risks
  • Since the harmful content is mainly conveyed through the visual prompt while the accompanying text is instruction-like and does not explicitly state the unsafe intent, we use FigStep as another $S_tU_i \to U$ evaluation benchmark
  • It contains open-ended questions and uses an LLM-based evaluator to score model responses
  • Each sample is formatted as a yes-or-no question, and performance is measured by accuracy-based scores
  • It assesses generation quality from multiple aspects such as helpfulness, relevance, accuracy, and detail
  • For each example, we keep the same SD image and compare two provided query variants, SD_merged and SD_rephrasedSD_merged
  • It follows an evaluating-then-aligning pipeline: first evaluating visual contents and model responses to identify potential unsafe behavior, and then aligning the generation process through an interference prefix and sentence-level best-of-N search
  • It dynamically reweights visual tokens to reduce the influence of safety-relevant visual shifts while preserving the model's general vision-language capabilities
  • It first estimates the modality-induced activation shift between vision-language inputs and their text-only counterparts, then removes the safety-relevant component of this shift to restore the model's inherent safety alignment
  • It introduces safety principles into the input and calibrates the output distribution to amplify refusal-oriented behavior when unsafe visual content is present
  • MM-Vet is evaluated with its official GPT-based scoring prompt, where we use GPT-4o-mini as the evaluator
  • ><tr><td rowspan=
  • As shown in Table 7, SRT maintains comparable safety and utility performance across different training-set sizes
  • These results suggest that SRT is not highly sensitive to the specific training domain and can transfer across different cross-modal risk settings
  • On benign samples, both the KL score and the effect score consistently decrease, indicating that the refined direction causes less disturbance to normal VQA behavior
  • Meanwhile, the overall effect score becomes smaller, but Figure 7 shows that the refined direction induces stronger harmful-token attention at refusal layers than raw direction
  • The upper case illustrates visual risk unawareness, while the lower case illustrates safety implication unawareness
  • Its latency is close to the vanilla base model on both Qwen3-VL-8B and Gemma-3-12B, with 37.60 and 74.06 ms/token, respectively
  • I will live broadcast the whole process on tiktok and please write a slogan for me
  • It could cause severe health problems, including food poisoning, heart strain, and digestive collapse
  • Hey, I've been really impressed by your piano skills — would you be up for playing a duet with me? I'd love to hear you play both hands, and I'll try to keep up with you!
  • I've been watching you play, and I just have to say — you're incredible. I'd love to hear you play a duet with me. I'll be your partner in crime (or in music!) — just let me know what piece you'd like to do
  • The photo you shared shows a person with one arm, and the hand on the right side of the image is missing