Fast Estimation of Partial Dependence Functions using Trees

Jinyang Liu, Tessa Steensgaard, Marvin N. Wright, Niklas Pfister, M. Hiabu
2/12/2026

No official code found. Best implementation: PlantedML/glex (7 stars, last commit 2026-04-22). 1 more below.

Abstract

Many existing interpretation methods are based on Partial Dependence (PD) functions that, for a pre-trained machine learning model, capture how a subset of the features affects the predictions by averaging over the remaining features. Notable methods include Shapley additive explanations (SHAP) which computes feature contributions based on a game theoretical interpretation and PD plots (i.e., 1-dim PD functions) that capture average marginal main effects. Recent work has connected these approaches using a functional decomposition and argues that SHAP values can be misleading since they merge main and interaction effects into a single local effect. However, a major advantage of SHAP compared to other PD-based interpretations has been the availability of fast estimation techniques, such as \texttt{TreeSHAP}. In this paper, we propose a new tree-based estimator, \texttt{FastPD}, which efficiently estimates arbitrary PD functions. We show that \texttt{FastPD} consistently estimates the desired population quantity -- in contrast to path-dependent \texttt{TreeSHAP} which is inconsistent when features are correlated. For moderately deep trees, \texttt{FastPD} improves the complexity of existing methods from quadratic to linear in the number of observations. By estimating PD functions for arbitrary feature subsets, \texttt{FastPD} can be used to extract PD-based interpretations such as SHAP, PD plots and higher-order interaction effects.

View on arXivView PDF

Code Implementations(2)

PlantedML/glexCommunity100%

Global explanations for tree-based models

72R, C++Jul 12, 20226 months ago

Code for reproducibility for the paper 'Fast Estimation of Partial Dependence Functions using Trees'

00R, C++Oct 17, 20241 years ago

Similar Papers

Cite this paper

@article{liu2026fast,
  title  = {Fast Estimation of Partial Dependence Functions using Trees},
  author = {Jinyang Liu and Tessa Steensgaard and Marvin N. Wright and Niklas Pfister and M. Hiabu},
  year   = {2026},
  eprint = {2410.13448},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2410.13448},
  journal = {ICML 2024 2024}
}

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/2410.13448.svg)](https://codeofpaper.com/paper/2410.13448)

Discussion