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

机器学习代码中日志恶臭的实证分析

Empirical Characterization of Logging Smells in Machine Learning Code

Polytechnique Montréal(蒙特利尔理工学院)

Patrick Loic Foalem, Leuson Da Silva, Foutse Khomh, Ettore Merlo, Heng Li

AI总结:

本研究通过实证分析识别并描述机器学习系统中日志恶臭,旨在提供基于证据的理解,以改进日志记录实践。

摘要:

背景:日志是软件工程中基础且复杂的实践,对于监控、调试和审计软件系统至关重要。随着机器学习(ML)组件越来越多地集成到软件系统中,有效的日志记录变得至关重要,以确保模型训练和部署过程中可重复性、可追溯性和可观测性。尽管存在各种通用和ML特定的日志记录框架,但很少有人了解这些工具在实践中是如何被使用的,或者ML从业者是否采用一致且有效的日志记录策略。迄今为止,还没有系统性研究能够描述ML系统中反复出现的不良日志记录实践——即日志恶臭。目标:本研究旨在实证地识别和描述ML系统中的日志恶臭,提供基于证据的理解,说明日志在实践中是如何被实施和面临的挑战。方法:我们提出对托管在GitHub上的开源ML仓库进行大规模挖掘,以记录反复出现的日志恶臭。随后,将进行一项涉及ML工程师的从业者调查,以评估所识别恶臭的感知相关性、严重性和频率。局限性:本研究的局限性包括我们的发现可能无法推广到闭源工业项目,但我们相信本研究为理解并改进ML开发中的日志记录实践提供了一步关键进展。

英文摘要:

\underline{Context:} Logging is a fundamental yet complex practice in software engineering, essential for monitoring, debugging, and auditing software systems. With the increasing integration of machine learning (ML) components into software systems, effective logging has become critical to ensure reproducibility, traceability, and observability throughout model training and deployment. Although various general-purpose and ML-specific logging frameworks exist, little is known about how these tools are actually used in practice or whether ML practitioners adopt consistent and effective logging strategies. To date, no empirical study has systematically characterized recurring bad logging practices--or logging smells--in ML System. \underline{Goal:} This study aims to empirically identify and characterize logging smells in ML systems, providing an evidence-based understanding of how logging is implemented and challenged in practice. \underline{Method:} We propose to conduct a large-scale mining of open-source ML repositories hosted on GitHub to catalogue recurring logging smells. Subsequently, a practitioner survey involving ML engineers will be conducted to assess the perceived relevance, severity, and frequency of the identified smells. \underline{Limitations:} % While The study's limitations include that While our findings may not be generalizable to closed-source industrial projects, we believe our study provides an essential step toward understanding and improving logging practices in ML development.

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

↑