Abstract
Machine learning often presents a trade-off between high-accuracy "black-box" models and inherently interpretable "white-box" models. Post-hoc explanation tools like SHAP attempt to bridge this gap but suffer from high computational costs and potential "oversmoothing" of complex interactions. This paper introduces InstaSHAP, a framework that unifies SHAP with Generalized Additive Models (GAMs). By training GAMs using a "purified" loss function derived from the Shapley kernel, the authors create models that provide exact feature attributions in a single forward pass. Crucially, the work establishes a functional correspondence between SHAP and GAMs, providing a practical heuristic for assessing the trustworthiness of post-hoc explanations.
Introduction: The Speed-Interpretability Trade-off
In modern machine learning, practitioners frequently choose between deep neural networks (DNNs) for performance and Generalized Additive Models (GAMs) for transparency. While tools like SHAP (SHapley Additive exPlanations) can explain black-box models, they face two significant hurdles. First, the computational cost is prohibitive; calculating Shapley values often requires thousands of model evaluations per prediction. Second, there is a representation power issue: SHAP assumes a model can be decomposed additively. In domains like computer vision, where high-order feature interactions are dominant, standard SHAP explanations may be misleadingly "oversmoothed."
InstaSHAP addresses these challenges by proving that SHAP and GAMs are functionally linked. This allows for the training of models that are interpretable by design and capable of generating "instant" explanations.
Methodology: Purified Training and Functional ANOVA
The core of InstaSHAP-GAM is a training framework that views SHAP through the lens of Functional ANOVA. The authors demonstrate that the variational approximation of SHAP (least squares) is mathematically nearly identical to the objective used to train GAMs.
To ensure that the learned functions correspond exactly to Shapley values, the authors introduce Purified Training. Standard GAMs can suffer from "leakage" where correlated features bleed into each other's additive components. InstaSHAP mitigates this using a masked training objective:
- Shapley Kernel Masking: During training, features are randomly dropped according to the Shapley kernel.
- Instant Masking Rule: An additive component (e.g., an interaction between features A and B) is only active if all constituent features are present in the current mask.
- Amortization: By using a GAM architecture, the model learns to predict its own explanations, enforcing an "interpretable bias" that makes the resulting attributions more robust than standard post-hoc approximators.
Experimental Evaluation
The authors evaluated InstaSHAP across synthetic, tabular, and computer vision datasets:
- Synthetic Benchmarks: On 10D data, InstaSHAP achieved significantly lower Mean Squared Error (MSE) in approximating true Shapley values compared to FastSHAP, benefiting from its superior inductive bias.
- Tabular Data (Bike Sharing): A standard GAM-1 (no interactions) yielded a 17.4% error. By incorporating specific interactions via InstaSHAP, the error dropped to 6.23%, nearly matching a complex Multi-Layer Perceptron (6.59%) while maintaining full interpretability.
- Computer Vision (CUB-200): Using a ResNet-50 backbone modified into GAM architectures, the authors found a massive accuracy gap (65% for CNN vs. 33% for GAM). This suggests that image-based SHAP explanations often discard 20-30% of the model's actual decision logic.
Key Insights: The Link Between Accuracy and Trust
A major contribution of this work is the "Achilles' Heel" link: the reason SHAP fails in certain scenarios is identical to why GAMs fail—unmodeled higher-order interactions.
This leads to a vital heuristic for practitioners: If a GAM cannot match the performance of a black-box model on a specific dataset, then SHAP explanations for that black-box are likely untrustworthy. In computer vision, the large accuracy gap between DNNs and GAMs indicates that SHAP explanations are frequently "oversmoothed," failing to capture the high-order logic the model truly employs.
Limitations and Future Directions
While InstaSHAP excels at low-order interactions, the number of possible interactions grows exponentially with dimensionality. Selecting which interactions to include remains a significant challenge. Furthermore, the performance gap in high-dimensional data like images persists; while InstaSHAP identifies this gap, it does not inherently resolve the difficulty of representing high-order image features in an additive format. Future work may explore "Hooker-type" purified models to further bridge these gaps.
Summary updated