ACE: Self-Evolving LLM Coding Framework via Adversarial Unit Test Generation and Preference Optimization
On the map: LLM alignment / RLHF / preference optimisation → Process reward models for reasoning
Abstract (arXiv)
Large Language Models (LLMs) excel at code generation but remain heavily reliant on large-scale annotated solutions and verification-based supervision, which constrains scalability and hinders sustained self-improvement. Recent solver--verifier frameworks exploit program execution as an automatic supervision signal, but their effectiveness degrades as solvers become moderately strong: verifier-generated tests increasingly confirm semantic correctness rather than exposing the remaining failure modes. We propose ACE, a self-evolving code generation framework based on a solver--adversary architecture that prioritizes active failure discovery through execution-centric supervision. A single LLM alternates between generating candidate programs and producing adversarial unit test inputs optimized to induce execution-level failures, such as runtime errors, exceptions, or non-termination. Supervision is derived solely from execution outcomes: robust programs are selected for supervised fine-tuning, while adversarial tests are optimized via Kahneman--Tversky Optimization using execution-derived preferences. Notably, the entire training loop requires no ground-truth code or external reward models. Experiments on CodeContests, MBPP, and LiveCodeBench demonstrate that ACE consistently outperforms strong solver--verifier baselines, achieving 3--7% absolute gains in pass@1, with larger improvements on out-of-distribution benchmarks, while maintaining competitive or improved inference efficiency.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Placed in Process reward models for reasoning, one of 10 directions in LLM alignment / RLHF / preference optimisation. Builds on 20 of its 25 references that are in the map. First posted on arXiv 17 Apr 2026.
Builds on
20 of 25 references.
Closest ancestors · 1
Same direction, newest first
- 2024DSTC: Direct Preference Learning with Only Self-Generated Tests and Code to Improve Code LMs20 Nov
Other references · 19
- 2017Proximal Policy Optimization Algorithmscited by 14,441
- 2025Qwen3 Technical Reportcited by 8,195
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
- 2024Qwen2.5 Technical Reportcited by 4,713
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
- 2022Competition-Level Code Generation with AlphaCodecited by 1,427
- 2024A Survey on Large Language Models for Code Generationcited by 646
- 2024Self-Play Fine-Tuning Converts Weak Language Models to Strong Language Modelscited by 552
- 2022Large Language Models are Zero-Shot Fuzzers: Fuzzing Deep-Learning Libraries via Large Language Modelscited by 102
- 2024A Survey on Self-Evolution of Large Language Modelscited by 86
7 more
- 2025Self-rewarding correction for mathematical reasoningcited by 67
- 2024SelfCodeAlign: Self-Alignment for Code Generationcited by 61
- 2025Co-Evolving LLM Coder and Unit Tester via Reinforcement Learningcited by 51
- 2025Learning to Solve and Verify: A Self-Play Framework for Code and Test Generationcited by 34
- 2025Large Language Models for Code Generation: A Comprehensive Survey of Challenges, Techniques, Evaluation, and Applicationscited by 26
- 2018Gray-box Adversarial Testing for Control Systems with Machine Learning Componentcited by 8
- 2025ATGen: Adversarial Reinforcement Learning for Test Case Generationcited by 3
Built on by
Citing papers per year: 2026: 3.
3 papers.
- 2026GUI Agents for Continual Game Generationcited by 16
- 2026Skill Self-Play: Pushing the Frontier of LLM Capability with Co-Evolving Skillscited by 6
- 2026Self-Evolving Coding Agentscited by 2
- 2026Self-Evolving Coding Agents4 Aug 2026
- 2026Skill Self-Play: Pushing the Frontier of LLM Capability with Co-Evolving Skills24 Jul 2026
- 2026GUI Agents for Continual Game Generation27 May 2026
Similar, not cited
Close in wording, no citation either way
- 2026EvoCodeBench: A Human-Performance Benchmark for Self-Evolving LLM-Driven Coding Systems
- 2025Rethinking Verification for LLM Code Generation: From Generation to Testing
- 2025Chain-of-Code Collapse: Reasoning Failures in LLMs via Adversarial Prompting in Code Generation
- 2025EVALOOOP: A Self-Consistency-Centered Framework for Assessing Large Language Model Robustness in Programming
- 2025Increasing LLM Coding Capabilities through Diverse Synthetic Coding Tasks
- 2025Enhancing LLM Code Generation: A Systematic Evaluation of Multi-Agent Collaboration and Runtime Debugging for Improved Accuracy, Reliability, and Latency
- 2025HardTests: Synthesizing High-Quality Test Cases for LLM Coding
- 2026Scaling Agentic Verifier for Competitive Coding