Assessment of the Reliablity of a Model's Decision by Generalizing Attribution to the Wavelet Domain

Gabriel Kasmi, Laurent Dubus, Yves-Marie Saint-Drenan, Philippe Blanc

TL;DR

Existing visual explainability tools highlight where a model looks in an image, while Fourier analysis shows which frequencies it relies on for robustness. The Wavelet sCale Attribution Method (WCAM) bridges this divide by performing attribution in the space-scale (wavelet) domain. By decomposing a model’s decision across both spatial coordinates and scale resolutions, WCAM enables practitioners to simultaneously audit whether a prediction relies on the right semantic structures (e.g., shapes vs. textures) and whether those features are robust to real-world corruptions.

What Problem Does This Paper Address?

Deploying deep neural networks in high-stakes fields (such as medicine or remote sensing) requires validating that decisions are reliable—meaning predictions must be both semantically relevant (grounded in the correct visual features, not background shortcuts) and robust (invariant to image noise or acquisition shifts).

Current explainability methods fall short:

  1. Spatial attribution methods (e.g., Saliency maps, Grad-CAM, RISE, Sobol indices) show where a model looks, but cannot disentangle what visual scales (fine textures vs. coarse contours) the model is actually picking up.
  2. Fourier-based robustness methods analyze global frequency biases (showing that robust models depend on low frequencies), but completely lose spatial localization.

Because neither paradigm captures space and scale together, auditing both the relevance and robustness of a decision has remained out of reach.

Methods

The authors propose WCAM, a black-box attribution framework based on the Discrete Wavelet Transform (DWT) and global sensitivity analysis:

  • Wavelet Decomposition: An input image is transformed using a 2D DWT into multiple dyadic scales (from coarse approximation coefficients down to fine detail coefficients: horizontal, vertical, and diagonal).
  • Quasi-Monte Carlo Perturbations: Following Sobol-based sensitivity analysis, the method draws low-discrepancy Quasi-Monte Carlo (QMC) sequences to create perturbation masks ($28 \times 28$ grid) applied directly to the wavelet coefficients.
  • Inverse Transform & Model Forwarding: The perturbed wavelet representations are inverted via inverse DWT ($\text{iDWT}$) back to the pixel domain, yielding $N(K + 2)$ perturbed images that are fed through the black-box neural network.
  • Sobol Sensitivity Estimation: Using Jansen’s estimator, WCAM computes the Total Sobol Indices (TSIs) for each region across scales. TSIs quantify both the direct contribution of each space-scale patch and its non-linear interactions with other components.
Input Image ──► DWT ──► Apply QMC Masks ──► iDWT ──► Black-Box Model ──► Jansen Estimator ──► WCAM (Space-Scale Map)

Datasets

  • Evaluation Benchmark: Evaluated on 100 images from the ImageNet validation set across four architectures: VGG16, ResNet50, MobileNet, and EfficientNet.
  • No new benchmarks were introduced in this paper, though the authors note planned applications on aerial imagery benchmarks for rooftop photovoltaic (PV) array detection.

Key Insights and Ideas

  • Separating Shapes from Textures: The wavelet domain naturally isolates structural properties by scale. Fine scales (1–2 pixels) correspond to high-frequency textures (such as fur or leaf veins), while coarse scales (>4–8 pixels) capture macroscopic contours and object shapes.
  • Wavelets as a Direct Proxy for Robustness: Because dyadic wavelet levels correspond directly to frequency bands, WCAM quantifies how much a model relies on high vs. low frequencies.
  • Confirmation of the "Robustness Bias": When tested on adversarially trained (AT) and robustly trained (RT) models, WCAM shows that robust models systematically shift their decision weight away from fine detail coefficients toward coarse approximation coefficients. Standard empirical risk minimization (ST/ERM) models, in contrast, place significantly more attribution on high-frequency details.
  • Scale Information Drives Attribution Faithfulness: Collapsing the multi-scale WCAM back into a 2D spatial map ("Spatial WCAM") degrades performance down to standard black-box baselines, demonstrating that explicitly accounting for scale is what boosts attribution accuracy.

Key Results

The authors evaluated attribution quality using $\mu$-Fidelity (higher is better), which measures the correlation between the importance assigned to a subset of features and the drop in output probability when those features are removed.

Across major computer vision architectures, WCAM significantly outperformed existing black-box attribution methods and remained competitive with (or outperformed) white-box gradient methods:

Method VGG16 ResNet50 MobileNet EfficientNet
White-Box
Saliency 0.043 0.060 -0.002 0.052
Integrated Gradients 0.137 0.112 0.130 0.134
VarGrad 0.054 0.099 0.279 0.093
Black-Box
RISE 0.020 0.074 -0.025 0.042
Sobol (Pixel Domain) 0.095 0.108 -0.036 0.013
Spatial WCAM (Flattened) 0.016 -0.037 0.020 -0.016
WCAM (Ours) 0.197 0.191 <u>0.105</u> 0.187

(Bold indicates best performance; underline indicates second best.)

Qualitative analysis on images (e.g., classifying a fox) demonstrated that WCAM isolated the fine fur texture in the ear at the 1–2 pixel scale, the ear orientation at the 2–4 pixel scale, and the overall hind-leg silhouette at the 4–8 pixel scale.

Limitations and Future Work

  • Computational Cost: Because WCAM is a perturbation-based black-box method requiring $N(K + 2)$ forward passes per image, it is significantly slower and more compute-intensive than gradient-based white-box alternatives.
  • Future Applications: The authors plan to apply WCAM to domain-specific computer vision tasks, specifically identifying rooftop photovoltaic installations in aerial and satellite imagery, where models frequently fail due to variable optical transfer functions and acquisition noise.

Summary updated

BibTeX
@inproceedings{kasmi2023assessment,
  author = {Gabriel Kasmi and Laurent Dubus and Yves-Marie Saint-Drenan and Philippe BLANC},
  title = {{Assessment of the Reliablity of a Model's Decision by Generalizing Attribution to the Wavelet Domain}},
  booktitle = {XAIA @ NeurIPS},
  year = {2023},
  url = {https://openreview.net/forum?id=112o4j4VCY},
}
Figure