3.8 Proceedings Paper

DEAR: A Novel Deep Learning-based Approach for Automated Program Repair

出版社

IEEE COMPUTER SOC
DOI: 10.1145/3510003.3510177

关键词

Automated Program Repair; Deep Learning; Fault Localization

资金

  1. US National Science Foundation (NSF) [CNS-2120386, CCF-1723215, CCF-1723432, TWC-1723198, CCF-1518897, CNS-1513263]

向作者/读者索取更多资源

DEAR is a DL-based approach that supports fixing general bugs requiring dependent changes to one or multiple consecutive statements in one or multiple hunks of code. It combines traditional spectrum-based FL with deep learning to locate and fix multiple statements in suitable contexts.
The existing deep learning (DL)-based automated program repair (APR) models are limited in fixing general software defects. We present DEAR, a DL-based approach that supports fixing for the general bugs that require dependent changes at once to one or multiple consecutive statements in one or multiple hunks of code. We first design a novel fault localization (FL) technique for multi-hunk, multi-statement fixes that combines traditional spectrum-based (SB) FL with deep learning and data-flow analysis. It takes the buggy statements returned by the SBFL model, detects the buggy hunks to be fixed at once, and expands a buggy statement.. in a hunk to include other suspicious statements around... We design a two-tier, tree-based LSTM model that incorporates cycle training and uses a divide-and-conquer strategy to learn proper code transformations for fixing multiple statements in the suitable fixing context consisting of surrounding subtrees. We conducted several experiments to evaluate DEAR on three datasets: Defects4J (395 bugs), BigFix (+26k bugs), and CPatMiner (+44k bugs). On Defects4J dataset, DEAR outperforms the baselines from 42%-683% in terms of the number of auto-fixed bugs with only the top-1 patches. On BigFix dataset, it fixes 31-145 more bugs than existing DL-based APR models with the top-1 patches. On CPatMiner dataset, among 667 fixed bugs, there are 169 (25.3%) multi-hunk/multi-statement bugs. DEAR fixes 71 and 164 more bugs, including 52 and 61 more multi-hunk/multi-statement bugs, than the state-of-the-art, DL-based APR models.

作者

我是这篇论文的作者
点击您的名字以认领此论文并将其添加到您的个人资料中。

评论

主要评分

3.8
评分不足

次要评分

新颖性
-
重要性
-
科学严谨性
-
评价这篇论文

推荐

暂无数据
暂无数据