qshap: Fast Shapley Decomposition of R² for Gradient-Boosted Trees

Zhongli Jiang, Min Zhang, Dabao Zhang
8/25/2026
stat.MLcs.LG

No confident code implementation found for this paper.

Abstract

Numerous methods have been developed to quantify feature attributions in individual predictions for tree ensembles. However, many applications require global measures of feature contributions to overall model performance.

Show full abstract

Although local attribution scores can be aggregated to characterize feature importance, such summaries do not directly decompose measures of predictive performance, such as $R^2$. This article introduces qshap, available in both R and Python, which provides Shapley decomposition of $R^2$ values for gradient-boosted decision trees (GBDTs) to quantify feature-specific contributions to model performance. By decomposing the quadratic loss of individual observations, qshap provides flexible tools to explore the importance of individual features and observations. qshap currently supports widely used GBDT implementations, including xgboost, lightgbm, and catboost, through a unified tree representation and efficient C++ backends. Its modular design can accommodate other GBDT implementations built from binary decision trees. In addition, we introduce a specialized backend for oblivious trees that exploits their symmetric structure to substantially accelerate computation.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{jiang2026qshap,
  title  = {qshap: Fast Shapley Decomposition of R² for Gradient-Boosted Trees},
  author = {Zhongli Jiang and Min Zhang and Dabao Zhang},
  year   = {2026},
  eprint = {2608.24104},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.24104v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2608.24104.svg)](https://codeofpaper.com/paper/2608.24104)

Discussion