arrow
返回

Code-aware fault localization with pre-training and interpretable machine learning

delete2024-03-01
delete2
PRE
AI
Z
Zhuo Zhang
Y
Ya Li *
S
Sha Yang
Z
Zhanjun Zhang
雷晏 (Yan Lei)
DOI:10.1016/j.eswa.2023.121689delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Following the rapid development of deep learning, many studies in the field of fault localization (FL) have utilized deep learning to analyze statements' coverage information (i.e., executed or not executed) and test cases' results (i.e., failing or passing), which have shown dramatic ability in identifying suspicious statements potentially responsible for failures. However, they mainly pay attention to the binary information of executing test cases but ignore incorporating code snippets and their inner relationships into the learning process. Furthermore, how a complex deep learning model for FL achieves a particular decision is not transparent. These drawbacks may limit the effectiveness of FL. Recently, graph-based pre-training techniques have dramatically improved the state-of-the-art in a variety of code-related tasks such as natural language code search, clone detection, code translation, code refinement, etc. And interpretable machine learning tackles the problem of non-transparency and enables learning models to explain or present their behaviors to humans in an understandable way.In this paper, our insight is to select a candidate solution that leverages the promising learning ability of graph-based pre-training techniques to learn a feasible model for incorporating code snippets as well as their inner relationships into fault localization, and then uses interpretable machine learning to localize faulty statements. Thus, we propose CodeAwareFL, a code-aware fault localization technique with pre-training and interpretable machine learning. Concretely, CodeAwareFL constructs a variety of code snippets through executing test cases. Next, CodeAwareFL utilizes the code snippets to extract propagation chains which could show a set of variables interact with each other to cause a failure. After that, a graph-based pre-trained model is customized for fault localization. CodeAwareFL takes the code snippets and their corresponding propagation chains as inputs with test results as labels to conduct the training process. Finally, CodeAwareFL evaluates the suspiciousness of statements with interpretable machine learning techniques. In the experimental study, we choose 12 large-sized programs to conduct the comparison. The results show that CodeAwareFL achieves promising results (e.g., 32.43% faults are ranked within top 5), and is significantly better than 12 state-of-the-art baselines.
Keyword:
Fault localization
Pre-training
Interpretable machine learning

期刊

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

机构

S
shanghai jiao tong university
学者数:
15.7W
论文数: 11.7W
被引数: 159
C
Chongqing University
学者数:
5.1W
论文数: 4.1W
被引数: 6.0W
G
Guangzhou College of Commerce
学者数:
276
论文数: 279
被引数: 250
N
national university of defense technology - china
学者数:
1.8W
论文数: 1.4W
被引数: 9
学者 查看更多机构
引用论文

引用论文

Exposure of Pancreatic β-Cells to Excess Glucose Results in Bimodal Activation of mTORC1 and mTOR-Dependent Metabolic Acceleration
err2020-02-01
err0
errOAAI
errCourtney Zasha Rumala; Juan Liu; Jason Wei Locasale; Barbara Ellen Corkey; Jude Thaddeus Deeney; Lucia Egydio Rameh
err分享
err收藏
Long noncoding RNA hypoxia-inducible factor 1 alpha-antisense RNA 1 promotes tumor necrosis factor-α-induced apoptosis through caspase 3 in Kupffer cells
err2018-01-01
err0
errOAAI
errYanghe Wu; Jiguang Ding; Qingfeng Sun; Ke Zhou; Weiwei Zhang; Qingwei Du; Tingyan Xu; Wangwang Xu
err分享
err收藏
Peer Effects of Corporate Social Responsibility
err2016-01-01
err0
errOAAI
errJie Cao; Hao Liang; Xintong Zhan
err分享
err收藏
A Survey on Software Fault Localization软件故障定位研究综述
err2016-08-01
err741
errOAAI
errWong, W. Eric; Gao, Ruizhi; Li, Yihao; Abreu, Rui; Wotawa, Franz
err分享
err收藏
err分享
err收藏
Effective Software Fault Localization Using an RBF Neural Network使用RBF神经网络进行有效的软件故障定位
err2012-03-01
err145
PREAI
errWong, W. Eric; Debroy, Vidroha; Golden, Richard; Xu, Xiaofeng; Thuraisingham, Bhavani
err分享
err收藏
学者 查看更多内容