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

Uncovering the Structure of Explanation Quality with Spectral Analysis

Johannes Maeß, Grégoire Montavon, Shinichi Nakajima, Klaus-Robert Müller, Thomas Schnake · DOI

TL;DR

This paper introduces a novel spectral analysis framework to understand the multifaceted nature of explanation quality in machine learning. By decomposing explanations into their spectral components, they identify two key factors: stability and sensitivity, and propose a metric (SSM) to quantify their balance, offering a more principled way to evaluate and develop explainable AI methods.

What Problem Does This Paper Address?

As machine learning models become more prevalent in high-stakes domains like healthcare and finance, understanding why they make certain predictions is crucial. This field, known as Explainable AI (XAI), has seen a proliferation of methods to generate explanations (e.g., heatmaps highlighting important features). However, a significant challenge is evaluating the quality of these explanations. Existing metrics often lack clarity on which specific aspects of an explanation they reward, making it difficult to compare methods or understand their limitations. This ambiguity can lead to misleading explanations, a phenomenon exacerbated by adversarial attacks and the "Clever-Hans" effect, where models rely on spurious correlations. The paper aims to bridge this gap by providing a theoretical framework to systematically analyze and understand the underlying structure of explanation quality.

Methods

The core of the paper is a novel spectral analysis framework. It works by constructing a "redistribution matrix" that encodes how an explanation method distributes the model's output attribution across input features for each output neuron. This matrix is then subjected to Singular Value Decomposition (SVD). The singular values reveal fundamental properties of the explanation:

  • Stability: Characterized by the largest singular value ($\sigma_1$), it measures how unaffected an explanation is by irrelevant factors or minor perturbations in the model. A low $\sigma_1$ indicates high stability.
  • Sensitivity: Related to the magnitude of the smaller singular values (specifically, the norm of the matrix formed by these values), it measures the explanation's ability to distinguish between different outputs or classes by highlighting salient features. A higher value here indicates greater sensitivity.

The authors then propose a "stability-sensitivity metric" (SSM) as a combination of these two factors, aiming to find a "sweet spot" where explanations are both stable and sensitive. They also show how to decompose explanations into heatmaps corresponding to these spectral components, allowing for a deeper analysis of what contributes to an explanation.

Datasets

The paper uses two standard image datasets for evaluation:

  • MNIST: A dataset of grayscale handwritten digits.
  • ImageNet: A large-scale dataset of colored images with 1000 classes.

They train models on these datasets and use them to evaluate their proposed framework and compare it with existing XAI evaluation metrics.

Key Insights and Ideas

  • Explanation Quality is Multifaceted: The paper convincingly argues that explanation quality isn't a single dimension but a balance between stability and sensitivity.
  • Spectral Analysis as a Unifying Framework: SVD of the redistribution matrix provides a principled way to quantify these two key factors, offering a deeper theoretical understanding than empirical metrics alone.
  • "Sweet Spot" for Explanation Parameters: For many explanation methods (like LRP and SmoothGrad), there exists an optimal range of hyperparameters that balances stability and sensitivity, leading to better overall explanation quality.
  • Entropy as a Proxy for Stability (with caveats): The paper reveals an intriguing connection between Shannon entropy and explanation stability. While entropy was initially proposed to detect noise (stability), it also captures aspects of sensitivity, suggesting it's a more holistic metric than previously thought, though it can sometimes be misleading.
  • Decomposition Reveals Noise vs. Signal: Decomposing explanations into spectral components allows researchers to distinguish between core explanatory patterns and noise or secondary effects.

Key Results

The authors empirically validate their framework on MNIST and ImageNet. They show that:

  • Their spectral analysis successfully identifies stability and sensitivity as distinct factors.
  • Existing evaluation metrics like pixel-flipping (PF-AUC) and entropy partially capture the trade-offs between stability and sensitivity.
  • For the LRP explanation method, increasing the $\gamma$ parameter leads to increased stability but decreased sensitivity. A "sweet spot" for $\gamma$ (around 0.04 for ImageNet and MNIST) maximizes explanation quality as measured by their SSM metric.
  • Similarly, for SmoothGrad, increasing the smoothing parameter $s$ increases stability while decreasing sensitivity.
  • The SSM metric often aligns with the notion of an optimal parameter choice, suggesting its utility in guiding hyperparameter tuning for XAI methods.

Limitations and Future Work

  • Computational Complexity: While spectral analysis offers theoretical insights, computing singular values can be computationally intensive for very large matrices. The paper discusses computational complexity in Appendix C, noting that stability (largest singular value) can be computed efficiently, but a full spectral decomposition might be more demanding.
  • Generalizability of "Sweet Spot": While a "sweet spot" is identified for LRP and SmoothGrad, the paper acknowledges that different methods and datasets might require different optimal parameter settings.
  • Future Work: The authors suggest that their framework provides a foundational basis for understanding explanation quality and guiding the development of more reliable evaluation techniques. They also demonstrate how spectral decomposition can be used to analyze the structure of explanations themselves, offering a path towards more interpretable and robust XAI methods.

Summary updated

BibTeX
@inproceedings{mae2025uncovering,
  author = {Johannes Maeß and Grégoire Montavon and Shinichi Nakajima and Klaus-Robert Müller and Thomas Schnake},
  title = {{Uncovering the Structure of Explanation Quality with Spectral Analysis}},
  booktitle = {xAI},
  year = {2025},
  doi = {10.1007/978-3-032-08327-2\_14},
}
Figure