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 learning models are notoriously "black boxes." To trust them in high-stakes fields like medicine or remote sensing, we need to know if their decisions are based on the right features. Current attribution methods, such as Saliency maps or Grad-CAM, highlight important pixels in the image domain—telling us where the model is looking.
However, "where" is often insufficient for a full reliability audit. A model might look at a bird's wing but only care about the high-frequency "noise" of the feather texture rather than the actual shape of the wing. If that texture is corrupted by image noise, the model fails. While Fourier analysis can tell us about a model's frequency bias globally, it loses spatial information. The Wavelet sCale Attribution Method (WCAM) bridges this gap by providing a "space-scale" explanation: identifying exactly which locations and which structural scales (textures, edges, or shapes) drive a prediction.
Methodology
WCAM combines wavelet transforms with global sensitivity analysis to move beyond simple spatial attribution.
The process involves four key steps:
- Wavelet Transform: Unlike a standard pixel grid, a wavelet transform decomposes an image into different scales and orientations (horizontal, vertical, diagonal). This allows for the simultaneous analysis of "coarse" features (large shapes) and "fine" features (fine textures).
- Sobol Sensitivity Analysis: WCAM employs a "black-box" approach. Instead of relying on internal gradients, it perturbs the image by masking regions specifically within the wavelet domain.
- Total Sobol Indices (TSIs): By observing how the model's output probability changes as different wavelet coefficients are masked, the method calculates the "importance" of each scale at each location.
- Efficiency via QMC: To mitigate the computational cost of traditional sensitivity analysis, WCAM uses an efficient sampling strategy based on Quasi-Monte Carlo (QMC) sequences, significantly reducing the required number of model forward passes.
Experimental Setup
The researchers evaluated WCAM using the ImageNet validation set (100-image subset) across several pre-trained architectures, including VGG16, ResNet50, MobileNet, and EfficientNet. To study the impact of training on feature reliance, they compared standard models (ST) against those trained with Adversarial Training (AT) and Robust Training (RT).
Analysis and Insights: The "What" vs. "Where" Distinction
A key contribution of WCAM is its ability to distinguish between different types of features at the same location.
In the example of the fox shown above, standard attribution might simply show that the model looks at the ear. WCAM reveals a more nuanced picture: for the ear, the model relies on both fine-grained fur textures (1-2 pixel scale) and the overall ear shape (2-4 pixel scale). Conversely, for the leg, the model primarily focuses on the coarse shape.
Further insights include:
- Robustness Signatures: Robust models (AT/RT) act as "low-pass filters," ignoring high-frequency details (often noise) in favor of coarse, structural scales. Standard models are frequently distracted by fine-scale details.
- Scale Inconsistency: Models often lack stability in their feature selection. Even for images of the same class, a model might rely on coarse scales for one instance and fine scales for another, suggesting the use of "shortcuts" rather than stable semantic concepts.
- Minimal Images: By retaining only the most important wavelet coefficients, the authors can reconstruct "minimal images"—blurry or skeletal versions of the original that are nonetheless sufficient for the model to maintain its prediction.
Results
WCAM demonstrates superior performance across several benchmarks:
- Fidelity: WCAM outperformed existing black-box methods like RISE and Sobol on the $\mu$-Fidelity metric, indicating a higher correlation with the model's actual decision process.
- Deletion Scores: On ResNet50, WCAM achieved a state-of-the-art deletion score of 0.017, significantly better than standard Saliency (0.124) and Integrated Gradients (0.071).
- Robustness Ranking: WCAM effectively ranks models by robustness based on their reliance on coarse vs. fine scales, aligning with results from more expensive robustness benchmarks.
Conclusion and Future Work
While WCAM provides deep insights, it remains a black-box method requiring significant computational overhead. Future work aims to apply WCAM to specialized domains like medical imaging and remote sensing. Specifically, the authors plan to investigate the reliability of models used for detecting rooftop solar panels, where varying acquisition conditions make scale-based robustness a critical factor.
Summary updated