paper-with-me

Papers

Code-A1: Adversarial Evolving of Code LLM and Test LLM via Reinforcement Learning

2026-03-16 · Aozhe Wang, Yuchen Yan, Nan Zhou, Zhengxi Lu, Weiming Lu, Jun Xiao, Yueting Zhuang, Yongliang Shen 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.

📄 PDF Abstract BibTeX arXiv:2603.15611

Code (0)

등록된 구현이 없습니다.

Tasks

Reinforcement LearningCode Generation

Similar Papers 제목 키워드 기반

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

2026-03-13 · Chi Ruan, Dongfu Jiang, Huaye Zeng, Ping Nie 외 arxiv

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 c…

Reinforcement LearningCode Generation

An Evolving Scenario Generation Method based on Dual-modal Driver Model Trained by Multi-Agent Reinforcement Learning

2025-08-04 · Xinzheng Wu, Junyi Chen, Shaolingfeng Ye, Wei Jiang 외 arxiv

In the autonomous driving testing methods based on evolving scenarios, the construction method of the driver model, which determines the driving maneuvers of background vehicles (BVs) in the scenario, plays a critical ro…

Multi-agent Reinforcement LearningAutonomous Driving

GAR: Generative Adversarial Reinforcement Learning for Formal Theorem Proving

2025-10-13 · Ruida Wang, Jiarui Yao, Rui Pan, Shizhe Diao 외 arxiv

Solving math problems through verifiable languages such as Lean has significantly impacted both the mathematics and computer science communities. Current state-of-the-art models are often trained with expensive online Re…

Reinforcement Learning

Co-Evolving LLM Coder and Unit Tester via Reinforcement Learning

2025-06-03 · Yinjie Wang, Ling Yang, Ye Tian, Ke Shen 외

We propose CURE, a novel reinforcement learning framework with a dedicated reward design that co-evolves coding and unit test generation capabilities based on their interaction outcomes, without any ground-truth code as …

Code Generationreinforcement-learningReinforcement Learning

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

2026-04-17 · Yixu Huang, Xinglei Yu, Zhongyu Wei 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.…

Code Generation