potentialpaper

Benchmarking Correctness and Security in Multi-Turn Code Generation

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 18:47 UTC · 9d663bc5f027 ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,27 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "zH9aX65Zyi"
- }
- ],
- "title": "Benchmarking Correctness and Security in Multi-Turn Code Generation",
- "authors": [
- "Ruchit Rawal",
- "Jeffrey Yang Fan Chiang",
- "Chihao Shen",
- "Jeffery Siyuan Tian",
- "Aastha Mahajan",
- "Tom Goldstein",
- "Yizheng Chen"
- ],
- "abstract": "AI coding assistants powered by large language models (LLMs) have transformed software development, significantly boosting productivity. While existing benchmarks evaluate the correctness and security of LLM-generated code, they are typically limited to single-turn tasks that do not reflect the iterative nature of real-world development. We introduce MT-Sec, the first benchmark to systematically evaluate both correctness and security in multi-turn coding scenarios. We construct this using a synthetic data pipeline that transforms existing single-turn tasks into semantically aligned multi-turn interaction sequences, allowing reuse of original test suites while modeling the complexity of real-world coding processes. We evaluate 32 open- and closed-source models, and 3 agent-scaffolding on MT-Sec and observe a consistent 20-27% drop in “correct & secure\" outputs from single-turn to multi-turn settings--even among state-of-the-art models. Beyond full-program generation, we also evaluate models on multi-turn code-diff generation--an unexplored yet practically relevant setting--and find that models perform worse here, with increased rates of functionally incorrect and insecure outputs. Finally, we find that while agent scaffoldings boost single-turn code generation performance, they are not quite as effective in multi-turn evaluations. Together, these findings highlight the need for benchmarks that jointly evaluate correctness and security in multi-turn, real-world coding workflows.",
- "year": 2026,
- "venue": "ICLR 2026 submission",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "c0e6c665-13a2-4656-bb8a-7796b2722de2"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,17 @@
+{
+ "title": "Benchmarking Correctness and Security in Multi-Turn Code Generation",
+ "authors": [
+ "Ruchit Rawal",
+ "Jeffrey Yang Fan Chiang",
+ "Chihao Shen",
+ "Jeffery Siyuan Tian",
+ "Aastha Mahajan",
+ "Tom Goldstein",
+ "Yizheng Chen"
+ ],
+ "abstract": "AI coding assistants powered by large language models (LLMs) have transformed software development, significantly boosting productivity. While existing benchmarks evaluate the correctness and security of LLM-generated code, they are typically limited to single-turn tasks that do not reflect the iterative nature of real-world development. We introduce MT-Sec, the first benchmark to systematically evaluate both correctness and security in multi-turn coding scenarios. We construct this using a synthetic data pipeline that transforms existing single-turn tasks into semantically aligned multi-turn interaction sequences, allowing reuse of original test suites while modeling the complexity of real-world coding processes. We evaluate 32 open- and closed-source models, and 3 agent-scaffolding on MT-Sec and observe a consistent 20-27% drop in “correct & secure\" outputs from single-turn to multi-turn settings--even among state-of-the-art models. Beyond full-program generation, we also evaluate models on multi-turn code-diff generation--an unexplored yet practically relevant setting--and find that models perform worse here, with increased rates of functionally incorrect and insecure outputs. Finally, we find that while agent scaffoldings boost single-turn code generation performance, they are not quite as effective in multi-turn evaluations. Together, these findings highlight the need for benchmarks that jointly evaluate correctness and security in multi-turn, real-world coding workflows.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}