Abstract Shapley-related techniques have gained attention as both global and local interpretation tools because of their desirable properties. However, their computation using conditional expectations is computationally expensive. Approximation methods suggested in the literature have limitations. This paper proposes the use of a surrogate model-based tree to compute Shapley and SHAP values based on conditional expectation. Simulation studies show that the proposed algorithm provides improvements in accuracy, unifies global Shapley and SHAP interpretation, and the thresholding method provides a way to trade-off running time and accuracy.
Introduction
In machine learning, Shapley values represent the gold standard for feature attribution, providing a mathematically grounded way to explain individual predictions. However, the exact calculation of Shapley values requires computing conditional expectations—determining the model's expected output given only a specific subset of features. This process is computationally intensive, often scaling exponentially with the number of features.
Existing approximations frequently rely on marginal distributions, assuming feature independence to simplify calculations. This assumption often fails in real-world scenarios where features are highly correlated, leading to misleading explanations. Even specialized methods like Tree SHAP suffer from a "path dependency issue," where they implicitly assume that splitting variables at each node are independent of other variables. This paper introduces a novel algorithm using Surrogate Locally Interpretable Models (SLIM) to address these limitations by properly accounting for feature dependencies within a tree-based framework.
The SLIM Methodology
The proposed approach centers on a six-step algorithm designed to approximate conditional expectations efficiently without sacrificing sensitivity to feature correlations.
1. Surrogate Tree Fitting
Rather than explaining a complex "black-box" model directly, the algorithm fits a shallow, model-based tree (SLIM) to the complex model's outputs. This surrogate serves as a simplified, interpretable proxy that captures the primary decision logic of the original model.
2. Resolving Path Dependency
A critical innovation of this method is how it calculates the probability of an instance falling into a specific terminal node (the "path probability"). Instead of assuming independence between splits, the authors build local machine learning models (such as Random Forests) at each splitting node. These models estimate the conditional probability of a split given the features already known in the subset.
3. Local Conditional Expectation and Thresholding
Within each terminal node, the surrogate fits a Generalized Additive Model (GAM) using B-splines. This allows the SLIM to capture local non-linearities and interactions that a simple constant value would overlook. To manage the computational burden of evaluating all $2^p$ possible feature subsets, the authors implement a thresholding parameter ($\gamma$). This parameter allows users to select only the most influential subsets, providing a tunable trade-off between execution speed and approximation accuracy.
Experimental Results
The researchers evaluated the Model-Based Tree (MBT) method using both simulated scenarios and a real-world case study.
Simulation Performance
In simulations involving high feature correlation ($\rho = 0.9$), the MBT method demonstrated superior accuracy. In a linear scenario, MBT achieved an error metric of 0.00020, significantly outperforming marginal approximations (0.15966) and empirical kernel estimations (0.32842). Notably, MBT correctly attributed importance to features that were not explicitly in the model but were highly correlated with included features, providing a more holistic view of the data's influence.
Bike Sharing Case Study
Applying the method to the Bike Sharing dataset (17,379 records), the MBT approach identified "hour of the day" (hr) as the most critical predictor for rental counts. This finding was consistent with traditional permutation-based importance but offered deeper insights into how features like "workingday" interact with path probabilities to influence the final prediction.
Conclusion
The SLIM-based approach provides a unified framework for both global and local model interpretation. By treating tree paths as sequences of conditional events, it resolves the path dependency issues inherent in previous tree-based explainers. While scalability to very high-dimensional datasets remains a challenge for future work, the method offers a robust and tunable solution for medium-dimensional problems where feature correlation is a primary concern.
Summary updated