Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step-by-step
Open accessAbstract
Large language models (LLMs) are leading significant progress in code generation. Beyond one-pass code generation, recent works further integrate unit tests and program verifiers into LLMs to iteratively refine the generated programs. However, these works consider the generated programs as an indivisible entity, which falls short for LLMs in debugging the programs, especially when the programs contain complex logic flows and data operations. In contrast, when human developers debug programs, they typically set breakpoints and selectively examine runtime execution information. The execution flow and the intermediate variables play a crucial role in the debugging process, yet they are underutilized in the existing literature on code generation. In this study, we introduce Large Language Model Debugger (LDB), a novel debugging framework that enables LLMs to refine their generated programs with the runtime execution information. Specifically, LDB segments the programs into basic blocks and tracks the values of intermediate variables after each block throughout the runtime execution. This allows LLMs to concentrate on simpler code units within the overall execution flow, verify their correctness against the task description block by block, and efficiently pinpoint any potential errors. Experiments demonstrate that LDB consistently enhances the baseline performance by up to 9.8% across the HumanEval, MBPP, and TransCoder benchmarks, archiving new state-of-the-art performance in code debugging for various LLM selections.
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Integrity signals
Registry
Cites
Statistics
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
A prevalent paradigm prompts frozen models to iteratively refine their outputs using external feedback.
“A prevalent paradigm prompts frozen models to iteratively refine their outputs using external feedback.”
From ReflexiCoder: Teaching Large Language Models to Self-Reflect on Generated Code and Self-Correct It via Reinforcement Learning (2026) · cites this paper as Zhong et al., 2024
The “Feedback-based Code Refinement” section describes an iterative refinement paradigm that uses feedback, including interpreter outputs, and says LDB uses the original large language model rather than training an additional bug-fixing model. The “J Prompt Example in LDB” section shows a model prompted to generate a program and then regenerate it with debugging feedback. The paper addresses code outputs, however, and does not establish that frozen models are a prevalent paradigm for refining outputs generally. (LLM, conf=0.82)
Experimental — accuracy not yet measuredIterative refinement methods depend on high-quality external oracles (e.g., compilers, test suites, or critic models).
“Despite their promise, these methods depend on high-quality external oracles (e.g., compilers, test suites, or critic models), which may be unavailable or expensive in real-world deployment.”
From ReflexiCoder: Teaching Large Language Models to Self-Reflect on Generated Code and Self-Correct It via Reinforcement Learning (2026) · cites this paper as Zhong et al., 2024
The Feedback-based Code Refinement section describes iterative methods using interpreter output and other feedback, and the Limitation section says correct test cases are mandatory for LDB. The paper does not establish that iterative refinement methods generally depend on high-quality external oracles such as compilers or critic models, or that those oracles may be unavailable or expensive in deployment. Our copy provides no page numbers for these sections. (LLM, conf=0.85)
Experimental — accuracy not yet measuredLLMs have achieved strong performance in generating source code from natural language descriptions.
“In parallel, LLMs have achieved strong performance in generating source code from natural language descriptions [16, 22, 48, 76, 77].”
From A Multi-Agent Framework for Accessible Web Code Generation (2026) · cites this paper as [77]
In the original HumanEval benchmark, test cases were provided for only 161 of 164 tasks.
“This version includes internal test cases for all 164 tasks (in the original benchmark, test cases were provided for only 161 of 164 tasks, as detailed in Section 6).”
From AI Agents That Matter (2024) · cites this paper as [64]
Section 3.1 (page unavailable) says the authors extracted visible HumanEval test cases from task descriptions, but it gives no count of tasks with test cases. Searches for “161,” “164,” and missing test cases found no passage establishing that test cases were provided for only 161 of 164 tasks in the original benchmark. (LLM, conf=0.72)
Experimental — accuracy not yet measured
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Cites
The publisher hasn’t deposited this paper’s reference list.
Research works printed but not linked: 71
- Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, et al. 2023. Gpt-4 technical report. arXiv preprint arXiv:2303.08774. · arXiv
- Frances E Allen. 1970. Control flow analysis. ACM Sigplan Notices, 5(7):1-19.
- Glenn Ammons and James R Larus. 1998. Improving data-flow analysis with path profiles. In Proceedings of the ACM SIGPLAN 1998 conference on Program- ming language design and implementation, pages 72-84.
- Jacob Austin, Augustus Odena, Maxwell Nye, Maarten Bosma, Henryk Michalewski, David Dohan, Ellen Jiang, Carrie Cai, Michael Terry, Quoc Le, et al. 2021. Program synthesis with large language models. arXiv preprint arXiv:2108.07732. · arXiv
- Thomas Ball and James R Larus. 1994. Optimally pro- filing and tracing programs. ACM Transactions on Programming Languages and Systems (TOPLAS), 16(4):1319-1360.
- Thomas Ball and James R Larus. 1996. Efficient path profiling. In Proceedings of the 29th Annual IEEE/ACM International Symposium on Microarchi- tecture. MICRO 29, pages 46-57. IEEE.
- Angelica Chen, Jérémy Scheurer, Tomasz Korbak, Jon Ander Campos, Jun Shern Chan, Samuel R Bow- man, Kyunghyun Cho, and Ethan Perez. 2023a. Im- proving code generation by training with natural lan- guage feedback. arXiv preprint arXiv:2303.16749. · arXiv
- Bei Chen, Fengji Zhang, Anh Nguyen, Daoguang Zan, Zeqi Lin, Jian-Guang Lou, and Weizhu Chen. 2022. Codet: Code generation with generated tests. In The Eleventh International Conference on Learning Representations.
- Hongqiao Chen, Kexun Zhang, Lei Li, and William Yang Wang. 2023b. Tooldec: Syntax error-free and generalizable tool use for llms via finite-state decoding. In The 3rd Workshop on Mathematical Reasoning and AI at NeurIPS'23.
- Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde de Oliveira Pinto, Jared Ka- plan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, et al. 2021. Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374. · arXiv
- Xinyun Chen, Maxwell Lin, Nathanael Schärli, and Denny Zhou. 2023c. Teaching large language models to self-debug. arXiv preprint arXiv:2304.05128. · arXiv
- Xinyun Chen, Chang Liu, and Dawn Song. 2018. Execution-guided neural program synthesis. In Inter- national Conference on Learning Representations.
- Zhoujun Cheng, Tianbao Xie, Peng Shi, Chengzu Li, Rahul Nadkarni, Yushi Hu, Caiming Xiong, Dragomir Radev, Mari Ostendorf, Luke Zettlemoyer, et al. 2022. Binding language models in symbolic languages. In The Eleventh International Conference on Learning Representations.
- John Cocke. 1970. Global common subexpression elim- ination. In Proceedings of a symposium on Compiler optimization, pages 20-24.
- Shehzaad Dhuliawala, Mojtaba Komeili, Jing Xu, Roberta Raileanu, Xian Li, Asli Celikyilmaz, and Ja- son Weston. 2023. Chain-of-verification reduces hal- lucination in large language models. arXiv preprint arXiv:2309.11495. · arXiv
- Zhiyu Fan, Xiang Gao, Martin Mirchev, Abhik Roy- choudhury, and Shin Hwei Tan. 2023. Automated repair of programs from large language models. In 2023 IEEE/ACM 45th International Conference on Software Engineering (ICSE), pages 1469-1481. IEEE.
- Tao Ge, Jing Hu, Xun Wang, Si-Qing Chen, and Furu Wei. 2023. In-context autoencoder for context com- pression in a large language model. arXiv preprint arXiv:2307.06945. · arXiv
- Qiuhan Gu. 2023. Llm-based code generation method for golang compiler testing. In Proceedings of the 31st ACM Joint European Software Engineering Con- ference and Symposium on the Foundations of Soft- ware Engineering, pages 2201-2203.
- Priyanshu Gupta, Avishree Khare, Yasharth Bajpai, Saikat Chakraborty, Sumit Gulwani, Aditya Kanade, Arjun Radhakrishna, Gustavo Soares, and Ashish Ti- wari. 2023. Grace: Language models meet code edits. In Proceedings of the 31st ACM Joint European Soft- ware Engineering Conference and Symposium on the Foundations of Software Engineering, pages 1483- 1495.
- Sirui Hong, Xiawu Zheng, Jonathan Chen, Yuheng Cheng, Jinlin Wang, Ceyao Zhang, Zili Wang, Steven Ka Shing Yau, Zijuan Lin, Liyang Zhou, et al. 2023. Metagpt: Meta programming for multi-agent collabo- rative framework. arXiv preprint arXiv:2308.00352. · arXiv
- Mengkang Hu, Yao Mu, Xinmiao Yu, Mingyu Ding, Shiguang Wu, Wenqi Shao, Qiguang Chen, Bin Wang, Yu Qiao, and Ping Luo. 2023. Tree-planner: Efficient close-loop task planning with large language models. arXiv preprint arXiv:2310.08582. · arXiv
- Xueyu Hu, Kun Kuang, Jiankai Sun, Hongxia Yang, and Fei Wu. 2024. Leveraging print debugging to improve code generation in large language models. arXiv preprint arXiv:2401.05319. · arXiv
- Baizhou Huang, Shuai Lu, Weizhu Chen, Xiaojun Wan, and Nan Duan. 2023a. Enhancing large language models in coding through multi-perspective self- consistency. arXiv preprint arXiv:2309.17272. · arXiv
- Haochen Huang, Bingyu Shen, Li Zhong, and Yuanyuan Zhou. 2023b. Protecting data integrity of web ap- plications with database constraints inferred from application code. In Proceedings of the 28th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 2, pages 632-645.
- Haochen Huang, Chengcheng Xiang, Li Zhong, and Yuanyuan Zhou. 2021. {PYLIVE}:{On-the-Fly} code change for python-based online services. In 2021 USENIX Annual Technical Conference (USENIX ATC 21), pages 349-363.
- Jie Huang, Xinyun Chen, Swaroop Mishra, Huaixiu Steven Zheng, Adams Wei Yu, Xiny- ing Song, and Denny Zhou. 2023c. Large language models cannot self-correct reasoning yet. arXiv preprint arXiv:2310.01798. · arXiv
- Kai Huang, Xiangxin Meng, Jian Zhang, Yang Liu, Wenjie Wang, Shuhao Li, and Yuqing Zhang. 2023d. An empirical study on fine-tuning large language models of code for automated program repair. In 2023 38th IEEE/ACM International Conference on Automated Software Engineering (ASE), pages 1162- 1174. IEEE.
- Shuyang Jiang, Yuhao Wang, and Yu Wang. 2023. Self- evolve: A code evolution framework via large lan- guage models. arXiv preprint arXiv:2306.02907. · arXiv
- Matthew Jin, Syed Shahriar, Michele Tufano, Xin Shi, Shuai Lu, Neel Sundaresan, and Alexey Svy- atkovskiy. 2023. Inferfix: End-to-end program repair with llms. arXiv preprint arXiv:2303.07263. · arXiv
- James R Larus. 1999. Whole program paths. ACM SIGPLAN Notices, 34(5):259-269.
- Hung Le, Hailin Chen, Amrita Saha, Akash Gokul, Doyen Sahoo, and Shafiq Joty. 2023. Codechain: To- wards modular code generation through chain of self- revisions with representative sub-modules. arXiv preprint arXiv:2310.08992. · arXiv
- Hung Le, Yue Wang, Akhilesh Deepak Gotmare, Silvio Savarese, and Steven Chu Hong Hoi. 2022. Coderl: Mastering code generation through pretrained models and deep reinforcement learning. Advances in Neural Information Processing Systems, 35:21314-21328.
- Jian Li, Yue Wang, Michael R. Lyu, and Irwin King. 2018. Code completion with neural attention and pointer networks. In Proceedings of the 27th Inter- national Joint Conference on Artificial Intelligence, IJCAI'18, page 4159-25. AAAI Press.
- Raymond Li, Loubna Ben Allal, Yangtian Zi, Niklas Muennighoff, Denis Kocetkov, Chenghao Mou, Marc Marone, Christopher Akiki, Jia Li, Jenny Chim, et al. 2023. Starcoder: may the source be with you! arXiv preprint arXiv:2305.06161. · arXiv
- Yujia Li, David Choi, Junyoung Chung, Nate Kushman, Julian Schrittwieser, Rémi Leblond, Tom Eccles, James Keeling, Felix Gimeno, Agustin Dal Lago, et al. 2022. Competition-level code generation with alphacode. Science, 378(6624):1092-1097.
- Hunter Lightman, Vineet Kosaraju, Yura Burda, Harri Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. 2023. Let's verify step by step. arXiv preprint arXiv:2305.20050. · arXiv
- Aman Madaan, Niket Tandon, Prakhar Gupta, Skyler Hallinan, Luyu Gao, Sarah Wiegreffe, Uri Alon, Nouha Dziri, Shrimai Prabhumoye, Yiming Yang, et al. 2023. Self-refine: Iterative refinement with self-feedback. arXiv preprint arXiv:2303.17651. · arXiv
- Niklas Muennighoff, Qian Liu, Armel Zebaze, Qinkai Zheng, Binyuan Hui, Terry Yue Zhuo, Swayam Singh, Xiangru Tang, Leandro Von Werra, and Shayne Longpre. 2023. Octopack: Instruction tun- ing code large language models. In NeurIPS 2023 Workshop on Instruction Tuning and Instruction Fol- lowing.
- Ansong Ni, Jeevana Priya Inala, Chenglong Wang, Alex Polozov, Christopher Meek, Dragomir Radev, and Jianfeng Gao. 2022. Learning math reasoning from self-sampled correct and partially-correct solutions. In The Eleventh International Conference on Learn- ing Representations.
- Ansong Ni, Srini Iyer, Dragomir Radev, Veselin Stoy- anov, Wen-tau Yih, Sida Wang, and Xi Victoria Lin. 2023. Lever: Learning to verify language-to-code generation with execution. In International Con- ference on Machine Learning, pages 26106-26128.
- PMLR.
- Erik Nijkamp, Bo Pang, Hiroaki Hayashi, Lifu Tu, Huan Wang, Yingbo Zhou, Silvio Savarese, and Caiming Xiong. 2022. Codegen: An open large language model for code with multi-turn program synthesis. In The Eleventh International Conference on Learning Representations.
- Shishir G Patil, Tianjun Zhang, Xin Wang, and Joseph E Gonzalez. 2023. Gorilla: Large language model connected with massive apis. arXiv preprint arXiv:2305.15334. · arXiv
- Hammond Pearce, Benjamin Tan, Baleegh Ahmad, Ramesh Karri, and Brendan Dolan-Gavitt. 2023. Ex- amining zero-shot vulnerability repair with large lan- guage models. In 2023 IEEE Symposium on Security and Privacy (SP), pages 2339-2356. IEEE.
- Reese T Prosser. 1959. Applications of boolean ma- trices to the analysis of flow diagrams. In Papers presented at the December 1-3, 1959, eastern joint IRE-AIEE-ACM computer conference, pages 133- 138.
- Zeeshan Rasheed, Muhammad Waseem, Mika Saari, Kari Systä, and Pekka Abrahamsson. 2024. Code- pori: Large scale model for autonomous software development by using multi-agents. arXiv preprint arXiv:2402.01411. · arXiv
- Veselin Raychev, Martin Vechev, and Eran Yahav. 2014. Code completion with statistical language models. In Proceedings of the 35th ACM SIGPLAN conference on programming language design and implementa- tion, pages 419-428.
- Eric Rotenberg, Steve Bennett, and James E Smith. 1996. Trace cache: a low latency approach to high bandwidth instruction fetching. In Proceedings of the 29th Annual IEEE/ACM International Symposium on Microarchitecture. MICRO 29, pages 24-34. IEEE.
- Baptiste Roziere, Jonas Gehring, Fabian Gloeckle, Sten Sootla, Itai Gat, Xiaoqing Ellen Tan, Yossi Adi, Jingyu Liu, Tal Remez, Jérémy Rapin, et al. 2023. Code llama: Open foundation models for code. arXiv preprint arXiv:2308.12950. · arXiv
- Baptiste Roziere, Marie-Anne Lachaux, Lowik Chanus- sot, and Guillaume Lample. 2020. Unsupervised translation of programming languages. Advances in Neural Information Processing Systems, 33:20601- 20611.
- Timothy Sherwood, Erez Perelman, and Brad Calder. 2001. Basic block distribution analysis to find peri- odic behavior and simulation points in applications. In Proceedings 2001 International Conference on Parallel Architectures and Compilation Techniques, pages 3-14. IEEE.
- Freda Shi, Daniel Fried, Marjan Ghazvininejad, Luke Zettlemoyer, and Sida I Wang. 2022. Natural lan- guage to code translation with execution. In Proceed- ings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 3533-3546.
- Noah Shinn, Federico Cassano, Ashwin Gopinath, Karthik R Narasimhan, and Shunyu Yao. 2023. Re- flexion: Language agents with verbal reinforcement learning. In Thirty-seventh Conference on Neural Information Processing Systems.
- Zilu Tang, Mayank Agarwal, Alexander Shypula, Bailin Wang, Derry Wijaya, Jie Chen, and Yoon Kim. 2023. Explain-then-translate: an analysis on improving pro- gram translation with self-generated explanations. In Findings of the Association for Computational Lin- guistics: EMNLP 2023, pages 1741-1788.
- Zilong Wang, Hao Zhang, Chun-Liang Li, Julian Mar- tin Eisenschlos, Vincent Perot, Zifeng Wang, Lesly Miculicich, Yasuhisa Fujii, Jingbo Shang, Chen-Yu Lee, et al. 2024. Chain-of-table: Evolving tables in the reasoning chain for table understanding. arXiv preprint arXiv:2401.04398. · arXiv
- Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Fei Xia, Ed Chi, Quoc V Le, Denny Zhou, et al. 2022. Chain-of-thought prompting elicits rea- soning in large language models. Advances in Neural Information Processing Systems, 35:24824-24837.
- Zeqiu Wu, Yushi Hu, Weijia Shi, Nouha Dziri, Alane Suhr, Prithviraj Ammanabrolu, Noah A Smith, Mari Ostendorf, and Hannaneh Hajishirzi. 2023. Fine-grained human feedback gives better rewards for language model training. arXiv preprint arXiv:2306.01693. · arXiv
- Pengcheng Yin and Graham Neubig. 2017. A syntactic neural model for general-purpose code generation. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 440-450.
- Zhiqiang Yuan, Junwei Liu, Qiancheng Zi, Ming- wei Liu, Xin Peng, and Yiling Lou. 2023. Eval- uating instruction-tuned large language models on code comprehension and generation. arXiv preprint arXiv:2308.01240. · arXiv
- Jialu Zhang, José Cambronero, Sumit Gulwani, Vu Le, Ruzica Piskac, Gustavo Soares, and Gust Ver- bruggen. 2022a. Repairing bugs in python assign- ments using large language models. arXiv preprint arXiv:2209.14876. · arXiv
- Jialu Zhang, De Li, John Charles Kolesar, Hanyuan Shi, and Ruzica Piskac. 2022b. Automated feedback gen- eration for competition-level code. In Proceedings of the 37th IEEE/ACM International Conference on Automated Software Engineering, pages 1-13.
- Jialu Zhang, Todd Mytkowicz, Mike Kaufman, Ruz- ica Piskac, and Shuvendu K Lahiri. 2022c. Using pre-trained language models to resolve textual and semantic merge conflicts (experience paper). In Pro- ceedings of the 31st ACM SIGSOFT International Symposium on Software Testing and Analysis, pages 77-88.
- Kexun Zhang, Danqing Wang, Jingtao Xia, William Yang Wang, and Lei Li. 2023a. Algo: Synthesizing algorithmic programs with generated oracle verifiers. arXiv preprint arXiv:2305.14591. · arXiv
- Tianyi Zhang, Tao Yu, Tatsunori Hashimoto, Mike Lewis, Wen-tau Yih, Daniel Fried, and Sida Wang. 2023b. Coder reviewer reranking for code generation. In International Conference on Machine Learning, pages 41832-41846.
- PMLR.
- Li Zhong. 2023. A survey of prevent and de- tect access control vulnerabilities. arXiv preprint arXiv:2304.10600. · arXiv
- Li Zhong and Zilong Wang. 2023. A study on robust- ness and reliability of large language model code generation. arXiv preprint arXiv:2308.10335. · arXiv
- Li Zhong, Chengcheng Xiang, Haochen Huang, Bingyu Shen, Eric Mugnier, and Yuanyuan Zhou. 2024. Ef- fective bug detection with unused definitions. In Proceedings of the Nineteenth European Conference on Computer Systems, pages 720-735.
- Andy Zhou, Kai Yan, Michal Shlapentokh-Rothman, Haohan Wang, and Yu-Xiong Wang. 2023a. Lan- guage agent tree search unifies reasoning acting and planning in language models. arXiv preprint arXiv:2310.04406. · arXiv
- Aojun Zhou, Ke Wang, Zimu Lu, Weikang Shi, Sichun Luo, Zipeng Qin, Shaoqing Lu, Anya Jia, Linqi Song, Mingjie Zhan, et al. 2023b. Solving challenging math word problems using gpt-4 code interpreter with code-based self-verification. arXiv preprint arXiv:2308.07921. · arXiv
- Denny Zhou, Nathanael Schärli, Le Hou, Jason Wei, Nathan Scales, Xuezhi Wang, Dale Schuurmans, Claire Cui, Olivier Bousquet, Quoc V Le, et al. 2022. Least-to-most prompting enables complex reasoning in large language models. In The Eleventh Interna- tional Conference on Learning Representations.
Cited by
Sorted by citations
A Survey on Large Language Models for Code Generation
Jiang, J., Wang, F., Shen, J., Kim, S., & Kim, S. (2026) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3747588 · Cited by 251 · see citing works
“For example, since LLMs have also been integrated into Integrated Development Environments (IDEs), such as PyCharm and VSCode to allow programmers to develop their code, LLMs within these environments can comprehend this contextual information and provide suggestions for users [6].”
Generative Artificial Intelligence for Software Engineering—A Research Agenda
Nguyen‐Duc, A., Cabrero‐Daniel, B., Przybylek, A., Arora, C., Khanna, D., Herda, T., Rafiq, U., Melegati, J., Guerra, E., Kemell, K., et al. (2025) · Software: Practice and Experience · doi:10.1002/spe.70005 · Cited by 60 · see citing works
Zhang, H., Cheng, W., Wu, Y.-H., & Hu, W. (2024) · International Conference on Automated Software Engineering · doi:10.1145/3691620.3695506 · Cited by 61 · see citing works
AgileCoder: Dynamic Collaborative Agents for Software Development based on Agile Methodology
Nguyen, M. H., Chau, T. P., Nguyen, P. X., & Bui, N. D. Q. (2025) · IEEE/ACM International Conference on AI Foundation Models and Software Engineering (FORGE) · doi:10.1109/forge66646.2025.00026 · Cited by 34 · see citing works
Let’s Fix this Together: Conversational Debugging with GitHub Copilot
Bajpai, Y., Chopra, B., Biyani, P., Aslan, C., Coleman, D., Gulwani, S., Parnin, C., Radhakrishna, A., & Soares, G. (2024) · IEEE Symposium on Visual Languages and Human-Centric Computing (VL/HCC) · doi:10.1109/vl/hcc60511.2024.00011 · Cited by 18 · see citing works
“In parallel, software comprehension, an important sub-task for automated software engineering tools has also seen improvements, from using longer contexts for LLMs [44], to improved code retrieval strategies [45], [46] and code execution feedback [47]–[49].”
MethodAdvances in artificial intelligence: a review for the creative industries
Anantrasirichai, N., Zhang, F., & Bull, D. (2026) · Artificial Intelligence Review · doi:10.1007/s10462-026-11494-w · Cited by 49 · see citing works
Debugging with Open-Source Large Language Models: An Evaluation
Majdoub, Y., & Charrada, E. B. (2024) · Proceedings of the ... ACM-IEEE International Symposium on Empirical Software Engineering and Measurement/International Symposium on Empirical Software Engineering and Measurement · doi:10.1145/3674805.3690758 · Cited by 13 · see citing works
“Zhong et al. [31] developed LDB, a debugging framework designed to assist large language models in refining generated programs by utilizing runtime execution data, segmenting programs into basic blocks, and tracking intermediate variable values after each block.”
MethodVeriDebug: A Unified LLM for Verilog Debugging via Contrastive Embedding and Guided Correction
Wang, N., Yao, B., Zhou, J., et al. (2025) · 2025 IEEE International Conference on LLM-Aided Design (ICLAD) · doi:10.1109/iclad65226.2025.00026 · Cited by 10 · see citing works
“Their application to programming languages has demonstrated remarkable capabilities in understanding, generating, and manipulating code across different languages [6], [9].”
Challenges and Paths Towards AI for Software EngineeringPreprint
Gu, A., Jain, N., Li, W., Shetty, M., Shao, Y., Li, Z., Yang, D., Ellis, K., Sen, K., & Solar-Lezama, A. (2025) · Qeios · doi:10.32388/vv1661 · Cited by 24 · see citing works
A Generalize Hardware Debugging Approach for Large Language Models Semi-Synthetic, Datasets
Fu, W., Li, S., Zhao, Y., Yang, K., Zhang, X., Jin, Y., & Guo, X. (2024) · IEEE Transactions on Circuits and Systems I Regular Papers · doi:10.1109/tcsi.2024.3487486 · Cited by 9 · see citing works
SurgBox: Agent-Driven Operating Room Sandbox with Surgery Copilot
Wu, J., Liang, X., Bai, X., & Chen, Z. (2024) · IEEE International Conference on Big Data (BigData) · doi:10.1109/bigdata62323.2024.10825748 · Cited by 12 · see citing works
LLM-based code generation and system migration in language-driven engineering
Busch, D., Bainczyk, A., Smyth, S. P., et al. (2025) · International Journal on Software Tools for Technology Transfer · doi:10.1007/s10009-025-00798-x · Cited by 8 · see citing works
A Survey of Post-Training Scaling in Large Language Models
Lai, H., Liu, X., Gao, J., Cheng, J., Qi, Z., Xu, Y., Yao, S., Zhang, D., Du, J., Hou, Z., et al. (2025) · Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · doi:10.18653/v1/2025.acl-long.140 · Cited by 8 · see citing works
Kapoor, S., Stroebl, B., Siegel, Z. S., Nadgir, N., & Narayanan, A. (2024) · arXiv · doi:10.48550/arxiv.2407.01502 · Cited by 13 · see citing works
“…rely on running the code generated by the model, and if it fails the test cases provided with the problem description, they try to debug the code [64], look at alternative paths in the code generation process [65], or “reflect” on why the model’s outputs were incorrect before generating another…”
InfluentialBudgetMLAgent: A Cost-Effective LLM Multi-Agent system for Automating Machine Learning Tasks
Gandhi, S., Patwardhan, M. S., Vig, L., & Shroff, G. M. (2024) · International Conference on AI-ML Systems (AIMLSystems) · doi:10.1145/3703412.3703416 · Cited by 11 · see citing works
Prompt Alchemy: Automatic Prompt Refinement for Enhancing Code Generation
Ye, S.-X., Sun, Z., Wang, G.-Q., Guo, L.-W., Liang, Q.-L., Li, Z., & Liu, Y. (2025) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2025.3589634 · Cited by 19 · see citing works
Enhancing LLM-Based Code Generation with Complexity Metrics: A Feedback-Driven Approach
Sepidband, M., Taherkhani, H., Wang, S., & Hemmati, H. (2025) · IEEE Annual International Computer Software and Applications Conference (COMPSAC) · doi:10.1109/compsac65507.2025.00178 · Cited by 6 · see citing works
“Zamani and Hemmati [26] introduce “Tuning Gain,” a metric estimating cost-effectiveness in search-based test generation.”
Ashrafi, N., Bouktif, S., & Mediani, M. (2025) · Advanced Industrial Conference on Telecommunications · doi:10.1109/aict67988.2025.11268754
CoCoEvo: Co-Evolution of Programs and Test Cases to Enhance Code Generation
Li, K., Yuan, Y., Yu, H., Guo, T., & Cao, S. (2025) · IEEE Transactions on Evolutionary Computation · doi:10.1109/tevc.2025.3593272 · Cited by 6 · see citing works
AdaCoder: An Adaptive Planning and Multi-Agent Framework for Function-Level Code Generation
Zhu, Y.-H., Liu, C., He, X., Ren, X.-X., Liu, Z.-X., Pan, R.-W., & Zhang, H.-Y. (2025) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2025.3642621 · Cited by 14 · see citing works
“Following standard practice in the literature [61], we use the first of the three provided test cases as the public test case in the prompt, while using all three for evaluation.”
Large Language Model Guided Self-Debugging Code GenerationPreprint
Adnan, M., Kuhn, C. C. N., & Xu, Z. (2025) · SSRN Electronic Journal · doi:10.2139/ssrn.5396508 · Cited by 6 · see citing works
Measuring and mitigating debugging effectiveness decay in code language models
Adnan, M., & Kuhn, C. C. N. (2025) · Scientific Reports · doi:10.1038/s41598-025-27846-5 · Cited by 5 · see citing works
Static Analysis as a Feedback Loop: Enhancing LLM-Generated Code Beyond Correctness
Blyth, S., Licorish, S. A., Treude, C., & Wagner, M. (2025) · IEEE International Working Conference on Source Code Analysis and Manipulation (SCAM) · doi:10.1109/scam67354.2025.00017 · Cited by 4 · see citing works
Large Language Models for C Test Case Generation: A Comparative Analysis
Guzu, A., Nicolae, G., Cucu, H., & Burileanu, C. (2025) · Electronics · doi:10.3390/electronics14112284 · Cited by 6 · see citing works
Measuring the Influence of Incorrect Code on Test Generation
Huang, D., Zhang, J. M., Harman, M., Du, M., & Cui, H. (2026) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3744916.3764532 · Cited by 7 · see citing works
“To address this, researchers have harnessed LLMs to generate test cases [5, 14, 15, 17, 36, 42, 55].”
Lenz, S., Ustjanzew, A., Jeray, M., Ressing, M., & Panholzer, T. (2025) · BioData Mining · doi:10.1186/s13040-025-00463-8 · Cited by 2 · see citing works
Locally-deployed Open-source LLMs for Code Generation: Promises and Challenges
Kechaoui, T., Ouhab, M. W., Djamaa, B., & Senouci, M. R. (2025) · International Conference on Pattern Analysis and Intelligent Systems (PAIS) · doi:10.1109/pais66004.2025.11126523 · Cited by 2 · see citing works
“Other notable methods include self-collaboration [16], self-refinement [17], self-debugging [18], and LLMDebugger [4].”
InfluentialAGON: Automated Design Framework for Customizing Processors From ISA Documents
Li, C., Huang, D. S., Jin, P., Ma, T., Han, H., Cheng, S., Hao, Y., Zhao, Y., Xu, G., Du, Z., et al. (2025) · IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems · doi:10.1109/tcad.2025.3617851 · Cited by 2 · see citing works
“These gaps in LLM capabilities hinder the application of LLMs in processor design using RTLs. Limitation 3: LLMs face significant challenges in optimizing RTL code while maintaining functional correctness.”
Bridging code and timely feedback: integrating generative AI into a programming platform
Martínez-Araneda, C., Gutiérrez, M., Aranda, J. L. M., Montiel, D. M., Gómez, P., & Segura-Navarrete, A. (2025) · PeerJ Computer Science · doi:10.7717/peerj-cs.3070 · Cited by 2 · see citing works
Liang, Y., Ying, R., Taniguchi, T., Gan, C., & Cui, Z. (2025) · Lecture notes in computer science · doi:10.1007/978-981-95-0014-7_43 · Cited by 1 · see citing works
Amasanti, G., & Jahić, J. (2025) · Lecture notes in computer science · doi:10.1007/978-3-032-04403-7_10 · Cited by 1 · see citing works
Böhme, L., Thiede, C., Mattis, T., Beckmann, T., Lincke, J., & Hirschfeld, R. (2025) · ACM SIGPLAN International Workshop on Programming Abstractions and Interactive Notations, Tools, and Environments (PAINT) · doi:10.1145/3759534.3762682 · Cited by 1 · see citing works
Ramirez, O., & Ekler, P. (2025) · IEEE International Conference on Cognitive Infocommunications · doi:10.1109/coginfocom66819.2025.11200869 · Cited by 1 · see citing works
Towards Multi-Agentic AI for automated software design and modelling: challenges and opportunities
Dam, H. K. (2025) · IEEE/ACM International Conference on Automated Software Engineering Workshops (ASEW) · doi:10.1109/asew67777.2025.00063 · Cited by 1 · see citing works
Root Cause Analysis of RISC-V Build Failures via LLM and MCTS Reasoning
Shuai, W., Liu, J., Ma, Z., Kang, L., Wang, Z., Wang, S., Ye, D. Q., Li, H., Wang, W., & Zhu, J. (2025) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase63991.2025.00227 · Cited by 1 · see citing works
Self-citationAlwarafy, A. (2026) · European Journal of Education · doi:10.1111/ejed.70761 · Cited by 1 · see citing works
A Multi-Agent Framework for Accessible Web Code Generation
Aljedaani, W., Shaik, M. A., & Aljohani, A. (2026) · Proceedings of the 23rd International Web for All Conference · doi:10.1145/3800424.3800453 · Cited by 1 · see citing works
Jiang, J., Shen, J., Kim, S., Yoo, K. M., Kim, J., & Kim, S. (2026) · arXiv · doi:10.48550/arxiv.2603.05863
“For example, Self-Debugging (Chen et al., 2024) and LDB (Zhong et al., 2024) revise code based on execution traces or unit test results, while Self-Evolve (Jiang et al., 2023b) and Reflexion (Shinn et al., 2024) incorporate critic-style feedback from external evaluators or self-generated reflections.”
MODERN TRENDS AND CHALLENGES IN DEBUGGING SOFTWARE BASED ON LARGE LANGUAGE MODELS
Zavhorodnii, A., & Ivanov, O. (2025) · International scientific and technical conference Information technologies in metallurgy and machine building · doi:10.34185/1991-7848.itmm.2025.01.039 · Cited by 2 · see citing works
VL-DynaRefine: A Vision-Language Dynamic Refinement Approach for Visual Reasoning
Jing, M., Sun, H., Zang, Z., Feng, F., Yuan, C., Ren, L., Jiang, H., Chen, W., & Wang, X. (2025) · ACM International Conference on Multimedia (ACM MM) · doi:10.1145/3746027.3755296
GPowerT: LLM-Driven Automated Programming for Power-Constrained IoT Applications
Ye, R., & Gao, M. (2025) · Lecture notes in computer science · doi:10.1007/978-3-032-10466-3_24
Yu, Z., Li, C., Zhang, Y., Liu, M., Pinckney, N., Zhou, W., Liang, R., Yang, H., Ren, H. M., & Lin, Y. (2025) · 2025 IEEE/ACM International Conference On Computer Aided Design (ICCAD) · doi:10.1109/iccad66269.2025.11240644
“Notably, LDB [25], trained with domain-specific augmentation and fine-tuning, achieves 95.1% pass@1 on HumanEval, pushing the SOTA in code generation accuracy.”
InfluentialHLSDebugger: Identification and Correction of Logic Bugs in HLS Code with LLM Solutions
Wang, J., Liu, S., Lu, Y., & Xie, Z. (2025) · doi:10.1109/iccad66269.2025.11240664
“Most software debugging works [2], [5]–[7] do not undertake explicit bug location identification tasks.”
Instructing a Chatbot to Design Nucleic Acid Probes for Diagnostics
Chen, H., & Chan, W. C. W. (2025) · ACS Nano Medicine · doi:10.1021/acsnanomed.5c00062
Kustagi, V., Kulkarni, R., Patil, M., et al. (2025) · doi:10.1109/csitss67709.2025.11294543
Abstract-Then-Concretize Automated Design of Multi-Agent System
Nguyen, T.-H., Tran, H., Trinh, Q., et al. (2025) · International Conference on Knowledge and Systems Engineering · doi:10.1109/kse68178.2025.11309450
Song, Y., & Cohen, E. (2026) · Lecture notes in computer science · doi:10.1007/978-3-032-09156-7_2
“This feedback may be derived from external sources, such as automated tests in code generation [11] or analysis of error messages [39].”
Chen, L., Deng, J., & Ren, F. (2025) · International Computer Conference on Wavelet Active Media Technology and Information Processing (ICCWAMTIP) · doi:10.1109/iccwamtip68645.2025.11352645
A Survey and Prospects of Source Code Processing Techniques Based on Large Language Models
Wang, L., & Yang, Z. (2025) · IEEE International Conference on Software Engineering and Service Science (ICSESS) · doi:10.1109/icsess67729.2025.11380277
Reliable Code Generation with Test Case Prioritization and Cognitive Validation
Huang, L., Yin, X., Li, X.-R., & Ni, C. (2025) · Asia-Pacific Software Engineering Conference · doi:10.1109/apsec66846.2025.00021
Proposta per un inconscio collettivo artificiale
Gramantieri, R. (2026) · STUDI JUNGHIANI · doi:10.3280/jun62-2025oa20952
Enhancing Code Generation Through Reliability-Aware Synthetic Contexts
Das, S. (2026) · Lecture notes in computer science · doi:10.1007/978-3-032-21324-2_46
JavaTutor: An Integrated Large Language Model Tutoring Platform for Learning Java
Dhongade, A. M., & Wu, C.-S. M. (2026) · International Conference on Artificial Intelligence, Computer, Data Sciences and Applications (ACDSA) · doi:10.1109/acdsa67686.2026.11468147
AgentEvo: cost-aware agentic workflow generation via adaptive multi-stage evolution
Xiao, B., Liu, H., Wang, Y., Hou, Y., Xu, K., & Zhang, X. (2026) · Complex & Intelligent Systems · doi:10.1007/s40747-026-02325-0
Identifying performance-sensitive configurations in software systems with LLM-based agents
Wang, Z.-H., Kim, D. J., & Chen, T.-H. (2026) · Empirical Software Engineering · doi:10.1007/s10664-026-10883-7
“For example, Huang et al. (2023)”
Self-citationSpecial Day—A Design Blueprint for Scalable Multi-Agent Architectures in Complex EDA Workflows
Tenace, V., & Gaillardon, P. (2026) · Design, Automation, and Test in Europe · doi:10.23919/date69613.2026.11539468
DebugTA: An LLM-Based Agent for Simplifying Debugging and Teaching in Programming Education
Fu, L., Chen, D., Yuan, H., Li, Q., Liu, W., Zhang, W., & Yu, Y. H. (2026) · Lecture notes in computer science · doi:10.1007/978-3-032-29755-6_35
In Line with Context: Repository-Level Code Generation via Context Inlining
Hu, C., Zeng, W., Shi, Y., Shen, B., & Gu, X. (2026) · Proceedings of the ACM on software engineering. · doi:10.1145/3797094 · Cited by 2 · see citing works
Leveraging Enhanced Test-Driven Development for Accurate Code Generation in LLMs
Zhang, R., Shan, W., Fu, C., & Long, T. (2026) · IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER) · doi:10.1109/saner67736.2026.00089
Prompt Optimization for LLM Code Generation via Reinforcement Learning
Esfahani, A. M., Kahani, N., & Ajila, S. A. (2026) · Lecture notes in computer science · doi:10.1007/978-3-032-30699-9_3
Zhu, H., Wu, J., Ling, X., Luo, T., & Zhao, C. (2026) · Lecture notes in computer science · doi:10.1007/978-981-92-2856-0_32
Delta Debugging for LLM-integrated Systems
Zhu, H., Mansur, M. N., Schäf, M., et al. (2026) · IEEE/ACM International Conference on Software Engineering: Software Engineering in Practice (ICSE-SEIP) · doi:10.1145/3786583.3786854
CHORUS++: An agentic RAG framework with iterative refinement for linear programming code generation
Ahmed, T., & Choudhury, S. (2026) · Annals of Mathematics and Artificial Intelligence · doi:10.1007/s10472-026-10017-1
Multi-Agent LLM Pipeline for Code Writing: An Experimental Study of Writer-Reviewer Architecture
Ekiz, T. K., & Konyar, M. Z. (2026) · ADBA computer science. · doi:10.69882/adba.cs.2026071
Do influence tactics matter? investigating prompt framing effects in LLM code generation
Deaconu, A., Gupta, A., Basha, M., Haydu, N., & Rodríguez-Pérez, G. (2026) · Empirical Software Engineering · doi:10.1007/s10664-026-10934-z
Wang, Y.-K., Zhang, X., Han, J.-X., Zhi, C., & Deng, S.-G. (2026) · IEEE International Conference on Program Comprehension · doi:10.1145/3794763.3794815 · Cited by 1 · see citing works
Multi-Agent Strategies for Bridging Programming Language Gaps in Code Generation
Moumoula, M. B., Nikiema, S. L., Djiré, A. E., et al. (2026) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3841174
Analyzing and fixing code generation errors of foundation large language models
Wen, H., Zhu, Y., Liu, C. C., Ren, X., Weiwei, D., Yan, M., & Zhang, H. (2026) · Empirical Software Engineering · doi:10.1007/s10664-026-10958-5
“Using LlmErrorEval, we evaluated the fix rates of LlmFix and the ten methods mentioned above and further tested the performance when combining the LLM-based fixing methods, LDB (Zhong et al. 2024 ) and CoR (Wang et al. 2023 ), with LlmFix.”
InfluentialDong, Y., Chen, M., & Pang, S. (2026) · Applied Sciences · doi:10.3390/app16199934
- Authors
- Zhong, L., Wang, Z., & Shang, J.
- Affiliations
- University of California San Diego (US)
- Venue
- arXiv
- Publisher
- arXiv
- Published
- 2024
- Pages
- 851-870
- arXiv
- 2402.16906
- OpenAlex
- W4402670687
- Semantic Scholar
- c6c584ea3983627329eebff7c78951938b227351
- Cited by
- 69
- References
- 0
- Citations by year
- 2026: 27 · 2025: 36 · 2024: 6
- FWCI
- 18.84
- Type
- conference paper
- Language
- en
- Open access
- hybrid
- doi.org
- Licence
- Locations
- Findings of the Association for Computational Linguistics: ACL (Findings of ACL) (publishedVersion, cc-by)
- arXiv (Cornell University) (submittedVersion)
- arXiv (Cornell University)
- Funders
- National Science Foundation (2333790, CAREER, 2239440)
- Topics
- Physical Sciences › Computer Science › Software › Software Testing and Debugging Techniques
- Physical Sciences › Computer Science › Information Systems › Software Engineering Research
- Physical Sciences › Computer Science › Computer Science Applications › Teaching and Learning Programming
- Keywords
- debugging, basic blocks, code generation, program verification, HumanEval, MBPP, transcoder
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review