Conversational Automated Program Repair
Chunqiu Steven Xia, Lingming Zhang

TL;DR
This paper introduces conversational APR, a novel iterative approach using LLMs that combines patch generation and validation feedback to improve automated program repair, leveraging long-term context for better results.
Contribution
It proposes a new conversational paradigm for APR that iteratively refines patches using validation feedback, enhancing the effectiveness of LLM-based program repair.
Findings
Conversational APR outperforms previous LLM-based approaches.
Using ChatGPT improves patch quality and validation understanding.
Iterative feedback integration reduces repeated incorrect patches.
Abstract
Automated Program Repair (APR) can help developers automatically generate patches for bugs. Due to the impressive performance obtained using Large Pre-Trained Language Models (LLMs) on many code related tasks, researchers have started to directly use LLMs for APR. However, prior approaches simply repeatedly sample the LLM given the same constructed input/prompt created from the original buggy code, which not only leads to generating the same incorrect patches repeatedly but also miss the critical information in testcases. To address these limitations, we propose conversational APR, a new paradigm for program repair that alternates between patch generation and validation in a conversational manner. In conversational APR, we iteratively build the input to the model by combining previously generated patches with validation feedback. As such, we leverage the long-term context window of LLMs…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Testing and Debugging Techniques · Software Engineering Research · Advanced Malware Detection Techniques
MethodsRepair
