Improving Bug Localization With Effective Contrastive Learning Representation
Open Access
- 12 December 2022
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Access
- Vol. 11, 32523-32533
Abstract
Automated localization of buggy files can accelerate developers’ efficiency of software maintenance, improving the quality of software products. State-of-the-art approaches for bug localization is based on neural networks, e.g., RNN or CNN, and can learn semantic feature from the given bug report. However, these simple neural architectures are difficult to learn the deep contextual feature from bug reports, which hurts the semantic mapping between bug reports and their corresponding buggy files. To resolve the above problem, in this paper we propose a bug localization approach that combines pre-trained language models and contrastive learning, namely CoLoc. Specifically, CoLoc first is pre-trained on a large-scale bug report corpus in an unsupervised way, to learn the deep contextual feature of each token in the bug report according to its context. Afterward, CoLoc is further pre-trained by a contrastive learning objective to learn the contrastive learning representations both of bug reports and buggy files. Contrastive learning can help CoLoc to learn the semantic differences between different bug reports and buggy files. To evaluate the effectiveness of CoLoc, we choose five baseline approaches and compare their performance on a public dataset. The experimental results show that CoLoc outperforms all baseline approaches and achieves new results for bug localization.Keywords
Funding Information
- National Natural Science Foundation of China (61961036, 62162054)
- Natural Science Foundation of Guangxi (2020JJA170007)
- Wuzhou Science and Technology Plan
- youth project of Wuzhou University in 2020 (2020C004)
- Zhejiang Educational Science Planning Project (GH2021157)
This publication has 27 references indexed in Scilit:
- Improving Bug Localization with an Enhanced Convolutional Neural Network2017
- On Sampling Strategies for Neural Network-based Collaborative Filtering2017
- Enhancing the Unified Features to Locate Buggy Files by Exploiting the Sequential Nature of Source Code2017
- Bug Localization with Combination of Deep Learning and Information Retrieval2017
- Text Summarization Techniques: A Brief SurveyInternational Journal of Advanced Computer Science and Applications, 2017
- Towards more accurate severity prediction and fixer recommendation of software bugsJournal of Systems and Software, 2016
- A survey of transfer learningJournal of Big Data, 2016
- Assessing the state of the art in biomedical relation extraction: overview of the BioCreative V chemical-disease relation (CDR) taskDatabase: The Journal of Biological Databases and Curation, 2016
- Where should the bugs be fixed? More accurate information retrieval-based bug localization based on bug reports2012
- Dimensionality Reduction by Learning an Invariant Mapping2006