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

基于机器学习的应用中的测井实践研究

Studying Logging Practice in Machine Learning-based Applications

Patrick Loic Foalem, Foutse Khomh, Heng Li

摘要:

日志记录是传统软件开发中的常见做法。已经进行了几项研究工作来调查传统软件系统中日志记录实践的不同特征(例如,Android应用程序、JAVA应用程序、C/C++应用程序)。如今,我们目睹了越来越多的基于机器学习的应用(基于ML的应用)的发展。今天,有许多流行的库可以促进和促进这些应用程序的开发,其中我们可以提到:Pytorch,Tensorflow,Theano,MXNet,Scikit-Learn,Caffe和Keras。尽管ML很流行,但我们对ML应用程序中的日志记录实践并没有清晰的了解。在本文中,我们的目标是填补这一知识空白,并帮助ML从业者了解基于ML的应用程序中日志记录的特征。特别是,我们进行了实证研究110开源ML为基础的应用程序。通过定量分析,我们发现,在基于ML的应用程序中的日志记录的做法是不那么普遍的传统应用程序,包括Android,JAVA和C/C++应用程序。此外,在基于ML的应用程序中,大多数日志记录语句都在info和warn级别,与传统应用程序相比,在C/C++应用程序中,info是日志记录语句的主要部分,而在Android应用程序中,debug、error级别构成了日志记录语句的主要部分。我们还对日志语句的随机样本进行了定量和定性分析,以了解ML开发人员将大多数日志语句放在哪里,并检查他们为什么以及如何使用日志。这些分析导致了以下观察结果:(i)ML开发人员将大部分日志语句放在模型训练和非ML组件中。(ii)数据和模型管理似乎是在基于ML的应用程序中引入日志语句的主要原因。

英文摘要:

Logging is a common practice in traditional software development. Several research works have been done to investigate the different characteristics of logging practices in traditional software systems (e.g., Android applications, JAVA applications, C/C++ applications). Nowadays, we are witnessing more and more development of Machine Learning-based applications (ML-based applications). Today, there are many popular libraries that facilitate and contribute to the development of such applications, among which we can mention: Pytorch, Tensorflow, Theano, MXNet, Scikit-Learn, Caffe, and Keras. Despite the popularity of ML, we don't have a clear understanding of logging practices in ML applications. In this paper, we aim to fill this knowledge gap and help ML practitioners understand the characteristics of logging in ML-based applications. In particular, we conduct an empirical study on 110 open-source ML-based applications. Through a quantitative analysis, we find that logging practice in ML-based applications is less pervasive than in traditional applications including Android, JAVA, and C/C++ applications. Furthermore, the majority of logging statements in ML-based applications are in info and warn levels, compared to traditional applications where info is the majority of logging statement in C/C++ application and debug, error levels constitute the majority of logging statement in Android application. We also perform a quantitative and qualitative analysis of a random sample of logging statements to understand where ML developers put most of logging statements and examine why and how they are using logging. These analyses led to the following observations: (i) ML developers put most of the logging statements in model training, and in non-ML components. (ii) Data and model management appear to be the main reason behind the introduction of logging statements in ML-based applications.

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

↑