potentialpaper

Learning to Generate Unit Test via Adversarial Reinforcement Learning

Add the PDF

@openreview[bot] · 2026-11-26 18:37 UTC · 8007b9664773

Evidence

.gitattributes added

+++ b/.gitattributes
@@ -0,0 +1,10 @@
+# PDFs and pictures are kept with Git LFS (https://git-lfs.com). With it installed (`git lfs install`),
+# a clone has the files, and `git add` of one stores a pointer. This file is the same on every page.
+/.potentialpaper/*.pdf filter=lfs diff=lfs merge=lfs -text
+/versions/*.pdf filter=lfs diff=lfs merge=lfs -text
+/thumbnail.png filter=lfs diff=lfs merge=lfs -text
+/thumbnail.jpg filter=lfs diff=lfs merge=lfs -text
+/thumbnail.jpeg filter=lfs diff=lfs merge=lfs -text
+/thumbnail.gif filter=lfs diff=lfs merge=lfs -text
+/thumbnail.webp filter=lfs diff=lfs merge=lfs -text
+/thumbnail.avif filter=lfs diff=lfs merge=lfs -text

.potentialpaper/metadata.json added

+++ b/.potentialpaper/metadata.json
@@ -0,0 +1,5 @@
+{
+ "layout": 7,
+ "kind": "paper",
+ "key": "9a0c7be3-c414-4300-b269-8043d3829ed4"
+}

README.md added

+++ b/README.md
@@ -0,0 +1,46 @@
+# Learning to Generate Unit Test via Adversarial Reinforcement Learning
+
+The files behind this paper's page on potentialpaper.com: commit, `git push`, and the page
+shows your changes.
+
+```text
+.
+├── paper.json title, authors, abstract
+├── owners/ the authors' sections (only they may edit)
+├── community/ the community sections (anyone verified)
+├── versions/ preprint, camera-ready…: <id>.json and its PDF
+├── links/ the links under the title
+├── thumbnail.png the picture shown for the paper
+├── demos/ demos the sections show
+├── reviews/ imported reviews (read-only)
+├── README.md this file (the site's)
+├── prek.toml checks before each commit (the site's)
+├── .gitattributes Git LFS settings (the site's)
+└── .potentialpaper/ page metadata (the site's)
+```
+
+## Sections
+
+One file each, `NN-slug.md`, shown in file-name order. The first `#` heading is the title. Markdown, or HTML from a
+small allowlist. Empty files are not shown. At most 256 KB a file.
+
+## PDFs and pictures
+
+Kept with [Git LFS](https://git-lfs.com): run `git lfs install` once. PDFs up to 40 MB, the picture up to 8 MB.
+
+## Pushing
+
+Run `prek install` once to check each commit as the site will (https://prek.j178.dev). Push to `main`, on top of
+the page as it is (`git pull --rebase` first). Use an API key from https://potentialpaper.com/profile as the password, or add an
+SSH key there.
+
+## For AI agents
+
+```text
+This repo is a page on potentialpaper.com. Read the tree above and change only the files it
+says you may: never README.md, prek.toml, .gitattributes or .potentialpaper/.
+Write sections in Markdown, one file each, named NN-slug.md.
+Before committing, run `prek run --all-files` and fix what it reports.
+Commit with a one-line summary, `git pull --rebase`, then `git push`.
+If the push is refused, its message says what to fix.
+```

community/10-tl-dr.md added

+++ b/community/10-tl-dr.md

community/20-summary.md added

+++ b/community/20-summary.md

community/30-why-it-matters.md added

+++ b/community/30-why-it-matters.md

community/40-critique.md added

+++ b/community/40-critique.md

community/50-errata.md added

+++ b/community/50-errata.md

community/60-reproductions.md added

+++ b/community/60-reproductions.md

community/70-follow-ups.md added

+++ b/community/70-follow-ups.md

owners/10-tl-dr.md added

+++ b/owners/10-tl-dr.md

owners/20-overview.md added

+++ b/owners/20-overview.md

owners/30-results.md added

+++ b/owners/30-results.md

owners/40-demos.md added

+++ b/owners/40-demos.md

owners/50-code-and-data.md added

+++ b/owners/50-code-and-data.md

owners/60-talks.md added

+++ b/owners/60-talks.md

paper.json added

+++ b/paper.json
@@ -0,0 +1,13 @@
+{
+ "title": "Learning to Generate Unit Test via Adversarial Reinforcement Learning",
+ "authors": [
+ "Dongjun Lee",
+ "Changho Hwang",
+ "Kimin Lee"
+ ],
+ "abstract": "Unit testing is a core practice in programming, enabling systematic evaluation of programs produced by human developers or large language models (LLMs). Given the challenges in writing comprehensive unit tests, LLMs have been employed to automate unit test generation, yet methods for training LLMs to produce high-quality unit tests remain underexplored. In this work, we propose UTRL, a novel reinforcement learning (RL) framework that trains an LLM to generate high-quality unit test given a programming instruction. Our key idea is to iteratively train two LLMs, the unit test generator and the code generator, in an adversarial manner via RL: (1) the unit test generator is trained to maximize a discrimination reward, encouraging it to produce tests that reveal faults in the code generator’s solutions; and (2) the code generator is trained to maximize a code reward, encouraging it to produce solutions that pass the unit tests generated by the unit test generator. In our experiment, we demonstrate that unit tests generated by Qwen3-4B trained via UTRL show higher quality compared to unit tests generated by the same model trained via supervised fine-tuning on ground-truth unit tests, yielding code evaluations that more closely align with those induced by the ground-truth tests. Moreover, Qwen3-4B trained with UTRL outperforms frontier models like GPT-4.1 and GPT-4o in generating high-quality unit tests, highlighting the effectiveness of UTRL in training LLMs for the unit test generation.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}

prek.toml added

+++ b/prek.toml
@@ -0,0 +1,37 @@
+# Checks run before each commit, with prek (https://prek.j178.dev): `prek install` once in this clone.
+# The site checks every push again; these catch mistakes before you commit. The same on every page.
+
+[[repos]]
+repo = "builtin"
+hooks = [
+ { id = "check-json" },
+ { id = "pretty-format-json", args = ["--autofix", "--no-sort-keys", "--no-ensure-ascii"], exclude = '^demos/' },
+ { id = "end-of-file-fixer", exclude = '^demos/' },
+ { id = "trailing-whitespace", args = ["--markdown-linebreak-ext=md"], exclude = '^demos/' },
+ { id = "check-case-conflict" },
+ { id = "check-illegal-windows-names" },
+ { id = "check-added-large-files", args = ["--maxkb=256"], exclude = '^demos/' },
+]
+
+# Each JSON file against its schema (https://potentialpaper.com/schemas/).
+[[repos]]
+repo = "https://github.com/python-jsonschema/check-jsonschema"
+rev = "0.39.0"
+hooks = [
+ { id = "check-jsonschema", name = "author section plugins files", files = '^owners/plugins\.json$', args = ["--schemafile", "https://potentialpaper.com/schemas/authorPlugins.json"] },
+ { id = "check-jsonschema", name = "paper files", files = '^paper\.json$', args = ["--schemafile", "https://potentialpaper.com/schemas/paper.json"] },
+ { id = "check-jsonschema", name = "venue files", files = '^venue\.json$', args = ["--schemafile", "https://potentialpaper.com/schemas/venue.json"] },
+ { id = "check-jsonschema", name = "category files", files = '^category\.json$', args = ["--schemafile", "https://potentialpaper.com/schemas/category.json"] },
+ { id = "check-jsonschema", name = "organisation files", files = '^org\.json$', args = ["--schemafile", "https://potentialpaper.com/schemas/org.json"] },
+ { id = "check-jsonschema", name = "link files", files = '^links/[^/]+\.json$', args = ["--schemafile", "https://potentialpaper.com/schemas/link.json"] },
+ { id = "check-jsonschema", name = "version files", files = '^versions/[^/]+\.json$', args = ["--schemafile", "https://potentialpaper.com/schemas/version.json"] },
+ { id = "check-jsonschema", name = "picture files", files = '^thumbnail\.json$', args = ["--schemafile", "https://potentialpaper.com/schemas/thumbnail.json"] },
+]
+
+# Sections formatted the way the web editor formats them.
+[[repos]]
+repo = "https://github.com/rbubley/mirrors-prettier"
+rev = "v3.9.9"
+hooks = [
+ { id = "prettier", files = '^(owners|community)/.*\.md$' },
+]

versions/v_4g9788ur.json added

+++ b/versions/v_4g9788ur.json
@@ -0,0 +1,12 @@
+{
+ "kind": "submitted",
+ "label": "ICLR 2026",
+ "url": "https://openreview.net/forum?id=VqjNYF9nbP",
+ "pdf": {
+ "source": "https://openreview.net/forum?id=VqjNYF9nbP",
+ "license": "CC-BY-4.0"
+ },
+ "evidence": [
+ "https://openreview.net/forum?id=VqjNYF9nbP"
+ ]
+}

versions/v_4g9788ur.pdf added

+++ b/versions/v_4g9788ur.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d22c51094f81de8512162bab892c983212b1d78393c5dbf1f5137c9e83efe396
+size 743365