Abstract
Deep learning models, particularly Convolutional Neural Networks (CNNs), often function as "black boxes," making their internal decision-making processes difficult to interpret. While post-hoc explanation methods like Grad-CAM provide saliency maps to visualize feature importance, these explanations frequently suffer from unfaithfulness—highlighting regions that do not actually drive the model's prediction. We present Explanation-driven Data Augmentation (EDDA), a novel training technique that integrates explanations into the training loop. By generating masked training samples based on model-derived saliency maps, EDDA forces models to align their internal logic with external explanations. Our results on CIFAR-100 and PASCAL VOC 2012 demonstrate that EDDA significantly improves explanation faithfulness with minimal impact on predictive accuracy.
Introduction
The lack of transparency in deep learning models poses a significant barrier to their deployment in high-stakes domains. Post-hoc explanation methods attempt to bridge this gap by generating heatmaps that indicate "important" pixels. However, a model might correctly predict a class based on spurious correlations (e.g., predicting "dog" because of background grass) while the explainer highlights the object itself. This misalignment renders explanations untrustworthy for debugging or safety audits. EDDA addresses this by treating explanation faithfulness as a property to be optimized during training rather than a metric measured only after the fact.
The EDDA Methodology
EDDA creates a feedback loop between the model and the explainer during training. For each correctly classified image, the framework generates a saliency map and derives two distinct masks:
- Unimportant-mask (umask): Retains only the pixels identified as important, occluding the rest.
- Important-mask (imask): Occludes the pixels identified as important, retaining the background or context.
These masks serve as a "Faithfulness Test." If the model maintains its prediction on the umask image, the explanation is deemed faithful, and the sample is used to reinforce this behavior. Conversely, if the model maintains its prediction on the imask image (where the primary object is hidden), the explanation is unfaithful. In this case, the imask sample is added to the training set to force the model to move away from spurious contextual cues and identify more discriminative features. This approach differs from standard augmentations like Cutout because the occlusions are strategically chosen based on the model's current logic.
Experimental Results
We evaluated EDDA using VGG-16 and ResNet-50 architectures on the CIFAR-100 and PASCAL VOC 2012 datasets. Faithfulness was quantified using two primary metrics: Drop% (how much confidence drops when unimportant regions are removed—lower is better) and Increase% (how often confidence increases when unimportant regions are removed—higher is better).
On the PASCAL VOC dataset, EDDA-trained VGG-16 models achieved a Drop% of 9.01%, a dramatic improvement over the 40.71% observed in baseline models. Qualitatively, saliency maps from EDDA-trained models are more localized and human-interpretable, focusing strictly on target objects rather than background noise. For example, in the "Person" category, baselines often highlighted background objects like bicycles, whereas EDDA-trained models focused strictly on the person.
Discussion and Limitations
While EDDA significantly enhances faithfulness and outperforms standard augmentations like CutMix and MixUp, it introduces a slight trade-off in raw test accuracy. For instance, ResNet-50 accuracy on CIFAR-100 decreased from ~63% to ~61%. Additionally, the requirement for per-epoch explanation generation increases computational overhead. Despite these challenges, EDDA represents a vital step toward developing models that are "right for the right reasons."
Conclusion
EDDA provides a robust framework for aligning model predictions with their explanations. By leveraging the model's own logic to generate strategic data augmentations, we can produce AI systems that are not only accurate but also inherently more interpretable and trustworthy. Future work may involve extending this explanation-driven logic to non-vision tasks, such as Natural Language Processing.
Summary updated