2025-10-10 · 专家 · 自然语言处理 · 机器学习

The Alignment Waltz: Jointly Training Agents to Collaborate for Safety

这篇论文提出了WaltzRL,一个基于多智能体强化学习框架,旨在通过联合训练对话代理和反馈代理,以协同提高大语言模型的安全性,同时减少过度拒绝,从而在不损害其一般能力的情况下提升模型的安全性和实用性。

更新于 2025-10-10。作者:Jingyu Zhang、Haozhu Wang、Eric Michael Smith、Sid Wang、Amr Sharaf、Mahesh Pasupuleti、Benjamin Van Durme、Daniel Khashabi、Jason Weston、Hongyuan Zhan。

中文摘要

利用LLM(大型语言模型)的力量需要在有用和无害之间进行微妙的平衡。这导致了两个相互竞争的挑战之间的基本矛盾:易受对抗性攻击的影响,从而产生不安全的内容,以及对于良善但敏感的提示出现过度拒绝的倾向。当前的方法通常通过完全拒绝包含不安全内容的任何内容的安全模型来应对这种平衡。这种方法完全切断了音乐——它可能加剧过度拒绝,并且无法为拒绝的查询提供细微的指导。为了教会模型更协调的舞蹈,我们提出了WaltzRL,这是一种新颖的多智能体强化学习框架,将安全对齐表述为一个协作性的、正和博弈。WaltzRL联合训练对话代理和反馈代理,后者被激励提供有用的建议,以提高对话代理响应的安全性和有用性。WaltzRL的核心是一个动态改进奖励(DIR),它根据对话代理如何整合反馈而随时间演变。在推理时间,对话代理的不安全或过度拒绝的响应被改进而不是被丢弃。反馈代理与对话代理一起部署,仅在需要时才进行适应性调整,从而在安全查询中保持有用性和低延迟。我们的实验在五个不同的数据集上进行了,结果表明,与各种基线相比,WaltzRL显著减少了不安全响应(例如,在WildJailbreak上从39.0%降至4.6%)和过度拒绝(在OR-Bench上从45.3%降至9.9%)。通过使对话代理和反馈代理能够共同进化并适应性地应用反馈,WaltzRL在不降低通用能力的情况下提高了LLM的安全性,从而推进了帮助性和无害性之间的帕累托前沿。

英文摘要

Harnessing the power of LLMs requires a delicate dance between being helpful and harmless. This creates a fundamental tension between two competing challenges: vulnerability to adversarial attacks that elicit unsafe content, and a tendency for overrefusal on benign but sensitive prompts. Current approaches often navigate this dance with safeguard models that completely reject any content that contains unsafe portions. This approach cuts the music entirely-it may exacerbate overrefusals and fails to provide nuanced guidance for queries it refuses. To teach models a more coordinated choreography, we propose WaltzRL, a novel multi-agent reinforcement learning framework that formulates safety alignment as a collaborative, positive-sum game. WaltzRL jointly trains a conversation agent and a feedback agent, where the latter is incentivized to provide useful suggestions that improve the safety and helpfulness of the conversation agent's responses. At the core of WaltzRL is a Dynamic Improvement Reward (DIR) that evolves over time based on how well the conversation agent incorporates the feedback. At inference time, unsafe or overrefusing responses from the conversation agent are improved rather than discarded. The feedback agent is deployed together with the conversation agent and only engages adaptively when needed, preserving helpfulness and low latency on safe queries. Our experiments, conducted across five diverse datasets, demonstrate that WaltzRL significantly reduces both unsafe responses (e.g., from 39.0% to 4.6% on WildJailbreak) and overrefusals (from 45.3% to 9.9% on OR-Bench) compared to various baselines. By enabling the conversation and feedback agents to co-evolve and adaptively apply feedback, WaltzRL enhances LLM safety without degrading general capabilities, thereby advancing the Pareto front between helpfulness and harmlessness.

解读

一句话总结

这篇论文提出了WaltzRL,一个基于多智能体强化学习框架,旨在通过联合训练对话代理和反馈代理,以协同提高大语言模型的安全性,同时减少过度拒绝,从而在不损害其一般能力的情况下提升模型的安全性和实用性。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源