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.
翻译:暂无翻译