Amortized Linear-time Exact Shapley Value for Product-Kernel Methods
Majid Mohammadi, Siu Lun Chau, Krikamol Muandet
NeurIPS 2026
TL;DR. computing exact Shapley values in linear time for kernel methods with product kernel
Abstract. Kernel methods are widely used in machine learning and statistics for their flexibility and expressive power, yet their black-box nature limits adoption in high-stakes applications. Shapley value--based attribution methods such as SHAP, and kernel-specific adaptations including RKHS-SHAP, provide a principled framework for explainability---but exact computation of Shapley values is generally intractable, forcing existing approaches to rely on approximations that incur unavoidable estimation error. We introduce PKeX-Shapley, an algorithm that exploits the multiplicative structure of product kernels to compute exact Shapley values for all features in quadratic time in . The method rests on a distribution-free removal operator intrinsic to the product-kernel structure: removing a feature replaces its kernel factor with the multiplicative identity. This yields a parameter-free value function---requiring no sampling and no density estimation---and uniquely determines a functional decomposition of the model\rev{, from which the exact Shapley value can be computed}. Building on this value function, we develop shared recursive formulations that evaluate all feature attributions jointly, achieving amortized linear time per feature with numerical stability. Beyond predictive modeling, the framework extends to widely used kernel-based discrepancies such as the Maximum Mean Discrepancy (MMD) and the Hilbert--Schmidt Independence Criterion (HSIC), providing new tools for interpretable statistical analysis.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:49 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
The paper introduces an algorithm to compute exact Shapley values in the special case of product-kernel methods, in quadratic time (or amortized linear time for all features).
All reviewers found this to be an interesting contribution, given that there are not many cases in which exact computation of Shapley value is doable and the paper identifies one such case. The paper is clearly written, including theoretical and some empirical analysis, and the algorithm may find value in practice.
However, the reviewers also identified some shortcomings that may be critical in the final decision. I encourage the authors to carefully answer all the reviewers questions, yet I list below what I see as the most important points raised:
- limitation of the scope of the results: all reviewers point to the fact that the results are only for the neutral-factor removal function, and that it is not clear whether (or when) this is a relevant choice as it is not the classical one. The paper is also limited to product kernels. The paper is missing a convincing argumentation that these limitations do not reduce the paper's scope beyond reasonable.
- complexity: the complexity discussion is missing at least 2 points: (i) inclusion of the complexity of MMD/HSIC extensions and (ii) evaluation of the memory cost in practice.
- limited empirical evaluation: (related to the first point) it would significantly strengthen the paper if the empirical evaluation could be developed, in particular by (i) supporting the discussion on the choice of the neutral factor removal function and (ii) extending the experiments to real data sets with ground truth attribution.
UPDATE POST-REBUTTAL
The authors response have successfully addressed all the reviewers questions, in particular the ones I had highlighted above. In particular the justification of the neutral factor removal function, the additional empirical evaluation, and the discussion of the scope of the results really strengthen the contribution.
As a results, all reviewers increased their score and support acceptance; and I am happy to recommend acceptance.
One reviewer insists that the question about normalization and its impact on the attribution is really important (even though I had not initially highlighted it) and should be discussed in the camera-ready version of the paper so I ask the authors to do so.
Final justification
See meta-review
- Final justification
- See meta-review
Read meta-review
Meta-review
The paper introduces an algorithm to compute exact Shapley values in the special case of product-kernel methods, in quadratic time (or amortized linear time for all features).
All reviewers found this to be an interesting contribution, given that there are not many cases in which exact computation of Shapley value is doable and the paper identifies one such case. The paper is clearly written, including theoretical and some empirical analysis, and the algorithm may find value in practice.
However, the reviewers also identified some shortcomings that may be critical in the final decision. I encourage the authors to carefully answer all the reviewers questions, yet I list below what I see as the most important points raised:
- limitation of the scope of the results: all reviewers point to the fact that the results are only for the neutral-factor removal function, and that it is not clear whether (or when) this is a relevant choice as it is not the classical one. The paper is also limited to product kernels. The paper is missing a convincing argumentation that these limitations do not reduce the paper's scope beyond reasonable.
- complexity: the complexity discussion is missing at least 2 points: (i) inclusion of the complexity of MMD/HSIC extensions and (ii) evaluation of the memory cost in practice.
- limited empirical evaluation: (related to the first point) it would significantly strengthen the paper if the empirical evaluation could be developed, in particular by (i) supporting the discussion on the choice of the neutral factor removal function and (ii) extending the experiments to real data sets with ground truth attribution.
UPDATE POST-REBUTTAL
The authors response have successfully addressed all the reviewers questions, in particular the ones I had highlighted above. In particular the justification of the neutral factor removal function, the additional empirical evaluation, and the discussion of the scope of the results really strengthen the contribution.
As a results, all reviewers increased their score and support acceptance; and I am happy to recommend acceptance.
One reviewer insists that the question about normalization and its impact on the attribution is really important (even though I had not initially highlighted it) and should be discussed in the camera-ready version of the paper so I ask the authors to do so.
1 comment
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes PKeX-Shapley, an exact Shapley attribution method for product-kernel models. The method defines feature removal by replacing the corresponding kernel factor with the multiplicative identity, i.e., one, and then computes Shapley values for the functional-decomposition value function induced by this removal operation. By exploiting the multiplicative product-kernel structure and elementary symmetric polynomial recurrences, the method computes all feature attributions for observations in time. The paper also extends the same idea to kernel-based statistical quantities, in particular MMD for distribution discrepancy and HSIC for dependence analysis. The experiments compare the exact computation with sampling-based approximations and include applications to synthetic feature recovery, MMD attribution, and HSIC-based feature selection.
Strengths and weaknesses
Strengths
-
Natural product-kernel value function. The paper identifies a natural model-specific removal operation for product-kernel methods: replacing absent kernel factors by the multiplicative identity. This gives a clean value function for product-kernel models that does not require sampling, density estimation, or background distributions. The resulting functional-decomposition view is a reasonable way to explain this particular class of models.
-
Useful exact computation. The main algorithmic contribution is useful. The marginal contribution of feature factorizes into a feature-specific term and an elementary symmetric polynomial over the remaining kernel factors. The prefix-suffix dynamic programming construction gives an explicit way to compute all feature attributions exactly in time, which is much better than the naive computation.
-
Extensions beyond prediction. The extensions to MMD and HSIC are a nice aspect of the paper. They show that the product-kernel Shapley idea can be used not only for predictive model explanation, but also for decomposing distribution discrepancy and dependence measures across variables. This broadens the potential use of the method.
Weaknesses
-
Scope of the exactness claim. PKeX-Shapley exactly computes Shapley values for the value function induced by neutral-factor removal, not for standard interventional or observational SHAP value functions. This is a valid model-specific attribution target, but the paper should make this scope very explicit throughout. The practical interpretation of replacing a feature's kernel factor by one can differ substantially from conditional or interventional feature removal, especially under correlated features.
-
Specialized product-kernel setting. The method relies heavily on multiplicative kernel factorization. This includes important kernels such as RBF kernels, but excludes many kernels or representation-learning models with more flexible feature interactions. The paper would benefit from a clearer discussion of how common and practically sufficient this product-kernel assumption is in modern kernel learning pipelines.
-
Scaling and memory for MMD/HSIC. Although is favorable compared with , the prefix-suffix tables store vector-valued quantities, so memory can become large when both and are large. The MMD and HSIC extensions are potentially more demanding because they involve pairwise samples or kernel matrices. The main text should state the precise time and memory complexity of these extensions more explicitly.
-
Empirical evidence is suggestive but limited. The experiments show that exact computation avoids sampling error and can help in several synthetic or kernel-statistical tasks. However, several experiments compare exact PKeX-Shapley against approximations to the same value function, which mainly demonstrates estimator error rather than broader explanatory usefulness. More direct evidence about when the neutral-factor value function gives better or more faithful explanations than standard alternatives would strengthen the paper.
Questions
-
At what level should PKeX-Shapley be compared with TreeSHAP? If they are not directly comparable, what is the precise reason? If they are comparable algorithmically, can you provide runtime, memory, and numerical-stability experiments on the same product-kernel value function?
-
What part of the ESP prefix-suffix algorithm is algorithmically distinct from existing exact methods for multiplicative value functions?
-
How should users interpret PKeX-Shapley under correlated features, where neutral-factor removal differs from conditional SHAP?
-
What are the exact time and memory complexities of the MMD and HSIC extensions, including the cost of pairwise kernel matrices?
-
How sensitive are the attributions to kernel hyperparameters such as bandwidths or ARD length scales?
Limitations
yes
Final justification
The rebuttal addressed my practical scalability concerns through a concrete time and memory analysis, an exact blockwise implementation, and additional real-world experiments. The authors also clarified the scope and interpretation of the proposed value function. However, the method remains specialized to product kernels and this particular attribution target, and its broader explanatory utility remains less fully established. Considering the technical soundness of the work, the rebuttal, and the assessments of the other reviewers and AC, I believe the strengths now slightly outweigh the remaining limitations, and I therefore increase the rating from 3 to 4.
Formatting concerns
none
3 comments
Rebuttal
We thank the reviewer for their thoughtful and constructive feedback. Due to the character limit, we refer to responses to Reviewer fyfe for time/memory complexity of HSIC/MMD, and to Reviewer pd8U for additional experiments.
1. Scope of exactness
We thank the reviewer for the comment. We will provide more context on the limitation of the value function in the Introduction, so that this will be even clearer to the readers. We also add a discussion to the Limitation paragraph in Section 6.
2. Memory Complexity
We thank the reviewers for raising this important point. We agree that, in addition to computational complexity, the memory complexity of PKeX-Shapley should also be discussed. Upon further investigation, we realised that the reported memory requirement is not intrinsic to the algorithm.
The ESP recursions are computed independently across kernel centres: the contribution associated with each kernel centre depends only on its d kernel factors and does not interact with the ESP quantities of other centres (see, e.g., Equation (3)). This observation allows the active kernel centres to be partitioned into blocks of size . For each block, we compute the corresponding prefix–suffix ESP quantities, contract them with the associated model coefficients, and accumulate the resulting d-dimensional partial Shapley contribution. The intermediate quantities are then discarded before processing the next block.
This blockwise implementation remains exact and preserves the overall time complexity, since every active kernel centre is still processed exactly once. However, it reduces the auxiliary working memory from to . Furthermore, kernel predictions often depend on only a subset of the training data. For support vector machines, only the support vectors have non-zero coefficients and therefore contribute to the explanation. In practice, n can thus be replaced by the number of support vectors, which is frequently much smaller than the full training set.
To evaluate the practical impact of this optimisation, we implemented the blockwise algorithm and benchmarked it on real-world datasets. For each dataset, we trained an RBF-SVR using at most 4,000 training instances and compared the original fully materialized implementation against the exact blockwise implementation with block size B=256. We report the mean per-instance explanation time and peak memory usage over 30 explanation calls, measuring only the explanation routine and excluding model training and other wrapper overhead.
As shown in Table blow, the blockwise implementation produces identical Shapley values while reducing peak memory consumption by up to 8.9\times. The largest savings occur for models with many support vectors and high-dimensional feature spaces, where the original implementation stores the largest number of intermediate ESP quantities. The reduction in memory comes at the cost of a modest increase in runtime, as the kernel factors must be processed sequentially across multiple blocks. When the number of support vectors is already small, the memory savings are naturally less pronounced, and the runtime overhead is correspondingly minimal.
| Dataset | SV | PKeX-Shapley Time (ms) | PKeX-Shapley Mem. (MB) | PKeX-Shapley () Time (ms) | PKeX-Shapley () Mem. (MB) | Mem. reduction | ||
|---|---|---|---|---|---|---|---|---|
| UCI Superconductivity | 21,263 | 81 | 2,440 | 74.21 | 207.31 | 164.88 | 23.19 | |
| SkillCraft | 3,337 | 19 | 1,761 | 4.83 | 10.29 | 8.69 | 1.73 | |
| Pol | 14,999 | 26 | 1,413 | 7.74 | 14.35 | 12.59 | 2.85 | |
| Bike Sharing | 17,378 | 17 | 1,063 | 3.27 | 5.14 | 8.22 | 1.35 | |
| KEGG Undirected | 15,901 | 27 | 247 | 3.90 | 2.69 | 4.02 | 2.69 | |
| Parkinson | 5,874 | 20 | 1,512 | 4.67 | 9.66 | 8.37 | 1.84 | |
| SML | 4,136 | 26 | 512 | 4.89 | 5.21 | 5.58 | 2.66 |
We further refer to the response to Reviewer fyfe for the time and memory complexity of HSIC.
3. Comparison with treeSHAP
TreeSHAP and PKeX-Shapley both exploit a multiplicative value-function structure, but they target different games. TreeSHAP's multiplicative structure is over the nodes along a tree's root-to-leaf paths and explains a tree ensemble; our product kernel factorizes directly over the dd d input features and explains a product-kernel model. They are therefore not comparable as attribution targets, only at the level of the algorithmic technique (using elementary-symmetric-polynomial recursions or interpolation to avoid enumeration).
4. What part of ESP is algorithmically distinct
The main algorithmic novelty is the ESP formulation in Eq. (3), together with the coupled prefix and weighted-suffix recursions in Propositions 4–5. These recursions reuse intermediate quantities across features and compute all Shapley values jointly in , instead of independently repeating the single-feature computation. Related multiplicative value functions, including those underlying Linear TreeSHAP, are handled using polynomial interpolation and division.
5. PKeX-Shapley under correlated features
Under correlated features, PKeX-Shapley should be interpreted as a model-based rather than dependence-aware attribution. Neutral-factor removal measures the direct functional contribution of each kernel factor while leaving the remaining factors unchanged; it does not use the joint feature distribution. Therefore, if correlated features both enter the model, they receive credit according to their respective functional contributions, but a feature is not credited merely because it is correlated with another feature used by the model.
This distinction reflects the “indirect influence” debate discussed by Gevaert and Saeys in Section 5.3. In their controlled Gaussian example in Section 5.3.1, conditional SHAP assigns nonzero importance to a feature not used by the model solely because it is correlated with an influential feature. As emphasized in their framework, neither removal operator is universally correct: they answer different explanatory questions. PKeX-Shapley is appropriate for explaining the model’s internal functional dependence, whereas conditional SHAP is preferable when users wish to include dependence-mediated influence. We will make this interpretation explicit in the revised paper.
To evaluate whether feature importance is shared fairly between highly redundant variables, we extend the planted-feature experiment (see the response to Reviewer pd8U), and extend the real dataset by copying the two most important original features and adding a small amount of Gaussian perturbation. We consider each original feature together with its planted near-duplicate and compute the proportion of the pair’s combined absolute attribution assigned to the original feature: \frac{|\phi_{\text{original}}|} {|\phi_{\text{original}}| + |\phi_{\text{duplicate}}|}. A value of approximately 0.5 indicates that the two features receive equal attribution, as expected when they encode nearly identical information.
The following summarises the results. Across all datasets, PKeX-Shapley produces original-feature shares ranging from 0.473 to 0.627, remaining consistently close to the ideal value of 0.5. Compared with RKHS-SHAP, PKeX-Shapley yields estimates that are systematically closer to an equal attribution split, outperforming RKHS-SHAP on every dataset. These results indicate that the proposed value function distributes attribution more symmetrically among highly redundant features.
| Dataset | Original-feature share | RKHS-SHAP |
|---|---|---|
| UCI Superconductivity | ||
| SkillCraft | ||
| Pol | ||
| Bike Sharing | ||
| KEGG Undirected | ||
| Parkinson | ||
| SML |
6. Sensitivity to ARD
PKeX-Shapley is a post-hoc explanation method applied after model training. Kernel hyperparameters, including bandwidths and ARD length scales, are learned or selected during training and remain fixed during attribution; PKeX-Shapley introduces no additional hyperparameters. Naturally, retraining the model with different kernel parameters may change the attributions because it changes the underlying predictive model, but this sensitivity belongs to the model-training stage rather than the explanation algorithm.
I thank authors for the detailed response. The authors substantially addressed my main concerns by providing a concrete analysis and blockwise solution for the memory-complexity issue, and presenting additional real-world experiments. These additions have improved my overall assessment of the work, and I am therefore raising my rating from 3 to 4.
gratitude
We sincerely thank the reviewer for the follow-up and for acknowledging that our response and additional experiments substantially address the main concerns. We greatly appreciate the reviewer’s reconsideration and revised assessment.
We noticed that the numerical rating displayed in the official review still appears to be 3, although the comment states that it is being raised to 4. We would be grateful if it could be updated accordingly so that the reviewer’s intended assessment is reflected in the official review.
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper introduces an algorithm for the exact computation of Shapley values in product-kernel models, based on the specific removal operator of replacing each absent feature's kernel factor with the multiplicative identity i.e. . This choice yields a parameter-free value function and reduces the cost of computing all attributions from exponential to quadratic, , via a recursive formulation built on Newton's identities for elementary symmetric polynomials and a prefix–suffix construction that shares intermediate quantities across features. The authors further extend the approach to kernel-based statistical discrepancies such as MMD and HSIC, demonstrating its utility beyond predictive models. The theoretical analysis is solid, but the practical experimentation is comparatively weak.
Strengths and weaknesses
Dear Authors, Thank you for this meaningful submission. The following are the strengths and weaknesses in my assessment. I hope this helps in further strengthening the work.
Strengths
-
Writing quality: The paper is clearly written and easy to follow. The argument builds naturally from the value function to the single-feature recursion and then to the joint computation, so the results feel well motivated. The authors are also honest about the limitation to product kernels and present it as a necessary trade-off for tractability.
-
Technical soundness: The technical development is convincing. The paper connects product kernels, elementary symmetric polynomials, the prefix-suffix construction, and the final time and memory complexity in a coherent way. The assumptions, especially the product-kernel structure and fixed coefficients , are stated clearly, and the main results are supported by full proofs in Appendix C.
-
Numerical stability: The numerical-stability analysis in Appendix D is a strong point. The comparison shows that interpolation-based methods such as Chebyshev and FFT become badly ill-conditioned around to , while the proposed recursion keeps errors around to even up to . This gives concrete evidence that the dynamic-programming approach is the more reliable option at scale.
-
Broader applicability: The extension to kernel-based discrepancy measures is useful. Applying the PKeX-Shapley framework to MMD and HSIC takes exact attribution beyond predictive models and makes the approach relevant to two-sample testing and dependence analysis as well.
-
Practical utility: The method should be useful for kernel-based predictive models. Since the value function is parameter-free and does not require sampling or a background distribution, it avoids a major source of variance and tuning in many attribution pipelines.
Weaknesses
-
Limited evaluation: The main predictive-explanation results are entirely synthetic. The only real-world experiments appear in Appendix E and focus on MMD and HSIC. More real datasets, especially ones with known ground-truth attributions, would make the results more convincing.
-
Single removal operator: The paper only considers one removal operator, where the kernel factor for an absent feature is replaced by . For bounded kernels such as the RBF, this treats a missing feature as maximally similar to every training point along that feature rather than as uncertain, which is not the usual notion of absence used in marginal or conditional baselines. The paper shows that this gives a consistent decomposition, but it does not explain why these are the attributions a practitioner should want. This needs more motivation and discussion in the main text.
-
Memory cost: The method has memory use, matching its time complexity. This could be a practical bottleneck when both and are large, but the main text does not emphasize it. Quantifying this cost with practical memory usage metrics would help readers decide when the proposed method is worth using.
Minor Issues
- The first author of "Linear TreeShap" is missing.
- Line 202: "Time and Memory Complexity" repeated
Questions
Most of the issues with this paper stem from the weak empirical evaluation. If the authors address the following questions, I am happy to revise the score upward.
- Can the authors provide results comparing the method on real-world datasets with a large number of features, such as UCI Superconductivity and one or more similar datasets?
- Can the authors provide peak memory-usage comparisons on those real-world datasets, for all baselines mentioned in the paper that are applicable to the datasets?
- Can the authors add a discussion paragraph on the choice of the removal operator? This could live in the appendix, with a brief summarizing mention in the main text if there isn't enough space.
Limitations
Please address the memory usage limitation.
Final justification
The additional memory and runtime metrics along with the additional empirical evaluation proided by the authors increases my confidence in the novelty of the paper.
Formatting concerns
None
3 comments
Rebuttal
We thank the reviewer for their thoughtful and constructive feedback. Due to the character limit, we focus our response on the additional experiments we will include. We refer the reviewer to our response to Reviewer Fyfe for the discussion of the neutral factor and to our response to Reviewer h1iP for the memory-complexity analysis and blockwise implementation of PKeX-Shapley, as well as experiments measuring peak memory consumption.
Additional Experiments
Regarding the experiments, we aim to strengthen the current numerical demonstration on real datasets for predictive explanation as follows:
A) Agreement with interventional RKHS-SHAP
Real-world datasets do not provide ground-truth Shapley values, as this would require complete knowledge of the joint data-generating distribution. Consequently, unlike our synthetic experiments, it is impossible to quantitatively assess attribution accuracy on real data. Instead, we first perform an agreement analysis between PKeX-Shapley and the RKHS-specific explainable method, RKHS-SHAP.
The purpose of this experiment is not to regard the conventional interventional value function underlying RKHS-SHAP as the ground truth, nor to argue that higher agreement implies a better explanation method. The two methods are derived from fundamentally different value functions and are designed to capture different notions of feature contribution. Accordingly, some disagreement is both expected and theoretically justified.
Rather, this experiment serves as a practical robustness check. Since RKHS-SHAP has a model-specific interventional value function for kernel methods, we wish to verify that replacing such a value function with our proposed neutral-factor value function does not fundamentally alter the resulting feature importance ranking. In other words, we ask whether the proposed value function provides explanations that remain broadly consistent with existing practice, rather than producing qualitatively different conclusions.
For each dataset, we trained an RBF-SVR and explained 25 held-out observations using both methods. RKHS-SHAP used 1,000 coalition samples. Features were ranked according to their Shapley values, and for each method we selected the top-k% most important features. We then computed the proportion of features appearing in both sets. The experiment was repeated over 10 random runs by varying both the explained observations and the RKHS-SHAP background set.
| Dataset | Top- | Top- | |
|---|---|---|---|
| UCI Superconductivity | 81 | ||
| SkillCraft | 19 | ||
| Pol | 26 | ||
| Bike Sharing | 17 | ||
| KEGG Undirected | 27 | ||
| Parkinson | 20 | ||
| SML | 26 | ||
| Overall (mean) | -- |
Although PKeX-Shapley and RKHS-SHAP optimize different value functions, they identify substantially overlapping sets of important features across all seven datasets. On average, the overlap is 0.67 for the top 20% of features and 0.80 for the top 30%.
We stress that these results should not be interpreted as validating one value function against the other. Instead, they demonstrate that adopting the proposed neutral-factor value function does not lead to dramatically different feature importance rankings from those obtained using the conventional interventional value function. This provides reassurance that the practical conclusions drawn by our method remain largely aligned with existing practice while benefiting from the computational advantages of PKeX-Shapley. The synthetic experiments remain the appropriate benchmark for quantitative evaluation, as only there are the truly relevant features known.
b) Runtime and memory on larger real datasets
Following the reviewer’s suggestion, we evaluated exact blockwise PKeX-Shapley on several real-world datasets (see the response to Reviewer h1iP for the blockwise implementation with a budget B), including UCI Superconductivity, and compared it with RKHS-SHAP on the same fitted models and held-out observations. RKHS-SHAP used 100 background observations and a budget of 500 coalition samples. To isolate explanation time/memory costs, we measured only the explanation call, excluding model training, explainer setup, and other wrapper operations. Runtime was averaged over 30 test observations, while memory denotes the peak Python-level allocation traced during one explanation call. Despite computing exact Shapley values rather than a sampled approximation, PKeX-Shapley was (46\times)–(303\times) faster and used (2.8\times)–(10.5\times) less peak memory. In the revised paper, we will include the complete results and extend the evaluation to additional baselines and coalition-sampling budgets.
| Dataset | PKeX-Shapley () Time (ms) | PKeX-Shapley () Mem. (MB) | RKHS-SHAP Time (ms) | RKHS-SHAP Mem. (MB) | Speedup |
|---|---|---|---|---|---|
| Superconductivity | |||||
| SkillCraft | |||||
| Pol | |||||
| Bike Sharing | |||||
| KEGG Undirected | |||||
| Parkinson | |||||
| SML |
c) Planted-feature experiment
To further evaluate the practical behaviour of PKeX-Shapley, we conduct a planted-feature experiment on several real-world regression datasets. Following a common feature-attribution sanity-check protocol, we augment each dataset with five null features, generated independently from a standard Gaussian distribution and therefore statistically unrelated to the prediction target.
A well-generalizing explanation method should assign negligible importance to the null features, since they contain no predictive information. For each dataset, we train an RBF-SVR on the augmented data and compute PKeX-Shapley values for 30 held-out test instances.
To assess whether irrelevant features are correctly ignored, we compute the ratio between the mean absolute attribution assigned to the planted null features and that assigned to the original (non-null) features: .
Smaller values indicate better suppression of irrelevant features. A ratio close to zero means that the null features receive negligible attribution, whereas a ratio close to one (or larger) indicates that they are treated similarly to genuine predictive features.
The following table reports the results. Across the datasets, PKeX-Shapley consistently assigns substantially lower importance to the planted null features. Its performance is competitive with RKHS-SHAP, outperforming it on several datasets while remaining comparable on the remainder. These results suggest that the proposed neutral-factor value function does not spuriously attribute importance to irrelevant variables.
Null-feature attribution. Lower null/real ratios indicate stronger suppression.
| Dataset | Null/real | RKHS-SHAP |
|---|---|---|
| UCI Superconductivity | ||
| SkillCraft | ||
| Pol | ||
| Bike Sharing | ||
| KEGG Undirected | ||
| Parkinson | ||
| SML |
response
We thank the reviewer again for the constructive suggestions. In response, we have added the requested real-world predictive-model experiments, including UCI Superconductivity, together with attribution-agreement, runtime, peak-memory usage, planted-null-feature, and near-duplicate analyses. We would be grateful if the reviewer could let us know whether these additions adequately address the main empirical concerns identified in the review. If any questions or concerns remain, we would be very happy to provide further clarification.
I thank the authors for their detailed response and continued engagement. The additional experiments address my primary concern regarding empirical validation, and the reported memory and runtime improvements over existing estimators substantiate the paper's efficiency claims. I have raised my score from 4 to 5.
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper introduces an algorithm ("PKeX-Shapley") to compute exact Shapley values for kernel expansions on product kernels in time, for all d features on a single explained instance. The algorithm utilizes overlap between per-feature computations to compute the Shapley values for all features at once in amortized linear time. The authors also apply the same approach to the Maximum Mean Discrepancy (MMD) and Hilbert-Schmidt Independence Criterion (HSIC). Synthetic experiments are provided comparing the introduced method to existing approximation-based algorithms, and demonstrating the utility of the method for feature attribution in the MMD setting. Real-data experiments are also provided, including a case study of feature selection based on HSIC feature attribution.
Strengths and weaknesses
The main claims are supported by both theoretical analysis and appropriate experiments and demonstrations. The authors present the main limitations of their work clearly and honestly. The submission is clear and well organized. The proposed algorithm is likely to be used by practitioners and built upon.
The restriction to product kernels limits the scope of applicability, which is acknowledged by the authors. A fixed product kernel may admit multiple factorizations (e.g. trivially via rescaling), and attributions may be sensitive to the choice of factorization. The neutral-factor removal operator is algebraically convenient, but may not always be a suitable choice, especially in light of this. The submission may also benefit from contextualizing the limitations slightly more, particularly with respect to the restriction to product kernels, and the limitations on the supported value functions. The computational complexity of the MMD and HSIC application is under-discussed.
Questions
- Are the methods in Figure 3 estimating comparable attribution targets, or are they evaluating different value functions?
- Why is the neutral-factor removal the right choice beyond algebraic convenience? Are the resulting attributions sensitive to normalization of the product kernel's factors? In particular, can two equivalent product kernels yield different attributions because their factorization differs, such as via factoring of into (for ), or is normalization assumed or recommended?
- The presentation in the paper appears to limit the proposed algorithm to product kernels where the product is over univariate kernels, and on real-valued features. By my reading, this does not appear to be a requirement of the algorithm. Q: Is the algorithm applicable for general product kernels or only the products of univariate real-valued kernels?
- What are the time and memory complexities of the MMD and HSIC variants? This is not explicitly stated in the main text.
- Figure 4 shows the average execution time of different methods. Execution time can be highly sensitive to the implementation of each algorithm. This is particularly important for sampling-based algorithms, which tend to admit natural optimizations such as vectorization. Are the baselines using reimplementations? What optimizations, if any, were used for the baseline implementations?
Limitations
Overall, limitations have been adequately addressed. While not strictly necessary for acceptance, the paper would benefit from further contextualizing the work and clarifying the restriction of the value functions that can be treated with the proposed algorithm.
Suggestions:
- It may be beneficial for the reader if the restriction to product kernels is placed in slightly more context. For instance, it may be worth listing instances of supported and unsupported kernels commonly used in the MMD setting. By way of example, it appears that the method may be applicable to the embedding (latent coordinates) of some deep kernels (cf. e.g. [1]), though not directly to the underlying features.
- The proposed method is limited to the neutral-factor removal value function. This excludes several common Shapley-value formulations, including conditional/interventional SHAP, retraining-based games, and performance-attribution games such as Shapley Value Regression [2], which attribute model fit or predictive performance across features rather than decomposing a fixed product-kernel expansion. It may be beneficial to briefly mention common value functions that are outside the scope of the proposed algorithm.
- The choice of the removal operator is contrasted to other value functions in section 2. It may be beneficial to include a brief note regarding the exclusion of these other value functions in the limitations section, to more clearly place the work in context in that regard.
[1]: Liu, F., Xu, W., Lu, J., Zhang, G., Gretton, A. & Sutherland, D.J.. (2020). Learning Deep Kernels for Non-Parametric Two-Sample Tests. <i>Proceedings of the 37th International Conference on Machine Learning</i>, in <i>Proceedings of Machine Learning Research</i> 119:6316-6326 Available from https://proceedings.mlr.press/v119/liu20m.html.
[2]: Lipovetsky, S. (2021). Game theory in regression modeling: A brief review on Shapley Value regression. Model Assisted Statistics and Applications, 16, 165 - 168.
Final justification
All questions have substantially been addressed by the authors. The authors agree to provide further context and clarification in various places for the camera ready.
Formatting concerns
none.
4 comments
Rebuttal
We thank the reviewer for their thoughtful and constructive feedback, which has helped us clarify and strengthen the manuscript. Our responses are provided below.
1. Neutral Factor of One and the Functional Null Axiom
Thank you for raising this question. Beyond algebraic convenience, the neutral factor of one can also be justified from a functional perspective. In particular, it is consistent with the Functional Null axiom introduced by Gevaert and Saeys (Section 5.3.1, Definition 10), which requires zero attribution for a feature on which the model does not functionally depend.
Accordingly, in the canonical product representation, a structurally inactive feature should have a factor that is identically equal to one:
Removing such a factor is a no-op because one is the multiplicative identity. Consequently, the coalition value remains unchanged when the inactive feature is added or removed, guaranteeing zero marginal contribution:
Replacing an absent factor by a constant different from one defines another formally possible removal operator, but it does not satisfy the Functional Null axiom. In particular, replacing the factor of an inactive feature by a constant changes the coalition value and can assign nonzero importance to a feature that the model functionally ignores.
The following controlled null-feature experiment illustrates this behavior:
| Replacement constant | Attribution of the null feature |
|---|---|
Only the multiplicative identity guarantees zero attribution for the null feature.
In the camera-ready version, we will clarify this functional justification, the recommended scaling convention, and the factorization-relative scope of the resulting explanations.
2. General Product Kernels versus Univariate Product Kernels
The algorithm is indeed not restricted to univariate, real-valued features. It applies to any kernel that can be decomposed into multiplicative factors. Each factor may represent a single feature, a group of features, or structured data such as categorical variables or sequences. The resulting Shapley values explain the factors: if each factor corresponds to one feature, we obtain feature-level attributions; if a factor covers several features, we obtain group-level attributions. We explain this after the definition of product games.
3. Time and Memory Complexity of HSIC and MMD
We thank the reviewers for this point. We add the time and memory complexity for HSIC and MMD in the revised version.
HSIC. Each feature contributes an kernel matrix rather than the length-n vector used in predictive models. The ESP recursion is applied independently to all (n^2) matrix entries, giving time for all feature attributions. A fully materialized implementation also requires memory for the prefix–suffix ESP tables.
MMD. Assuming that each distribution contains (n) samples, the within-distribution and cross-distribution terms together involve sample pairs. Applying the ESP recursion independently to these pairs therefore requires time for all feature attributions. If all pairwise prefix–suffix quantities are materialized simultaneously, the auxiliary memory complexity is also .
Blockwise implementation. For both MMD and HSIC, the ESP recursion is independent across sample pairs. We can therefore process (B) pairs at a time, compute their prefix–suffix ESP quantities, weight them by the corresponding MMD or HSIC coefficients, and accumulate the resulting contributions into the final (d)-dimensional Shapley vector (we dicsuss the memory complexity of PKeX-Shapley and how we can use blockwise computation in response to Reviewer h1iP in great detail, with some empirical studies). The intermediate quantities are discarded before processing the next block. This computation remains exact and retains the time complexity, while reducing the memory complexity of PKeX-Shapley from to .
4. Supported Product and Non-Product Kernels
Thanks for the suggestion. Appendix A already presents several product-kernel families. Supported examples include Gaussian kernels with isotropic or feature-specific lengthscales, Laplace ًRBF kernels, Cauchy kernel, ANOVA kernel, and coordinate-wise product versions of any base kernel. Kernels that couple features through a non-separable operation, such as standard polynomial kernels, inverse-multiquadric kernels, full-covariance Gaussian kernels, and standard Matérn kernels, are not directly supported. We will discuss this in the revised version of the paper.
PKeX-Shapley may also be applied to suitable deep kernels, such as a Gaussian kernel evaluated on learned latent representations, by treating the latent coordinates as the explanatory variables. Such explanations describe the learned representation rather than the original input features. We will clarify this distinction and note that deep kernels containing non-separable mixtures, including the full construction in [1], are not directly supported at the latent-coordinate level.
5. Other Value Functions
We have discussed the value functions briefly in lines 110-120. With an extra page, we elaborate further on these two popular value functions and properly discuss other possibilities. We further provide more context on the limitation of the proposed method to the defined value functions in Section 6 (Conclusion, Limitation, and Discussion), mentioning that the recursions work with the given value function, and not with marginal or conditional value functions.
6. Clarification on Experiments
Figure 3. PKeX-Shapley uses the neutral-factor removal value function, whereas RKHS-SHAP, GEMFIX, BiSHAP, and Sampling SHAP use their standard interventional value functions, estimated using a common background set of 100 observations. Therefore, the methods are not estimating numerically identical Shapley targets. Figure 3 instead provides an end-to-end feature-recovery comparison: all methods explain the same predictive model and are evaluated using the same external ground truth; the recovery rate of the truly active features. We will clarify this distinction in the revision. The controlled comparison in which PKeX-Shapley and the sampling estimator use exactly the same neutral-factor value function is provided separately in Figure 2.
Figure 4. We used the publicly available implementations provided by the respective authors, rather than reimplementing the baseline algorithms. Sampling SHAP was run using the official SHAP implementation. We retained the optimizations present in those implementations, including their native vectorization, and did not deliberately restrict or de-vectorize any baseline. All methods were evaluated on the same model, test instances, hardware, and fixed background set of 100 observations. For the sampling-based methods, we used coalition budgets of 500 and 1,000, as reported in the figure, and timed the attribution stage consistently across methods.
factorization
7. Factorization of product kernels
On factorization, the reviewer is right that this can matter: two factorizations of the same kernel can yield different attributions, so we state our convention explicitly. We assume the multiplicative decomposition is specified by the trained model (the individual factors define how each feature enters the product kernel, as in coordinate-wise product kernels and RBF or ANOVA-type product kernels) and PKeX-Shapley explains this specified factorization. The rescaling the reviewer describes, where one factor is multiplied by a constant and another divided by the same constant, is not an alternative reading of a single specification but a reassignment of a constant between factors; since such a constant does not depend on the feature, it represents no contribution of that feature. We therefore recommend the convention that any constant scale be absorbed into the model coefficients rather than into a kernel factor. This fixes the factorization uniquely and leaves the predictions unchanged, and because it amounts only to an elementwise rescaling it does not modify the ESP recursions or the asymptotic time and memory complexity of PKeX-Shapley.
We will add this axiomatic justification and state the factorization convention explicitly in the revised version.
I thank the authors for the detailed responses.
My questions have substantially been addressed by the authors. The authors agree to provide further context and clarification in various places for the camera ready.
While not highlighted in the meta review, in my view the question about normalization and its impact on the attribution should be clarified in the paper. The authors have agreed to do so and this satisfies my concern in this regard.
With that in mind, and having taken account of the other reviewer’s comments, questions, the author’s responses and the meta review, I continue to recommend acceptance and my rating remains at 5.
react
We sincerely thank the reviewer for the careful follow-up and continued support. We will ensure that the normalization convention and its effect on the attributions are clearly explained in the revised paper.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
response
Dear Area Chair,
Thank you for handling our submission. Now that our responses have been posted, we briefly summarize the main points. The reviews do not identify an error in our theoretical results; the main concerns are empirical validation, scope, and presentation. Reviewer fyfe recommends acceptance (5), while Reviewer pd8U (4) stated that they would be “happy to revise the score upward” if the empirical concerns were addressed. Reviewer h1iP (3) primarily raised questions regarding scope, interpretation, and presentation.
Our responses address three recurring themes:
1. Comments on justification and scope of the value function. Our value function is a removal-based value function in the sense of Gevaert and Saeys [2024]. This is a broad class: as they show, an extensive range of existing attribution methods are removal-based, including both interventional and conditional SHAP, which differ from one another only in the removal operator used to represent an absent feature. How a feature is "removed" is therefore part of the modeling choice rather than something imposed by the Shapley framework, and Gevaert and Saeys systematically study which properties follow from which choice. To satisfy the Functional Null axiom of Gevaert and Saeys [2024] for a function with product structure, we represent an inactive factor by the multiplicative identity 1. This preserves the contribution of the retained factors and ensures that a structurally inactive factor receives neither a main-effect nor an interaction attribution.
We will clarify that the removal operator itself is not uniquely prescribed. Rather, once the product factorization and the neutral-removal interpretation are adopted, 1 is the natural identity element. Our exactness result therefore concerns this functionally motivated, model-specific value function, and not conditional or interventional SHAP.
We would also emphasize that product kernels are pervasive in kernel methods rather than a narrow special case. Product kernels, such as the popular and well-known RBF and Laplace kernels, are widely used both for predictive modeling and for statistical inference, precisely because of their universality [Szabó and Sriperumbudur, 2018]; further product families are listed in Appendix A. More broadly, there is an inherent trade-off between computational efficiency and model flexibility: exact and tractable attribution requires structural assumptions, and the product-kernel assumption is the structure we exploit. We state this explicitly in our Limitation paragraph (lines 377–378).
2. Comments on time and memory complexity. We provide explicit time and memory analyses for the predictive, MMD, and HSIC settings. For predictive models, the fully materialized implementation requires O(nd^2) working memory. However, because the ESP recursions are independent across the n active kernel centres, they can be evaluated in blocks of size B. This exact blockwise implementation retains the O(nd2) time complexity while reducing working memory to O(Bd^2), independently of n for a fixed block size. In our experiments, it produces identical (up to machine precision) Shapley values and reduces peak memory by up to 8.9×, at a modest increase in wall-clock time.
3. Comments on lack of real-world experiments. The original submission already included real-data experiments for MMD and HSIC in Appendix E2 and E3; we now extend the evaluation for predictive models, including UCI Superconductivity as requested, with a total of seven real datasets. The new experiments assess attribution agreement with RKHS-SHAP, runtime and peak memory against RKHS-SHAP, recovery of planted null features, and the treatment of near-duplicate informative features. PKeX-Shapley is 46×–303× faster and uses 2.8×–10.5× less peak memory than RKHS-SHAP in our benchmarks, while computing exact rather than approximate Shapley values, thus completely avoiding the problem of approximation error. Moreover, in the near-duplicate experiment, PKeX-Shapley divides importance between the original and duplicated features more evenly than RKHS-SHAP on every evaluated dataset.
We hope that the additional theoretical clarification, complexity analysis, and extensive empirical evidence address the reviewers’ concerns. We respectfully ask that these responses and new results be considered in the final assessment of our submission, and we would be happy to provide any further clarification.