arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2601.03525cs.LGcs.AI
收藏

超越二元:将部分成功转化为代码生成中强化学习的密集可验证奖励

Beyond Binary: Turning Partial Success into Dense Verifiable Rewards for Reinforcement Learning in Code Generation

Institute of Artificial Intelligence, China Telecom (TeleAI)(中国电信人工智能研究院(TeleAI));Xingchen AGI Lab, China Telecom Artificial Intelligence Technology (Beijing) Co., Ltd(中国电信人工智能技术(北京)有限公司Xingchen AGI实验室);National Key Laboratory of Human-Machine Hybrid Augmented Intelligence, Xi’an Jiaotong University(人机混合增强智能国家重点实验室,西安交通大学)

Longwen Wang, Yirui Liu, Xuan'er Wu, Xiaohui Hu, Yuankai Fan, Kaidong Yu, Qizhen Weng, Wei Xi, Xuelong Li

AI总结:

提出VeRPO框架,利用代码测试的部分成功作为可验证密集奖励,通过动态密度校准局部奖励修正基数偏差,并与全局执行结果结合,提升代码生成强化学习的性能。

摘要:

有效的奖励设计是代码生成强化学习(RL)中的核心挑战。主流的测试套件级结果奖励强制执行功能正确性但导致稀疏性,而外部奖励模型(RM)提供密集监督但代价是错位和额外开销。由于代码评估自然产生多个测试用例级结果,部分成功(即通过部分测试用例)提供了内在的、可验证的密集监督来源。在本文中,我们提出VeRPO(可验证密集奖励策略优化),一个系统地将可验证的部分成功转化为可靠密集奖励的RL框架。我们使用加权和公式分析部分成功奖励,理论上识别出一个关键的基数偏差,导致策略更新不成比例地偏向于从简单测试成功中获益,而非在前沿测试上取得进展。基于此,VeRPO引入了一个动态的、密度校准的局部奖励,明确纠正这种偏差,并从部分成功中提供稳健的密集监督。为了增强与端到端功能正确性的一致性,VeRPO进一步将局部密集奖励与全局执行结果相结合。在多种基准和设置上的大量实验表明,VeRPO优于结果驱动和基于RM的基线,实现了高达+8.83 pass@1的提升,且时间成本可忽略不计(<0.02%),GPU内存开销为零。

英文摘要:

Effective reward design is a central challenge in Reinforcement Learning (RL) for code generation. Mainstream test-suite-level outcome rewards enforce functional correctness but induce sparsity, while external Reward Models (RMs) provide dense supervision at the cost of misalignment and additional overhead. Since code evaluation naturally yields multiple test-case-level outcomes, partial success, i.e., passing a subset of test cases, offers an intrinsic, verifiable source of dense supervision. In this paper, we propose VeRPO (Verifiable Dense Reward Policy Optimization), an RL framework that systematically turns verifiable partial success into reliable dense rewards. We analyze partial-success rewards using a weighted sum formulation, theoretically identifying a critical cardinality bias that causes policy updates to disproportionately favor gains from easy-test successes over progress on frontier tests. Based on this, VeRPO introduces a dynamic, density-calibrated local reward that explicitly corrects this bias and provides robust dense supervision from partial success. To enhance alignment with end-to-end functional correctness, VeRPO further integrates the local dense reward with global execution outcomes. Extensive experiments across diverse benchmarks and settings demonstrate that VeRPO outperforms outcome-driven and RM-based baselines, achieving up to +8.83 pass@1 gain with negligible time cost (< 0.02%) and zero GPU memory overhead.

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

↑