arrow
Return

bjCnet: A contrastive learning-based framework for software defect prediction

delete2024-10-01
delete0
PRE
AI
J
Jiaxuan Han
C
Cheng Huang *
J
Jiayong Liu
DOI:10.1016/j.cose.2024.104024delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Defect prediction based on deep learning is proposed to provide practitioners with reliable and practical tools to determine whether an area of code is defective. Compared with traditional code features, semantic features of source codes automatically extracted by neural networks can better reflect the semantic differences between codes. However, the small difference between some bug codes and clean codes poses a challenge for deep learning models in distinguishing them, leading to a low accuracy in defect prediction. In this paper, we propose bjCnet, a software defect prediction framework based on contrastive learning. It fine-tunes the pre- trained Transformer-based code large language model via a supervised contrastive learning network, achieving accurate defect prediction. We evaluate the prediction effect of bjCnet, the results demonstrate that the highest accuracy and f1-score achieved by bjCnet are both 0.948, surpassing the performance of the state-of-the-art approaches selected for comparison.
Keywords:
Deep learning
Defect prediction
Transformer
Large language model
Contrastive learning

Journal

C
Computers and Security
IF:
5.4
Papers:
4.6K
Citations:
1.4W

Organization

S
sichuan university
Scholars:
12.1W
Papers: 7.8W
Citations: 100
Cited Papers

Cited Papers

errShare
errSave
FYCO1 mediates clearance of α‐synuclein aggregates through a Rab7‐dependent mechanism
err2018-07-23
err0
errOAAI
errTheodora Saridaki; Markus Nippold; Elisabeth Dinter; Andreas Roos; Leonie Diederichs; Luisa Fensky; Jörg B. Schulz; Björn H. Falkenburger
errShare
errSave
SLDeep: Statement-level software defect prediction using deep-learning model on static code features
err2020-06-01
err59
PREAI
errMajd, Amirabbas; Vahidi-Asl, Mojtaba; Khalilian, Alireza; Poorsarvi-Tehrani, Pooria; Haghighi, Hassan
errShare
errSave
Evaluation of analytical performance of a new high-sensitivity immunoassay for cardiac troponin I
err2017-09-23
err0
PREAI
errSilvia Masotti; Concetta Prontera; Veronica Musetti; Simona Storti; Rudina Ndreu; Gian Carlo Zucchelli; Claudio Passino; Aldo Clerico
errShare
errSave
errShare
errSave
errShare
errSave
researcher View more