Robustness and Stability in Feature Attribution

28 concepts25 papers1 proposal

When we deploy machine learning models in high-stakes domains like healthcare, financial forecasting, or autonomous driving, we cannot treat them purely as black boxes. To build trust, we rely on post-hoc explainability methods—such as LIME, SHAP, or saliency maps—to tell us why a model made a specific decision. These tools typically output a feature attribution vector, highlighting which input pixels, words, or tabular variables drove the prediction.

However, a troubling vulnerability has emerged: these explanations are often profoundly unstable. A minor tweak to an input image (such as imperceptible noise or a slight rotation) or a simple shift in an explainer's hyperparameters can radically alter the resulting explanation, even when the model's underlying prediction remains exactly the same. If an explanation fluctuates wildly due to arbitrary noise, it ceases to be a reliable window into the model's logic.

To solve this, a growing body of research focuses on formalizing, measuring, and enforcing explanation stability.

The Sources of Explanation Fragility

Why do explanations change when inputs barely do? Instability typically stems from two distinct sources: the internal mechanics of the explanation algorithms themselves, and the geometric properties of the models they are trying to explain.

First, many popular local explainers rely on stochastic approximations. As Elvio G. Amparore et al. observed, methods that draw random samples from a local neighborhood to build a simpler, interpretable surrogate model suffer from internal variance. Multiple runs on the exact same data point can yield entirely different feature rankings. Furthermore, Anh Totti Nguyen et al. demonstrated that these methods are highly sensitive to arbitrary hyperparameter choices, such as patch sizes or random seeds, creating localized instabilities that fail to reflect the model's true invariant properties.

Second, the fragility is deeply rooted in the geometry of the neural networks themselves. Zifan Wang et al. proved that deep neural networks inherently possess highly jagged, non-linear decision surfaces. Because gradient-based explainers rely on local derivatives along these surfaces, a tiny step in the input space can cause the gradient vector to swing wildly. Consequently, an adversarial attacker can easily manipulate an explanation map without changing the actual classification.

The Mathematical Framework: Lipschitz Continuity

To move beyond vague notions of reliability, researchers formalize explanation stability using the mathematical concept of Lipschitz continuity.

An explanation function is considered stable if the difference between the explanations of two close inputs is bounded by a constant multiple of the distance between the inputs themselves. In simple terms, it places a strict "speed limit" on how fast an explanation can change as you move through the input space.

   Jagged Decision Surface                 Smooth Decision Surface
     (Unstable Gradients)                    (Stable Gradients)
             /\                                     ______
            /  \    <- Tiny input shift            /      \   <- Tiny input shift
  _________/    \_______                 _________/        \_______

This geometric framing yields powerful theoretical insights:

  • Dimension Independence: A common concern in machine learning is the curse of dimensionality—the fear that as the number of features grows, models naturally become more fragile. However, Sushant Agarwal et al. proved that the Lipschitz robustness of local explanations is determined by noise variance and the model's maximum gradient, completely independent of input dimensionality. Interpretability methods do not inherently degrade simply because a dataset has more features.
  • Model-Bound Robustness: You cannot separate the explainer from the model. Zulqarnain Khan et al. established that an explanation's robustness is fundamentally lower-bounded by the smoothness (or probabilistic Lipschitzness) of the underlying prediction function. If a model's internal logic is highly fractured, any faithful explanation of it is mathematically forced to be fragile.

Measuring True Stability

How do we evaluate whether an explanation is stable? Early metrics simply measured the absolute distance between two heatmaps before and after an input perturbation. But this approach is flawed: if an input changes enough that the model's internal reasoning genuinely shifts, the explanation should change.

To address this, Chirag Agarwal et al. introduced the concept of Relative Explanation Stability. Instead of penalizing an explainer for any variation, this framework evaluates changes in the attribution vector in direct proportion to changes in the model's internal state or output behavior. An explanation is only deemed unstable if it fluctuates while the model's underlying logic remains constant.

Other researchers focus on domain-specific consistency metrics. For instance, in computer vision, Lars Kai Hansen et al. proposed measuring the correlation between saliency maps across standard data augmentations like rotations or lighting changes. To better align these evaluations with human vision, Alexander Hepburn et al. advocated for replacing standard pixel-wise distance metrics with perceptual distances when quantifying heatmap shifts under real-world distortions.

The Robustness-Faithfulness Trade-off

If jagged decision surfaces cause unstable explanations, a natural solution is to smooth them out. Techniques like SmoothGrad average out gradients by sampling noisy variations of an input, while other approaches regularize the model's decision boundaries during training.

However, forcing stability introduces a fundamental dilemma: the robustness-faithfulness trade-off.

An explanation's primary duty is faithfulness—it must accurately mirror how the model actually computes its output. As Zeren Tan et al. demonstrated, if a model is inherently non-robust and relies on erratic, jagged logic to make a prediction, forcing a post-hoc explainer to output a smooth, stable explanation means that explanation is no longer faithful. It paints a picture of a clean, logical decision process that does not actually exist inside the model.

Ultimately, robust explanations are only "free" if the underlying model itself is trained to be robust against adversarial noise or regularized to learn invariant, stable features across local neighborhoods. True interpretability cannot be patched on entirely after the fact; it is inextricably bound to the geometric smoothness of the model itself.

Key Foundational Work

Issues with post-hoc counterfactual explanations: a discussion (2019) — contributed 1 concept elements to this direction.
Explaining Multi-Criteria Decision Aiding Models with an Extended Shapley Value (2018) — contributed 1 concept elements to this direction.
History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_explanation_stability_120dc50c,
  title = {explanation stability},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/explanation-stability/rdr_120dc50c04894afda90ef112a439585b},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-25},
}

This exact version (version 1, frozen text):

@misc{lacuna_explanation_stability_120dc50c_v1,
  title = {explanation stability},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/explanation-stability/rdr_120dc50c04894afda90ef112a439585b/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-25},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake