MLmisFinder: 机器学习服务误用的规范与检测方法
MLmisFinder: A Specification and Detection Approach of Machine Learning Service Misuses
AI总结:
本文提出MLmisFinder,通过元模型和规则算法自动检测机器学习服务误用,验证其在107个系统中的高精度和召回率,揭示误用在数据漂移监控等领域的广泛存在。
摘要:
机器学习(ML)云服务由亚马逊、谷歌和微软等领先提供商提供,使软件系统能够整合ML组件而无需从头构建模型。然而,ML服务的快速采用与业务需求的复杂性增加,导致广泛误用,影响ML服务系统的质量、可维护性和演变。尽管先前研究分别研究了基于服务和ML的系统模式和反模式,但自动检测ML服务误用仍具挑战性。本文提出MLmisFinder,一种自动检测ML服务误用的自动方法,旨在识别不当使用ML服务的实例,帮助开发者正确整合ML组件。我们提出一个元模型,捕获检测ML服务系统误用所需的数据,并应用一组基于规则的检测算法,用于七种误用类型。我们对107个从开源GitHub仓库收集的软件系统进行了评估,并与最先进的基线进行了比较。我们的结果表明,MLmisFinder有效检测ML服务误用,达到平均精度96.7%和召回率97%,优于最先进的基线。MLmisFinder还高效扩展到检测817个ML服务系统中的误用,并揭示此类误用普遍存在,特别是在数据漂移监控和模式验证等领域。
英文摘要:
Machine Learning (ML) cloud services, offered by leading providers such as Amazon, Google, and Microsoft, enable the integration of ML components into software systems without building models from scratch. However, the rapid adoption of ML services, coupled with the growing complexity of business requirements, has led to widespread misuses, compromising the quality, maintainability, and evolution of ML service-based systems. Though prior research has studied patterns and antipatterns in service-based and ML-based systems separately, automatic detection of ML service misuses remains a challenge. In this paper, we propose MLmisFinder, an automatic approach to detect ML service misuses in software systems, aiming to identify instances of improper use of ML services to help developers properly integrate ML components in ML service-based systems. We propose a metamodel that captures the data needed to detect misuses in ML service-based systems and apply a set of rule-based detection algorithms for seven misuse types. We evaluated MLmisFinder on 107 software systems collected from open-source GitHub repositories and compared it with a state-of-the-art baseline. Our results show that MLmisFinder effectively detects ML service misuses, achieving an average precision of 96.7\% and recall of 97\%, outperforming the state-of-the-art baseline. MLmisFinder also scaled efficiently to detect misuses across 817 ML service-based systems and revealed that such misuses are widespread, especially in areas such as data drift monitoring and schema validation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。