利用文本拒绝方向实现多模态安全

·

研究论文 · 2026/10/20

多模态大语言模型的安全性依赖于不安全的多模态数据进行后训练对齐或激活引导,但此类数据难以收集,且需为每种模态重新收集,其收集和分发还引发伦理和法律问题。本研究放宽这一限制,探究直接从LLM主干提取的文本拒绝方向能否跨模态(如图像、视频)泛化。初步发现证实了这种能力,但效果受层选择、引导强度和跨模态对齐的影响,其中跨模态对齐会导致安全的多模态输入被虚假地引导向拒绝。基于此,我们提出模态无关拒绝引导(MARS),一种轻量级免训练方法,无需多模态安全数据即可注入多模态安全性。MARS通过激活中心化纠正模态错位,在几何定义的信任区域内自适应缩放引导强度,并选择最佳干预层,在生成第一个token时操作。在五个SOTA MLLM上针对安全性、实用性和视频越狱进行评估,MARS在保持实用性的同时实现了持续的安全提升,直至过度拒绝。MARS揭示了安全相关结构跨模态共享,文本拒绝方向是多模态对齐的强大且未充分探索的基础。

该研究提出了一种无需多模态安全数据的轻量级方法,有效提升多模态大语言模型的安全性,同时避免数据收集的伦理法律问题,具有重要的实践意义和理论启示。

Safety in Multimodal Large Language Models (MLLMs) depends on unsafe multimodal data for post-training alignment or activation steering. However, such data is hard to collect, must be gathered anew for each modality, and its collection and distribution raise ethical and legal concerns. In this work, we relax this constraint and investigate whether textual refusal directions, extracted directly from the LLM backbone, generalize across modalities (i.e., image, video). Preliminary findings confirm this ability, though effectiveness is conditioned by layer selection, steering strength, and cross-modal alignment, with the latter causing safe multimodal inputs to be spuriously steered toward refusal. Building on this, we introduce Modality-Agnostic Refusal Steering (MARS), a lightweight training-free approach that injects multimodal safety without the need for multimodal safety data. MARS corrects modality misalignment via activation centering, adaptively scales steering strength within a geometrically defined trust region, and selects the optimal intervention layer, operating at the first generated token. Evaluated on five SOTA MLLMs across safety, utility, and video jailbreak, MARS achieves consistent safety gains while preserving utility up to over-refusal. MARS reveals that safety-relevant structure is shared across modalities and that textual refusal directions are a powerful and underexplored foundation for multimodal alignment.

阅读原文

参与讨论