Code-A1: Adversarial Evolving of Code LLM and Test LLM via Reinforcement Learning
Not on the map. Why?
Abstract (arXiv)
Reinforcement learning for code generation relies on verifiable rewards from unit test pass rates. Yet high-quality test suites are scarce, existing datasets offer limited coverage, and static rewards fail to adapt as models improve. Recent self-play methods unify code and test generation in a single model, but face a inherent dilemma: white-box access leads to self-collusion where the model produces trivial tests for easy rewards, yet black-box restriction yields generic tests that miss implementation-specific bugs. We introduce Code-A1, an adversarial co-evolution framework that jointly optimizes a Code LLM and a Test LLM with opposing objectives. The Code LLM is rewarded for passing more tests, while the Test LLM is rewarded for exposing more defects. This architectural separation eliminates self-collusion risks and safely enables white-box test generation, where the Test LLM can inspect candidate code to craft targeted adversarial tests. We further introduce a Mistake Book mechanism for experience replay and a composite reward balancing test validity with adversarial difficulty. Experiments on Qwen2.5-Coder models demonstrate that Code-A1 achieves code generation performance matching or exceeding models trained on human-annotated tests, while significantly improving test generation capability.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 30 of its 32 references that are in the map. First posted on arXiv 16 Mar 2026.
Builds on
30 of 32 references.
References · 30
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2025DAPO: An Open-Source LLM Reinforcement Learning System at Scalecited by 2,678
- 2024HybridFlow: A Flexible and Efficient RLHF Frameworkcited by 1,980
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
- 2024Qwen2.5-Coder Technical Reportcited by 1,151
- 2022CodeT: Code Generation with Generated Testscited by 369
- 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 342
- 2025Absolute Zero: Reinforced Self-play Reasoning with Zero Datacited by 323
- 2025SWE-smith: Scaling Data for Software Engineering Agentscited by 255
18 more
- 2024Sycophancy to Subterfuge: Investigating Reward-Tampering in Large Language Modelscited by 158
- 2025KodCode: A Diverse, Challenging, and Verifiable Synthetic Dataset for Codingcited by 115
- 2023RLTF: Reinforcement Learning from Unit Test Feedbackcited by 110
- 2023Execution-based Code Generation using Deep Reinforcement Learningcited by 95
- 2025ACECODER: Acing Coder RL via Automated Test-Case Synthesiscited by 89
- 2024o1-Coder: an o1 Replication for Codingcited by 77
- 2023PanGu-Coder2: Boosting Large Language Models for Code with Ranking Feedbackcited by 69
- 2025Multi-Agent Evolve: LLM Self-Improve through Co-evolutioncited by 58
- 2024FullStack Bench: Evaluating LLMs as Full Stack Coderscited by 56
- 2024TestGenEval: A Real World Unit Test Generation and Test Completion Benchmarkcited by 49
- 2025ExGRPO: Learning to Reason from Experiencecited by 49
- 2024CoverUp: Effective High Coverage Test Generation for Pythoncited by 36
- 2025Search Self-play: Pushing the Frontier of Agent Capability without Supervisioncited by 31
- 2024TOGLL: Correct and Strong Test Oracle Generation with LLMscited by 23
- 2025HardTests: Synthesizing High-Quality Test Cases for LLM Codingcited by 22
- 2024LLMorpheus: Mutation Testing using Large Language Modelscited by 8
- 2025Benchmarking LLMs for Unit Test Generation from Real-World Functionscited by 8
- 2025Towards Functional Correctness of Large Code Models with Selective Generationcited by 1
Built on by
Citing papers per year: 2026: 6.
6 papers.
- 2026SKILL0: In-Context Agentic Reinforcement Learning for Skill Internalizationcited by 82
- 2026Skill Self-Play: Pushing the Frontier of LLM Capability with Co-Evolving Skillscited by 6
- 2026BenchEvolver: Frontier Task Synthesis via Solution-Centric Evolutioncited by 3
- 2026Self-Play Pretraining with Zero Datacited by 1
- 2026XekRung Technical Reportcited by 0
- 2026ExecCritic: Learn to Test, Test to Improve for Coding Agentscited by 0
- 2026Self-Play Pretraining with Zero Data24 Sep 2026
- 2026ExecCritic: Learn to Test, Test to Improve for Coding Agents8 Sep 2026
- 2026Skill Self-Play: Pushing the Frontier of LLM Capability with Co-Evolving Skills24 Jul 2026
- 2026BenchEvolver: Frontier Task Synthesis via Solution-Centric Evolution31 May 2026
- 2026XekRung Technical Report30 Apr 2026
- 2026SKILL0: In-Context Agentic Reinforcement Learning for Skill Internalization2 Apr 2026