qshap:面向梯度提升树的 R² 快速 Shapley 分解
qshap: Fast Shapley Decomposition of $R^2$ for Gradient-Boosted Trees
qshap 提供 R 与 Python 版本,可对梯度提升决策树(GBDT)的 R² 做 Shapley 分解,量化单个特征对模型性能的贡献。该工具通过分解单条观测的二次损失,支持 xgboost、lightgbm 和 catboost,并采用统一树表示与高效 C++ 后端。
arXiv:2608.24104v2 Announce Type: replace-cross 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.
来源:arXiv (AI + Vision + Imaging) · arxiv.org