基于BERT风格模型的JIT缺陷预测实证研究
An Empirical Study on JIT Defect Prediction Based on BERT-style Model
AI总结:
本研究系统实证了微调设置对BERT风格模型在JIT缺陷预测中的影响,发现首层编码器关键、参数初始化敏感,并基于LoRA提出节省三分之二内存的微调方法。
摘要:
先前关于即时(JIT)缺陷预测任务的研究主要直接应用预训练模型,忽略了其微调过程的配置。在本研究中,我们进行了一项系统的实证研究,以理解微调过程的设置对用于JIT缺陷预测的BERT风格预训练模型的影响。具体而言,我们探讨了不同的参数冻结设置、参数初始化设置和优化器策略对BERT风格模型在JIT缺陷预测中性能的影响。我们的发现揭示了BERT风格模型中第一个编码器层的关键作用,以及项目对参数初始化设置的敏感性。另一个显著发现是,在Adam优化器中添加权重衰减策略可以略微提升模型性能。此外,我们比较了使用不同特征提取器(FCN、CNN、LSTM、transformer)的性能,发现一个简单的网络也能取得很好的性能。这些结果为微调预训练模型用于JIT缺陷预测提供了新的见解。我们结合这些发现,找到了一种基于LoRA的高性价比微调方法,该方法在仅使用原始微调过程三分之一内存的情况下,达到了可比的性能。
英文摘要:
Previous works on Just-In-Time (JIT) defect prediction tasks have primarily applied pre-trained models directly, neglecting the configurations of their fine-tuning process. In this study, we perform a systematic empirical study to understand the impact of the settings of the fine-tuning process on BERT-style pre-trained model for JIT defect prediction. Specifically, we explore the impact of different parameter freezing settings, parameter initialization settings, and optimizer strategies on the performance of BERT-style models for JIT defect prediction. Our findings reveal the crucial role of the first encoder layer in the BERT-style model and the project sensitivity to parameter initialization settings. Another notable finding is that the addition of a weight decay strategy in the Adam optimizer can slightly improve model performance. Additionally, we compare performance using different feature extractors (FCN, CNN, LSTM, transformer) and find that a simple network can achieve great performance. These results offer new insights for fine-tuning pre-trained models for JIT defect prediction. We combine these findings to find a cost-effective fine-tuning method based on LoRA, which achieve a comparable performance with only one-third memory consumption than original fine-tuning process.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。