LaSeR: Reinforcement Learning with Last-Token Self-Rewarding
LaSeR算法通过利用最后一个词的自我奖励分数来提高大型语言模型在推理任务中的性能和自我验证能力。
更新于 2025-10-17。作者:Wenkai Yang、Weijie Liu、Ruobing Xie、Yiju Guo、Lulu Wu、Saiyong Yang、Yankai Lin。
中文摘要
基于可验证奖励的强化学习(RLVR)最近成为提升大型语言模型(LLMs)推理能力的一种核心范式。为了解决测试时缺乏验证信号的问题,先前的研究将模型自我验证能力的训练纳入标准的RLVR流程中,从而在单个LLM中统一推理和验证能力。然而,以往的做法要求LLM使用两个不同的提示模板依次生成解决方案和自我验证,这显著降低了效率。在本工作中,我们理论上揭示了自验证RL目标闭合形式的解可以简化为一个非常简单的形式:解决方案的真实推理奖励等于其最后一个标记的自我奖励分数,该分数被计算为策略模型分配给解决方案最后一个标记的任何预指定标记的下一个标记的对数概率与预先计算的一个常数的差值,并通过KL系数进行缩放。基于这一洞察,我们提出了LaSeR(基于最后一个标记自我奖励的强化学习),该算法简单地将原始RLVR损失增加了一个均方误差损失,该损失使最后一个标记的自我奖励分数与验证器推理奖励对齐,共同优化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.
解读
一句话总结
LaSeR算法通过利用最后一个词的自我奖励分数来提高大型语言模型在推理任务中的性能和自我验证能力。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:强化学习与可验证奖励(RLVR)在增强大型语言模型(LLMs)推理能力方面显示出巨大潜力,但测试时缺乏验证信号。
- 现有方案不足:现有的RLVR方法要求LLM分别使用两个不同的提示模板生成解决方案和自我验证,这大大降低了效率。
- 研究目标:提出LaSeR算法,通过优化最后一个词的自我奖励分数与基于验证器的推理奖励之间的MSE损失,以提高LLMs的推理和自我奖励能力。
问题2:论文的核心创新点是什么?
- 技术创新:提出了一种基于最后一个词的自我奖励分数的新方法,该分数基于策略模型在解决方案最后一个词处的下一个词的对数概率分布。
- 方法改进:将MSE损失添加到标准RLVR损失中,以联合优化LLMs的推理和自我奖励能力。
- 优势:LaSeR算法在几乎不增加额外成本的情况下,提高了推理性能和自我奖励能力。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在LLaMA和Qwen架构上进行的实验,包括预训练、中训练和强化变体。
- 性能提升:LaSeR方法不仅有效提高了策略模型的推理性能,而且其自我奖励准确率达到了高水平,从而提高了模型输出置信度校准和推理时间缩放性能。
- 对比结果:LaSeR在自我验证F1分数上优于外部奖励模型,并达到与72B奖励模型相当的性能。
问题4:这个研究的实际应用价值是什么?
- 应用场景:数学推理、通用推理等需要复杂推理能力的应用。
- 实施建议:将LaSeR算法集成到LLMs的推理和训练流程中,以提高模型性能。
- 局限与展望:LaSeR在通用推理任务上的表现有限,未来工作可以探索提高其泛化能力的方法。