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

在软件分析中采用终身学习的成本与收益——基于Brown构建与风险预测的实证研究

On the Costs and Benefits of Adopting Lifelong Learning for Software Analytics -- Empirical Study on Brown Build and Risk Prediction

Doriane Olewicki, Sarra Habchi, Mathieu Nayrolles, Mojtaba Faramarzi, Sarath Chandar, Bram Adams

AI总结:

本文实证评估了在育碧工业场景中采用终身学习持续更新软件分析模型的效果,证明其相比从头再训练可在保持性能的同时大幅降低计算成本。

摘要:

如今,使用机器学习(ML)模型来(例如)预测代码变更风险的软件分析工具已经相当成熟。然而,随着项目目标随时间推移而变化,以及开发者及其习惯的改变,这些模型的性能往往会随时间退化(漂移)。当前的再训练实践通常要求在观察到性能衰减时,在一个大型更新数据集上从头重新训练一个新模型,从而产生计算成本;同时,由于旧模型在新模型训练过程中被丢弃和忽略,模型之间也缺乏连续性。尽管文献中已对在线学习方法产生兴趣,但这些方法很少在工业环境中被集成和评估。本文评估了终身学习(LL)在育碧(Ubisoft)工业用例中的使用情况,同时评估其性能以及所需的计算工作量,并与业界常用的从头再训练方法进行比较。LL被用于持续构建和维护基于ML的软件分析工具,其使用一个增量学习器,利用新数据逐步更新旧模型。为了避免对重要旧数据点产生所谓的“灾难性遗忘”,我们采用了一个旧数据回放缓冲区,这仍然使我们能够大幅减少整体训练数据集的规模,从而缩短模型训练时间。

英文摘要:

Nowadays, software analytics tools using machine learning (ML) models to, for example, predict the risk of a code change are well established. However, as the goals of a project shift over time, and developers and their habits change, the performance of said models tends to degrade (drift) over time. Current retraining practices typically require retraining a new model from scratch on a large updated dataset when performance decay is observed, thus incurring a computational cost; also there is no continuity between the models as the past model is discarded and ignored during the new model training. Even though the literature has taken interest in online learning approaches, those have rarely been integrated and evaluated in industrial environments. This paper evaluates the use of lifelong learning (LL) for industrial use cases at Ubisoft, evaluating both the performance and the required computational effort in comparison to the retraining-from-scratch approaches commonly used by the industry. LL is used to continuously build and maintain ML-based software analytics tools using an incremental learner that progressively updates the old model using new data. To avoid so-called "catastrophic forgetting" of important older data points, we adopt a replay buffer of older data, which still allows us to drastically reduce the size of the overall training dataset, and hence model training time.

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

↑