Stability Guarantees for Feature Attributions with Multiplicative Smoothing

Anton Xue, Rajeev Alur, Eric Wong

Introduction

Explanation methods for machine learning models, such as SHAP or LIME, are frequently used to interpret complex decision-making processes. However, these feature attribution methods are notoriously "brittle." For instance, when a medical AI identifies a tumor in an X-ray, it often provides a "saliency map" highlighting the relevant pixels. Yet, adding a single irrelevant background pixel can sometimes flip the model's prediction, invalidating the explanation.

A truly stable explanation should be "sufficient": if the highlighted features are enough to trigger a specific prediction, adding presumably irrelevant background features should not alter the model’s conclusion. Because deep learning models are highly non-linear and sensitive, small changes in the input mask can cause wild swings in prediction confidence. To address this lack of formal guarantees, this paper introduces Multiplicative Smoothing (MuS), a novel technique that transforms standard models into "explainable models" with provable stability guarantees.

Multiplicative Smoothing and Explainable Models

The authors propose a framework that pairs a classifier with an attribution method to create an Explainable Model. The core engine of this framework is Multiplicative Smoothing (MuS).

Unlike traditional "Randomized Smoothing," which adds Gaussian noise to inputs to defend against adversarial attacks, MuS utilizes multiplicative noise. This involves randomly zeroing out features (applying Bernoulli noise to image patches or text tokens) during both training and inference.

Masked features in an image

By applying this masking, the authors prove that if a model is "Lipschitz smooth" with respect to feature masking—meaning the output does not change drastically when a few features are toggled—it is possible to calculate a formal stability radius. The paper defines two practical relaxations of stability:

  • Incremental Stability: Adding up to $r$ additional features to the explanation will not change the prediction.
  • Decremental Stability: Removing up to $r$ non-explanatory features from the full input will not change the prediction.

Evaluating smoothed models typically requires thousands of samples. To overcome this, the authors developed a structured dependency distribution that allows for the exact evaluation of the smoothed model using as few as 64 samples, drastically improving computational efficiency.

Experimental Setup and Key Insights

The researchers evaluated MuS across computer vision and natural language processing domains. For vision, they used ImageNet1K with Vision Transformer (ViT) and ResNet50 architectures, dividing images into 64 superpixel patches. For NLP, they utilized the TweetEval sentiment analysis dataset with a RoBERTa model.

Several key insights emerged from these evaluations:

  • The Failure of Additive Noise: Standard additive noise (like Gaussian) fails for explanations because it "leaks" information. Even if noise is added to a background pixel, the model might still detect the underlying original value. Multiplicative masking (zeroing out) ensures a feature is truly ignored.
  • Transformers are Naturally Robust: A surprising finding was that Transformer architectures (ViT and RoBERTa) are significantly more resilient to MuS than CNNs (ResNet). Transformers maintain high accuracy even when a large percentage of features are randomly dropped, making them ideal for stable explanations.
  • The Confidence Gap: Stability is directly tied to the model's certainty. A larger gap between the top predicted class and the runner-up provides a larger "buffer" for the explanation to remain stable.

Results and Trade-offs

The application of MuS successfully generated "certified" stability plots, demonstrating exactly what fraction of an input can be altered before a prediction might flip.

However, this comes with an Accuracy vs. Stability Trade-off. Smoothing naturally reduces "clean" accuracy (e.g., a ViT might drop from 80% to 70% accuracy), but it gains non-trivial, mathematically proven stability. For high-stakes applications like healthcare or finance, a slightly less accurate but provably stable model is often preferable to an unpredictable black box. Furthermore, when comparing attribution methods under this framework, SHAP consistently found more concise (sparser) stable explanations than gradient-based methods like Vanilla Gradient or Integrated Gradients.

Limitations and Future Work

While MuS guarantees stability, it does not formally guarantee sparsity (the conciseness of an explanation). The authors currently rely on a greedy heuristic to find the smallest stable feature set. Additionally, despite efficient sampling methods, MuS requires multiple forward passes, introducing a performance overhead compared to standard models. Finally, the efficient evaluation relies on a "seed vector" for noise; a poorly chosen seed could theoretically impact performance, though this was not observed in testing.

Future research may focus on training models specifically to maximize the "confidence gap," which would naturally yield even larger stability guarantees and more robust explainable AI systems.

Summary updated

BibTeX
@inproceedings{xue2023stability,
  author = {Anton Xue and Rajeev Alur and Eric Wong},
  title = {{Stability Guarantees for Feature Attributions with Multiplicative Smoothing}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=ZBxycYCuEL},
}
Figure