MTSA:通过多轮红队测试实现大语言模型的多轮安全对齐
MTSA: Multi-turn Safety Alignment for LLMs through Multi-round Red-teaming
AI总结:
提出MTSA框架,通过思想引导攻击学习和对抗迭代优化两阶段,结合基于未来奖励的多轮强化学习,提升LLMs在多轮对话中的安全对齐,实验证明红队攻击能力最优且目标模型安全性能显著提升。
摘要:
针对大语言模型(LLMs)的越狱攻击的泛滥凸显了加强安全措施的必要性。然而,在多轮对话中,恶意意图可能隐藏在交互中,导致LLMs更容易产生有害回应。在本文中,我们提出了多轮安全对齐(MTSA)框架,以应对在多轮交互中保障LLMs安全的挑战。该框架包含两个阶段:在思想引导的攻击学习阶段,红队模型学习思想引导的多轮越狱攻击以生成对抗性提示。在对抗性迭代优化阶段,红队模型和目标模型在交互中不断提升各自的能力。此外,我们引入了一种基于未来奖励的多轮强化学习算法,以增强安全对齐的鲁棒性。实验结果表明,红队模型展现出最先进的攻击能力,而目标模型在安全基准上的性能显著提升。
英文摘要:
The proliferation of jailbreak attacks against large language models (LLMs) highlights the need for robust security measures. However, in multi-round dialogues, malicious intentions may be hidden in interactions, leading LLMs to be more prone to produce harmful responses. In this paper, we propose the \textbf{M}ulti-\textbf{T}urn \textbf{S}afety \textbf{A}lignment (\ourapproach) framework, to address the challenge of securing LLMs in multi-round interactions. It consists of two stages: In the thought-guided attack learning stage, the red-team model learns about thought-guided multi-round jailbreak attacks to generate adversarial prompts. In the adversarial iterative optimization stage, the red-team model and the target model continuously improve their respective capabilities in interaction. Furthermore, we introduce a multi-turn reinforcement learning algorithm based on future rewards to enhance the robustness of safety alignment. Experimental results show that the red-team model exhibits state-of-the-art attack capabilities, while the target model significantly improves its performance on safety benchmarks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。