TL;DR
This paper outlines a proposed empirical study to identify and catalog "logging smells"—recurring bad logging practices—in machine learning (ML) codebases. By combining large-scale mining of open-source GitHub repositories with a practitioner survey, the authors aim to create the first systematic taxonomy of ML-specific logging flaws and understand their impact on system observability and reproducibility.
What Problem Does This Paper Address?
Logging is crucial for monitoring and debugging software, but machine learning introduces unique complexities. Unlike traditional software, ML workflows involve stochastic (probabilistic) training behaviors, complex data pipelines, and evolving model artifacts.
To manage this, ML developers typically juggle two different types of logging: general-purpose libraries (like Python’s standard logging module) to track system states, and ML-specific frameworks (like MLflow or Weights & Biases) to track experiments, hyperparameters, and metrics. This dual-framework ecosystem often leads to fragmented, redundant, or inconsistent logs. While bad logging practices ("logging smells") have been studied in traditional software, no systematic research has yet characterized the unique logging flaws that emerge in ML systems.
Methods
The authors propose a two-phase, hybrid research protocol:
- Empirical Mining & LLM-Assisted Taxonomy Construction: The authors will extract Python functions containing logging statements from open-source repositories. They will select a statistically representative sample of files and use an LLM (GPT-4o-mini) to perform an initial classification of potential logging smells. To ensure accuracy, researchers will conduct an iterative human-validation process in cycles of 100 files, using open coding and inter-rater reliability checks (Cohen’s $\kappa$) until no new smells are discovered (theoretical saturation).
- Practitioner Survey: Once the taxonomy is built, the authors will survey ML/MLOps engineers and data scientists. Participants will evaluate the identified smells based on three 5-point Likert scales: frequency (how often they see it), relevance (how important it is to fix), and severity (how detrimental it is to maintainability or reproducibility).
Datasets
The study will reuse and revalidate a dataset from the authors' prior work, consisting of open-source, Python-based ML projects mined from GitHub.
- Initial Dataset: 502 repositories.
- Final Filtered Dataset: 444 actively maintained repositories (excluding archived or inactive projects).
- Criteria: Repositories must have at least 100 commits, two contributors, two stars, and verifiable ML components (e.g., dependencies on TensorFlow, PyTorch, or scikit-learn).
- Scope: The dataset spans multiple domains (computer vision, NLP, reinforcement learning) and contains 86,143 extracted logging statements utilizing 12 distinct logging libraries.
Key Insights and Ideas
- The Heterogeneity Hypothesis: The core premise is that mixing general-purpose logging with ML-specific experiment tracking creates unique friction points, leading to novel, ML-specific anti-patterns not seen in traditional software engineering.
- Multi-Layered Observability: Because ML data flows across multiple abstraction layers (hardware, data pipelines, model architecture, and training loops), logging omissions or redundancies manifest differently than in standard applications.
- Hybrid Human-AI Pipeline: The methodology highlights a modern trend in software engineering research: leveraging LLMs to scale up the initial qualitative analysis of massive codebases, while maintaining strict human-in-the-loop verification to mitigate AI hallucinations.
Key Results
Not discussed in the paper (Study Proposal).
Because this document outlines a proposed research protocol (similar to a registered report), quantitative and qualitative findings regarding specific logging smells have not yet been generated. The ultimate goal of the completed study will be to deliver an empirically grounded catalog of ML logging smells and a statistical breakdown of how practitioners prioritize them.
Limitations and Future Work
- Open-Source Bias: The dataset is restricted to open-source GitHub repositories, meaning the findings may not fully generalize to proprietary, closed-source industrial ML systems.
- Ecosystem Recency: The study relies on a predefined set of 12 logging libraries identified in recent years, which might overlook newly emerging or highly niche domain-specific frameworks.
- Future Directions: The authors suggest expanding future iterations of this work to include other programming languages (such as Java, C++, and R) and newer logging libraries to evaluate whether the identified smells persist across different technological ecosystems.
Summary updated