An Empirical Study on Software Defect Prediction Using CodeBERT Model

Cong Pan, Minyan Lu, Biao Xu
2021 Applied Sciences  
Deep learning-based software defect prediction has been popular these days. Recently, the publishing of the CodeBERT model has made it possible to perform many software engineering tasks. We propose various CodeBERT models targeting software defect prediction, including CodeBERT-NT, CodeBERT-PS, CodeBERT-PK, and CodeBERT-PT. We perform empirical studies using such models in cross-version and cross-project software defect prediction to investigate if using a neural language model like CodeBERT
more » ... uld improve prediction performance. We also investigate the effects of different prediction patterns in software defect prediction using CodeBERT models. The empirical results are further discussed.
doi:10.3390/app11114793 fatcat:sv6sj7jgz5dgvewfx3ebcxc43u