MT-Sec: a benchmark evaluation of correctness and safety in multi-turn code generationBenchmarking Correctness and Security in Multi-Turn Code Generation
Researchers proposed the MT-Sec benchmark to simultaneously evaluate the correctness and safety of model outputs in multi-turn code generation tasks that reuse original test suites. The benchmark uses a synthetic data pipeline to rewrite existing single-turn tasks into semantically aligned multi-turn interaction sequences, and evaluates 32 open-source and closed-source models as well as three agent scaffolds. Results show that from single-turn to multi-turn, the proportion of correct and safe outputs generated by models consistently decreases by 20% to 27%, and advanced models are no exception. In multi-turn code diff generation, models perform worse, with the proportion of functional errors and unsafe outputs increasing; agent scaffolds can improve single-turn performance but have limited effect in multi-turn evaluation.