Introduction
Deep learning models are often criticized as "black boxes," presenting significant challenges in understanding the rationale behind specific predictions. This transparency gap is particularly acute in multi-label classification tasks, such as identifying multiple LEGO bricks within a single image. This study evaluates two prominent Explainable AI (XAI) techniques—Local Interpretable Model-agnostic Explanations (LIME) and Gradient-weighted Class Activation Mapping (Grad-CAM)—to determine their efficacy in model debugging and establishing user trust.
Methodology
The research team developed a Convolutional Neural Network (CNN) based on the AlexNet architecture. To optimize the network for interpretability and performance, two key technical modifications were implemented:
- Leaky ReLU Activation: Unlike standard ReLU functions, Leaky ReLUs maintain a non-zero gradient for negative inputs, preventing "dead" neurons and facilitating gradient-based explanations like Grad-CAM.
- Weighted Binary Cross-Entropy (W-BCE): To address the class imbalance inherent in multi-label brick detection (where most bricks are absent in any given image), W-BCE was employed to penalize false negatives more severely.
The study compared Grad-CAM, which generates heatmaps based on class-specific gradients, against LIME, which approximates the model locally using perturbed "superpixels."
Data Description
The model was trained on a dataset of 1,636 high-resolution images, each containing between 1 and 10 bricks. The dataset encompassed 85 distinct LEGO brick types under various lighting conditions and background textures. Synthetic data generated via Blender was utilized during the initial architectural exploration phase.
Analysis of XAI Methods
Grad-CAM proved to be a superior debugging tool. Initial model iterations showed high accuracy but were revealed by Grad-CAM to be ignoring the bricks entirely—predicting "absent" for all classes. This insight led to the adoption of the Weighted BCE loss function. Furthermore, Grad-CAM's class-discriminative nature allowed it to pinpoint specific regions for different objects in the same image, a task where LIME's superpixel approach often struggled.
Experimental Results
The refined model achieved a binary accuracy of 84.71% after 40 training epochs. Qualitative evaluations of the explanation methods showed a strong preference for Grad-CAM; in a blind study, 80% of participants found Grad-CAM's heatmaps more trustworthy than LIME's explanations.
Visual analysis of the feature maps confirmed that the network successfully learned to isolate relevant features (the bricks) from irrelevant background noise as the signal progressed through deeper layers.
Conclusion and Future Directions
While Grad-CAM emerged as the more effective tool for this specific multi-label task, the study acknowledges several limitations. The user trust evaluation was based on a small sample size (n=10), and the model's training was limited to 40 epochs. Future research should incorporate a broader range of XAI methods, such as activation maximization, and employ more formal quantitative metrics for evaluating explanation quality.
Summary updated