Automatic Bug Fixing via Deliberate Problem Solving with Large Language Models

计算机科学 集合(抽象数据类型) 编码(集合论) 软件工程 要价 软件错误 调试 人工智能 软件 树(集合论) 机器学习 程序设计语言 数据科学 数学分析 经济 数学 经济
作者
Guoyang Weng,Artur Andrzejak
标识
DOI:10.1109/issrew60843.2023.00040
摘要

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.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
刚刚
1秒前
赵西里发布了新的文献求助50
1秒前
姜姜姜完成签到,获得积分10
1秒前
1秒前
wanci的应助被行者采纳,获得10
1秒前
ywffb完成签到,获得积分10
2秒前
2秒前
fxfcpu完成签到,获得积分10
2秒前
2秒前
呆呆茹的应助被自由黑夜采纳,获得20
2秒前
2秒前
2秒前
3秒前
JamesPei的应助被无心周旋采纳,获得10
3秒前
xxy完成签到,获得积分10
3秒前
ggg发布了新的文献求助10
3秒前
3秒前
3秒前
4秒前
4秒前
4秒前
lululu发布了新的文献求助10
4秒前
迷人乐珍发布了新的文献求助10
5秒前
陈千里发布了新的文献求助10
5秒前
5秒前
5秒前
lili的应助被王C采纳,获得30
5秒前
就叫烨烨完成签到,获得积分10
5秒前
5秒前
ywffb发布了新的文献求助200
5秒前
5秒前
6秒前
6秒前
6秒前
璐璐的应助被纳米材料采纳,获得20
6秒前
沉静文涛完成签到,获得积分10
7秒前
小乐完成签到,获得积分10
7秒前
欣喜小甜瓜完成签到,获得积分10
7秒前
7秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Aspects of Post-SPE Phonology 2000
Performance standards for antimicrobial disk and dilution susceptibility tests for bacteria isolated from animals 888
Rosenblum, Global Change Biology 800
Holistic Discourse Analysis, Second Edition by Robert E. Longacre (2012-09-10) 666
Change the Wallpaper: Transforming Cultural Patterns to Build More Just Communities 600
Final Report for the 2-D Test of Model 901 Rotor and Wing Airfoils (BSWT 592) 528
热门求助领域 (近24小时)
化学 材料科学 医学 生物 计算机科学 工程类 纳米技术 物理 有机化学 化学工程 内科学 生物化学 复合材料 催化作用 心理学 细胞生物学 无机化学 电极 光电子学 人工智能
热门帖子
关注 科研通微信公众号,转发送积分 7883844
求助须知:如何正确求助?哪些是违规求助? 9397164
关于积分的说明 20819796
捐赠科研通 7486134
什么是DOI,文献DOI怎么找? 3355791
关于科研通互助平台的介绍 2494789
邀请新用户注册赠送积分活动 2383341