Rethinking Stability for Attribution-based Explanations

Chirag Agarwal, Nari Johnson, Martin Pawelczyk, Satyapriya Krishna, Eshika Saxena, Marinka Zitnik, Himabindu Lakkaraju

TL;DR

Standard metrics judge an explanation's stability solely by how much it shifts when input data is slightly perturbed—ignoring how the underlying predictive model actually processes that perturbation. This paper introduces Relative Stability, a suite of metrics measuring explanation shifts relative to changes in the model’s internal representations and output logits, revealing that input-only metrics mask significant explainer fragility and proving that SmoothGrad is consistently the most stable attribution method among popular approaches.

What Problem Does This Paper Address?

Feature attribution methods (such as LIME, SHAP, and Integrated Gradients) highlight which inputs drive a model's prediction. In high-stakes applications like healthcare or criminal justice, users need these explanations to be stable: tiny, imperceptible perturbations to an input point shouldn't produce completely contradictory explanations.

Existing stability benchmarks evaluate this using a local Lipschitz-style ratio: $\|\mathbf{e}_x - \mathbf{e}_{x'}\| / \|\mathbf{x} - \mathbf{x}'\|$. However, this assumes that if two inputs $\mathbf{x}$ and $\mathbf{x}'$ are close, the model's internal reasoning must be identical. In practice, neural networks frequently navigate jagged loss landscapes where two nearby inputs activate completely different latent paths or representations (e.g., in adversarial or boundary regions). A faithful explainer should change if the model's internal logic changes. Furthermore, absolute differences prevent fair comparisons across explainers that output attributions on wildly different numerical scales.

Methods

The authors propose three normalized Relative Stability metrics based on percentage changes:

  1. Relative Input Stability (RIS): Measures the relative change in feature attribution against the relative change in the raw input: $$\text{RIS} = \max_{\mathbf{x}'} \frac{\|(\mathbf{e}_x - \mathbf{e}_{x'}) / \mathbf{e}_x\|_p}{\max(\|(\mathbf{x} - \mathbf{x}') / \mathbf{x}\|_p, \epsilon_{\min})}$$
  2. Relative Representation Stability (RRS): Evaluates attribution variance against changes in the model’s internal hidden representations $L(\mathbf{x})$ (white-box setting): $$\text{RRS} = \max_{\mathbf{x}'} \frac{\|(\mathbf{e}_x - \mathbf{e}_{x'}) / \mathbf{e}_x\|_p}{\max(\|(L_x - L_{x'}) / L_x\|_p, \epsilon_{\min})}$$
  3. Relative Output Stability (ROS): Evaluates attribution variance against changes in output logits $h(\mathbf{x})$ (applicable to black-box settings): $$\text{ROS} = \max_{\mathbf{x}'} \frac{\|(\mathbf{e}_x - \mathbf{e}_{x'}) / \mathbf{e}_x\|_p}{\max(\|h(\mathbf{x}) - h(\mathbf{x}')\|_p, \epsilon_{\min})}$$

Theoretical Bounds

Assuming neural network layers are Lipschitz continuous with constants $L_1$ and $L_2$, the authors prove that:

  • $\text{RIS} \le \lambda_1 L_1 \times \text{RRS}$
  • $\text{RRS} \le \lambda_2 L_2 \times \text{ROS}$

This formally links explanation stability back to the network's architectural Lipschitz smoothness.

Datasets

The authors benchmarked their framework across three tabular datasets from high-stakes domains:

  • German Credit: 1,000 instances classifying clients into good vs. bad credit risk.
  • COMPAS: 18,876 defendant records predicting bail decisions.
  • Adult (Census Income): 48,842 records predicting whether individual income exceeds \$50K/year.

Predictive models evaluated include Logistic Regression (LR) and single-hidden-layer Artificial Neural Networks (ANNs).

Key Insights and Ideas

  • Input stability gives a false sense of security: Median RIS scores are systematically lower than representation (RRS) and output (ROS) stability scores. Measuring stability purely in input space underestimates the degree of explanation instability relative to actual model behavior.
  • Relative scaling matters: By evaluating relative percentage changes rather than absolute distances, metrics can fairly benchmark gradient methods alongside perturbation-based game-theoretic methods (e.g., VanillaGrad vs. KernelSHAP).
  • SmoothGrad reigns supreme: Across datasets and representation/output metrics, SmoothGrad generated the most stable explanations, demonstrating that averaging gradients over Gaussian neighborhoods actively suppresses model-representation noise.

Key Results

  • Theoretical Bound Verification: Empirical tests confirmed that RIS remained bounded below $\lambda_1 L_1 \times \text{RRS}$ across all seven explanation methods. On average, the theoretical upper bounds were tight, averaging roughly 233% higher than the observed empirical values.
  • Explainer Comparison: None of the evaluated explainers were completely stable. However, SmoothGrad outperformed all other methods on stability across RRS and ROS variants by an average margin of 12.7%.
  • Gradient-based and sampling methods exhibited wide variance; raw VanillaGrad and Input$\times$Gradients were noticeably more unstable than SmoothGrad or Integrated Gradients.

Limitations and Future Work

  • Internal Access Constraints: RRS requires white-box access to intermediate activations, limiting its direct use when only black-box APIs are available (though ROS serves as a proxy).
  • Scope of Architectures & Data: Experiments were limited to simple feedforward networks (one hidden layer) and logistic regression on structured tabular datasets. Extending these bounds to deep vision models (CNNs) and transformers (LLMs) remains an open area for exploration.
  • Data Manifold Awareness: Perturbations were generated using Gaussian/Bernoulli noise within local balls; sampling along the true underlying data manifold could further refine fidelity.

Summary updated

BibTeX
@inproceedings{agarwal2022rethinking,
  author = {Chirag Agarwal and Nari Johnson and Martin Pawelczyk and Satyapriya Krishna and Eshika Saxena and Marinka Zitnik and Himabindu Lakkaraju},
  title = {{Rethinking Stability for Attribution-based Explanations}},
  booktitle = {PAIR2Struct @ ICLR},
  year = {2022},
  url = {https://openreview.net/forum?id=BfxZAuWOg9},
}
Figure