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

更小的模型,更聪明的奖励:一种双面方法来处理和结果奖励

Smaller Models, Smarter Rewards: A Two-Sided Approach to Process and Outcome Rewards

University of California, Irvine(加州大学尔湾分校);SAP Lab(SAP实验室);Stanford Human-Centered AI Institution(斯坦福人本AI机构)

Jan Niklas Groeneveld, Xi Qin, Alexander Schaefer, Yaad Oren

AI总结:

本文提出了一种双面方法,利用小型语言模型生成高质量代码,通过融合过程和结果奖励,提升了代码生成的搜索能力。

摘要:

生成高质量的代码仍然是大型语言模型(LLMs)面临的挑战。为了在这一任务上发展推理模型,奖励模型是一个必要的中间步骤。这些模型判断结果或中间步骤。通过引入回归层和监督微调,解码器-only transformer模型可以被转换为奖励模型。虽然已知反思能力通常随着模型大小的增加而增加,但我们希望调查是否可以将最先进的小型语言模型,如Phi-4家族,转换为能够融合过程奖励和结果奖励的实用奖励模型。为实现这一目标,我们构建了一个带有正确性标签的代码样本数据集,这些标签来源于APPS编码挑战基准测试。然后我们训练了一个价值头模型来估计中间输出的成功概率。我们的评估显示,小型LLMs能够作为有效的奖励模型或代码评估批评者,成功地在多个候选方案中识别出正确的解决方案。使用这个批评者,我们实现了在多个生成中获得最佳代码的搜索能力超过20%的提升。

英文摘要:

Generating high-quality code remains a challenge for Large Language Models (LLMs). For the evolution of reasoning models on this task, reward models are a necessary intermediate step. These models judge outcomes or intermediate steps. Decoder-only transformer models can be turned into reward models by introducing a regression layer and supervised fine-tuning. While it is known that reflection capabilities generally increase with the size of a model, we want to investigate whether state-of-the-art small language models like the Phi-4 family can be turned into usable reward models blending the consideration of process rewards and outcome rewards. Targeting this goal, we construct a dataset of code samples with correctness labels derived from the APPS coding challenge benchmark. We then train a value-head model to estimate the success probability of intermediate outputs. Our evaluation shows that small LLMs are capable of serving as effective reward models or code evaluation critics, successfully identifying correct solutions among multiple candidates. Using this critic, we achieve over a 20% improvement in the search capability of the most accurate code out of multiple generations.

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

↑