arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.06226cs.SEcs.AIcs.LG
收藏

机器学习赋能软件系统中模型集成的大规模研究

A Large-Scale Study of Model Integration in ML-Enabled Software Systems

Ruhr University Bochum(波鸿鲁尔大学)

Yorick Sens, Henriette Knopp, Sven Peldszus, Thorsten Berger

AI总结:

本研究对2,928个开源机器学习赋能系统进行大规模实证分析,揭示其仍以传统代码为主、模型复用普遍,并识别出多种模型集成模式,以促进数据科学与软件工程实践的融合。

摘要:

机器学习的兴起及其在软件系统中的集成已极大地改变了开发实践。传统软件工程侧重于通过专门的流程和架构手工创建代码制品,而机器学习赋能系统需要额外的数据科学方法和工具来创建机器学习制品,尤其是机器学习模型和训练数据。然而,将模型集成到系统中,并管理涉及的众多不同制品,远非易事。机器学习赋能系统可能轻易拥有多个机器学习模型,它们之间以及与传统代码之间以复杂的方式交互。遗憾的是,尽管构建机器学习赋能系统的挑战和实践已被研究,但除孤立示例外,对真实世界机器学习赋能系统特征的了解甚少。改进机器学习赋能系统的工程流程和架构需要提升对这些系统的实证理解。我们开展了一项涵盖2,928个开源机器学习赋能软件系统的大规模研究。我们对它们进行分类和分析,以确定系统特征、模型和代码复用实践以及集成机器学习模型的架构方面。我们的研究结果显示,这些系统仍主要由传统源代码构成,且通过代码复制或预训练模型进行机器学习模型复用是常见做法。我们还识别了不同的机器学习集成模式及相关实现实践。我们希望我们的结果有助于改进集成机器学习模型的实践,使数据科学与软件工程更加紧密地结合。

英文摘要:

The rise of machine learning (ML) and its integration into software systems has drastically changed development practices. While software engineering traditionally focused on manually created code artifacts with dedicated processes and architectures, ML-enabled systems require additional data-science methods and tools to create ML artifacts -- especially ML models and training data. However, integrating models into systems, and managing the many different artifacts involved, is far from trivial. ML-enabled systems can easily have multiple ML models that interact with each other and with traditional code in intricate ways. Unfortunately, while challenges and practices of building ML-enabled systems have been studied, little is known about the characteristics of real-world ML-enabled systems beyond isolated examples. Improving engineering processes and architectures for ML-enabled systems requires improving the empirical understanding of these systems. We present a large-scale study of 2,928 open-source ML-enabled software systems. We classified and analyzed them to determine system characteristics, model and code reuse practices, and architectural aspects of integrating ML models. Our findings show that these systems still mainly consist of traditional source code, and that ML model reuse through code duplication or pre-trained models is common. We also identified different ML integration patterns and related implementation practices. We hope that our results help improve practices for integrating ML models, bringing data science and software engineering closer together.

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

↑