NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

$\texttt{ShaplEIG}$: Bayesian Experimental Design for Shapley Value Estimation

David Rundel, Fabian Fumagalli, Maximilian Muschalik, Bernd Bischl, Matthias Feurer

Shapley values have become the gold standard for attribution in machine learning, offering a principled way to answer questions like, "How much did this specific feature contribute to the model's prediction?" or "How valuable was this specific data point for training?" However, computing exact Shapley values requires evaluating a "value function" (such as model accuracy) for every possible subset of features. For $p$ features, this means $2^p$ evaluations—an exponential explosion that makes exact calculation impossible for anything but the smallest toy problems.

To bypass this bottleneck, current approximation methods like Kernel SHAP or Regression MSR typically sample these subsets (coalitions) from a fixed, static distribution. But what happens when evaluating the value function is inherently costly? If you have to retrain a deep learning model from scratch for every coalition, you simply cannot afford to waste evaluations on uninformative subsets.

This raises a critical question: Can we pick coalitions adaptively based on what we’ve already learned?

To address this, researchers introduce ShaplEIG, a novel framework that treats Shapley value estimation as a sequential Bayesian Experimental Design problem. By adaptively selecting which coalitions to evaluate, ShaplEIG significantly outperforms state-of-the-art methods in "low-budget" scenarios where evaluating a model is expensive.

The ShaplEIG Methodology

ShaplEIG frames the estimation process as a sequential experiment driven by four core components:

  1. The Gaussian Process Surrogate: The framework uses a Gaussian Process (GP) to model the value function. Specifically, it employs a Hamming kernel, which is perfectly suited for binary inputs where a feature is either "in" or "out" of a given coalition.
  2. Expected Information Gain (EIG): To decide which coalition to evaluate next, ShaplEIG uses EIG as its acquisition function. This information-theoretic metric selects the coalition expected to most reduce uncertainty about the final Shapley values.
  3. Closed-Form Calculation: Because Shapley values are a linear transformation of the value function, the authors prove that the EIG can be calculated in closed form. This avoids the messy, intractable integrals usually associated with Bayesian Experimental Design, framing the task as a well-behaved Bayesian linear inverse problem.
  4. Polynomial-Time Computation: Even with a closed form, a naive calculation would still scale exponentially. The authors leverage Elementary Symmetric Polynomials (ESPs) to reduce the computational complexity from exponential to polynomial ($O(p^4)$). This mathematical trick makes the method feasible for games with up to approximately 100 players.

Experimental Validation across Costly Tasks

The researchers benchmarked ShaplEIG across four distinct, computationally expensive tasks:

  • Feature Importance: Using the TabPFN foundation model on datasets like Diabetes and Breast Cancer.
  • Data Valuation: Determining the worth of training samples for Random Forests and Gradient Boosting on Bike Sharing and California Housing data.
  • Hyperparameter Importance: Analyzing XGBoost on Chess and Thyroid datasets, and LCBench on the Jasmine task.
  • Local Explanations: Explaining individual predictions for ResNet and Vision Transformers (ViT) on ImageNet, as well as Random Forests on tabular datasets.

Key Insights and Results

Low-Budget Dominance and Sample Efficiency: In almost every experiment, ShaplEIG achieved a lower Mean Squared Error (MSE) with fewer evaluations than baselines like Regression MSR, Leverage SHAP, and Kernel SHAP. This performance gap is most pronounced in the "low-budget" regime (e.g., fewer than 500 evaluations), which is exactly where costly value functions make estimation most difficult.

Adaptivity Excels in Asymmetry: In "symmetric" games where all features are equally important, adaptive sampling offers marginal benefits. However, real-world ML models are highly asymmetric—a few features usually do the heavy lifting. ShaplEIG excels in these realistic scenarios by quickly identifying and focusing on the most influential players.

Theoretical Consistency: Unlike some popular tree-based surrogates, the GP approach is consistent. If you eventually evaluate all $2^p$ coalitions, the estimator is guaranteed to converge to the true Shapley values. Furthermore, thanks to the ESP-based computation, the method scales to problems with 100+ players, whereas a naive Bayesian Experimental Design approach would stall at around 20.

Limitations and Future Directions

While ShaplEIG represents a significant leap forward for costly Shapley value estimation, it does come with computational overhead. While the selection of coalitions is efficient, training the GP (specifically hyperparameter optimization) can be slow. For 100 players, refitting the GP can take up to 25 minutes per iteration. Consequently, this method is best suited for scenarios where the value function evaluation itself takes a significant amount of time (minutes to hours).

Additionally, the current implementation assumes "quasi-noiseless" GPs. While it performed well on real-world data, explicitly modeling noise in the value function (e.g., stochasticity in model training) remains a promising avenue for future research. Finally, the authors note that their framework could potentially be extended to other game-theoretic concepts, such as Shapley interactions, opening the door for even richer adaptive attribution methods.

Summary updated

BibTeX
@inproceedings{rundel2026texttt,
  author = {David Rundel and Fabian Fumagalli and Maximilian Muschalik and Bernd Bischl and Matthias Feurer},
  title = {{$\textbackslash\{\}texttt\{ShaplEIG\}$: Bayesian Experimental Design for Shapley Value Estimation}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=ub9PwBtHqD},
}
Figure