Vision-language models often refuse a harmful request written in text, yet comply when the danger sits in the image. One example is a benign question about turning on a microwave paired with a photo showing a fork inside it. A recent mechanistic study found that in such compositional attacks the image tokens that carry the hazard receive under 3% of the model's attention, against roughly 16% for the harmful keyword in an equivalent text attack (Transfer Safety Awareness for Cross-Modal Safety Drift in Multimodal Large Language Models). A separate line of work proves that softmax self-attention acts as a low-pass filter. Because its weights are non-negative and sum to one, repeated attention averages tokens together and erases what makes individual tokens different. This failure is called over-smoothing (Anti-Oversmoothing in Deep Vision Transformers via the Fourier Domain Analysis). The hazard in a compositional attack is exactly that kind of signal: a small, local detail that departs from the image's average content.
This note proposes to test whether cross-modal safety failure is partly an over-smoothing failure, and to repair it if so. When text positions read the image, they may mostly receive the image's mean ("a kitchen") and lose the deviation from the mean ("a fork in the microwave"). If that is the cause, then amplifying only the deviation part of text-to-image attention should restore hazard awareness. It should do so without the blunt over-refusal that comes from pushing the whole model toward refusing. The work has two parts. The first is a falsifiable diagnostic that is useful even if the answer is no. The second is a small intervention that adds only one gain per attention head per layer and is compared head to head against the strongest steering defense.
Core Claim
Take an image occupying $n$ tokens, and a text position $t$ whose attention row over those image tokens is $A_{t,\text{img}}$. That row splits into a uniform part, which carries only the image mean, and a zero-sum remainder, which carries everything distinctive about particular patches:
$$A_{t,\text{img}} = \frac{m_t}{n}\mathbf{1}^\top + R_t, \qquad \tilde A_{t,\text{img}} = \frac{m_t}{n}\mathbf{1}^\top + \gamma_{\ell h} R_t .$$
Here $m_t$ is the total attention mass that position $t$ places on the image, $R_t$ sums to zero, and $\gamma_{\ell h}\ge 1$ is a gain for head $h$ in layer $\ell$. Because $R_t$ sums to zero, rescaling it leaves the total mass on the image unchanged. The model reads the same amount of image, but with more of its detail.
We claim three things. First, in safety-relevant layers, the hazard-specific information available at text positions sits mostly in the $R_t$ channel and decays with depth faster than the image-mean channel. Second, raising $\gamma$ only at text-query positions reduces unsafe compliance on compositional benchmarks more than boosting the image's total attention mass $m_t$. Third, the size of the gain is a dial that trades safety against over-refusal, and its useful setting can be measured.
The second claim is the crux. It separates "the model reads too little image" from "the model reads the image's average and misses the detail." Only the latter is an over-smoothing story.
Relation to Prior Work
The motivation comes from two places. The first is the attention-dilution measurement in Transfer Safety Awareness. That paper responds by learning a refusal steering vector (SRT), which it adds to intermediate hidden states. SRT treats the problem as a missing activation, while we treat it as a filtering property of token mixing. The second is the "Safe + Safe = Unsafe" benchmarks, which isolate failures where the danger exists only in the combination of image and text: SIUO, SSUI, and MSSBench.
The method is borrowed from AttnScale. Wang et al. decompose vision-transformer attention into low-pass and high-pass parts and rescale the high-pass part, but they only test ImageNet classification, where patches attend to patches. We restrict the decomposition to the text-to-image block of a decoder language model, where the question is what language positions extract from the image. The added parameter count is the same, one gain per head per layer.
Two findings constrain the design. Setting the Record Straight on Transformer Oversmoothing shows that sharpening is not always better: in a 48-layer ViT on CIFAR100 a deliberately smoothed model gained +2.62% against +1.81% for a sharpened one, because category judgments need aggregation. This is why $\gamma$ must be calibrated against utility and over-refusal rather than maximized. The same paper notes that Pre-LayerNorm scale weights can reverse an intended sharpening. We therefore measure effective smoothing after the intervention instead of assuming it.
MSSBench poses the most direct challenge to our hypothesis. It finds that models often caption the hazard correctly and still comply. If hazard information survived intact, smoothing could not be the cause. We address this directly. Captioning prompts ask the model to describe the image, while instruction prompts route attention toward carrying out the task. Our diagnostic compares how decodable the hazard is at text positions under both prompt types. If hazard information is equally decodable in both, the failure is downstream reasoning, as MSSBench argues, and our intervention should not help.
Three other papers are neighbors rather than competitors. SABER shows that safety processing lives in middle-to-late layers and can be bypassed by adding a skip connection around them. We use its localization to choose candidate layers. JailNeurons detects jailbreaks after the fact from internal activations. SEA fine-tunes on synthesized harmful embeddings. None of the three examines how token mixing treats visual detail.
Research Program
The diagnostic. We work with Qwen3-VL-8B, chosen because SRT's numbers are reported on it, and LLaVA-1.5-7B, chosen for its MM-SafetyBench and HADES numbers. At every decoder layer we take the image-token block and split each token into the block mean and the deviation from that mean. Using the unsafe/safe image pairs in SIUO and MSSBench, we train linear probes for "hazard present" on three signals: the mean channel, the deviation channel, and the hidden state at the final text position.
We then trace three curves across depth: the energy of the deviation channel, its probe accuracy, and how much of the final text state's hazard decodability is attributable to $R_t$ versus the uniform part. Attribution is measured by ablating each part of the attention. Over-smoothing predicts a specific pattern: the deviation-channel signal is present early, then fades at text positions within the safety layers that SABER-style cosine-divergence analysis identifies, and it fades more under instruction prompts than caption prompts. A flat profile would falsify the hypothesis.
The intervention. We apply the decomposition above at text-query positions only, in a contiguous band of layers. We try two variants. One is training-free, with a single $\gamma$ per layer band chosen on a held-out split. The other learns gains per head, using the same 300 harmful VLSBench samples and 217 benign MM-Vet samples that SRT uses, with a refusal loss on harmful pairs and a KL loss to the original model on benign pairs. We also test combining the intervention with SRT, since the two act on different quantities: steering adds to hidden states, while our intervention changes what is read from the image.
Baselines
The naive reference is the undefended model. Transfer Safety Awareness reports Qwen3-VL-8B unsafe rates of 34.09% on VLSBench and 46.7% on SIUO. We rerun this model under our judge to confirm we reproduce those numbers before comparing anything else.
The strongest existing method is SRT, the contrastively refined refusal vector injected at intermediate layers. It is the strongest competitor because it targets the same dilution phenomenon on the same model at similar inference cost (about 37 ms per token). Its reported unsafe rates are 1.47% on VLSBench and 19.76% on SIUO. We give SRT and our learned-gain variant identical training data, an identical hyperparameter search budget, and the same judge model.
VLSBench is near its floor, so matching SRT within noise there is enough. The decisive test is SIUO, where purely compositional cases dominate. Beating SRT means an unsafe rate clearly below 19.76% with an over-refusal rate on USB's safe-image/safe-text split (USB, resource) that is no higher than SRT's, and MM-Vet within one point.
Two cheaper defenses serve as further reference points. A prepended safety prompt cut LLaVA-1.5-7B's attack success rate on MM-SafetyBench-Tiny from 77.33% to 15.68% (MM-SafetyBench). In-context safety exemplars raised Qwen2.5-VL's SSUI safety rate from 50.90% to 70.72% (SSUI). Contrastive Harmlessness LoRA cut LLaVA-1.5's HADES attack success rate from 90.26% to 5.07% (Images are Achilles' Heel), and it stands as the fine-tuning reference. We train it on the same 517 samples so that cost is matched.
Three ablations isolate the key ingredient. The first, the most important, scales the image's total mass $m_t$ by the same factor and leaves $R_t$ alone, which amplifies the mean along with the detail. The second applies $\gamma$ at all positions rather than only text queries. The third rescales a random zero-sum component of matched norm in place of $R_t$. If the first ablation matches the full method, the over-smoothing framing is wrong, and we will report that.
Why not just…?
Why not just use SRT's steering vector? SRT is the real threat on explicit-leakage benchmarks, since 1.47% on VLSBench leaves almost no room. Its weakness is on SIUO, where 19.76% of cases remain unsafe. A fixed vector adds the same shift whatever the image contains, so it cannot condition on whether a particular patch is hazardous. That pushes it either to miss subtle hazards or to over-refuse benign images. Our intervention is driven by the image itself. The SIUO and USB over-refusal comparison settles this, and the combined SRT-plus-gain run tests whether the two help in different places.
Why not just boost attention to image tokens? This is the simplest rival and could plausibly work as well. If dilution is purely a matter of too little total mass, raising $m_t$ should suffice. Our view is that raising $m_t$ mainly delivers more of the image average. The mass-only ablation tests exactly this. Our method has to beat it at equal attack success rate, or at equal over-refusal, to justify the decomposition.
Why not just fine-tune on multimodal safety data? Contrastive LoRA and SEA achieve large reductions on HADES and VA-SafetyBench. However, Li et al. report an inverse alignment tax: tuning for vision degrades text safety. USB also shows that heavily aligned models can over-refuse; Claude 3.5 Sonnet reached a 25.82% refusal rate on harmless inputs. Fine-tuning is a strong competitor on attack success rate. We expect our edge, if any, to lie in fewer parameters, no change to weights, and lower over-refusal, and the matched-data LoRA run shows whether that edge exists.
Why not just prompt for safety or add exemplars? System prompts were largely ineffective against FigStep, with an average attack success rate of 82.50% across six open models (FigStep). In-context exemplars still left Qwen2.5-VL failing on about 29% of SSUI cases while consuming large amounts of context. We include both as cheap reference points and do not expect them to compete on compositional cases.
Decisive Checks
We will evaluate on SIUO, MSSBench (chat and embodied splits), VLSBench, MM-SafetyBench, SafeBench/FigStep, and HADES for safety, and on USB safe-image/safe-text and MM-Vet for over-refusal and utility. The theory makes a discriminating prediction. Gains should be largest on compositional benchmarks, where the hazard is a local visual detail, and smallest on FigStep. There the harmful text is decoded reliably, and the documented OCR trap (Li et al.) suggests the failure lies in compliance rather than lost detail.
We will also sweep $\gamma$ and plot attack success rate against USB over-refusal, to test whether the gain behaves like the smoothing/sharpening dial that Dovonon et al. would predict. That is, past some point the over-refusal cost should rise steeply. Finally, the diagnostic must agree with the intervention: layers where the deviation channel's hazard signal fades should be the layers where applying $\gamma$ helps. A match supports the causal story. A mismatch means the benefit comes from somewhere else, and we will say so.
References
- Transfer Safety Awareness for Cross-Modal Safety Drift in Multimodal Large Language Models
- Anti-Oversmoothing in Deep Vision Transformers via the Fourier Domain Analysis: From Theory to Practice
- Safe Inputs but Unsafe Output: Benchmarking Cross-modality Safety Alignment of Large Vision-Language Models
- Safe Semantics, Unsafe Interpretations: Tackling Implicit Reasoning Safety in Large Vision-Language Models
- Multimodal Situational Safety
- Setting the Record Straight on Transformer Oversmoothing
- SABER: Uncovering Vulnerabilities in Safety Alignment via Cross-Layer Residual Connection
- From ``Sure" to ``Sorry": Detecting Jailbreak in Large Vision Language Model via JailNeurons
- SEA: Low-Resource Safety Alignment for Multimodal Large Language Models via Synthetic Embeddings
- VLSBench: Unveiling Visual Leakage in Multimodal Safety
- USB: A Comprehensive and Unified Safety Evaluation Benchmark for Multimodal Large Language Models
- MM-SafetyBench: A Benchmark for Safety Evaluation of Multimodal Large Language Models
- Images are Achilles' Heel of Alignment: Exploiting Visual Vulnerabilities for Jailbreaking Multimodal Large Language Models
- $\mathsf{FigStep}$ : Jailbreaking Large Vision-Language Models via Typographic Visual Prompts