Compositional un-alignment: Auditing the safety of large vision-language modelsCompositional Unalignment: Auditing Safety in Large Vision-Language Models
Quick read
Based on the paper's full text (AI-generated); refer to the original
The paper proposes a training-free un-alignment method, CMaG, which at inference time removes large vision-language models' safety alignment against compositional harms via representation steering; in such harms, the image and the prompt are each harmless and become harmful only when combined. The authors first perform SFT with 1,400 synthetic samples, achieving on SIUO a safety score comparable to that of the multi-stage reinforcement learning pipeline Pragma-VL (69.5% vs. 61.1% on Qwen2.5-VL-7B), indicating that LLM-judge scores cannot distinguish the depth of alignment. Experiments find that the model's recognition of and refusal of compositional harms are causally decoupled; nine direction-probing methods detect compositional harms with AUC up to 0.99, but ablating these directions either does not change refusal or breaks coherence.
- LVLMs exhibit compositional harm: the image and the prompt are each harmless, but become harmful after being combined through cross-modal reasoning. Existing alignment methods score high on benchmarks, but LLM judges only look at output behavior and cannot determine whether safety has been robustly internalized, so supplementary robustness audits are needed.
- Proposes CMaG, a training-free un-alignment method: it defines the refusal margin as the log-probability difference between refusal and compliance, computes gradients on mid-layer activations, and uses a 2×2 factorial design (harmful/benign images × harmful/benign prompts) to take differences that cancel unimodal terms and isolate the cross-modal interaction term, then obtains a steering direction via SVD and injects it with per-layer scaling at inference time.
- On Qwen2.5-VL-7B and LLaVA-1.5-7B, CMaG reduces the SIUO compositional safety rate by up to about 65 points, while more than 98% of outputs remain coherent, outperforming baselines such as GrAInS and attribution patching; the direction also transfers to explicitly textual harmful inputs and can weaken models hardened with latent adversarial training. Other experiments show that a small amount of SFT alone can approach a multi-stage RL pipeline in judge scores.
- The authors point out that although nine existing direction-discovery methods can detect compositional harmful inputs with up to AUC=0.99, ablating these directions cannot remove refusal, indicating that identification and refusal are causally decoupled; for LAT-hardened models, the defense can only partially block the attack. Future work plans to clarify the relationship between compositional harm and explicitly textual harm.
The original source uses the comparison of low-cost SFT and multi-stage reinforcement learning alignment achieving similar safety scores to show that benchmark scores from LLM judges alone make it difficult to judge whether a vision-language model's alignment is robust.