Introduction: The Debugging Crisis in ML
While traditional software debugging is a well-understood discipline, debugging machine learning (ML) systems remains a significant challenge. ML systems are inherently probabilistic and heterogeneous, blending code, data, and complex mathematical models into "black boxes." When a model fails, identifying whether the root cause lies in the training logic, dataset bias, hyperparameter settings, or the underlying framework (like PyTorch or TensorFlow) is notoriously difficult.
This systematic survey addresses a critical "reality gap": while academic research into ML testing (detecting errors) is abundant, research into debugging—the act of locating and fixing root causes—is lagging. The authors investigate which ML faults are currently targeted by research, how they are addressed, and which real-world problems remain "unsolved mysteries" for practitioners.
Methodology
The researchers conducted a Systematic Literature Review (SLR) of 96 core papers published between 2010 and 2024, selected from top-tier software engineering and AI venues. The process involved:
- Taxonomy Construction: Building a novel taxonomy of debugging techniques and aligning it with an existing taxonomy of ML faults.
- Data Extraction: Manually coding papers to map research efforts to specific fault categories.
- Gap Analysis: Comparing academic trends against real-world data from GitHub issues and practitioner interviews to quantify the disconnect between research and industry needs.
Key Insights: The 48% Coverage Gap
The study's most striking finding is that only 48% of debugging challenges identified by practitioners have been explicitly addressed by academic research. This means a developer facing a complex ML bug has a roughly 50/50 chance of finding no relevant research to guide them.
Structural vs. Data Divide
Researchers have historically over-indexed on "Structural" bugs, such as incorrect tensor shapes or missing layers. In contrast, practitioners are frequently overwhelmed by "Data Processing" and "Data Construction" issues, which receive significantly less academic attention.
The Taxonomy of Alignment
The authors developed a comprehensive map aligning specific faults with debugging techniques. This visualization highlights where research is concentrated (e.g., API Fuzzing and Fault Localization) and where it is sparse, particularly in areas like data quality and framework usability.
Framework Usability and "Trained Model Fixes"
A major pain point for developers is the cryptic nature of deep learning frameworks. Despite frequent complaints about "hard-to-use frameworks," there is almost no research focused on improving their debugging usability. Furthermore, the paper identifies a shift toward "Trained Model Fixes," where the solution isn't changing code but rather using automated techniques to identify problematic data samples and performing targeted re-training.
Key Results and Future Directions
The survey reveals that 52.6% of GitHub issues and 70.3% of interview-reported problems are currently ignored by the research community. While techniques like API Fuzzing (often using LLMs) and Fault Localization are dominant, they do not cover the full spectrum of practitioner needs.
Future Research Priorities: * Domain-Specific Debugging: Tools must move beyond generic tensors to understand the context of data (e.g., medical vs. financial). * XAI for Debugging: Bridging the gap between Explainable AI and debugging to help developers "fix" model logic. * Framework Design: Moving toward frameworks that are inherently easier to debug, with better error provenance and visualization.
As Large Language Models (LLMs) continue to evolve, they offer new opportunities for automated debugging, but the fundamental need to bridge the gap between academic tools and messy, real-world data remains the primary challenge for the field.
Summary updated