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

机器学习软件中自我承认的技术债务经验研究

An Empirical Study of Self-Admitted Technical Debt in Machine Learning Software

Queen's University(女王大学)

Aaditya Bhatia, Foutse Khomh, Bram Adams, Ahmed E Hassan

AI总结:

本文研究了机器学习软件中自我承认的技术债务,发现其比例高于非机器学习项目,且在开发早期出现,长期债务多由复杂代码更改引入。

摘要:

开源机器学习库(如TensorFlow和Google Auto ML)的出现使开发人员能够以最小的开销使用最先进的机器学习算法。然而,在这个加速的机器学习开发过程中,开发人员可能会做出次优的设计和实现决策,导致引入技术债务,如果不及时解决,会对基于机器学习的软件质量产生重大影响。开发人员经常通过代码注释来承认这些次优的设计和开发选择。这些注释通常指出未来需要额外工作或改进的区域,被称为自我承认的技术债务(SATD)。本文旨在通过分析五个领域的318个开源机器学习项目以及318个非机器学习项目,研究机器学习代码中的SATD。我们检测了不同项目快照中的源代码注释中的SATD,对识别出的SATD样本进行了手动分析,以理解机器学习代码中的技术债务性质,并对SATD进行了生存分析,以了解此类债务的演变。我们观察到:i)机器学习项目中SATD的中位数百分比是非机器学习项目的两倍。ii)数据预处理和模型生成逻辑的ML流水线组件比模型验证和部署组件更容易产生债务。iii)SATD出现在机器学习项目开发过程的早期阶段,比非机器学习项目更早出现。iv)长期存在的SATD通常是在多个文件中进行的广泛代码更改期间引入的,这些文件表现出较低的复杂度。

英文摘要:

The emergence of open-source ML libraries such as TensorFlow and Google Auto ML has enabled developers to harness state-of-the-art ML algorithms with minimal overhead. However, during this accelerated ML development process, said developers may often make sub-optimal design and implementation decisions, leading to the introduction of technical debt that, if not addressed promptly, can have a significant impact on the quality of the ML-based software. Developers frequently acknowledge these sub-optimal design and development choices through code comments during software development. These comments, which often highlight areas requiring additional work or refinement in the future, are known as self-admitted technical debt (SATD). This paper aims to investigate SATD in ML code by analyzing 318 open-source ML projects across five domains, along with 318 non-ML projects. We detected SATD in source code comments throughout the different project snapshots, conducted a manual analysis of the identified SATD sample to comprehend the nature of technical debt in the ML code, and performed a survival analysis of the SATD to understand the evolution of such debts. We observed: i) Machine learning projects have a median percentage of SATD that is twice the median percentage of SATD in non-machine learning projects. ii) ML pipeline components for data preprocessing and model generation logic are more susceptible to debt than model validation and deployment components. iii) SATDs appear in ML projects earlier in the development process compared to non-ML projects. iv) Long-lasting SATDs are typically introduced during extensive code changes that span multiple files exhibiting low complexity.

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

↑