Searching for just a few words should be enough to get started. If you need to make more complex queries, use the tips below to guide you.
Article type: Research Article
Authors: Cao, Helinga; b | Han, Donga; b | Chu, Yonghea; b; * | Tian, Fangchaoa; b | Wang, Yuna; b | Liu, Yua | Jia, Junliangc | Ge, Haoyanga
Affiliations: [a] College of Information Science and Engineering, Henan University of Technology, Zhengzhou, China | [b] Henan International Joint Laboratory of Grain Information Processing, Henan University of Technology, Zhengzhou, China | [c] Henan Kingsource Information Technology, Zhengzhou, China
Correspondence: [*] Corresponding author: Yonghe Chu, Henan International Joint Laboratory of Grain Information Processing, Henan University of Technology, Zhengzhou, China. E-mail: [email protected].
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.
Keywords: Automatic program repair, neural machine translation, multiple mechanisms
DOI: 10.3233/JIFS-234037
Journal: Journal of Intelligent & Fuzzy Systems, vol. 46, no. 4, pp. 7859-7873, 2024
IOS Press, Inc.
6751 Tepper Drive
Clifton, VA 20124
USA
Tel: +1 703 830 6300
Fax: +1 703 830 2300
[email protected]
For editorial issues, like the status of your submitted paper or proposals, write to [email protected]
IOS Press
Nieuwe Hemweg 6B
1013 BG Amsterdam
The Netherlands
Tel: +31 20 688 3355
Fax: +31 20 687 0091
[email protected]
For editorial issues, permissions, book requests, submissions and proceedings, contact the Amsterdam office [email protected]
Inspirees International (China Office)
Ciyunsi Beili 207(CapitaLand), Bld 1, 7-901
100025, Beijing
China
Free service line: 400 661 8717
Fax: +86 10 8446 7947
[email protected]
For editorial issues, like the status of your submitted paper or proposals, write to [email protected]
如果您在出版方面需要帮助或有任何建, 件至: [email protected]