Abstract
Neural networks have shown remarkable performance in computer vision, but their deployment in numerous scientific and technical fields is challenging due to their black-box nature. Scientists and practitioners need to evaluate the reliability of a decision, i.e., to know simultaneously if a model relies on the relevant features and whether these features are robust to image corruptions. Existing attribution methods aim to provide human-understandable explanations by highlighting important regions in the image domain, but fail to fully characterize a decision process's reliability. To bridge this gap, we introduce the Wavelet sCale Attribution Method (WCAM), a generalization of attribution from the pixel domain to the space-scale domain using wavelet transforms. Attribution in the wavelet domain reveals where and on what scales the model focuses, thus enabling us to assess whether a decision is reliable.
Introduction
Deep neural networks are notoriously "black boxes." While Explainable AI (XAI) has provided attribution methods like Grad-CAM or Saliency maps to show where in an image a model is looking, these methods are typically confined to the pixel domain. They cannot distinguish whether a model is focusing on fine-grained textures (high frequency) or overall structural silhouettes (low frequency). This limitation is a significant hurdle for reliability; a model might achieve high accuracy by over-relying on high-frequency noise that vanishes under slight image corruption. To ensure trust in high-stakes fields like medical imaging or remote sensing, we must understand if a model prioritizes the correct scales.
Methodology: The Wavelet sCale Attribution Method (WCAM)
The authors introduce WCAM, which generalizes attribution from pixels to the space-scale (wavelet) domain. The method follows a structured workflow to quantify feature importance across different resolutions.
1. Wavelet Transform
Unlike Fourier transforms, which lose spatial information, the Discrete Wavelet Transform (DWT) decomposes an image into different scales (resolutions) while maintaining spatial localization. This allows the method to track both "where" and "at what scale" features exist.
2. Sobol Sensitivity Analysis
WCAM employs a "black-box" approach using Sobol sensitivity analysis, which does not require access to the model's internal gradients. It works by perturbing parts of the input and measuring the resulting variance in the model's output.
3. The WCAM Workflow
The process begins by converting the input image into the wavelet domain. Quasi-Monte Carlo (QMC) sequences generate masks that perturb specific wavelet coefficients. These perturbed coefficients are then inverted back to the pixel space via an inverse DWT (iDWT) and fed into the model. By analyzing the model's responses across thousands of these perturbations, the method calculates Total Sobol Indices (TSIs), quantifying the importance of specific scales and locations.
Experimental Setup
The researchers evaluated WCAM using 100 images from the ImageNet validation set across several popular architectures, including VGG16, ResNet50, MobileNet, and EfficientNet. They also tested models specifically trained for robustness, such as those utilizing Adversarial Training (AT) and Robust Training (RT) protocols.
Key Insights
- "Where" vs. "What": WCAM reveals that two models might look at the same spatial region but rely on different features. For instance, one might use sharp edges (high frequency), while a robust model relies on general shape (low frequency).
- Robustness is Coarse: The study confirms that robust models are biased toward low frequencies. WCAM quantifies this, showing that adversarially trained models have significantly higher attribution scores for coarse scales compared to standard models.
- Scale Inconsistency: Models often show inconsistency in the scales they use, even for images within the same class, suggesting that "shortcut learning" is highly context-dependent.
- Minimal Sufficient Images: By ranking wavelet coefficients, the authors reconstructed "minimal images" containing only the information necessary for a correct prediction.
Results
WCAM outperformed existing black-box methods like RISE and Sobol on the μ-Fidelity metric, which measures the correlation between feature importance and drops in prediction probability. Despite being a black-box method, its results were competitive with popular gradient-based "white-box" methods like Integrated Gradients. Furthermore, the authors demonstrated that WCAM can effectively rank models by their robustness based on the concentration of cumulative frequency curves in the wavelet domain.
Conclusion and Future Work
The primary limitation of WCAM is its computational cost, as Sobol sensitivity analysis requires a large number of model inferences. Future work aims to apply WCAM to expert domains like remote sensing, where distinguishing between texture and geometry is critical for safety and deployment.
Summary updated