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

当代码异味遇上机器学习:ML赋能系统中ML特定代码异味的生命周期研究

When Code Smells Meet ML: On the Lifecycle of ML-specific Code Smells in ML-enabled Systems

Gilberto Recupito, Giammaria Giordano, Filomena Ferrucci, Dario Di Nucci, Fabio Palomba

AI总结:

本研究针对ML赋能系统质量保障方法不足的问题,提出研究计划,将通过构建新型检测器CodeSmell,分析337个项目的40余万次提交,探究ML特定代码异味的 prevalence、引入移除机制及存活周期。

摘要:

研究背景:机器学习(ML)赋能系统的应用规模正持续扩大,但目前针对ML场景的质量保障方法仍较为匮乏,这可能是由于学界与业界对ML赋能系统中质量相关问题的产生与演化规律认知有限。研究目标:本研究旨在探究一类特定质量问题——ML特定代码异味的产生与演化过程,这类异味指的是ML流水线中采用的次优实现方案,可能会显著降低ML赋能系统的质量与可维护性。具体而言,我们提出一项研究计划,将通过实证分析从三个维度研究ML特定代码异味:其一,它们在真实ML赋能系统中的普遍程度;其二,它们的引入与移除方式;其三,它们的存活周期。研究方法:我们将开展一项探索性研究,挖掘包含ML赋能系统的大型数据集,分析涉及337个项目的超过40万次提交记录。我们将借助CodeSmell(一款我们将构建的新型ML异味检测器,用于支撑本研究并检测ML特定代码异味)追踪并分析ML异味的引入与演化过程。

英文摘要:

Context. The adoption of Machine Learning (ML)--enabled systems is steadily increasing. Nevertheless, there is a shortage of ML-specific quality assurance approaches, possibly because of the limited knowledge of how quality-related concerns emerge and evolve in ML-enabled systems. Objective. We aim to investigate the emergence and evolution of specific types of quality-related concerns known as ML-specific code smells, i.e., sub-optimal implementation solutions applied on ML pipelines that may significantly decrease both the quality and maintainability of ML-enabled systems. More specifically, we present a plan to study ML-specific code smells by empirically analyzing (i) their prevalence in real ML-enabled systems, (ii) how they are introduced and removed, and (iii) their survivability. Method. We will conduct an exploratory study, mining a large dataset of ML-enabled systems and analyzing over 400k commits about 337 projects. We will track and inspect the introduction and evolution of ML smells through CodeSmile, a novel ML smell detector that we will build to enable our investigation and to detect ML-specific code smells.

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

↑