mlsanityData to 7 Oct 2026

ACE: Self-Evolving LLM Coding Framework via Adversarial Unit Test Generation and Preference Optimization

arXiv 2605.16299 ↗First posted 17 Apr 2026cs.SE cs.AIcited by 3

On the map: LLM alignment / RLHF / preference optimisation → Process reward models for reasoning

also in 1 more
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

  1. 2024DSTC: Direct Preference Learning with Only Self-Generated Tests and Code to Improve Code LMs20 Nov

Other references · 19

  1. 2017Proximal Policy Optimization Algorithmscited by 14,441
  2. 2025Qwen3 Technical Reportcited by 8,195
  3. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
  4. 2024Qwen2.5 Technical Reportcited by 4,713
  5. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
  6. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
  7. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
  8. 2022Competition-Level Code Generation with AlphaCodecited by 1,427
  9. 2024A Survey on Large Language Models for Code Generationcited by 646
  10. 2024Self-Play Fine-Tuning Converts Weak Language Models to Strong Language Modelscited by 552
  11. 2022Large Language Models are Zero-Shot Fuzzers: Fuzzing Deep-Learning Libraries via Large Language Modelscited by 102
  12. 2024A Survey on Self-Evolution of Large Language Modelscited by 86
7 more
  1. 2025Self-rewarding correction for mathematical reasoningcited by 67
  2. 2024SelfCodeAlign: Self-Alignment for Code Generationcited by 61
  3. 2025Co-Evolving LLM Coder and Unit Tester via Reinforcement Learningcited by 51
  4. 2025Learning to Solve and Verify: A Self-Play Framework for Code and Test Generationcited by 34
  5. 2025Large Language Models for Code Generation: A Comprehensive Survey of Challenges, Techniques, Evaluation, and Applicationscited by 26
  6. 2018Gray-box Adversarial Testing for Control Systems with Machine Learning Componentcited by 8
  7. 2025ATGen: Adversarial Reinforcement Learning for Test Case Generationcited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 3.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026EvoCodeBench: A Human-Performance Benchmark for Self-Evolving LLM-Driven Coding Systems
  2. 2025Rethinking Verification for LLM Code Generation: From Generation to Testing
  3. 2025Chain-of-Code Collapse: Reasoning Failures in LLMs via Adversarial Prompting in Code Generation
  4. 2025EVALOOOP: A Self-Consistency-Centered Framework for Assessing Large Language Model Robustness in Programming
  5. 2025Increasing LLM Coding Capabilities through Diverse Synthetic Coding Tasks
  6. 2025Enhancing LLM Code Generation: A Systematic Evaluation of Multi-Agent Collaboration and Runtime Debugging for Improved Accuracy, Reliability, and Latency
  7. 2025HardTests: Synthesizing High-Quality Test Cases for LLM Coding
  8. 2026Scaling Agentic Verifier for Competitive Coding