Towards the Unification and Robustness of Perturbation and Gradient Based Explanations

Sushant Agarwal, Shahin Jabbari, Chirag Agarwal, Sohini Upadhyay, Zhiwei Steven Wu, Himabindu Lakkaraju

Abstract

This paper investigates the relationship between two dominant families of post-hoc explainability: gradient-based methods (e.g., SmoothGrad) and perturbation-based methods (e.g., LIME). By focusing on SmoothGrad and a continuous variant of LIME (C-LIME), we demonstrate that these two approaches converge to the same explanation in the limit. We further establish the mathematical robustness of these methods using Lipschitz continuity and provide finite sample complexity bounds. Empirical results across simulated and real-world datasets confirm the theoretical convergence and highlight the computational efficiency of gradient-based approaches.

Introduction

As machine learning models are increasingly deployed in high-stakes fields like healthcare and criminal justice, understanding the rationale behind specific decisions is paramount. Currently, two dominant "post-hoc" strategies exist: gradient-based methods, which examine the model's internal sensitivity, and perturbation-based methods, which observe model reactions to input changes. Despite their widespread use, these methods are often viewed as distinct and can be criticized for being "brittle"—where minor input changes lead to vastly different explanations. This work seeks to unify these schools of thought and provide a rigorous foundation for their robustness.

Theoretical Framework: Unifying SG and C-LIME

The core of this research focuses on SmoothGrad (SG) and Continuous-LIME (C-LIME). To facilitate a direct comparison, C-LIME is defined as a version of LIME that utilizes continuous features and samples perturbations from a Gaussian distribution.

The mathematical bridge between these two methods is established via Stein’s Lemma. By applying this lemma, the authors derive closed-form expressions showing that, given sufficient samples, SG and C-LIME converge to the exact same feature attribution. Furthermore, the study employs Lipschitz continuity to formally define robustness. This proof ensures that if two inputs are proximal, their corresponding explanations will also be similar. A key finding is that this robustness is dimension-independent; the stability of an explanation depends on the model's gradient and noise level ($\sigma$), rather than the number of features ($d$).

Experimental Evaluation

The theoretical framework was validated using three datasets:

  1. Simulated Dataset: A 2D synthetic classification task designed to visualize decision boundaries.
  2. Bankruptcy Dataset: Real-world data predicting company bankruptcy with 15 continuous dimensions.
  3. Online Shopping Dataset: Over 12,000 interactions used to predict purchase behavior using 11 numerical features.
Decision boundary and class clusters for the 2D simulated synthetic classification task.

Results and Discussion

The primary empirical finding is the clear convergence between SmoothGrad and C-LIME. As the number of perturbations increases, the L1 distance between the two explanations drops sharply across all tested datasets.

L1 distance between SmoothGrad (SG) and Continuous-LIME (C-LIME) explanations as a function of the number of perturbations across three datasets.

While both methods converge to the same point, SmoothGrad is significantly more efficient, reaching stable explanations with as few as 100-200 samples. Additionally, the variance of perturbations ($\sigma^2$) acts as a critical hyperparameter: smaller variance enhances convergence speed and robustness but may restrict the explanation to a very local view of the model.

The study also includes a "linearity sanity check," confirming that these methods correctly identify the weights of simple linear models, a fundamental requirement that some other attribution methods fail to meet.

Conclusion and Future Work

This work demonstrates that the choice between gradient and perturbation methods is primarily one of computational efficiency rather than differing philosophies of interpretability. While the focus on C-LIME omits the discretization steps found in some LIME implementations, it provides a necessary theoretical baseline. Future research may extend this unification to other popular methods like SHAP or Integrated Gradients and explore applications in counterfactual explanations.

Summary updated

BibTeX
@inproceedings{agarwal2021towards,
  author = {Sushant Agarwal and Shahin Jabbari and Chirag Agarwal and Sohini Upadhyay and Zhiwei Steven Wu and Himabindu Lakkaraju},
  title = {{Towards the Unification and Robustness of Perturbation and Gradient Based Explanations}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=fP9waVRqVLo},
}
Figure