mlsanityData to 7 Oct 2026

Keep the Conversation Going: Fixing 162 out of 337 bugs for 0.42 each using ChatGPT

arXiv 2304.00385 ↗First posted 1 Apr 2023cs.SE cs.LGcited by 125

Not on the map. Why?

Cited by 41 in LLM agents and tool use, but placed by its own abstract, which didn’t fit.

Abstract (arXiv)

Automated Program Repair (APR) aims to automatically generate patches for buggy programs. Recent APR work has been focused on leveraging modern Large Language Models (LLMs) to directly generate patches for APR. Such LLM-based APR tools work by first constructing an input prompt built using the original buggy code and then queries the LLM to generate patches. While the LLM-based APR tools are able to achieve state-of-the-art results, it still follows the classic Generate and Validate repair paradigm of first generating lots of patches and then validating each one afterwards. This not only leads to many repeated patches that are incorrect but also miss the crucial information in test failures as well as in plausible patches. To address these limitations, we propose ChatRepair, the first fully automated conversation-driven APR approach that interleaves patch generation with instant feedback to perform APR in a conversational style. ChatRepair first feeds the LLM with relevant test failure information to start with, and then learns from both failures and successes of earlier patching attempts of the same bug for more powerful APR. For earlier patches that failed to pass all tests, we combine the incorrect patches with their corresponding relevant test failure information to construct a new prompt for the LLM to generate the next patch. In this way, we can avoid making the same mistakes. For earlier patches that passed all the tests, we further ask the LLM to generate alternative variations of the original plausible patches. In this way, we can further build on and learn from earlier successes to generate more plausible patches to increase the chance of having correct patches. While our approach is general, we implement ChatRepair using state-of-the-art dialogue-based LLM -- ChatGPT. By calculating the cost of accessing ChatGPT, we can fix 162 out of 337 bugs for 0.42 each!

Key facts. Cited by 125 papers in the map (data through 7 Oct 2026). Builds on 19 of its 75 references that are in the map. First posted on arXiv 1 Apr 2023.

Builds on

19 of 75 references.

References · 19

  1. 2022Training language models to follow instructions with human feedbackcited by 15,712
  2. 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
  3. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  4. 2023A Multitask, Multilingual, Multimodal Evaluation of ChatGPT on Reasoning, Hallucination, and Interactivitycited by 888
  5. 2022A Systematic Evaluation of Large Language Models of Codecited by 360
  6. 2023An Empirical Evaluation of Using Large Language Models for Automated Unit Test Generationcited by 193
  7. 2018SequenceR: Sequence-to-Sequence Learning for End-to-End Program Repaircited by 144
  8. 2021CURE: Code-Aware Neural Machine Translation for Automatic Program Repaircited by 85
  9. 2022Less Training, More Repairing Please: Revisiting Automated Program Repair via Zero-shot Learningcited by 76
  10. 2019TBar: Revisiting Template-based Automated Program Repaircited by 64
  11. 2021A Syntax-Guided Edit Decoder for Neural Program Repaircited by 57
  12. 2021Neural Program Repair with Execution-based Backpropagationcited by 50
7 more
  1. 2015On the "Naturalness" of Buggy Codecited by 35
  2. 2018FixMiner: Mining Relevant Fix Patterns for Automated Program Repaircited by 22
  3. 2018AVATAR : Fixing Semantic Bugs with Fix Patterns of Static Analysis Violationscited by 22
  4. 2021Extracting Concise Bug-Fixing Patches from Human-Written Patches in Version Control Systemscited by 9
  5. 2016An Analysis of the Search Spaces for Generate and Validate Patch Generation Systemscited by 8
  6. 2014Automatic Repair of Buggy If Conditions and Missing Preconditions with SMTcited by 7
  7. 2018Automatic Repair of Real Bugs in Java: A Large-Scale Experiment on the Defects4J Datasetcited by 7

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 18; 2024: 27; 2025: 42; 2026: 38.

125 papers.

Sort:

By area:

  1. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
  2. 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 527
  3. 2024Agentless: Demystifying LLM-based Software Engineering Agentscited by 400
  4. 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
  5. 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Uglycited by 380
  6. 2023Magicoder: Empowering Code Generation with OSS-Instructcited by 251
  7. 2024RepairAgent: An Autonomous, LLM-Based Agent for Program Repaircited by 225
  8. 2024Large Language Model-Based Agents for Software Engineering: A Surveycited by 173
  9. 2025Live-SWE-agent: Can Software Engineering Agents Self-Evolve on the Fly?cited by 91
  10. 2023Fuzz4All: Universal Fuzzing with Large Language Modelscited by 88
  11. 2023GPTScan: Detecting Logic Vulnerabilities in Smart Contracts by Combining GPT with Program Analysiscited by 65
  12. 2025OpenCodeInstruct: A Large-scale Instruction Tuning Dataset for Code LLMscited by 57
38 more
  1. 2023Copiloting the Copilots: Fusing Large Language Models with Completion Engines for Automated Program Repaircited by 55
  2. 2023Large Language Models for Compiler Optimizationcited by 52
  3. 2025SWE-EVO: Benchmarking Coding Agents in Long-Horizon Software Evolution Scenarioscited by 49
  4. 2024From Code to Correctness: Closing the Last Mile of Code Generation with Hierarchical Debuggingcited by 46
  5. 2025Reducing Cost of LLM Agents with Trajectory Reductioncited by 44
  6. 2023A New Era in Software Security: Towards Self-Healing Software via Large Language Models and Formal Verificationcited by 42
  7. 2024Can LLMs Replace Manual Annotation of Software Engineering Artifacts?cited by 40
  8. 2024PropertyGPT: LLM-driven Formal Verification of Smart Contracts through Retrieval-Augmented Property Generationcited by 36
  9. 2024UniDebugger: Hierarchical Multi-Agent Framework for Unified Software Debuggingcited by 35
  10. 2025Evaluating Agent-based Program Repair at Googlecited by 35
  11. 2024CRUXEval-X: A Benchmark for Multilingual Code Reasoning, Understanding and Executioncited by 31
  12. 2024How secure is AI-generated Code: A Large-Scale Comparison of Large Language Modelscited by 23
  13. 2025KNighter: Transforming Static Analysis with LLM-Synthesized Checkerscited by 22
  14. 2024Rectifier: Code Translation with Corrector via LLMscited by 20
  15. 2025Exploring Autonomous Agents: A Closer Look at Why They Fail When Completing Taskscited by 20
  16. 2023Exploring Code Analysis: Zero-Shot Insights on Syntax and Semantics with LLMscited by 19
  17. 2023Trustworthy and Synergistic Artificial Intelligence for Software Engineering: Vision and Roadmapscited by 19
  18. 2025D-CIPHER: Dynamic Collaborative Intelligent Multi-Agent System with Planner and Heterogeneous Executors for Offensive Securitycited by 19
  19. 2023The Hitchhiker's Guide to Program Analysis: A Journey with Large Language Modelscited by 18
  20. 2023FakeGPT: Fake News Generation, Explanation and Detection of Large Language Modelscited by 16
  21. 2025An Empirical Study on Failures in Automated Issue Solvingcited by 15
  22. 2024CigaR: Cost-efficient Program Repair with LLMscited by 14
  23. 2024OptLLM: Optimal Assignment of Queries to Large Language Modelscited by 14
  24. 2025Beyond Final Code: A Process-Oriented Error Analysis of Software Development Agents in Real-World GitHub Scenarioscited by 14
  25. 2025CRAKEN: Cybersecurity LLM Agent with Knowledge-Based Executioncited by 14
  26. 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 13
  27. 2023Enhancing Genetic Improvement Mutations Using Large Language Modelscited by 12
  28. 2024Laurel: Unblocking Automated Verification with Large Language Modelscited by 10
  29. 2024AuditGPT: Auditing Smart Contracts with ChatGPTcited by 9
  30. 2024Enhancing Automated Program Repair with Solution Designcited by 8
  31. 2025Can Agents Fix Agent Issues?cited by 8
  32. 2025Dissecting the SWE-Bench Leaderboards: Profiling Submitters and Architectures of LLM- and Agent-Based Repair Systemscited by 8
  33. 2023Learning from Teaching Assistants to Program with Subgoals: Exploring the Potential for AI Teaching Assistantscited by 7
  34. 2024Can GPT-O1 Kill All Bugs? An Evaluation of GPT-Family LLMs on QuixBugscited by 7
  35. 2026LLM-Based Agentic Systems for Software Engineering: Challenges and Opportunitiescited by 7
  36. 2024Instruct or Interact? Exploring and Eliciting LLMs' Capability in Code Snippet Adaptation Through Prompt Engineeringcited by 6
  37. 2025Agentic Program Repair from Test Failures at Scale: A Neuro-symbolic approach with static analysis and test execution feedbackcited by 6
  38. 2025CP-Agent: Agentic Constraint Programmingcited by 6

50 most cited of 125 All 125 (JSON)