Supporting Cross-language Cross-project Bug Localization Using Pre-trained Language Models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Chandramohan, Mahinthan, Nguyen, Dai Quoc, Krishnan, Padmanabhan, Jancic, Jovan
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909240632803328
author Chandramohan, Mahinthan
Nguyen, Dai Quoc
Krishnan, Padmanabhan
Jancic, Jovan
author_facet Chandramohan, Mahinthan
Nguyen, Dai Quoc
Krishnan, Padmanabhan
Jancic, Jovan
contents Automatically locating a bug within a large codebase remains a significant challenge for developers. Existing techniques often struggle with generalizability and deployment due to their reliance on application-specific data and large model sizes. This paper proposes a novel pre-trained language model (PLM) based technique for bug localization that transcends project and language boundaries. Our approach leverages contrastive learning to enhance the representation of bug reports and source code. It then utilizes a novel ranking approach that combines commit messages and code segments. Additionally, we introduce a knowledge distillation technique that reduces model size for practical deployment without compromising performance. This paper presents several key benefits. By incorporating code segment and commit message analysis alongside traditional file-level examination, our technique achieves better bug localization accuracy. Furthermore, our model excels at generalizability - trained on code from various projects and languages, it can effectively identify bugs in unseen codebases. To address computational limitations, we propose a CPU-compatible solution. In essence, proposed work presents a highly effective, generalizable, and efficient bug localization technique with the potential to real-world deployment.
format Preprint
id arxiv_https___arxiv_org_abs_2407_02732
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Supporting Cross-language Cross-project Bug Localization Using Pre-trained Language Models
Chandramohan, Mahinthan
Nguyen, Dai Quoc
Krishnan, Padmanabhan
Jancic, Jovan
Software Engineering
Information Retrieval
Automatically locating a bug within a large codebase remains a significant challenge for developers. Existing techniques often struggle with generalizability and deployment due to their reliance on application-specific data and large model sizes. This paper proposes a novel pre-trained language model (PLM) based technique for bug localization that transcends project and language boundaries. Our approach leverages contrastive learning to enhance the representation of bug reports and source code. It then utilizes a novel ranking approach that combines commit messages and code segments. Additionally, we introduce a knowledge distillation technique that reduces model size for practical deployment without compromising performance. This paper presents several key benefits. By incorporating code segment and commit message analysis alongside traditional file-level examination, our technique achieves better bug localization accuracy. Furthermore, our model excels at generalizability - trained on code from various projects and languages, it can effectively identify bugs in unseen codebases. To address computational limitations, we propose a CPU-compatible solution. In essence, proposed work presents a highly effective, generalizable, and efficient bug localization technique with the potential to real-world deployment.
title Supporting Cross-language Cross-project Bug Localization Using Pre-trained Language Models
topic Software Engineering
Information Retrieval
url https://arxiv.org/abs/2407.02732