What Do Developers Ask About ML Libraries? A Large-scale Study Using Stack Overflow
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 13 papers in the map (data through 14 Oct 2026). First posted on arXiv 27 Jun 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 3; 2022: 3; 2023: 3; 2024: 2; 2025: 2.
13 papers.
Sort:
- 2021Software Engineering for AI-Based Systems: A Surveycited by 69
- 2021Collaboration Challenges in Building ML-Enabled Systems: Communication, Documentation, Engineering, and Processcited by 56
- 2023What are the Machine Learning best practices reported by practitioners on Stack Exchange?cited by 3
- 2021Machine Learning Application Development: Practitioners' Insightscited by 2
- 2022Bridging the Language Gap: An Empirical Study of Bindings for Open Source Machine Learning Libraries Across Software Package Ecosystemscited by 2
- 2022Challenges in Migrating Imperative Deep Learning Programs to Graph Execution: An Empirical Studycited by 2
- 2024Studying the Impact of TensorFlow and PyTorch Bindings on Machine Learning Software Qualitycited by 1
- 2025An Empirical Study of OpenAI API Discussions on Stack Overflowcited by 1
- 2022Do Not Take It for Granted: Comparing Open-Source Libraries for Software Development Effort Estimationcited by 0
- 2023What Causes Exceptions in Machine Learning Applications? Mining Machine Learning-Related Stack Traces on Stack Overflowcited by 0
- 2023Towards machine learning guided by best practicescited by 0
- 2024Perspective of Software Engineering Researchers on Machine Learning Practices Regarding Research, Review, and Educationcited by 0
- 2025An Empirical Study of OpenAI API Discussions on Stack Overflow7 May 2025
- 2025Speculative Automated Refactoring of Imperative Deep Learning Programs to Graph Execution7 Apr 2025
- 2024Perspective of Software Engineering Researchers on Machine Learning Practices Regarding Research, Review, and Education28 Nov 2024
- 2024Studying the Impact of TensorFlow and PyTorch Bindings on Machine Learning Software Quality7 Jul 2024
- 2023Towards machine learning guided by best practices29 Apr 2023
- 2023What Causes Exceptions in Machine Learning Applications? Mining Machine Learning-Related Stack Traces on Stack Overflow25 Apr 2023
- 2023What are the Machine Learning best practices reported by practitioners on Stack Exchange?25 Jan 2023
- 2022Do Not Take It for Granted: Comparing Open-Source Libraries for Software Development Effort Estimation4 Jul 2022
- 2022Challenges in Migrating Imperative Deep Learning Programs to Graph Execution: An Empirical Study24 Jan 2022
- 2022Bridging the Language Gap: An Empirical Study of Bindings for Open Source Machine Learning Libraries Across Software Package Ecosystems18 Jan 2022
- 2021Machine Learning Application Development: Practitioners' Insights31 Dec 2021
- 2021Collaboration Challenges in Building ML-Enabled Systems: Communication, Documentation, Engineering, and Process19 Oct 2021
1 more
- 2021Software Engineering for AI-Based Systems: A Survey5 May 2021
- 2021Software Engineering for AI-Based Systems: A Surveycited by 69
- 2021Collaboration Challenges in Building ML-Enabled Systems: Communication, Documentation, Engineering, and Processcited by 56
- 2023What are the Machine Learning best practices reported by practitioners on Stack Exchange?cited by 3
- 2021Machine Learning Application Development: Practitioners' Insightscited by 2
- 2022Bridging the Language Gap: An Empirical Study of Bindings for Open Source Machine Learning Libraries Across Software Package Ecosystemscited by 2
- 2022Challenges in Migrating Imperative Deep Learning Programs to Graph Execution: An Empirical Studycited by 2
- 2024Studying the Impact of TensorFlow and PyTorch Bindings on Machine Learning Software Qualitycited by 1
- 2025An Empirical Study of OpenAI API Discussions on Stack Overflowcited by 1
- 2022Do Not Take It for Granted: Comparing Open-Source Libraries for Software Development Effort Estimationcited by 0
- 2023What Causes Exceptions in Machine Learning Applications? Mining Machine Learning-Related Stack Traces on Stack Overflowcited by 0
- 2023Towards machine learning guided by best practicescited by 0
- 2024Perspective of Software Engineering Researchers on Machine Learning Practices Regarding Research, Review, and Educationcited by 0
12 most cited of 13 All 13 (JSON)
- 2025An Empirical Study of OpenAI API Discussions on Stack Overflow7 May 2025
- 2025Speculative Automated Refactoring of Imperative Deep Learning Programs to Graph Execution7 Apr 2025
- 2024Perspective of Software Engineering Researchers on Machine Learning Practices Regarding Research, Review, and Education28 Nov 2024
- 2024Studying the Impact of TensorFlow and PyTorch Bindings on Machine Learning Software Quality7 Jul 2024
- 2023Towards machine learning guided by best practices29 Apr 2023
- 2023What Causes Exceptions in Machine Learning Applications? Mining Machine Learning-Related Stack Traces on Stack Overflow25 Apr 2023
- 2023What are the Machine Learning best practices reported by practitioners on Stack Exchange?25 Jan 2023
- 2022Do Not Take It for Granted: Comparing Open-Source Libraries for Software Development Effort Estimation4 Jul 2022
- 2022Challenges in Migrating Imperative Deep Learning Programs to Graph Execution: An Empirical Study24 Jan 2022
- 2022Bridging the Language Gap: An Empirical Study of Bindings for Open Source Machine Learning Libraries Across Software Package Ecosystems18 Jan 2022
- 2021Machine Learning Application Development: Practitioners' Insights31 Dec 2021
- 2021Collaboration Challenges in Building ML-Enabled Systems: Communication, Documentation, Engineering, and Process19 Oct 2021
12 newest of 13 All 13 (JSON)