PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
October 9, 202310 citations

Automatic Bug Fixing via Deliberate Problem Solving with Large Language Models

View Full Paper
GWGuoyang WengAAArtur Andrzejak

Key Points

Key points are not available for this paper at this time.

Abstract

Developers dedicate a significant share of their activities to finding and fixing defects in their code. Automated program repair (APR) attempts to reduce this effort by a set of techniques for automatically fixing errors or vulnerabilities in software systems. Recent Large Language Models (LLMs) such as GPT-4 offer an effective alternative to existing APR methods, featuring out-of-the-box bug fixing performance comparable to even sophisticated deep learning approaches such as CoCoNut. In this work we propose a further extension to LLM-based program repair techniques by leveraging a recently introduced interactive prompting technique called Tree of Thoughts (ToT). Specifically, we ask a LLM to propose multiple hypotheses about the location of a bug, and based on the aggregated response we prompt for bug fixing suggestions. A preliminary evaluation shows that our approach is able to fix multiple complex bugs previously unsolved by GPT-4 even with prompt engineering. This result motivates further exploration of hybrid approaches which combine LLMs with suitable meta-strategies.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Weng et al. (2023) studied this question.

synapsesocial.com/papers/6a0daa9768ddba849a09d20ahttps://doi.org/10.1109/issrew60843.2023.00040
Ask AI
Helpful
Bookmark
Share
View Full Paper