Evaluating the Robustness of Interpretability Methods through Explanation Invariance and Equivariance

Jonathan Crabbé, Mihaela van der Schaar · DOI

Introduction

As machine learning models are increasingly deployed in high-stakes domains, the need for reliable interpretability has never been greater. We rely on "post-hoc" methods—such as Saliency Maps, SHAP, or Integrated Gradients—to peek inside the "black box" and justify model predictions. However, these explanations are often notoriously unstable, or "jittery," showing significant changes in response to minor perturbations that do not affect the model's output.

In their NeurIPS 2023 paper, Jonathan Crabbé and Mihaela van der Schaar address this instability by leveraging the principles of Geometric Deep Learning (GDL). They argue that for an explanation to be truly faithful, it must respect the same symmetries as the model it describes. If a model is invariant to a specific transformation (like rotating an image of a t-shirt), the explanation for that model's prediction should be equally robust.

The Symmetry Gap in Interpretability

Modern neural network architectures are often designed with specific symmetries in mind. Convolutional Neural Networks (CNNs) are built to handle translations, while Graph Neural Networks (GNNs) are designed to be invariant to node permutations. When a model’s prediction remains identical across different versions of the same input, a faithful explanation should reflect this consistency.

Currently, a deep conceptual gap exists: while the models themselves are robust to these symmetries, the tools we use to explain them often are not. If an explanation changes wildly simply because we reordered the nodes in a graph or shifted an image by a few pixels, the reliability of that interpretability tool is called into question. This paper formalizes this requirement through two key properties: Explanation Invariance and Explanation Equivariance.

A Formal Framework for Robustness

By bridging interpretability with GDL, the authors define how an explanation function $e$ should behave under a symmetry group $\mathcal{G}$:

  1. Explanation Invariance: The explanation remains identical when the input is transformed. For example, the most influential training examples for a prediction should not change if the input image is rotated.
  2. Explanation Equivariance: The explanation transforms in the exact same way as the input. If an image is shifted two pixels to the right, the resulting "heat map" of important features should also shift exactly two pixels to the right.

To quantify these properties, the researchers introduced two metrics, $Inv_{\mathcal{G}}$ and $Equiv_{\mathcal{G}}$, which utilize cosine similarity to measure the degree to which a method violates these symmetry constraints. Furthermore, they propose a method to enforce robustness: by averaging an explanation over several random transformations from a symmetry group (a Monte Carlo approach), a non-robust method can be transformed into a robust one.

Empirical Insights and Failures

The framework was tested across diverse modalities, including Time Series (ECG), Graphs (Mutagenicity), 3D Point Clouds (ModelNet40), and Images (CIFAR100). The results revealed several critical insights into the current state of interpretability:

  • The Baseline Problem: For feature importance methods like Gradient SHAP, the choice of the "baseline" (the reference input) is a primary point of failure. If the baseline is not group-invariant, the resulting explanation will fail to be equivariant.
  • Layer Selection: For concept-based explanations (like CAVs), the choice of layer is vital. Using equivariant layers (like raw convolutional layers) often leads to non-robust results; these methods should ideally be applied to invariant layers, typically found after global pooling.
  • Fragility of Robustness: The study found that even if a model is mostly invariant, the robustness of its explanations can collapse entirely. There is no guaranteed linear relationship between the stability of a model and the stability of its explanations.
  • Method Performance: Theoretical analysis proved that loss-based methods (such as Influence Functions) are naturally robust. In contrast, popular gradient-based methods like Vanilla Saliency only offer conditional guarantees and often performed poorly in empirical tests.

Practical Guidelines for Practitioners

The paper concludes with five actionable guidelines to help researchers and practitioners ensure their explanations remain consistent:

  1. Use Group-Invariant Baselines: Always use a baseline signal that respects the symmetry group to guarantee feature attribution consistency.
  2. Target Invariant Layers: When using concept-based methods, apply them to layers that have already achieved invariance (e.g., post-pooling).
  3. Verify Symmetry: Explicitly test interpretability methods against the known symmetries of the model architecture.
  4. Apply Smoothing: Use Monte Carlo averaging over symmetry groups to improve the robustness of "jittery" methods.
  5. Contextualize Metrics: Robustness metrics should complement, rather than replace, existing evaluations like sensitivity analysis to provide a holistic view of explanation quality.

Conclusion

Robustness is not merely a secondary feature of interpretability; it is a prerequisite for faithfulness. If an explanation fails to respect the internal symmetries of the model it purports to describe, it cannot be considered a true reflection of the model's logic. By providing a rigorous mathematical framework and practical metrics, Crabbé and van der Schaar have set a new bar for the development and evaluation of robust interpretability methods.

Summary updated

BibTeX
@inproceedings{crabbe2023evaluating,
  author = {Jonathan Crabbé and Mihaela van der Schaar},
  title = {{Evaluating the Robustness of Interpretability Methods through Explanation Invariance and Equivariance}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=5UwnKSgY6u},
}
Figure