atlas

Research map / Large language models / Reasoning and chain of thought

Learning to Generate Unit Test via Adversarial Reinforcement Learning

ICLR 2026 · Large language models › Reasoning and chain of thought · approach: RL with verifiable rewards for reasoning · 2 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes UTRL, an adversarial RL framework that alternately trains a unit test generator (reward: discrimination of LLM code from ground-truth code plus test validity) and a code generator (reward: pass rate on generated tests), using only instruction-code pairs.

Problem

Training LLMs to generate high-quality unit tests usually requires costly ground-truth unit test labels; a reward for test quality without such labels is hard to define.

Approach

Adversarial co-training: the test generator is rewarded for tests that fail LLM-generated code yet pass ground-truth code (discrimination reward), and the code generator is rewarded for passing the generated tests, so only instruction-code solution pairs are needed.

Key results

Surprising findings

Limitations

Experimental setup

Datasets: TACO CodeContests LiveCodeBench-v2

Benchmarks: TACO evaluation (945 tasks) LiveCodeBench-v2 (511 tasks)

Metrics: best-of-N code score best-of-N code accuracy unit test fidelity (Spearman correlation) pass@1 code accuracy validity ratio

Baselines: Qwen3-4B Qwen3-8B Qwen3-14B Qwen3-32B Deepseek-Coder-V2-Lite GPT-4o GPT-4.1 SFT w/ D_UT SFT w/ D_reason+UT CURE Ground-truth unit tests

Builds on: GRPO CURE CodeRM UTGEN

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy