用可微方法替代策略梯度,让大模型对齐更稳定高效
GRADE: Replacing Policy Gradients with Backpropagation for LLM Alignment
- 用Gumbel-Softmax重构离散采样,实现奖励信号直接反向传播
- 在IMDB数据集上测试奖励达0.763,比PPO提升50%且方差降低14倍
- 适合追求训练稳定性和高效对齐的LLM研究者和工程师
基于人类反馈的强化学习(RLHF)已成为对齐大语言模型与人类偏好的主流范式。然而,PPO等策略梯度方法存在梯度估计方差高、超参数调优复杂、计算资源消耗大等问题。本文提出GRADE(Gumbel-Softmax Relaxation for Alignment via Differentiable Estimation),通过可微松弛重构离散令牌采样过程,将高方差的策略梯度替换为直接反向传播。采用带有直通估计的Gumbel-Softmax(GRADE-STE),实现从奖励信号经生成文本到模型参数的端到端梯度流动。在使用IMDB数据集进行情感控制文本生成任务中,GRADE-STE测试奖励为0.763 ± 0.344,优于PPO的0.510 ± 0.313和REINFORCE的0.617 ± 0.378,相对提升50%。关键的是,GRADE-STE的梯度方差比REINFORCE低超过14倍,训练过程始终稳定。通过合理的训练/验证/测试划分评估表明,该方法在未见数据上表现最佳,泛化能力最强。GRADE为大模型对齐提供了一种更简单、更稳定、更高效的选择。
原文摘要 · Abstract (English)
Reinforcement learning from human feedback (RLHF) has become the dominant paradigm for aligning large language models with human preferences. However, policy gradient methods such as PPO suffer from high variance gradient estimates, requiring careful hyperparameter tuning and extensive computational resources. We introduce GRADE (Gumbel-softmax Relaxation for Alignment via Differentiable Estimation), a method that replaces high-variance policy gradient estimation with direct backpropagation through a differentiable relaxation of the discrete token sampling process. Using the Gumbel-Softmax reparameterization with straight-through estimation (GRADE-STE), we enable end-to-end gradient flow from reward signals through generated tokens to model parameters. On sentiment-controlled text generation using the IMDB dataset, GRADE-STE achieves a test reward of 0.763 +- 0.344 compared to PPO's 0.510 +- 0.313 and REINFORCE's 0.617 +- 0.378, representing a 50% relative improvement over PPO. Critically, GRADE-STE exhibits gradient variance over 14 times lower than REINFORCE and maintains stable training dynamics throughout optimization. Our rigorous evaluation with proper train/validation/test splits demonstrates that these improvements generalize to held-out data, with GRADE-STE showing the best generalization characteristics among all methods tested. GRADE offers a simpler, more stable, and more effective alternative to reinforcement learning for LLM alignment.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。