arrow
返回

Automated patch correctness predicting to fix software defect

自动修补程序正确性预测以修复软件缺陷

delete2024-12-01
delete0
PRE
AI
Z
Zelong Zheng
R
Ruihan Wang
Z
Zijian Tao
H
Hui Li
C
Chen Chen *
T
Tingting Li
S
Shikai Guo
DOI:10.1016/j.eswa.2024.124877delete
delete原文链接
delete分享
delete收藏
摘要

摘要

En 中文
Automated Program Repair (APR) is a technique that can automatically fix software defects without manual debugging, playing a crucial role in software development and maintenance. However, the patches generated by APR still suffer from the problem of overfitting, which poses a significant threat to practical applications. Previous studies have proposed various approaches to predict the correctness of the patch to address this issue, primarily including static-based methods, dynamic-based methods, and learning-based methods. However, these methods all have their own limitations, making it difficult to accurately extract code semantic features and achieve comprehensive prediction. To address the aforementioned challenges, we propose a learning-based unsupervised classification model, A utomated P atch cOrrectness O rrectness aSsessmenT S sessmen T based on muLtiple L tiple pErspectives E rspectives (APOSTLE), for predicting the correctness of patches. Specifically, APOSTLE consists of three components: code vectorization component, where advanced pre-trained models are used to achieve efficient extraction of semantic features from the code; similarity and code change degree calculation component, where APOSTLE calculates the similarity and the degree of change to the code; comprehensive evaluation component, where APOSTLE conducts comprehensive evaluation, addressing the issue of prediction comprehensiveness. Experiments on a collection of 1278 patches (written by developers or generated by 32 APR tools) demonstrate that APOSTLE achieves an AUC value of 0.801, an MAP value of 0.855, and an MRR value of 0.944, outperforming the state-of-the-art approach BATS by 8.3%, 6.0%, and 9.0%, respectively. APOSTLE successfully achieves accurate extraction of code semantic features while achieving comprehensive patch correctness prediction.
Keyword:
Automated program repair
Pre-trained model
Patch correctness prediction
APPT: Boosting Automated Patch Correctness Prediction via Fine-Tuning Pre-Trained Models
err2024-03-01
err3
errOAAI
errZhang, Quanjun; Fang, Chunrong; Sun, Weisong; Liu, Yan; He, Tieke; Hao, Xiaodong; Chen, Zhenyu
err分享
err收藏
Patch Correctness Assessment: A Survey
err2025-01-20
err0
errOAAI
errFei, Zhiwei; Ge, Jidong; Li, Chuanyi; Wang, Tianqi; Li, Yuning; Zhang, Haodong; Huang, Liguo; Luo, Bin
err分享
err收藏
Invalidator: Automated Patch Correctness Assessment Via Semantic and Syntactic Reasoning
err2023-01-01
err9
errOAAI
errLe-Cong, Thanh; Luong, Duc-Minh; Le, Xuan Bach D.; Lo, David; Tran, Nhat-Hoa; Quang-Huy, Bui; Huynh, Quyet-Thang
err分享
err收藏
Predicting Patch Correctness Based on the Similarity of Failing Test Cases
err2022-08-22
err20
errOAAI
errTian, Haoye; Li, Yinghua; Pian, Weiguo; Kabore, Abdoul Kader; Liu, Kui; Habib, Andrew; Klein, Jacques; Bissyande, Tegawende F.
err分享
err收藏
CREX: Predicting patch correctness in automated repair of C programs through transfer learning of execution semantics
err2022-12-01
err6
errOAAI
errYan, Dapeng; Liu, Kui; Niu, Yuqing; Li, Li; Liu, Zhe; Liu, Zhiming; Klein, Jacques; Bissyande, Tegawende F.
err分享
err收藏

期刊

Expert Systems with Applications 封面图
Expert Systems with Applications
IF:
7.5
论文数:
3.1W
被引数:
13.6W

机构

大连海事大学 封面图
大连海事大学
学者数:
2.2K
论文数: 663
被引数: 6.1K
吉林大学 封面图
吉林大学
学者数:
8.0K
论文数: 2.0K
被引数: 4.0W
引用论文

引用论文

Evaluating and Improving Unified Debugging
err2022-11-01
err7
PREAI
errBenton, Samuel; Li, Xia; Lou, Yiling; Zhang, Lingming
err分享
err收藏
err分享
err收藏
Automated Program Repair
err2019-11-21
err231
PREAI
errLe Goues, Claire; Pradel, Michael; Roychoudhury, Abhik
err分享
err收藏
GenProg: A Generic Method for Automatic Software Repair
err2012-01-01
err594
PREAI
errLe Goues, Claire; ThanhVu Nguyen; Forrest, Stephanie; Weimer, Westley
err分享
err收藏
学者 查看更多内容