TL;DR
SIM-Shapley accelerates Shapley value estimation by reframing feature attribution as a stochastic optimization problem. By introducing momentum-based updates, adaptive mini-batch sampling, and robust stability mechanisms, it reduces computation time by up to 85% while maintaining theoretical guarantees and remaining entirely game- and imputer-agnostic.
What Problem Does This Paper Address?
As machine learning models are increasingly deployed in high-stakes environments like healthcare and finance, explainable AI (XAI) has transitioned from a luxury to a necessity. Shapley values (SVs) offer a mathematically principled way to assign credit to individual features for a model's prediction. However, calculating exact SVs requires evaluating an exponential number of feature coalitions ($O(d \cdot 2^d)$), making it computationally prohibitive for datasets with even a moderate number of features.
While recent approximation methods have attempted to bridge this gap, they suffer from significant limitations. Some introduce additional black-box models to explain the original model, destroying interpreter transparency and adding high hyperparameter overhead. Others are tightly coupled with specific imputation strategies or fail to support both local (instance-level) and global (dataset-level) explanations simultaneously.
Methods
The authors introduce SIM-Shapley (Stochastic Iterative Momentum for Shapley values), which reformulates the traditional KernelSHAP weighted least squares objective into a Stochastic Approximation (SA) framework. Instead of repeatedly solving a massive Sample Average Approximation (SAA) problem, SIM-Shapley updates its feature attribution estimates incrementally using mini-batches.
The core algorithm incorporates an Exponential Moving Average (EMA) momentum scheme to smooth out updates. To ensure the algorithm remains stable and converges reliably, the authors introduce three key mechanisms:
- $\ell_2$ Regularization: Adds a small penalty ($\lambda$) to ensure strict convexity of the objective function at each iteration, preventing optimization collapse when mini-batches contain duplicate or sparse subsets.
- Negative-Sampling Detection: Monitors the variance of the updates. If a mini-batch contains low-quality or highly repetitive coalitions that would stall convergence, the batch is rejected and resampled.
- Initialization Bias Correction: Dynamically adjusts weights during early iterations to counteract the influence of the initial zero-vector guess, a technique inspired by the Adam optimizer.
Datasets
The method was evaluated across a diverse suite of tasks and dimensionalities:
- Classification: Census (Adult), South German Credit, and Portuguese Bank Marketing datasets.
- Regression: NYC Airbnb Listings and Bike Sharing Demand datasets.
- Computer Vision: The MNIST database of handwritten digits (784 pixel features).
- Real-World Clinical Data: The MIMIC-IV Emergency Department (MIMIC-IV-ED) dataset, utilized for predicting in-hospital mortality.
Key Insights and Ideas
- Stochastic Optimization Over SAA: The fundamental "aha moment" is that Shapley estimation doesn't require batch-style matrix inversions over all sampled subsets. Treating it as a continuous stochastic iteration allows the estimator to learn faster from informative subsets.
- Linear Q-Convergence: The authors mathematically prove that SIM-Shapley achieves a linear Q-convergence rate. This provides a much stronger theoretical guarantee than existing sampling-based approximations.
- The Regularization Trade-off: While $\ell_2$ regularization technically introduces a small theoretical bias, the authors demonstrate that with a tiny $\lambda$ (e.g., 0.01), this bias is empirically negligible while providing massive stability gains.
Key Results
- Substantial Speedups: SIM-Shapley reduces overall dataset-level computation time by 60% to 75% against SAGE for global explanations, and up to 85% in specific local settings.
- Superior Scalability on High-Dimensional Data: On the MNIST dataset (784 features), SIM-Shapley computed explanations 62% faster than KernelSHAP (8.53 seconds vs. 22.47 seconds) while maintaining comparable accuracy. Amortized methods like FastSHAP required over 11 minutes of upfront training.
- Task-Agnostic Performance: Unlike competitors that failed or underperformed on specific tasks, SIM-Shapley maintained low bias and high consistency across both classification and regression benchmarks.
Limitations and Future Work
While highly effective, the online variance tracking mechanism used for the stopping criterion relies on Welford’s algorithm, which does not provide a strictly unbiased estimate of the true variance due to temporal dependencies between iterations. The authors suggest that future iterations could utilize multiple independent mini-batches per step to refine variance estimation. Additionally, the current framework focuses exclusively on first-order Shapley values; extending this stochastic optimization approach to higher-order Shapley interactions remains an open avenue for future research.
Summary updated