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:
- Simulated Dataset: A 2D synthetic classification task designed to visualize decision boundaries.
- Bankruptcy Dataset: Real-world data predicting company bankruptcy with 15 continuous dimensions.
- Online Shopping Dataset: Over 12,000 interactions used to predict purchase behavior using 11 numerical features.
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.
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