qshap: Fast Shapley Decomposition of $R^2$ for Gradient-Boosted Trees

📅 2026-08-25
📈 Citations: 0
✨ Influential: 0
📄 PDF
🤖 AI Summary
本文提出qshap,一种快速分解梯度提升树模型中R²值的方法,以量化特征对模型性能的具体贡献。
📝 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. 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.
Problem

Research questions and friction points this paper is trying to address.

Shapley Decomposition
R^2
Gradient-Boosted Trees
Feature Contributions
Model Performance
Innovation

Methods, ideas, or system contributions that make the work stand out.

Shapley decomposition
R^2
gradient-boosted decision trees
feature contributions
efficient C++ backends