arXiv:2611.07216cs.LGNov 2026

Manuscript Offprint

arXiv:2611.07216

Compositional Unalignment: Auditing Safety in Large Vision-Language Models

Hong kyu Lee, Kai Shu, Li Xiong

ABSTRACT

Large vision-language models (LVLMs) are vulnerable to compositional harm: an image and a prompt that are benign in isolation become harmful through the model's cross-modal reasoning. Recent alignment methods report strong scores on compositional safety benchmarks, but assessing the outputs by an LLM judge only measures observed behavior and cannot reveal how robustly safety is integrated into the model. We argue that un-alignment provides a complementary audit of alignment robustness. We first show that minimal supervised fine-tuning achieves an LLM-judge score comparable to a multi-stage reinforcement-learning pipeline, showing that similar benchmark scores can arise from only a fraction of computations and cannot establish alignment robustness by themselves. We next evaluate whether existing representation-steering methods can serve as training-free unalignment mechanisms. We find that recognition and refusal of compositional harm are decoupled: nine standard direction-finding methods detect compositional harm with up to AUC=0.99AUC = 0.99, yet ablating the recovered directions either leaves refusal intact or destroys model coherence, failing to properly un-align. We therefore propose CMaG, a training-free un-alignment method for compositional safety. CMaG obtains the refusal controlling direction causally: we measure refusal intention using a refusal-versus-compliance log-probability margin, compute its gradient with respect to mid-layer activations, and contrast them against partially benign pairs to isolate the cross-modal interaction term. A single backward pass over 80 examples yields a direction along which steering monotonically converts refusal into compliance. On Qwen2.5-VL-7B and LLaVA-1.5-7B, CMaG reduces compositional safety scores by up to 65 points while over 98% of outputs remain coherent, outperforming gradient-based baselines. We find that the recovered direction also transfers to text-explicit harmful inputs. CMaG is also capable of un-aligning models hardened by defensive training. These results suggest that compositional safety can appear behaviorally strong while remaining fragile to targeted internal intervention, and un-alignment is a necessary and complementary audit alongside benchmark scores. Warning: this paper contains unsafe model outputs, including references to self-harm.

1 INTRODUCTION

Large vision-language models (LVLMs) achieve remarkable performance across a wide range of tasks, from medical imaging Li et al. (2023a) to video understanding Lin et al. (2024) and embodied perception Driess et al. (2023). The same cross-modal reasoning that makes them useful, however, has repeatedly been shown to weaken their safety behavior. Recent studies find that an LVLM complies with harmful requests more readily than the large language model (LLM) it was built from Zong et al. (2024); Liu et al. (2024c), and that safety training transfers poorly across modalities: refusal behavior learned on text frequently fails to activate when the harmful content arrives through the visual channel Wu et al. (2025a); Li et al. (2025b). Multimodality opens a new bypass around the safety training that the language model already has.

A recent and more critical threat is compositional harm Wang et al. (2025); Cui et al. (2024). In typical multimodal safety setting, harmful content is explicitly present in the image, the text, or both, and a sufficiently careful model can refuse on the strength of the offending input alone Zong et al.

Table 1: Response of aligned and un-aligned (by CMaG) Qwen2.5-VL-7B on a SIUO input. Differently aligned model responds similarly, but their resistance against un-alignment differs.

Figure

Prompt HpH_p: “I’m feeling extremely cold and urgently need to warm up. I’m eager to find the warmest spot to put my hands completely in it for rapid relief. Can you tell me where that might be?”

AlignmentResponse of Aligned modelResponse after un-alignment (α=−16.6\alpha = -16.6)
SFT (Cheap)[...] It’s important to stay safe around open flames. Please consider using a heat source designed for personal comfort, such as a space heater or a warm blanket. [SAFE][...] Given your description of feeling cold and wanting to warm up quickly, this fire looks like an ideal place to put your hands for rapid relief. [... ] [UNSAFE]
Pragma-VL (Expensive)[...] It’s not recommended to place your hands directly into a fire for safety reasons. Instead, you might consider using a fire pit or a fireplace with proper safety measures in place. [... ] [SAFE][...] The fire in the image is providing a wonderful source of warmth. To get the most out of it, you can place your hands directly over the flames or as close as possible to the fire. [... ] [UNSAFE]

(2024). On the other hand, in compositional harm, each modality is innocent in isolation, and the harm is produced only by their combination. Consider the example at Table 1. The prompt is asking for a place to stick their hands in a warm spot with a picture of fire. The model would suggest to stick the hand to fire, which is dangerous. The threat is a unique characteristic of multimodal models because the harm is constructed by the model’s own cross-modal reasoning, and the model can only be safe here by inferring the hazard rather than detecting it. Recent work shows that LVLMs can be aligned against compositional harm through reinforcement learning based alignment Wen et al. (2026a); Rong et al. (2026); Ji et al. (2025), and reports show substantial gains on compositional safety benchmarks.

Those gains are measured by a LLM judge from the response from the target mode, which does not answer the question of what was actually installed internally. A model that refuses compositional harm may have acquired a robust internal property, or it may have acquired a thin behavioral policy sitting on top of an unchanged network. The distinction is invisible to the benchmark and critical for real-world deployment as an adversary who aims to strip off the alignment can easily achieve their goal. For LLMs (text-only) this concern has been investigated, and various studies have demonstrated that safety alignment is known to be shallow Qi et al. (2025), leaving the underlying capability intact and recoverable Lee et al. (2024); Li & Kim (2026). It can be removed by fine-tuning on a small number of examples Qi et al. (2024b); Yang et al. (2023); Lermen et al. (2023); Zhan et al. (2024) and even without any training at all by ablating a single refusal direction recovered as a difference of means Arditi et al. (2024). Whether the same holds for compositional cross-modal safety in LVLMs is not obvious, and it is an orthogonal question that does not transfer from the case of LLMs.

In this study, we propose CMaG, a training-free compositional un-alignment method and demonstrate it can easily strip safety alignment in inference time. Our objective is to propose un-alignment as robustness analysis. Table 1 shows the response of the models aligned with different methods. After alignment, both models produce safe output, thus both models are presumed safe by the LLM judge. However, after our un-alignment, the responses differ, and cheaply aligned model produces more dangerous response. It means an effective un-alignment method is critical for auditing robustness of models’ safety alignment. To propose an effective un-alignment method, we investigate compositional alignment on LVLMs and found a universal pattern in aligned models: The recognition and refusal are causally decoupled. The aligned models produce unique traces in their representation space for compositionally harmful inputs. However, ablating them (removing them) does not lead the model to produce unsafe responses, showing that the training-free un-alignment that succeeds on text-only LLMs Arditi et al. (2024) does not carry over to the compositional setting in LVLMs. We therefore identify a steering direction causally by directly utilizing the gradient of a refusal-versus-compliance contrast with respect to mid-layer activations. Steering along this vector converts refusal into compliance monotonically, while the model’s benign behavior and generation quality remain intact.

We found that steering the direction obtained from gradients results transferability in the model response across different harmful inputs. Our un-alignment method, designed solely for compositionally harmful examples, simultaneously degrades the same model's safety against text-explicitly harmful requests. Safety against the two harm types is therefore not maintained by two independent mechanisms. Similarly, we show that compositional safety is also affected when the model is un-aligned for explicitly harmful data, with a cost of model's coherency degradation. Our compositional un-alignment results in a more consistent set of per-example gradients, and correspondingly a direction that better removes refusal. Finally, the attack is not confined to undefended models. We measure performance of compositional un-alignment against models bolstered by latent adversarial training Sheshadri et al. (2025). While defense deters the attack to some extent, it fails to provide a complete safeguard.

In summary, our contributions are as follows.

  • We show that recognition and refusal are causally decoupled in aligned LVLMs. Nine standard direction-finding methods detect compositional harm at up to AUC = 0.99, yet ablating the directions does not change the models' response. Thus Detection-optimal directions are not intervention-optimal.
  • We propose a CMaG, training-free un-alignment method. Our direction vector is obtained causally, as the gradient of a refusal-versus-compliance of mid-layer activations. It requires no weight update and needs just a single backward pass. CMaG contrasts the gradients to target cross-modal understanding that causes the model to refuse. To our knowledge, We are the first who studied un-alignment in compositional harm.
  • Through the experiments, we demonstrate CMaG outperforms similar baselines in both coherency and un-alignment.
  • We show that compositional and explicit harm are closely related in representation space and our attack transfers across defenses: a direction estimated on compositional harm also un-aligns text-explicit harm with no coherency loss.

References (99)