arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.02575cs.CLcs.CRcs.LG
收藏

跨模态安全对齐:仅文本遗忘是否足够?

Cross-Modal Safety Alignment: Is textual unlearning all you need?

University of California, Riverside(加州大学河滨分校)

Trishna Chakraborty, Erfan Shayegani, Zikui Cai, Nael Abu-Ghazaleh, M. Salman Asif, Yue Dong, Amit K. Roy-Chowdhury, Chengyu Song

AI总结:

本研究探究仅对文本进行遗忘训练能否有效实现视觉-语言模型的跨模态安全对齐,实验证明该方法可将攻击成功率降至8%以下且保持模型实用性,并避免多模态遗忘带来的高计算成本。

摘要:

近期研究表明,将新模态集成到大语言模型(LLM)中,如视觉-语言模型(VLM),会创造新的攻击面,从而绕过现有的安全训练技术,如监督微调(SFT)和基于人类反馈的强化学习(RLHF)。尽管可以在多模态设置中进一步进行基于SFT和RLHF的安全训练,但收集多模态训练数据集构成了重大挑战。受近期多模态模型结构设计的启发——无论输入模态如何组合,所有输入最终都融合到语言空间中——我们旨在探索仅在文本领域进行遗忘是否能够有效实现跨模态安全对齐。我们在六个数据集上的评估实证证明了其可迁移性:VLM中的文本遗忘显著降低了攻击成功率(ASR),使其降至8%以下,在某些情况下,对于基于文本和基于视觉-文本的攻击,ASR甚至低至近2%,同时保持了实用性。此外,我们的实验表明,使用多模态数据集进行遗忘并未带来潜在益处,反而显著增加了计算需求,可能高达6倍。

英文摘要:

Recent studies reveal that integrating new modalities into Large Language Models (LLMs), such as Vision-Language Models (VLMs), creates a new attack surface that bypasses existing safety training techniques like Supervised Fine-tuning (SFT) and Reinforcement Learning with Human Feedback (RLHF). While further SFT and RLHF-based safety training can be conducted in multi-modal settings, collecting multi-modal training datasets poses a significant challenge. Inspired by the structural design of recent multi-modal models, where, regardless of the combination of input modalities, all inputs are ultimately fused into the language space, we aim to explore whether unlearning solely in the textual domain can be effective for cross-modality safety alignment. Our evaluation across six datasets empirically demonstrates the transferability -- textual unlearning in VLMs significantly reduces the Attack Success Rate (ASR) to less than 8\% and in some cases, even as low as nearly 2\% for both text-based and vision-text-based attacks, alongside preserving the utility. Moreover, our experiments show that unlearning with a multi-modal dataset offers no potential benefits but incurs significantly increased computational demands, possibly up to 6 times higher.

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

↑