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

重新思考LLM强化学习中的信任区域

Rethinking the Trust Region in LLM Reinforcement Learning

University of California, Berkeley(加州大学伯克利分校);University of Toronto(多伦多大学)

Penghui Qi, Xiangxin Zhou, Zichen Liu, Tianyu Pang, Chao Du, Min Lin, Wee Sun Lee

AI总结:

针对PPO在LLM微调中因词表大导致的训练不稳定问题,提出基于策略散度直接约束的DPPO算法,并引入高效近似方法。

摘要:

强化学习已成为微调大型语言模型(LLM)的基石,其中近端策略优化(PPO)是事实上的标准算法。尽管其普遍存在,我们认为PPO中的核心比率裁剪机制在结构上不适合LLM固有的大词表。PPO基于采样令牌的概率比率约束策略更新,该比率是对真实策略散度的有噪单样本蒙特卡洛估计。这导致次优的学习动态:低概率令牌的更新被过度惩罚,而高概率令牌中潜在的灾难性变化却约束不足,导致训练效率低下和不稳定。为解决此问题,我们提出散度近端策略优化(DPPO),用基于策略散度(如总变差或KL)直接估计的更原则性约束替代启发式裁剪。为避免巨大内存占用,我们引入了高效的二元和Top-K近似,以可忽略的开销捕获本质散度。大量实证评估表明,DPPO相比现有方法实现了更优的训练稳定性和效率,为基于RL的LLM微调提供了更稳健的基础。我们的代码可在https://github.com/sail-sg/Stable-RL获取。

英文摘要:

Reinforcement learning (RL) has become a cornerstone for fine-tuning Large Language Models (LLMs), with Proximal Policy Optimization (PPO) serving as the de facto standard algorithm. Despite its ubiquity, we argue that the core ratio clipping mechanism in PPO is structurally ill-suited for the large vocabularies inherent to LLMs. PPO constrains policy updates based on the probability ratio of sampled tokens, which serves as a noisy single-sample Monte Carlo estimate of the true policy divergence. This creates a sub-optimal learning dynamic: updates to low-probability tokens are aggressively over-penalized, while potentially catastrophic shifts in high-probability tokens are under-constrained, leading to training inefficiency and instability. To address this, we propose Divergence Proximal Policy Optimization (DPPO), which substitutes heuristic clipping with a more principled constraint based on a direct estimate of policy divergence (e.g., Total Variation or KL). To avoid huge memory footprint, we introduce the efficient Binary and Top-K approximations to capture the essential divergence with negligible overhead. Extensive empirical evaluations demonstrate that DPPO achieves superior training stability and efficiency compared to existing methods, offering a more robust foundation for RL-based LLM fine-tuning. Our code is available at https://github.com/sail-sg/Stable-RL.

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

↑