arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.12698cs.CL
收藏

EvolveCoder:通过对抗验证演化测试用例以增强代码强化学习

EvolveCoder: Evolving Test Cases via Adversarial Verification for Code Reinforcement Learning

University of Waterloo(多伦多大学);Vector Institute(向量研究所);Harvard University(哈佛大学)

Chi Ruan, Dongfu Jiang, Huaye Zeng, Ping Nie, Wenhu Chen

AI总结:

本文提出基于解决方案的对抗验证框架,通过迭代优化测试用例提升验证效果,构建了EvolveCoder-22k数据集,实验证明其在代码生成强化学习中提升模型性能。

摘要:

基于解决方案的对抗验证框架通过迭代优化测试用例提升验证效果,构建了EvolveCoder-22k数据集,实验证明其在代码生成强化学习中提升模型性能。

英文摘要:

Reinforcement learning with verifiable rewards (RLVR) is a promising approach for improving code generation in large language models, but its effectiveness is limited by weak and static verification signals in existing coding RL datasets. In this paper, we propose a solution-conditioned and adversarial verification framework that iteratively refines test cases based on the execution behaviors of candidate solutions, with the goal of increasing difficulty, improving discriminative power, and reducing redundancy. Based on this framework, we introduce EvolveCoder-22k, a large-scale coding reinforcement learning dataset constructed through multiple rounds of adversarial test case evolution. Empirical analysis shows that iterative refinement substantially strengthens verification, with pass@1 decreasing from 43.80 to 31.22. Reinforcement learning on EvolveCoder-22k yields stable optimization and consistent performance gains, improving Qwen3-4B by an average of 4.2 points across four downstream benchmarks and outperforming strong 4B-scale baselines. Our results highlight the importance of adversarial, solution-conditioned verification for effective and scalable reinforcement learning in code generation.

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

↑