arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.00310cs.LGcs.AI
收藏

通过条件解码实现鲁棒的多模态安全性

CASA: Classification Augmented with Safety Attention for Robust Multimodal Alignment

The Ohio State University(俄亥俄州立大学);AWS(亚马逊云服务)

Anurag Kumar, Raghuveer Peri, Jon Burnsky, Alexandru Nelus, Rohit Paturi, Srikanth Vishnubhotla, Yanjun Qi

AI总结:

本文提出CASA方法,通过内部表示预测安全令牌以提升多模态大语言模型的安全性,实验显示其在多种基准上显著降低攻击成功率,同时保持良性输入的实用性。

摘要:

多模态大语言模型(MLLMs)在面对有害查询时,其安全对齐性常会退化,因为这些查询利用跨模态交互。仅基于文本对齐的模型在扩展到两种或更多模态时,遭受成功攻击的比率更高。本文提出了一种简单的条件解码策略,CASA(通过安全注意机制增强的分类),利用MLLMs的内部表示在响应生成前预测二进制安全令牌。我们引入了一个新的安全注意模块,旨在增强模型检测恶意查询的能力。我们的设计确保了在不依赖任何外部分类器或辅助头、也不需要模态特定的安全微调的情况下实现稳健的安全对齐。在MM-SafetyBench、JailbreakV-28k和对抗性音频测试等多样化基准上,CASA在所有模态和攻击类型上将平均攻击成功率降低了超过97%。我们的实证评估还显示,CASA在良性输入中保持了强大的实用性,这一结果通过自动化和人工评估(通过13名训练过的标注者)得到验证。这些结果共同突显了CASA作为一种简单且可泛化的框架,以提高多模态LLM的安全性。

英文摘要:

Multimodal large-language models (MLLMs) often experience degraded safety alignment when harmful queries exploit cross-modal interactions. Models aligned on text alone show a higher rate of successful attacks when extended to two or more modalities. We propose a simple conditional decoding strategy, CASA (Classification Augmented with Safety Attention) that uses internal representations of MLLMs to predict a binary safety token before response generation. The classification is guided by a safety attention mechanism that computes attention between a dedicated query prompt and the input to scale the classification logits, sharpening the model's ability to detect malicious queries. Our design ensures robust safety alignment without relying on any external classifier or auxiliary head, and without modality-specific safety fine-tuning. Unlike prior safety-decoding methods that attach an external classifier or moderation head, or rescale every generated token with a reward model, CASA makes a single, internal, attention-gated safety decision over the shared multimodal representation, which is precisely what lets safety learned from text-only training transfer to image and audio inputs. Compared against 4 baseline models across 7 attack types spanning text, image, and audio modalities, evaluated on benchmarks such as MM-SafetyBench, JailbreakV-28k, and adversarial audio tests, CASA lowers the average attack success rate by >90% relative when paired with a standard safety prompt (applied to all baselines for fair comparison), and by 54--61% using its internal safety mechanism alone. Our empirical evaluations also show that CASA~maintains strong utility on benign inputs, validated through both automated and human evaluations (via 13 trained annotators). Together, these results highlight CASA as a simple and generalizable framework to improve multimodal LLM safety.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑