Paper Reading AI Learner

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

2025-02-07 18:45:03
Yihe Deng, Yu Yang, Junkai Zhang, Wei Wang, Bo Li

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

PDF

https://arxiv.org/pdf/2502.05163.pdf


Tags
3D Action Action_Localization Action_Recognition Activity Adversarial Agent Attention Autonomous Bert Boundary_Detection Caption Chat Classification CNN Compressive_Sensing Contour Contrastive_Learning Deep_Learning Denoising Detection Dialog Diffusion Drone Dynamic_Memory_Network Edge_Detection Embedding Embodied Emotion Enhancement Face Face_Detection Face_Recognition Facial_Landmark Few-Shot Gait_Recognition GAN Gaze_Estimation Gesture Gradient_Descent Handwriting Human_Parsing Image_Caption Image_Classification Image_Compression Image_Enhancement Image_Generation Image_Matting Image_Retrieval Inference Inpainting Intelligent_Chip Knowledge Knowledge_Graph Language_Model LLM Matching Medical Memory_Networks Multi_Modal Multi_Task NAS NMT Object_Detection Object_Tracking OCR Ontology Optical_Character Optical_Flow Optimization Person_Re-identification Point_Cloud Portrait_Generation Pose Pose_Estimation Prediction QA Quantitative Quantitative_Finance Quantization Re-identification Recognition Recommendation Reconstruction Regularization Reinforcement_Learning Relation Relation_Extraction Represenation Represenation_Learning Restoration Review RNN Robot Salient Scene_Classification Scene_Generation Scene_Parsing Scene_Text Segmentation Self-Supervised Semantic_Instance_Segmentation Semantic_Segmentation Semi_Global Semi_Supervised Sence_graph Sentiment Sentiment_Classification Sketch SLAM Sparse Speech Speech_Recognition Style_Transfer Summarization Super_Resolution Surveillance Survey Text_Classification Text_Generation Time_Series Tracking Transfer_Learning Transformer Unsupervised Video_Caption Video_Classification Video_Indexing Video_Prediction Video_Retrieval Visual_Relation VQA Weakly_Supervised Zero-Shot