arrow
返回

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
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

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.
Keyword:
Deep learning
Defect prediction
Transformer
Large language model
Contrastive learning

期刊

C
Computers and Security
IF:
5.4
论文数:
4.6K
被引数:
1.4W

机构

S
sichuan university
学者数:
12.1W
论文数: 7.8W
被引数: 100
引用论文

引用论文

err分享
err收藏
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
err分享
err收藏
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
err分享
err收藏
err分享
err收藏
学者 查看更多内容