NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Sanity Checks Revisited: An Exploration to Repair the Model Parameter Randomisation Test

Anna Hedström, Leander Weber, Sebastian Lapuschkin, Marina M.-c. Höhne

TL;DR

The widely used Model Parameter Randomisation Test (MPRT)—the standard "sanity check" for Explainable AI (XAI)—suffers from critical methodological flaws that make noisy explanation methods look deceptively faithful. This paper introduces two improved variants, Smooth MPRT (sMPRT) and Efficient MPRT (eMPRT), which fix these flaws through denoising and complexity-based evaluation, significantly increasing the reliability of XAI evaluations.

What Problem Does This Paper Address?

In Explainable AI, we rarely have ground-truth labels showing what a "perfect" explanation looks like. To evaluate whether feature attribution methods (like saliency maps) are actually tracking model behavior, researchers rely on the Model Parameter Randomisation Test (MPRT). The core logic is intuitive: if you randomize a model’s weights layer-by-layer, its explanations should change drastically. If the explanations stay the same, the XAI method is independent of the model parameters and therefore unfaithful.

However, the authors highlight three major caveats in the original MPRT setup:

  1. Preprocessing Bias: Common practices like min/max normalization or taking absolute values destroy crucial feature importance information carried by the sign.
  2. Layer-Order Issues: Randomizing weights in a top-down fashion (from output to input) allows unrandomized lower layers to continue dominating the network's information flow.
  3. Similarity Measure Flaws: Pairwise metrics like the Structural Similarity Index (SSIM) are highly sensitive to "gradient shattering" noise. Consequently, inherently noisy XAI methods get artificially high scores simply because their random noise changes after weight randomization.
Schematic overview of original MPRT flaws and the proposed sMPRT and eMPRT solutions.

Methods

To resolve these issues, the authors propose two distinct adaptations:

  • Smooth MPRT (sMPRT): This variant introduces a denoising step before evaluation. By generating $N$ stochastically perturbed instances of an input image, computing their explanations, and averaging them, sMPRT removes local artifact noise. This prevents the metric from favoring inherently noisy explanation methods.
  • Efficient MPRT (eMPRT): Instead of performing a tedious layer-by-layer pairwise similarity comparison, eMPRT reinterprets the test entirely. It measures the relative rise in explanation complexity between just two model states: the original model and the fully randomized model. Complexity is quantified using a histogram-based Shannon entropy function, completely bypassing the need for biased pairwise similarity metrics or specific layer-ordering.

Additionally, for both methods, the authors swap out problematic min/max scaling for a normalization technique based on the square root of the average second-moment estimate, preserving the original scale and distribution of the attributions.

Datasets

The methods were benchmarked across three standard image classification datasets:

  • ImageNet (ILSVRC2012): Evaluated using pre-trained VGG-16 and ResNet-18 architectures.
  • MNIST and Fashion-MNIST (fMNIST): Evaluated using custom-trained LeNet models.

Key Insights and Ideas

  • Noise Mimics Faithfulness: The original MPRT often yields false positives for gradient-based methods. Because their intrinsic noise changes completely when weights change, they achieve a low similarity score, which was historically misinterpreted as a sign of model sensitivity.
  • Complexity as a Proxy for Randomness: A fully randomized model produces high-entropy, chaotic outputs. A truly faithful explanation method should reflect this by showing a corresponding spike in explanation complexity.
  • Massive Efficiency Gains: Because eMPRT only requires computing explanations twice (before and after full model randomization) rather than at every single layer, it is vastly faster and more scalable for deep architectures.

Key Results

The authors used the MetaQuantus framework to calculate a Meta-Consistency ($\overline{MC}$) score (ranging from 0 to 1) to evaluate metric reliability.

  • Superior Reliability: Both eMPRT and sMPRT consistently outperformed the original MPRT across all datasets and model architectures, demonstrating higher statistical reliability.
  • Baseline Correction: Under eMPRT, a purely random attribution baseline correctly and consistently received the lowest evaluation scores, validating the metric's robustness.
  • Re-evaluating XAI Methods: Interestingly, methods like Guided Backpropagation—which the original MPRT dismissed as insensitive to model parameters—showed significantly higher faithfulness when evaluated under the corrected eMPRT framework.
Figure 4: Average MC scores per metric across tested tasks (see in Table 1 in Supplement 6.5), aggregated over 3 iterations with K = 5 perturbations. Here, M2, M3, M4, and M5 represent different combinations of XAI methods, with M2 ={GradientSHAP, IntegratedGradients}, M3 ={Saliency, LRP- z+, Input×Gradient},M4 ={Gradient, GradCAM, LRP-ε, Guided-Backprop}, M5 =Guided-Backprop, GradientSHAP, GradCAM, LRP-ϵ, Saliency}. The colour intensity denotes the task, i.e., the dataset and model combination.

Limitations and Future Work

  • sMPRT Drawbacks: Denoising requires a high sample size ($N \ge 50$), which drastically increases computational costs. Furthermore, adding noise to evaluate methods that already use noise injection (like SmoothGrad) creates a confounding effect.
  • eMPRT Drawbacks: The complexity measure can be sensitive to dataset-specific factors, such as the physical size of objects within a vision dataset.
  • Future Directions: The authors suggest that combining the denoising power of sMPRT with the complexity-based efficiency of eMPRT is a promising avenue for future work. They also call for deeper empirical validation of bottom-up layer randomization.

Summary updated

BibTeX
@misc{hedstrom2023sanity,
  author = {Anna Hedström and Leander Weber and Sebastian Lapuschkin and Marina M.-C. Höhne},
  title = {{Sanity Checks Revisited: An Exploration to Repair the Model Parameter Randomisation Test}},
  year = {2023},
  eprint = {2401.06465},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.06465},
}
Figure