volume 46 issue 4 pages 7859-7873

Multi-mechanism neural machine translation framework for automatic program repair

Heling Cao 1, 2
Han Dong 1, 2
Yonghe Chu 1, 2
Fangchao Tian 1, 2
Yun Wang 1, 2
Yu Liu 1
Junliang Jia 3
Haoyang Ge 1
Publication typeJournal Article
Publication date2024-04-18
scimago Q2
wos Q4
SJR0.364
CiteScore4.2
Impact factor1.0
ISSN10641246, 18758967
Statistics and Probability
General Engineering
Artificial Intelligence
Abstract

Automatic program repair (APR) is crucial to improve software quality. Recently, neural machine translation (NMT) based modeling for bug fixes has demonstrated great potential. However, these approaches still have two major challenges. One is that their search space is limited due to the out-of-vocabulary (OOV) problem. The other is that the NMT-based APR models tend to ignore past translation information, which often leads to over-translation and under-translation. To address the above challenges, we propose MNRepair, a new NMT-based APR approach that combines multiple mechanisms to fix bugs in source code. Specifically, we devise an encoder-decoder NMT framework with the attention mechanism. Our framework combines the copy mechanism to overcome the OOV problem that occurs with source code. To deal with the over-translation and under-translation, we utilize a coverage mechanism to record past translation information. MNRepair is able to capture a wide range of repair operators and fix 26 bugs in Defects4J. Our evaluation shows the effectiveness of multiple mechanisms in the repair process.

Found 
Found 

Top-30

Journals

1
International Journal of Software Engineering and Knowledge Engineering
1 publication, 100%
1

Publishers

1
World Scientific
1 publication, 100%
1
  • We do not take into account publications without a DOI.
  • Statistics recalculated weekly.

Are you a researcher?

Create a profile to get free access to personal recommendations for colleagues and new articles.
Metrics
1
Share
Cite this
GOST |
Cite this
GOST Copy
Cao H. et al. Multi-mechanism neural machine translation framework for automatic program repair // Journal of Intelligent and Fuzzy Systems. 2024. Vol. 46. No. 4. pp. 7859-7873.
GOST all authors (up to 50) Copy
Cao H., Han Dong, Chu Y., Tian F., Wang Y., Liu Yu., Jia J., Ge H. Multi-mechanism neural machine translation framework for automatic program repair // Journal of Intelligent and Fuzzy Systems. 2024. Vol. 46. No. 4. pp. 7859-7873.
RIS |
Cite this
RIS Copy
TY - JOUR
DO - 10.3233/jifs-234037
UR - https://www.medra.org/servlet/aliasResolver?alias=iospress&doi=10.3233/JIFS-234037
TI - Multi-mechanism neural machine translation framework for automatic program repair
T2 - Journal of Intelligent and Fuzzy Systems
AU - Cao, Heling
AU - Han Dong
AU - Chu, Yonghe
AU - Tian, Fangchao
AU - Wang, Yun
AU - Liu, Yu
AU - Jia, Junliang
AU - Ge, Haoyang
PY - 2024
DA - 2024/04/18
PB - SAGE
SP - 7859-7873
IS - 4
VL - 46
SN - 1064-1246
SN - 1875-8967
ER -
BibTex |
Cite this
BibTex (up to 50 authors) Copy
@article{2024_Cao,
author = {Heling Cao and Han Dong and Yonghe Chu and Fangchao Tian and Yun Wang and Yu Liu and Junliang Jia and Haoyang Ge},
title = {Multi-mechanism neural machine translation framework for automatic program repair},
journal = {Journal of Intelligent and Fuzzy Systems},
year = {2024},
volume = {46},
publisher = {SAGE},
month = {apr},
url = {https://www.medra.org/servlet/aliasResolver?alias=iospress&doi=10.3233/JIFS-234037},
number = {4},
pages = {7859--7873},
doi = {10.3233/jifs-234037}
}
MLA
Cite this
MLA Copy
Cao, Heling, et al. “Multi-mechanism neural machine translation framework for automatic program repair.” Journal of Intelligent and Fuzzy Systems, vol. 46, no. 4, Apr. 2024, pp. 7859-7873. https://www.medra.org/servlet/aliasResolver?alias=iospress&doi=10.3233/JIFS-234037.