跳到主要导航 跳到搜索 跳到主要内容

Improving Fault Localization and Program Repair with Deep Semantic Features and Transferred Knowledge

  • Beihang University
  • University of Newcastle

科研成果: 书/报告/会议事项章节会议稿件同行评审

摘要

Automatic software debugging mainly includes two tasks of fault lo-calization and automated program repair. Compared with the traditional spectrum-based and mutation-based methods, deep learning-based methods are proposed to achieve better performance for fault localization. However, the existing methods ignore the deep seman-tic features or only consider simple code representations. They do not leverage the existing bug-related knowledge from large-scale open-source projects either. In addition, existing template-based program repair techniques can incorporate project specific information better than deep-learning approaches. However, they are weak in selecting the fix templates for efficient program repair. In this work, we propose a novel approach called TRANSFER, which lever-ages the deep semantic features and transferred knowledge from open-source data to improve fault localization and program repair. First, we build two large-scale open-source bug datasets and design 11 BiLSTM-based binary classifiers and a BiLSTM-based multi-classifier to learn deep semantic features of statements for fault localization and program repair, respectively. Second, we combine semantic-based, spectrum-based and mutation-based features and use an MLP-based model for fault localization. Third, the semantic-based features are leveraged to rank the fix templates for program repair. Our extensive experiments on widely-used benchmark De-fects4J show that TRANSFER outperforms all baselines in fault localization, and is better than existing deep-learning methods in automated program repair. Compared with the typical template-based work TBar, TRANSFER can correctly repair 6 more bugs (47 in total) on Defects4J.

源语言英语
主期刊名Proceedings - 2022 ACM/IEEE 44th International Conference on Software Engineering, ICSE 2022
出版商IEEE Computer Society
1169-1180
页数12
ISBN(电子版)9781450392211
DOI
出版状态已出版 - 5 7月 2022
活动44th ACM/IEEE International Conference on Software Engineering, ICSE 2022 - Hybrid, Pittsburgh, 美国
期限: 22 5月 202227 5月 2022

出版系列

姓名Proceedings - International Conference on Software Engineering
2022-May
ISSN(印刷版)0270-5257

会议

会议44th ACM/IEEE International Conference on Software Engineering, ICSE 2022
国家/地区美国
Hybrid, Pittsburgh
时期22/05/2227/05/22

指纹

探究 'Improving Fault Localization and Program Repair with Deep Semantic Features and Transferred Knowledge' 的科研主题。它们共同构成独一无二的指纹。

引用此