EvolveCoder: Evolving Test Cases via Adversarial Verification for Code Reinforcement Learning
Chi Ruan, Dongfu Jiang, Huaye Zeng, Ping Nie, Wenhu Chen

TL;DR
This paper introduces EvolveCoder, a large-scale dataset created through adversarial test case evolution to enhance reinforcement learning for code generation, leading to improved model performance.
Contribution
It proposes a novel adversarial verification framework and constructs EvolveCoder-22k, a dataset that significantly improves verification strength and reinforcement learning outcomes.
Findings
Verification strength increased, pass@1 decreased from 43.80 to 31.22
Reinforcement learning on EvolveCoder-22k improves downstream performance
Outperforms strong 4B-scale baseline models
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdversarial Robustness in Machine Learning · Topic Modeling · Software Testing and Debugging Techniques
