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

DuoGuard: A Two-Player RL-Driven Framework for Multilingual LLM Guardrails

该论文提出了一种基于强化学习的双玩家框架,用于多语言大型语言模型(LLM)的安全防护,通过生成高质量的合成数据来提高多语言安全模型的性能。

更新于 2025-02-10。作者:Yihe Deng、Yu Yang、Junkai Zhang、Wei Wang、Bo Li。

中文摘要

大型语言模型(LLMs)的快速发展增加了对保障模型的需求,以确保其负责任的使用,尤其是在检测不安全和非法内容方面。虽然存在大量的英语安全数据,但由于其他语言中开源安全数据的稀缺,多语言保障建模仍处于研究不足的状态。为了解决这一差距,我们提出了一种新颖的双玩家强化学习(RL)框架,其中生成器和保障模型通过对抗性协同进化,以生成高质量合成数据,用于多语言保障训练。我们理论上将这种交互形式化为一个双玩家游戏,并证明了其收敛到纳什均衡。实证评估显示,我们的模型在英语基准测试中优于现有模型,相对于LlamaGuard3(8B)实现了近10%的提升,同时在推理速度上快了4.5倍,并且使用了一个显著更小的模型(0.5B)。我们在多语言安全任务上取得了实质性进展,尤其是在解决收集的实数数据集中低资源语言的失衡问题。消融研究强调了合成数据生成在弥合开源数据中英语与其他语言之间失衡中的关键作用。这些发现确立了一种可扩展和高效的方法来生成合成数据,为改进的多语言保障模型以增强LLM的安全性铺平了道路。代码、模型和数据将在https://github.com/yihedeng9/DuoGuard上开源。

英文摘要

The rapid advancement of large language models (LLMs) has increased the need for guardrail models to ensure responsible use, particularly in detecting unsafe and illegal content. While substantial safety data exist in English, multilingual guardrail modeling remains underexplored due to the scarcity of open-source safety data in other languages. To address this gap, we propose a novel two-player Reinforcement Learning (RL) framework, where a generator and a guardrail model co-evolve adversarially to produce high-quality synthetic data for multilingual guardrail training. We theoretically formalize this interaction as a two-player game, proving convergence to a Nash equilibrium. Empirical evaluations show that our model \ours outperforms state-of-the-art models, achieving nearly 10% improvement over LlamaGuard3 (8B) on English benchmarks while being 4.5x faster at inference with a significantly smaller model (0.5B). We achieve substantial advancements in multilingual safety tasks, particularly in addressing the imbalance for lower-resource languages in a collected real dataset. Ablation studies emphasize the critical role of synthetic data generation in bridging the imbalance in open-source data between English and other languages. These findings establish a scalable and efficient approach to synthetic data generation, paving the way for improved multilingual guardrail models to enhance LLM safety. Code, model, and data will be open-sourced at https://github.com/yihedeng9/DuoGuard.

解读

一句话总结

该论文提出了一种基于强化学习的双玩家框架,用于多语言大型语言模型(LLM)的安全防护,通过生成高质量的合成数据来提高多语言安全模型的性能。

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

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

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

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

来源