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

关于ML库,开发人员会问些什么?使用堆栈溢出的大规模研究

What Do Developers Ask About ML Libraries? A Large-scale Study Using Stack Overflow

Md Johirul Islam, Hoan Anh Nguyen, Rangeet Pan, Hridesh Rajan

摘要:

现代软件系统越来越多地将机器学习(ML)作为一个不可分割的组成部分。然而,我们还不了解软件开发人员在学习ML库并在其系统中使用它们时所面临的困难。为此,本文报告了对3,243篇与十个ML库(即Tensorflow、Keras、scikit-learn、Weka、Caffe、Theano、MLlib、Torch、Mahout和H2O)相关的高评价问答帖子的详细(手动)检查,这些帖子位于Stack Overflow(一个流行的在线技术问答论坛)上。我们将这些问题分为ML管道的七个典型阶段,以了解库和阶段之间的相关性。然后,我们研究的问题,并进行统计分析,以探索四个研究目标的答案(找到最困难的阶段,了解问题的性质,图书馆的性质和研究是否随着时间的推移保持一致的困难)。我们的研究结果表明,迫切需要在这一领域的软件工程(SE)的研究。静态分析和动态分析基本上都不存在,并且迫切需要帮助开发人员更早地发现错误。虽然已经有一些关于调试的早期研究,但还需要做更多的工作。API误用很普遍,迫切需要改进API设计。最后,有点令人惊讶的是,在提供更高级别的抽象和需要理解训练模型的行为之间的拔河是普遍的。

英文摘要:

Modern software systems are increasingly including machine learning (ML) as an integral component. However, we do not yet understand the difficulties faced by software developers when learning about ML libraries and using them within their systems. To that end, this work reports on a detailed (manual) examination of 3,243 highly-rated Q&A posts related to ten ML libraries, namely Tensorflow, Keras, scikit-learn, Weka, Caffe, Theano, MLlib, Torch, Mahout, and H2O, on Stack Overflow, a popular online technical Q&A forum. We classify these questions into seven typical stages of an ML pipeline to understand the correlation between the library and the stage. Then we study the questions and perform statistical analysis to explore the answer to four research objectives (finding the most difficult stage, understanding the nature of problems, nature of libraries and studying whether the difficulties stayed consistent over time). Our findings reveal the urgent need for software engineering (SE) research in this area. Both static and dynamic analyses are mostly absent and badly needed to help developers find errors earlier. While there has been some early research on debugging, much more work is needed. API misuses are prevalent and API design improvements are sorely needed. Last and somewhat surprisingly, a tug of war between providing higher levels of abstractions and the need to understand the behavior of the trained model is prevalent.

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

↑