Introduction
Deep learning (DL) model development is often characterized by its opacity. While developers rely on high-level metrics such as loss and accuracy, these "black-box" indicators frequently fail to explain why a model underperforms. Traditional debugging involves disjointed manual experiments—tweaking hyperparameters or swapping layers—without a clear line of sight into internal model dynamics. iNNspector addresses this gap by providing a holistic, general-purpose debugging framework that connects performance metrics directly to individual neuron activations and model architectures.
Methodology and System Design
The researchers established a formal framework to categorize the DL "data space" into four distinct types: structural (the computational graph), scalar (metrics and hyperparameters), n-dimensional (weights and activations), and functions (mathematical operations).
The system's "Structural Backbone" uses the model's own architecture as a navigation map, allowing users to traverse three levels of abstraction:
- L3 (Multi-model): Comparative analysis across different model versions or generations.
- L2 (Single-model): Inspection of data flow between specific layers.
- L1 (Neuron-weight): Granular examination of individual connections and activations.
To assist in identifying anomalies, iNNspector incorporates "Interestingness Measures" that highlight significant deviations in data distributions, such as "dead" neurons or exploding gradients. The interface is modular, offering a palette of drag-and-drop tools—including histograms, saliency maps, and line charts—to create custom debugging widgets tailored to specific units of analysis.
Evaluation and Results
The system was evaluated using the MNIST dataset to simulate complex scenarios, including training Variational Auto-encoders (VAEs) and multi-generational CNN refinement.
Key Findings
- Efficiency and Discovery: In a study with four experts, participants resolved complex debugging tasks significantly faster than with traditional workflows. The system successfully pinpointed "careless mistakes," such as incorrect activation functions (e.g., a ReLU clipping necessary negative values), which were invisible in aggregate metrics.
- Usability: Experts found the spatial anchoring of data to the computational graph highly intuitive. One participant noted that iNNspector made it significantly easier to compare different architectures compared to navigating separate logging tabs.
Limitations and Future Directions
While effective, iNNspector faces scalability challenges with massive models, such as modern Transformers, where graph views can become cluttered. Future work includes "semantic block detection" to automatically group repeated structures (like ResNet blocks) and a plugin system using Vega-Lite to allow researchers to define custom visualization tools. Additionally, the authors plan to extend the framework beyond computer vision to Reinforcement Learning and Large Language Models (LLMs).
Summary updated