Research map / Large language models / Agents, code and math
Benchmarking Correctness and Security in Multi-Turn Code Generation
Ruchit Rawal, Jeffrey Yang Fan Chiang, Chihao Shen, Jeffery Siyuan Tian, Aastha Mahajan, Tom Goldstein, Yizheng Chen
University of Maryland, College Park
Read the paperPlace an idea next to itCheck your own paper ↗
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.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| move from single-turn to multi-turn expansion | GPT-5 with Aider · MT-Sec | C&S: 53.0 -> 25.7 | Hurt |
| move from single-turn to multi-turn expansion | Claude Opus 4 (thinking) · MT-Sec | C&S: 51.9 -> 30.8 | Hurt |
| move from single-turn to multi-turn expansion | DeepSeek-V3 · MT-Sec | C&S: 39.8 -> 26.1 | Hurt |
| replace first two turns with unrelated prompts (MT-Random) to match context length (ablation) | O4 Mini (thinking) · MT-SecCodePLT | C&S: 56.8 (single-turn) -> 58 (MT-Random); 38.7 in MT-Expansion | No clear effect |
| add security policy in final turn (ablation) | O4 Mini (thinking) · MT-SecCodePLT expansion | C&S: 30.6 -> 35.5 | Improved |
| add security policy in final turn (ablation) | O3 (thinking) · MT-SecCodePLT expansion | C&S: 31.0 -> 34.8 | Improved |
| add security policy in system prompt (ablation) | DeepSeek-V3 · MT-SecCodePLT expansion | C&S: 26.0 -> 24.1 | Hurt |
| add security policy in every turn instead of final turn (ablation) | O3 (thinking) · MT-SecCodePLT expansion | C&S: 34.8 -> 33.1 | Hurt |
| add security policy in multi-turn prompts (any position) (ablation) | multi-turn models · MT-SecCodePLT expansion | C&S vs single-turn no policy: best MT 35.5 vs ST 49.4 (O4 Mini) | No clear effect |
| generate code diffs in turns 2 and 3 instead of full code (ablation) | O4 Mini (thinking) · MT-SecCodePLT editing | C&S: 48.1 -> 37.7 | Hurt |
| generate code diffs in turns 2 and 3 instead of full code (ablation) | Qwen-2.5 Coder 32B · MT-SecCodePLT editing | C&S: 42.9 -> 22.6 | Hurt |
| use thinking variant instead of non-thinking | Claude 3.7 Sonnet · MT-Sec | MT-average C&S: 35.4 -> 38.0 | Improved |
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
- EvoCodeBench: Evaluating Coding Agents in Multi-Turn Iterative Interactions (NeurIPS 2026 · similarity 0.91)
- SEC-bench: Automated Benchmarking of LLM Agents on Real-World Software Security Tasks (NeurIPS 2025 · similarity 0.89)
- SWT-Bench: Testing and Validating Real-World Bug-Fixes with Code Agents (NeurIPS 2024 · similarity 0.88)
- What Makes Large Language Models Reason in (Multi-Turn) Code Generation? (ICLR 2025 · similarity 0.88)
- R2E: Turning any Github Repository into a Programming Agent Environment (ICML 2024 · similarity 0.88)
- NL2Repo-Bench: Towards Long-Horizon Repository Generation Evaluation of Coding Agents (ICML 2026 · 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.