arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2411.12137cs.SE
收藏

理解软件工程中数据缺陷对深度学习模型影响的研究

Towards Understanding the Impact of Data Bugs on Deep Learning Models in Software Engineering

Mehil B Shah, Mohammad Masudur Rahman, Foutse Khomh

AI总结:

本文通过实证调查研究了软件工程中代码、文本和度量数据缺陷对深度学习模型的影响,发现不同数据问题会导致梯度不稳定、过拟合等不同症状,并利用六个新数据集验证了结论,为开发监控系统和数据清理方法提供了依据。

摘要:

深度学习(DL)技术在各种软件工程任务(例如 Copilot 的代码补全)中取得了显著成功。然而,DL 系统容易出现来自许多来源的缺陷,包括训练数据。现有文献表明,训练数据中的缺陷非常普遍,但很少有研究关注理解它们对软件工程任务中使用的模型的影响。在本文中,我们通过一项全面的实证调查来解决这一研究空白,重点关注软件工程任务中普遍存在的三类数据:基于代码的、基于文本的和基于度量的。使用最先进的基线,我们将基于干净数据集训练的模型与基于存在质量问题且未进行适当预处理的数据集训练的模型进行比较。通过分析训练中神经网络的梯度、权重和偏置,我们识别了数据质量和预处理问题的症状。我们的分析表明,代码数据中的质量问题会导致有偏学习和梯度不稳定,而文本数据中的问题会导致模型过拟合和泛化能力差。另一方面,度量数据中的质量问题会导致梯度爆炸和模型过拟合,且不充分的预处理会加剧这三种数据类型的这些影响。最后,我们使用六个新数据集证明了我们研究结果的有效性和普适性。我们的研究提供了对软件工程数据集中数据缺陷影响和症状的更好理解。从业者和研究人员可以利用这些发现开发更好的监控系统和数据清理方法,以帮助检测和解决深度学习系统中的数据缺陷。

英文摘要:

Deep learning (DL) techniques have achieved significant success in various software engineering tasks (e.g., code completion by Copilot). However, DL systems are prone to bugs from many sources, including training data. Existing literature suggests that bugs in training data are highly prevalent, but little research has focused on understanding their impacts on the models used in software engineering tasks. In this paper, we address this research gap through a comprehensive empirical investigation focused on three types of data prevalent in software engineering tasks: code-based, text-based, and metric-based. Using state-of-the-art baselines, we compare the models trained on clean datasets with those trained on datasets with quality issues and without proper preprocessing. By analysing the gradients, weights, and biases from neural networks under training, we identify the symptoms of data quality and preprocessing issues. Our analysis reveals that quality issues in code data cause biased learning and gradient instability, whereas problems in text data lead to overfitting and poor generalisation of models. On the other hand, quality issues in metric data result in exploding gradients and model overfitting, and inadequate preprocessing exacerbates these effects across all three data types. Finally, we demonstrate the validity and generalizability of our findings using six new datasets. Our research provides a better understanding of the impact and symptoms of data bugs in software engineering datasets. Practitioners and researchers can leverage these findings to develop better monitoring systems and data-cleaning methods to help detect and resolve data bugs in deep learning systems.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑