Abstract
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 this https URL.
Abstract (translated)
大型语言模型(LLMs)的快速进步增加了对防护模型的需求,以确保负责任地使用这些模型,并特别强调检测不安全和非法内容的重要性。虽然在英语领域中存在大量的安全数据,但由于其他语言领域的开源安全数据稀缺,多语言防护建模仍处于研究不足的状态。为了解决这一空白,我们提出了一种新颖的双玩家强化学习(RL)框架,在该框架中生成器与防护模型相互对抗进化,以产生高质量的人工合成数据用于多语言防护训练。从理论上讲,我们将这种交互形式化为一个两人博弈,并证明它可以收敛到纳什均衡状态。实证评估显示,我们的模型\ours在英语基准测试上比最先进的LlamaGuard3(8B)模型表现更好,提高了近10%,并且推理速度提高了4.5倍,同时使用的模型规模显著较小(0.5B)。我们在多语言安全任务中取得了重大进展,特别是在收集的真实数据集中解决了低资源语言的不平衡问题。消融研究强调了合成数据生成在连接英语和其他语言之间开源数据不平衡方面的重要作用。这些发现确立了一种可扩展且高效的合成数据生成方法,为改进多语言防护模型、提升LLM安全性铺平道路。代码、模型和数据将在该链接开放源码:https://this.url.com
URL
https://arxiv.org/abs/2502.05163