arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2302.08434cs.LGcs.GT
收藏

关于树模型的边际特征归因

On marginal feature attributions of tree-based models

Discover Financial Services Inc.(发现金融服务公司);Emerging Capabilities Research Group(新兴能力研究集团)

Khashayar Filom, Alexey Miroshnikov, Konstandinos Kotsiopoulos, Arjun Ravi Kannan

AI总结:

本文研究树模型的边际特征归因,证明其实现不变性并利用分段常值结构、稀疏特征及CatBoost对称树降低计算复杂度。

摘要:

由于强大且易用,随机森林和梯度提升树集成等基于树的机器学习模型已非常流行。为解释这些模型,可以采用基于边际期望的局部特征归因,例如边际(干预式)Shapley值、Owen值或Banzhaf值。此类方法忠实于模型且具有实现不变性,即只依赖模型的输入-输出函数。我们将其与流行的TreeSHAP算法对比,给出两棵统计上相似、计算完全相同函数的决策树:对于这些树,“路径依赖”的TreeSHAP产生不同的特征排序,而边际Shapley值却一致。此外,我们讨论如何利用树模型的内部结构,按照线性博弈值计算其边际特征归因。一个重要观察是,相对于由训练模型确定的输入空间的某种网格划分,这些函数是简单的分段常值函数。另一个关键观察来自XGBoost、LightGBM和CatBoost库的实验:集成中的每棵树只出现全部特征中的一部分。因此,计算边际Shapley(或Owen、Banzhaf)特征归因的复杂度可以降低。这一点对更广泛的一类博弈值仍然成立,我们将对该类博弈值进行公理化刻画。一个典型例子是CatBoost模型,其中树为oblivious(对称)树,并且每棵树中的特征数不超过深度。我们利用这种对称性,仅依据模型内部参数推导出CatBoost模型边际Shapley值(以及Banzhaf值和Owen值)的显式公式,其复杂度得到改善。由此产生了一种快速、准确的算法,用于估计这些特征归因。

英文摘要:

Due to their power and ease of use, tree-based machine learning models, such as random forests and gradient-boosted tree ensembles, have become very popular. To interpret them, local feature attributions based on marginal expectations, e.g. marginal (interventional) Shapley, Owen or Banzhaf values, may be employed. Such methods are true to the model and implementation invariant, i.e. dependent only on the input-output function of the model. We contrast this with the popular TreeSHAP algorithm by presenting two (statistically similar) decision trees that compute the exact same function for which the "path-dependent" TreeSHAP yields different rankings of features, whereas the marginal Shapley values coincide. Furthermore, we discuss how the internal structure of tree-based models may be leveraged to help with computing their marginal feature attributions according to a linear game value. One important observation is that these are simple (piecewise-constant) functions with respect to a certain grid partition of the input space determined by the trained model. Another crucial observation, showcased by experiments with XGBoost, LightGBM and CatBoost libraries, is that only a portion of all features appears in a tree from the ensemble. Thus, the complexity of computing marginal Shapley (or Owen or Banzhaf) feature attributions may be reduced. This remains valid for a broader class of game values which we shall axiomatically characterize. A prime example is the case of CatBoost models where the trees are oblivious (symmetric) and the number of features in each of them is no larger than the depth. We exploit the symmetry to derive an explicit formula, with improved complexity and only in terms of the internal model parameters, for marginal Shapley (and Banzhaf and Owen) values of CatBoost models. This results in a fast, accurate algorithm for estimating these feature attributions.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑