arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2602.24027cs.CVcs.MM
收藏

GuardAlign: 多模态大语言模型中的测试时安全性对齐

GuardAlign: Test-time Safety Alignment in Multimodal Large Language Models

MoE Key Lab of BIPC, University of Science and Technology of China(摩埃关键实验室,中国科学技术大学);Nanyang Technological University(南洋理工大学);National University of Singapore(新加坡国立大学);Tianjin University(天津大学)

Xingyu Zhu, Beier Zhu, Junfeng Fang, Shuo Wang, Yin Zhang, Xiang Wang, Xiangnan He

AI总结:

GuardAlign通过OT增强的安全检测和跨模态注意力校准,有效提升多模态大语言模型在测试时的安全性,减少不安全响应率并提升任务表现。

摘要:

大型视觉-语言模型(LVLMs)在视觉-语言推理任务中取得了显著进展,但确保其安全性仍然是一个关键挑战。最近的输入侧防御方法利用CLIP检测不安全图像,并在提示前添加安全前缀,但它们在复杂场景中仍存在检测不准确和解码过程中安全信号不稳定的问题。为了解决这些问题,我们提出GuardAlign,一种无需训练的防御框架,整合了两种策略。首先,OT增强的安全检测利用最优传输来测量图像块与不安全语义之间的分布距离,使能够准确识别恶意区域而无需额外计算成本。其次,跨模态注意力校准通过适应性地在层之间重新分配注意力,加强安全前缀的影响,确保安全信号在整个生成过程中保持一致激活。在六个代表性MLLMs上进行的广泛评估显示,GuardAlign在SPA-VL上将不安全响应率降低了高达39%,同时保持了实用性,在VQAv2上的表现从78.51%提升至79.21%。

英文摘要:

Large vision-language models (LVLMs) have achieved remarkable progress in vision-language reasoning tasks, yet ensuring their safety remains a critical challenge. Recent input-side defenses detect unsafe images with CLIP and prepend safety prefixes to prompts, but they still suffer from inaccurate detection in complex scenes and unstable safety signals during decoding. To address these issues, we propose GuardAlign, a training-free defense framework that integrates two strategies. First, OT-enhanced safety detection leverages optimal transport to measure distribution distances between image patches and unsafe semantics, enabling accurate identification of malicious regions without additional computational cost. Second, cross-modal attentive calibration strengthens the influence of safety prefixes by adaptively reallocating attention across layers, ensuring that safety signals remain consistently activated throughout generation. Extensive evaluations on six representative MLLMs demonstrate that GuardAlign reduces unsafe response rates by up to 39% on SPA-VL, while preserving utility, achieving an improvement on VQAv2 from 78.51% to 79.21%.

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

↑