Research map / Large language models / Agents, code and math
TDD-Agent: Test-Driven Reasoning for Code Generation
Hongyue Yu, Kefan Li, Jiakun Li, Hongzheng Chai, Yuan Yuan, Rui He, Junyi Wei
Beihang University
Read the paperPlace an idea next to itCheck your own paper ↗
11measured effects
9improved
2no clear effect
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
On benchmark leaderboards
- LiveCodeBench leaderboard pass@1 70.04 · rank 6 of 44 papers
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add dual-track refinement (revise tests too) vs frozen tests (ablation) | TDD-Agent · RepoEval | pass rate (%): 70.11 -> 78.24 (GPT); 79.56 -> 90.77 (DeepSeek); 57.36 -> 59.34 (Qwen) | Improved |
| add test-first generation with one round (iter1) over vanilla (ablation) | GPT-5-mini · RepoEval | pass rate (%): 68.35 -> 69.89 | Improved |
| add full iterative test-driven refinement vs vanilla (ablation) | DeepSeek-V3.2 · RepoEval | pass rate (%): 73.63 -> 90.77 | Improved |
| add iterative reflection only (ablation) | GPT-5-mini · RepoEval | pass rate (%): 68.35 -> 72.09 | Improved |
| use TDD-prompt instead of CoT-prompt | GPT-5-mini · LiveCodeBench | pass@1 (%): 67.41 -> 70.04 | Improved |
| use TDD-prompt instead of CoT-prompt | DeepSeek-V3.2 · LiveCodeBench | pass@1 (%): 67.46 -> 67.86 | Improved |
| use TDD-Agent-iter5 instead of mini-SWE-agent | DeepSeek-V3.2 · RepoEval | pass rate (%): 84.18 -> 88.13 | Improved |
| increase iterations from 5 to 10 | TDD-Agent · RepoEval (GPT) | pass rate (%): 77.36 -> 78.24 | Improved |
| increase iterations beyond 6-7 | TDD-Agent · RepoEval | pass rate | No clear effect |
| use TDD-Agent-iter5 vs mini-SWE-agent token consumption | GPT-5-mini · RepoEval | prompt tokens (thousands): 115.76 -> 120.48 | No clear effect |
| iterative refinement of generated tests (ablation) | TDD-Agent · RepoEval | test pass rate, coverage, mutation score | Improved |
Open problems this paper states
- “Experimental validation is confined to Python.” → Tested on Python or a few languages, so other languages are untested. (an open problem in software engineering agents)
- “Assumes reliable test execution feedback, so flaky or nondeterministic tests can mislead the agent.” → Correctness is judged by tests that may be shallow, flaky or unavailable. (an open problem in software engineering agents)
Open problems in software engineering agents
Do coding-agent results hold beyond Python, small benchmarks and LLM judges?
- Tested on Python or a few languages, so other languages are untested. · 20 papers state it
- Benchmarks are small, with only 100 to a few hundred tasks. · 14 papers state it
- Scores depend on an LLM judge that may not match human judgment. · 11 papers state it
Closest papers by meaning
- SWT-Bench: Testing and Validating Real-World Bug-Fixes with Code Agents (NeurIPS 2024 · similarity 0.92)
- CodeContests-O: Powering LLMs via Feedback-Driven Iterative Test Case Generation (ACL 2026 · similarity 0.90)
- From I/O to Code with Discovery Agent (NeurIPS 2026 · similarity 0.88)
- NL2Repo-Bench: Towards Long-Horizon Repository Generation Evaluation of Coding Agents (ICML 2026 · similarity 0.88)
- QAagent: A Multiagent System for Unit Test Generation via Natural Language Pseudocode (Student Abstract) (AAAI 2025 · similarity 0.88)
- Steering Large Language Models between Code Execution and Textual Reasoning (ICLR 2025 · similarity 0.88)
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.