Research map / Large language models / Agents, code and math
CodeFlowBench: A Multi-turn, Iterative Benchmark for Complex Code Generation
Sizhe Wang, Zhengren Wang, Dongsheng Ma, Yongan Yu, Rui Ling, Zhiyu Li, Feiyu Xiong, Wentao Zhang
Peking University · Shanghai University of Finance and Economics · Shanghai · McGill University · Zhongguancun Academy · Beijing Key Laboratory of Data Intelligence and Security (Peking University)
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 |
|---|---|---|---|
| multi-turn generation instead of single-turn | Deepseek-R1 · CodeFlowBench-Comp | Pass@1 (%): 46.1 -> 20.5 | Hurt |
| multi-turn generation instead of single-turn | GPT-5 · CodeFlowBench-Comp | Pass@1 (%): 37.6 -> 26.5 | Hurt |
| multi-turn generation instead of single-turn | Gemini-3-flash-thinking · CodeFlowBench-Comp | Pass@1 (%): 65.5 -> 48.4 | Hurt |
| multi-turn generation instead of single-turn | GPT-5 · CodeFlowBench-Repo | Pass@1 (%): 48.8 -> 34.7 | Hurt |
| multi-turn generation instead of single-turn | Llama-3.1-8B-Instruct · CodeFlowBench-Comp | Pass@1 (%): 3.5 -> 0.9 | Hurt |
| larger model scale (Qwen2.5-72B vs 7B and 32B) on deep dependencies | Qwen2.5 models · CodeFlowBench-Repo | APD@1 Depth4: 2.800 vs 1.400 | Improved |
| reasoning model (o3-mini) instead of larger base model (GPT-4o-mini) on shallow dependencies | o3-mini · CodeFlowBench-Comp | APD@1 (overall): 0.423 -> 0.570 | Improved |
| more dependency structure complexity (higher DSC) | most models · CodeFlowBench-Comp | Pass@1 | Hurt |
| more interaction turns | top models · CodeFlowBench-Comp | Pass@1 | Hurt |
| different LLM for subproblem solutions (o3-mini, Claude-3.7-Sonnet, Gemini-2.5-Pro) (ablation) | decomposition pipeline · CodeFlowBench-Comp | Avg. Turns / Avg. Depth: 2.08 / 1.94 for all three | No clear effect |
Open problems in code generation benchmarks
Do code benchmarks and methods hold beyond Python, small test sets and leaked data?
- Tested on Python or a few languages, so other languages are untested. · 25 papers state it
- Benchmarks are small, with a few dozen to a few hundred problems. · 14 papers state it
- Iterative or multi-step methods cost more tokens, latency and compute. · 12 papers state it
Closest papers by meaning
- EffiBench-X: A Multi-Language Benchmark for Measuring Efficiency of LLM-Generated Code (NeurIPS 2025 · similarity 0.89)
- LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code (ICLR 2025 · similarity 0.88)
- How efficient is LLM-generated code? A rigorous & high-standard benchmark (ICLR 2025 · similarity 0.88)
- CodeChain: Towards Modular Code Generation Through Chain of Self-revisions with Representative Sub-modules (ICLR 2024 · similarity 0.87)
- Divide-and-Conquer Meets Consensus: Unleashing the Power of Functions in Code Generation (NeurIPS 2024 · similarity 0.87)
- BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructions (ICLR 2025 · similarity 0.87)
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.