arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.14943cs.CLcs.AIcs.LG
收藏

LaSeR:基于最后令牌自我奖励的强化学习

LaSeR: Reinforcement Learning with Last-Token Self-Rewarding

Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学耿丽人工智能学院);LLM Department, Tencent(腾讯机器学习部)

Wenkai Yang, Weijie Liu, Ruobing Xie, Yiju Guo, Lulu Wu, Saiyong Yang, Yankai Lin

AI总结:

针对RLVR中自我验证效率低的问题,本文提出LaSeR算法,利用最后令牌自我奖励分数简化奖励计算,联合优化推理与自我奖励,提升模型性能。

摘要:

基于可验证奖励的强化学习(RLVR)近期已成为增强大型语言模型(LLMs)推理能力的核心范式。为了解决测试时缺乏验证信号的问题,先前的研究将模型自我验证能力的训练纳入标准RLVR流程,从而在单个LLM中统一推理与验证能力。然而,先前的实践要求LLM使用两种独立的提示模板顺序生成解决方案和进行自我验证,这显著降低了效率。在本工作中,我们从理论上揭示,自我验证的RL目标的最优闭式解可以简化为一个极其简单的形式:一个解决方案的真实推理奖励等于其最后令牌的自我奖励分数,该分数计算为策略模型在解决方案最后令牌处分配给任何预设令牌的下一令牌对数概率与一个预先计算的常数之差,并按KL系数缩放。基于这一见解,我们提出了LaSeR(基于最后令牌自我奖励的强化学习)算法,该算法简单地将原始RLVR损失与一个均方误差(MSE)损失相结合,该MSE损失将最后令牌的自我奖励分数与基于验证器的推理奖励对齐,从而联合优化LLMs的推理和自我奖励能力。优化后的自我奖励分数可在训练和测试中使用,以提升模型性能。值得注意的是,我们的算法在生成后立即从最后令牌的预测下一令牌概率分布中推导出这些分数,仅产生额外一次令牌推理的最小成本。实验表明,我们的方法不仅提升了模型的推理性能,还赋予其显著的自我奖励能力,从而增强了其推理时扩展性能。

英文摘要:

Reinforcement Learning with Verifiable Rewards (RLVR) has recently emerged as a core paradigm for enhancing the reasoning capabilities of Large Language Models (LLMs). To address the lack of verification signals at test time, prior studies incorporate the training of model's self-verification capability into the standard RLVR process, thereby unifying reasoning and verification capabilities within a single LLM. However, previous practice requires the LLM to sequentially generate solutions and self-verifications using two separate prompt templates, which significantly reduces efficiency. In this work, we theoretically reveal that the closed-form solution to the RL objective of self-verification can be reduced to a remarkably simple form: the true reasoning reward of a solution is equal to its last-token self-rewarding score, which is computed as the difference between the policy model's next-token log-probability assigned to any pre-specified token at the solution's last token and a pre-calculated constant, scaled by the KL coefficient. Based on this insight, we propose LaSeR (Reinforcement Learning with Last-Token Self-Rewarding), an algorithm that simply augments the original RLVR loss with a MSE loss that aligns the last-token self-rewarding scores with verifier-based reasoning rewards, jointly optimizing the reasoning and self-rewarding capabilities of LLMs. The optimized self-rewarding scores can be utilized in both training and testing to enhance model performance. Notably, our algorithm derives these scores from the predicted next-token probability distribution of the last token immediately after generation, incurring only the minimal extra cost of one additional token inference. Experiments show that our method not only improves the model's reasoning performance but also equips it with remarkable self-rewarding capability, thereby boosting its inference-time scaling performance.

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

↑