ReAPO:用于大语言模型推理高效探索的感知重试策略优化
ReAPO: Retry-Aware Policy Optimization for Efficient Exploration in LLM Reasoning
AI总结:
该研究针对大语言模型推理探索效率问题,提出ReAPO算法,通过随机最短路径视角优化信用分配,在多模型多基准测试中提升了推理性能,且生成token量更少。
摘要:
RLVR可提升语言模型推理能力,但通常依赖独立随机rollout进行探索,会反复采样相似的失败策略。现有研究通过在后续尝试的上下文纳入错误解,在采样过程中引入依赖来引导探索,取得了一定成功,但这些方法仍存在如何为每次尝试分配信用的额外问题。我们提出从随机最短路径的视角看待信用分配,这是经典强化学习中旨在最小化到达终止状态(本文中为经验证的成功响应)的期望累积成本的框架。我们表明,在适当简化假设下,该视角自然会对GRPO进行简单修改,即感知重试策略优化(ReAPO)。ReAPO为失败轨迹分配额外生成资源,允许强化成功重试而不奖励之前的失败,并以理论上合理的方式为每次尝试分配信用。在Qwen3和OLMo-2模型(参数规模从0.6B到4B)以及8个数学与科学推理基准测试中,ReAPO相较于GRPO及近期自然基线算法,提升了首次尝试的性能;额外的 ablation 实验证明了串行采样和ReAPO信用分配的效用。在Qwen3-0.6B上,ReAPO的性能优于组大小为两倍或训练步数为两倍的GRPO,且分别减少了39%和31%的生成token量即可达到其峰值准确率。综上,我们的结果表明ReAPO是一种通过改进探索和感知重试信用分配来提升语言模型推理性能的简单且有效的方法。
英文摘要:
RLVR improves language-model reasoning, but commonly relies on independent stochastic rollouts for exploration, which can repeatedly sample similar failed strategies. Prior work has seen success with approaches that guide exploration by introducing dependence into the sampling process by including incorrect solutions in the context for subsequent attempts. Still, these methods introduce the additional question of how to assign credit to each attempt. We propose to view the credit assignment through the lens of Stochastic Shortest Paths, a framework in classical reinforcement learning that seeks to minimize the expected cumulative cost to reach a terminal state (in our case, a verified successful response). We show that, under suitable simplifying assumptions, this perspective naturally leads to a simple modification to GRPO, which we call Retry-Aware Policy Optimization (ReAPO). ReAPO allocates additional generation to failed trajectories, allowing successful retries to be reinforced without rewarding preceding failures, and assigns credit in a theoretically principled way to each attempt. Across Qwen3 and OLMo-2 models from 0.6B to 4B and eight mathematical and scientific reasoning benchmarks, ReAPO improves first-attempt performance over GRPO as well as natural recent baseline algorithms, while additional ablations demonstrate the utility of both serial sampling and ReAPO's credit assignment. On Qwen3-0.6B, ReAPO also outperforms GRPO with twice the group size or twice the training steps, reaching their peak accuracy with 39% and 31% fewer generated tokens, respectively. Taken together, our results suggest that ReAPO is a simple yet effective approach for improving LM reasoning performance through improved exploration and retry-aware credit assignment.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。