Back to Search Start Over

RobustNPR: Evaluating the robustness of neural program repair models.

Authors :
Ge, Hongliang
Zhong, Wenkang
Li, Chuanyi
Ge, Jidong
Hu, Hao
Luo, Bin
Source :
Journal of Software: Evolution & Process. Apr2024, Vol. 36 Issue 4, p1-16. 16p.
Publication Year :
2024

Abstract

Due to the high cost of repairing defective programs, many researches focus on automatic program repair (APR). In recent years, the new trend of APR is to apply neural networks to mine the relations between defective programs and corresponding patches automatically, which is known as neural program repair (NPR). The community, however, ignores some important properties that could impact the applicability of NPR systems, such as robustness. For semantic‐identical buggy programs, NPR systems may produce totally different patches. In this paper, we propose an evaluation tool named RobustNPR, the first NPR robustness evaluation tool. RobustNPR employs several mutators to generate semantic‐identical mutants of defective programs. For an original defective program and its mutant, it checks two aspects of NPR: (a) Can NPR fix mutants when it can fix the original defective program? and (b) can NPR generate semantic‐identical patches for the original program and the mutant? Then, we evaluate four SOTA NPR models and analyze the results. From the results, we find that even for the best‐performing model, 20.16% of the repair success is unreliable, which indicates that the robustness of NPR is not perfect. In addition, we find that the robustness of NPR is correlated with model settings and other factors. [ABSTRACT FROM AUTHOR]

Subjects

Subjects :
*SUCCESS

Details

Language :
English
ISSN :
20477473
Volume :
36
Issue :
4
Database :
Academic Search Index
Journal :
Journal of Software: Evolution & Process
Publication Type :
Academic Journal
Accession number :
176450874
Full Text :
https://doi.org/10.1002/smr.2586