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

大语言模型软件中的自我承认技术债:与机器学习和非机器学习软件的实证比较

Self-Admitted Technical Debt in LLM Software: An Empirical Comparison with ML and Non-ML Software

École de Technologie Supérieure - ÉTS Montreal(蒙特利尔高等工程技术学院);Trent University(特伦特大学)

Niruthiha Selvanayagam, Taher A. Ghaleb, Manel Abdellatif

AI总结:

本文通过实证研究比较了大语言模型、机器学习和非机器学习软件中的技术债情况,发现LLM系统积累技术债的速度与ML系统相似,但保持无债时间更长,并发现了三种新的技术债类型。

摘要:

自我承认技术债(SATD)指的是开发人员标记的评论中明确承认次优代码或不完整功能的注释,已在机器学习(ML)和传统(非ML)软件中受到广泛关注。然而,关于SATD在当代大语言模型(LLM)系统中的表现和演变知之甚少,这些系统的架构、工作流程和依赖关系与传统和预LLM ML软件有根本性的差异。在本文中,我们进行了首次关于LLM时代的SATD实证研究,复制并扩展了先前关于ML技术债的研究,应用于现代LLM系统。我们比较了LLM、ML和非ML仓库中SATD的普遍性,总计477个仓库(每类159个)。我们对SATD的引入和移除进行了生存分析,以了解不同开发范式中的技术债动态。令人惊讶的是,尽管其架构复杂性,我们的结果表明,LLM仓库积累SATD的速度与ML系统相似(3.95% vs. 4.10%)。然而,我们观察到LLM仓库保持无债的时间是ML仓库的2.4倍(中位数492天 vs. 204天),然后开始快速积累技术债。此外,我们对377个SATD实例的定性分析揭示了三种新的技术债形式,这些形式在以往研究中未被报告:模型堆栈补救债务、模型依赖债务和性能优化债务。最后,通过将SATD映射到LLM开发流水线的阶段,我们发现债务集中在某些阶段。

英文摘要:

Self-admitted technical debt (SATD), referring to comments flagged by developers that explicitly acknowledge suboptimal code or incomplete functionality, has received extensive attention in machine learning (ML) and traditional (Non-ML) software. However, little is known about how SATD manifests and evolves in contemporary Large Language Model (LLM)-based systems, whose architectures, workflows, and dependencies differ fundamentally from both traditional and pre-LLM ML software. In this paper, we conduct the first empirical study of SATD in the LLM era, replicating and extending prior work on ML technical debt to modern LLM-based systems. We compare SATD prevalence across LLM, ML, and non-ML repositories across a total of 477 repositories (159 per category). We perform survival analysis of SATD introduction and removal to understand the dynamics of technical debt across different development paradigms. Surprisingly, despite their architectural complexity, our results reveal that LLM repositories accumulate SATD at similar rates to ML systems (3.95% vs. 4.10%). However, we observe that LLM repositories remain debt-free 2.4x longer than ML repositories (a median of 492 days vs. 204 days), and then start to accumulate technical debt rapidly. Moreover, our qualitative analysis of 377 SATD instances reveals three new forms of technical debt unique to LLM-based development that have not been reported in prior research: Model-Stack Workaround Debt, Model Dependency Debt, and Performance Optimization Debt. Finally, by mapping SATD to stages of the LLM development pipeline, we observe that debt concentrates

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

↑