arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.20370cs.LGcs.AIcs.CL
收藏

完美融合:以评委混合重新定义RLHF

The Perfect Blend: Redefining RLHF with Mixture of Judges

Meta GenAI;FAIR
Tengyu Xu, Eryk Helenowski, Karthik Abinav Sankararaman, Di Jin, Kaiyan Peng, Eric Han, Shaoliang Nie, Chen Zhu, Hejia Zhang, Wenxuan Zhou, Zhouhao Zeng, Yun He… 展开作者

Tengyu Xu, Eryk Helenowski, Karthik Abinav Sankararaman, Di Jin, Kaiyan Peng, Eric Han, Shaoliang Nie, Chen Zhu, Hejia Zhang, Wenxuan Zhou, Zhouhao Zeng, Yun He, Karishma Mandyam, Arya Talabzadeh, Madian Khabsa, Gabriel Cohen, Yuandong Tian, Hao Ma, Sinong Wang, Han Fang

AI总结:

本文提出约束生成策略优化(CGPO),以评委混合(MoJ)和分层约束优化在RLHF中有原则地平衡多目标,显著超越PPO和DPO并有效缓解奖励黑客问题。

摘要:

基于人类反馈的强化学习(RLHF)已成为微调大语言模型(LLM)的主流方法。然而,由于奖励黑客(reward hacking)和极端多目标优化(即多个且有时相互冲突目标之间的权衡)带来的挑战,RLHF在多任务学习(MTL)中存在局限性。目前将RLHF应用于MTL需要仔细调整奖励模型和数据组合的权重,这通常依赖人类直觉完成,且不具备泛化性。在本工作中,我们提出了一种新的后训练范式,称为约束生成策略优化(CGPO)。CGPO的核心是评委混合(Mixture of Judges,MoJ),并结合具有分层(stratification)的成本高效约束策略优化,能够以有原则的方式识别RLHF中的完美融合。该方法在具有理论保证的同时展现出强大的实证结果,不需要大量超参数调优,并且可以即插即用地集成到常见的后训练流程中。综合而言,该方法能够在极其大量的目标之间达到帕累托最优点,同时检测并缓解奖励黑客行为。我们的实证评估表明,CGPO在通用聊天、STEM问题、指令遵循和编程等多种任务上显著优于PPO和DPO等标准RLHF算法。具体而言,CGPO在AlpacaEval-2(通用聊天)上提升了7.4%,在Arena-Hard(STEM与推理)上提升了12.5%,并在数学和编程等其他领域取得了持续增益。值得注意的是,尽管PPO被广泛使用,但它在流行的编程基准测试中容易出现严重的奖励黑客行为,而CGPO成功解决了这一问题。这一RLHF领域的突破不仅应对了奖励黑客和极端多目标优化挑战,还推动了对通用LLM进行多样化应用对齐的最新技术水平。

英文摘要:

Reinforcement learning from human feedback (RLHF) has become the leading approach for fine-tuning large language models (LLM). However, RLHF has limitations in multi-task learning (MTL) due to challenges of reward hacking and extreme multi-objective optimization (i.e., trade-off of multiple and/or sometimes conflicting objectives). Applying RLHF for MTL currently requires careful tuning of the weights for reward model and data combinations. This is often done via human intuition and does not generalize. In this work, we introduce a novel post-training paradigm which we called Constrained Generative Policy Optimization (CGPO). The core of CGPO is Mixture of Judges (MoJ) with cost-efficient constrained policy optimization with stratification, which can identify the perfect blend in RLHF in a principled manner. It shows strong empirical results with theoretical guarantees, does not require extensive hyper-parameter tuning, and is plug-and-play in common post-training pipelines. Together, this can detect and mitigate reward hacking behaviors while reaching a pareto-optimal point across an extremely large number of objectives. Our empirical evaluations demonstrate that CGPO significantly outperforms standard RLHF algorithms like PPO and DPO across various tasks including general chat, STEM questions, instruction following, and coding. Specifically, CGPO shows improvements of 7.4% in AlpacaEval-2 (general chat), 12.5% in Arena-Hard (STEM & reasoning), and consistent gains in other domains like math and coding. Notably, PPO, while commonly used, is prone to severe reward hacking in popular coding benchmarks, which CGPO successfully addresses. This breakthrough in RLHF not only tackles reward hacking and extreme multi-objective optimization challenges but also advances the state-of-the-art in aligning general-purpose LLMs for diverse applications.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑