Abstract
Deep learning models often act as "Clever Hans" predictors, achieving high accuracy by exploiting spurious correlations in the background rather than learning the actual object of interest. We introduce AIM (Amending Inherent Interpretability via Self-Supervised Masking), a novel framework designed to enforce focus on discriminative object features. By integrating a top-down masking pathway into standard architectures, AIM provides "what you see is what you get" interpretability and significantly improves robustness to out-of-distribution data without requiring additional human annotations.
Introduction: The "Clever Hans" Problem
A significant challenge in computer vision is the reliance of models on background cues. For instance, a model trained to identify waterbirds may learn to recognize "water" rather than the bird itself. While providing segmentation masks during training can mitigate this, such labels are expensive and often unavailable. AIM addresses this by asking: Can we force a model to ignore the background and focus on the object using only standard image labels?
Methodology
The AIM architecture augments a standard "bottom-up" backbone (e.g., ResNet or ConvNeXt) with a specialized top-down pathway.
Core Components:
- Top-Down Masking: Unlike post-hoc explanation methods, AIM incorporates a "Mask Estimator" at multiple stages of a top-down pathway, similar to a Feature Pyramid Network. This allows high-level semantic information to guide low-level pixel selection.
- Self-Supervised Sparsity: Estimators produce binary masks using the Gumbel-Softmax trick, making the selection process differentiable. This allows the model to "choose" which pixels are reliable for classification.
- Mask Annealing: During training, the model is gradually restricted to a smaller "budget" of pixels (e.g., 25-35% of the feature map). This forces the network to discard noisy background features in favor of consistent, discriminative object features.
- Inherent Interpretability: Because the mask is applied during the forward pass, the resulting visualization is a literal map of the data the model used for its decision, ensuring a causal link between the visual attribution and the prediction.
Experimental Results
AIM was evaluated on benchmarks specifically designed to test spurious correlations, including Waterbirds, TravelingBirds, and HardImageNet.
Key Findings:
- Accuracy Gains: On the Waterbirds-100% dataset, AIM improved "worst-group accuracy" (performance on the rarest bird/background combinations) from a baseline of 39.6% to 78.1%.
- Superior Localization: Using the Energy Pointing Game (EPG) metric, AIM outperformed standard baselines by up to 30% on biased datasets, demonstrating a significant reduction in background reliance.
- Human Alignment: A user study revealed that human participants preferred AIM’s attribution maps over standard Grad-CAM in 70.7% of cases, citing better accuracy and less distraction from irrelevant image regions.
- Robustness to Shift: The model does not simply learn a center bias; tests on shifted images showed that the masks successfully "follow" the objects to the frame edges.
Discussion and Future Work
AIM demonstrates that sparsity can act as a powerful regularizer for interpretability. By forcing a model to work with a limited pixel budget, it naturally gravitates toward robust semantic features.
While currently optimized for CNNs, future work involves extending AIM to Vision Transformers (ViTs). Additionally, while the top-down pathway adds a marginal computational overhead (10-20% GFLOPs), the gains in reliability and inherent interpretability make it a compelling choice for safety-critical applications where understanding the "why" behind a prediction is as important as the prediction itself.
Summary updated