arXiv:2409.20370cs.LGcs.AI2024-09被引 36

用混合裁判机制解决大模型强化学习中的奖励作弊与多目标冲突问题。

The Perfect Blend: Redefining RLHF with Mixture of Judges

  • 引入混合裁判框架,通过分层约束优化自动找到最佳训练组合。
  • 在多个任务上显著超越PPO和DPO,如代码任务提升12.5%。
  • 无需调参,可直接接入现有训练流程,适合追求鲁棒对齐的开发者。

强化学习从人类反馈(RLHF)已成为微调大语言模型(LLM)的主流方法。然而,由于奖励欺骗和极端多目标优化(即多个甚至冲突目标间的权衡)的挑战,其在多任务学习(MTL)中存在局限性。当前应用RLHF进行MTL需人工精心调整奖励模型与数据组合的权重,依赖直觉且难以泛化。本文提出一种新型后训练范式——受约束生成策略优化(CGPO),核心为混合裁判(MoJ)与成本高效的分层约束策略优化,能以系统化方式识别RLHF中的最优融合方案。该方法在保证理论保障的同时展现出强劲的实证表现,无需大量超参数调优,且可无缝嵌入常见后训练流程。它能有效检测并缓解奖励欺骗行为,同时在极多目标下达到帕累托最优。实验表明,CGPO在通用对话、STEM问答、指令遵循和编程等多个任务上显著优于标准的PPO与DPO算法,例如在AlpacaEval-2上提升7.4%,在Arena-Hard上提升12.5%,并在数学与编码任务中保持一致优势。值得注意的是,传统广泛使用的PPO在主流编程基准中易出现严重奖励欺骗,而CGPO成功解决了该问题。这一突破不仅应对了奖励欺骗与极端多目标优化的挑战,更推动了通用大模型在多样化应用场景中的对齐技术发展。

原文摘要 · Abstract (English)

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.

强化学习模型对齐多任务学习奖励机制

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。