arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.12736cs.SE
收藏

通过数据漂移检测缓解持续集成中的 ML 模型衰退:一项实证研究

Mitigating ML Model Decay in Continuous Integration with Data Drift Detection: An Empirical Study

Ali Kazemi Arani, Triet Huynh Minh Le, Mansooreh Zahedi, Muhammad Ali Babar

AI总结:

本文实证研究用 Hellinger 距离检测数据漂移以确定 CI 中 TCP 的 ML 模型重训时点,结果表明可显著降低重训时间与成本并保持准确性。

摘要:

背景:机器学习(ML)方法正越来越多地用于自动化持续集成(CI)中的不同活动,例如测试用例优先级排序(TCP)。然而,由于 CI 环境中的变化(通常称为数据漂移),ML 模型需要频繁重新训练。此外,持续重新训练 ML 模型会消耗大量时间和精力。因此,迫切需要识别并评估合适的方法,以帮助减少 CI 环境中用于 TCP 的 ML 模型的重新训练工作量和时间。目标:本研究旨在调查在无需详细了解软件项目的情况下,使用数据漂移检测技术自动检测 CI 环境中用于 TCP 的 ML 模型重新训练时点的性能。方法:我们采用 Hellinger 距离来识别输入数据在数值和分布两方面的变化,并利用这些变化作为 ML 模型的重新训练时点。我们在多个数据集上评估了该方法的有效性,并在仔细考虑统计方法的情况下,将 APFDc 和 NAPFD 评估指标与定期重新训练的模型进行了比较。结果:我们对基于 Hellinger 距离的方法进行的实验评估证明了其在检测重新训练时点和降低相关成本方面的有效性与效率。然而,该方法的性能可能因数据集而异。结论:我们的研究结果表明,数据漂移检测方法可以帮助识别 CI 环境中 ML 模型的重新训练时点,同时显著减少所需的重新训练时间。这些方法有助于缺乏软件项目专业知识的从业者维持 ML 模型的准确性。

英文摘要:

Background: Machine Learning (ML) methods are being increasingly used for automating different activities, e.g., Test Case Prioritization (TCP), of Continuous Integration (CI). However, ML models need frequent retraining as a result of changes in the CI environment, more commonly known as data drift. Also, continuously retraining ML models consume a lot of time and effort. Hence, there is an urgent need of identifying and evaluating suitable approaches that can help in reducing the retraining efforts and time for ML models used for TCP in CI environments. Aims: This study aims to investigate the performance of using data drift detection techniques for automatically detecting the retraining points for ML models for TCP in CI environments without requiring detailed knowledge of the software projects. Method: We employed the Hellinger distance to identify changes in both the values and distribution of input data and leveraged these changes as retraining points for the ML model. We evaluated the efficacy of this method on multiple datasets and compared the APFDc and NAPFD evaluation metrics against models that were regularly retrained, with careful consideration of the statistical methods. Results: Our experimental evaluation of the Hellinger distance-based method demonstrated its efficacy and efficiency in detecting retraining points and reducing the associated costs. However, the performance of this method may vary depending on the dataset. Conclusions: Our findings suggest that data drift detection methods can assist in identifying retraining points for ML models in CI environments, while significantly reducing the required retraining time. These methods can be helpful for practitioners who lack specialized knowledge of software projects, enabling them to maintain ML model accuracy.

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

↑