WOODELF-HD: Efficient Background SHAP for High-Depth Decision Trees

arXiv cs.LG / 4/14/2026

📰 NewsIdeas & Deep AnalysisModels & Research

Key Points

  • The paper introduces WoodelfHD, an extension of Woodelf that makes Background SHAP scalable for high-depth decision tree ensembles by reducing the problematic preprocessing growth from 3^D to 2^D.
  • WoodelfHD uses a Strassen-like multiplication approach exploiting Woodelf matrix structure, accelerating matrix-vector multiplication from O(k^2) to O(k·log(k)) with a fully vectorized, non-recursive implementation.
  • It also reduces memory overhead by merging path nodes with identical features, shrinking cache size and improving practical feasibility.
  • Benchmarks on standard environments show exact Background SHAP computation is feasible for trees up to depth 21, while prior methods fail due to memory constraints, and it reports 33x and 162x speedups for ensembles of depths 12 and 15 versus state of the art.

Abstract

Decision-tree ensembles are a cornerstone of predictive modeling, and SHAP is a standard framework for interpreting their predictions. Among its variants, Background SHAP offers high accuracy by modeling missing features using a background dataset. Historically, this approach did not scale well, as the time complexity for explaining n instances using m background samples included an O(mn) component. Recent methods such as Woodelf and PLTreeSHAP reduce this to O(m+n), but introduce a preprocessing bottleneck that grows as 3^D with tree depth D, making them impractical for deep trees. We address this limitation with WoodelfHD, a Woodelf extension that reduces the 3^D factor to 2^D. The key idea is a Strassen-like multiplication scheme that exploits the structure of Woodelf matrices, reducing matrix-vector multiplication from O(k^2) to O(k*log(k)) via a fully vectorized, non-recursive implementation. In addition, we merge path nodes with identical features, reducing cache size and memory usage. When running on standard environments, WoodelfHD enables exact Background SHAP computation for trees with depths up to 21, where previous methods fail due to excessive memory usage. For ensembles of depths 12 and 15, it achieves speedups of 33x and 162x, respectively, over the state-of-the-art.