mlsanityData to 7 Oct 2026

Benchmarking Correctness and Security in Multi-Turn Code Generation

arXiv 2510.13859 ↗First posted 13 Oct 2025cs.SE cs.AIcited by 4

Not on the map. Why?

Abstract (arXiv)

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 three agent-scaffolding on MT-Sec and observe a consistent 20-27% drop in "correct and 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.

Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 19 of its 32 references that are in the map. First posted on arXiv 13 Oct 2025.

Builds on

19 of 32 references.

References · 19

  1. 2020Scaling Laws for Neural Language Modelscited by 6,411
  2. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
  3. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,628
  4. 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agentscited by 956
  5. 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
  6. 2023Enhancing Chat Language Models by Scaling High-quality Instructional Conversationscited by 825
  7. 2021Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributionscited by 417
  8. 2023MINT: Evaluating LLMs in Multi-turn Interaction with Tools and Language Feedbackcited by 293
  9. 2023Purple Llama CyberSecEval: A Secure Coding Benchmark for Language Modelscited by 130
  10. 2024Multi-IF: Benchmarking LLMs on Multi-Turn and Multilingual Instructions Followingcited by 94
  11. 2024MT-Eval: A Multi-Turn Capabilities Evaluation Benchmark for Large Language Modelscited by 78
  12. 2025CWEval: Outcome-driven Evaluation on Functionality and Security of LLM Code Generationcited by 55
7 more
  1. 2025BaxBench: Can LLMs Generate Correct and Secure Backends?cited by 38
  2. 2024What Makes Large Language Models Reason in (Multi-Turn) Code Generation?cited by 29
  3. 2024An Empirical Study on Usage and Perceptions of LLMs in a Software Engineering Projectcited by 28
  4. 2025Gemstones: A Model Suite for Multi-Faceted Scaling Lawscited by 19
  5. 2024An Empirical Study of Static Analysis Tools for Secure Code Reviewcited by 17
  6. 2024The Role of Generative AI in Software Development Productivity: A Pilot Case Studycited by 14
  7. 2025LLMs' Reshaping of People, Processes, Products, and Society in Software Development: A Comprehensive Exploration with Early Adopterscited by 8

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 4.

4 papers.