跳到正文
arXiv cs.AI· Shuyin Ouyang, Zhaozhi Qian, Faroq AL-Tam, Muhammad AL-Qurishi, Jie M. Zhang·· 3 小时前AI 评分37

代码生成强化学习奖励机制研究:静态检查奖励可替代执行式奖励

A Study of Reinforcement Learning Reward for Code Generation

AI 导读

一项 arXiv 研究系统比较了五种强化学习奖励函数在代码生成中的效果,覆盖两个自回归模型和两个扩散语言模型,在 HumanEval(+)、MBPP(+) 和 LiveCodeBench 上评测。结果显示,单个奖励设置下静态检查奖励是执行式奖励的有力替代,在四个模型中的三个上提升性能,并可将部分自回归模型的训练时间最多缩短 50%。

正文 · 原文

View PDF HTML (experimental)

Abstract:Reinforcement learning (RL) is widely used to improve code generation, typically with rewards based on execution-based test outcomes, but such rewards can be slow, sparse, and misleading, destabilizing training. Execution-free rewards, such as parser- or similarity-based rewards, have been proposed, yet it remains unclear how their effectiveness varies across different model architectures, particularly as diffusion language models emerge as an alternative to autoregressive (AR) models. We present a comprehensive study comparing five reward functions, applied individually, in combination, and via progressive scheduling, across two AR models and two diffusion models, evaluated on HumanEval(+), MBPP(+), and LiveCodeBench. In the single-reward setting, the static checking reward is a strong alternative to the execution-based reward, improving performance in three of four models and reducing wall-clock training time by up to 50% for some AR models. These findings suggest that developers should also consider lightweight yet effective alternatives to expensive execution-based rewards in RL.
Subjects: Software Engineering (cs.SE); Artificial Intelligence (cs.AI)
Cite as: arXiv:2605.17174 [cs.SE]
  (or arXiv:2605.17174v2 [cs.SE] for this version)
  https://doi.org/10.48550/arXiv.2605.17174

arXiv-issued DOI via DataCite

Submission history

From: Shuyin Ouyang [view email]
[v1] Sat, 16 May 2026 22:18:04 UTC (365 KB)
[v2] Thu, 26 Nov 2026 09:59:03 UTC (112 KB)

来源:arXiv cs.AI · arxiv.org