arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.07320cs.LGcs.AI
收藏

段落优势估计:增强PPO用于长上下文LLM训练

Segmental Advantage Estimation: Enhancing PPO for Long-Context LLM Training

LLM Department, Tencent(腾讯大语言模型部门);University of Chinese Academy of Sciences(中国科学院大学);Intelligent Software Research Center, Institute of Software, CAS(软件研究所智能软件研究中心);State Key Lab of Processors, Institute of Computing Technology, CAS(计算技术研究所处理器国家重点实验室)

Xue Gong, Qi Yi, Ziyuan Nan, Guanhua Huang, Kejiao Li, Yuhao Jiang, Ruibin Xiong, Zenan Xu, Jiaming Guo, Shaohui Peng, Bo Zhou

AI总结:

段落优势估计通过减少稀疏奖励环境中的偏差,提升PPO在长上下文LLM训练中的稳定性和效率

摘要:

训练大型语言模型(LLM)进行推理任务越来越依赖于可验证奖励的强化学习(RLVR),其中近端策略优化(PPO)提供了一个有原则的框架用于稳定的策略更新。然而,PPO的实际应用受到稀疏奖励RLVR环境中的不可靠优势估计的阻碍。这个问题出现的原因在于RLVR中的稀疏奖励导致中间值预测不准确,这反过来又在每次token被广义优势估计(GAE)聚合时引入了显著的偏差。为了解决这个问题,我们引入了段落优势估计(SAE),该方法减轻了GAE在RLVR中可能产生的偏差。我们的关键见解是,在每个token上聚合n步优势(如GAE)是不必要的且往往引入过量的偏差,因为单个token携带的信息很少。相反,SAE首先使用低概率token作为启发式边界,将生成的序列划分为连贯的子段。然后,它仅从这些信息丰富的段过渡中选择性地计算方差减少的优势估计,从而有效过滤掉中间token的噪声。我们的实验表明,SAE在最终得分、训练稳定性和样本效率方面实现了优越的性能。这些收益在多个模型规模上都是一致的,并且相关性分析证实,我们提出的优势估计器与近似真实优势的相关性更高,从而证明了其优越的性能。

英文摘要:

Training Large Language Models (LLMs) for reasoning tasks is increasingly driven by Reinforcement Learning with Verifiable Rewards (RLVR), where Proximal Policy Optimization (PPO) provides a principled framework for stable policy updates. However, the practical application of PPO is hindered by unreliable advantage estimation in the sparse-reward RLVR regime. This issue arises because the sparse rewards in RLVR lead to inaccurate intermediate value predictions, which in turn introduce significant bias when aggregated at every token by Generalized Advantage Estimation (GAE). To address this, we introduce Segmental Advantage Estimation (SAE), which mitigates the bias that GAE can incur in RLVR. Our key insight is that aggregating $n$-step advantages at every token(as in GAE) is unnecessary and often introduces excessive bias, since individual tokens carry minimal information. Instead, SAE first partitions the generated sequence into coherent sub-segments using low-probability tokens as heuristic boundaries. It then selectively computes variance-reduced advantage estimates only from these information-rich segment transitions, effectively filtering out noise from intermediate tokens. Our experiments demonstrate that SAE achieves superior performance, with marked improvements in final scores, training stability, and sample efficiency. These gains are shown to be consistent across multiple model sizes, and a correlation analysis confirms that our proposed advantage estimator achieves a higher correlation with an approximate ground-truth advantage, justifying its superior performance.

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

↑