TreePII: Efficient Computation of Higher-Order Probabilistic Interaction Indices in Tree Ensembles

Junho Choi, Jaesik ChoiNeurIPS 2026

TL;DR

Explaining individual feature importance in tree ensembles (like Random Forests or XGBoost) is a solved problem, but understanding how groups of features interact usually triggers a combinatorial explosion. Worse, existing fast methods force you to treat all features equally, ignoring real-world cause-and-effect hierarchies. TreePII introduces a clever mathematical shortcut using numerical integration to compute exact, higher-order feature interactions up to 90× faster than the state-of-the-art—while finally unlocking the ability to evaluate asymmetric, directional interactions at scale.

What Problem Does This Paper Address?

When auditing a machine learning model on tabular data, knowing what each feature contributes individually (like standard SHAP values) often misses the plot. Features team up: age and work-class together might mean something very different for income than either feature alone. Measuring these synergies and redundancies requires Interaction Indices (IIs), borrowed from cooperative game theory.

The catch? Computing exact higher-order interactions naively requires checking an exponential number of feature combinations. Recently, an algorithm called TreeSHAP-IQ cracked this bottleneck for decision trees, but with a major blind spot: it only works for symmetric interactions (Cardinal Interaction Indices, or CIIs), where every feature has the exact same probability of joining a coalition.

In reality, features aren't created equal. Birth attributes (like age or genetics) precede life events (like education or occupation). If we want to ask, "What does occupation add after we already account for age?", we need asymmetric Probabilistic Interaction Indices (PIIs)—like Weighted Shapley or generalized Banzhaf interactions. Until now, computing exact asymmetric PIIs on trees meant falling back on brute-force methods that choke on anything larger than a toy dataset.

Methods

TreePII sidesteps combinatorial counting by reframing discrete game theory into continuous calculus.

Instead of summing over every possible subset of features, the authors use the multilinear extension of the tree's prediction function—essentially computing the expected output when each feature $i$ is known with probability $p_i$. In this continuous view, an interaction between a subset of features is simply a higher-order partial derivative, and any PII is an integral of those derivatives along a path of probabilities.

TreePII executes this in three steps:

  1. Path-Independent Tree Traversal: The authors prove that for decision trees, marginal interactions decompose cleanly across leaves. Using a simple depth-first search, TreePII filters for root-to-leaf paths containing all target features and computes each leaf's joint impact using only the split probabilities along that single path.
  2. Strategic Quadrature: Rather than integrating continuously, TreePII uses interpolatory quadrature (Chebyshev nodes for symmetric CIIs, and Gauss-Legendre quadrature for polynomial-path PIIs). Because a tree of depth $D$ produces polynomials of bounded degree, evaluating the tree at just a handful of strategically chosen probability points yields the exact integral—zero approximation error.
Figure 1: Illustration of using TreePII for interaction between x1 and x2 given an input of 5 features. (1) We only select paths in the tree that contain x1 and x2 through depth-first search. (2) For each selected path, we calculate the marginal interaction, which is the joint impact (shift in expected output) from knowing x1 and x2, as the product of the individual impacts. (3) PII is the sum of these joint impacts calculated at strategically chosen probabilities of knowing x1 and x2.

Datasets

No new benchmarks were introduced. The authors evaluated TreePII on:

  • Synthetic data to benchmark scalability across varying feature counts ($n$), tree depths ($D$), leaf counts ($L$), and interaction orders ($k$).
  • 14 standard real-world tabular datasets for symmetric interactions: Adult Income, Bank Marketing, Bike Sharing, Breast Cancer, California Housing, Communities & Crime, COMPAS, Covertype, Diabetes, Digits, Parkinsons, Titanic, TUANDROMD, and Wine.
  • A smaller subset (California Housing, Diabetes, Titanic) for asymmetric tests, restricted because the brute-force baseline ran out of memory on wider datasets.

Key Insights and Ideas

  • Scaling with Depth, Not Width: State-of-the-art TreeSHAP-IQ scales combinatorially with the total number of features, $\binom{n-1}{k-1}$. Because a single tree path of depth $D$ can contain at most $D$ unique features, TreePII's path-independent formulation scales with $\binom{D}{k}$. Since $D \ll n$ in almost all practical trees, the computational savings are massive.
  • Decoupled Memory: TreePII strips the combinatorial overhead out of the tree-traversal working memory, allowing it to compute asymmetric interactions on large datasets (like Covertype) in under 2GB of RAM.
  • Encoding Domain Hierarchy via Calculus: By defining inclusion probabilities as polynomial paths $p_i(t) = t^{c_i}$, users can assign small exponents $c_i$ to "upstream" baseline features (making them enter coalitions early) and larger exponents to "downstream" modifiers. This turns flat, symmetric explanations into directional, cause-aware insights.

Key Results

  • Symmetric Speedups (vs. TreeSHAP-IQ): Across all 14 real-world datasets on 2nd-order Shapley Interaction Indices (SII), TreePII beat TreeSHAP-IQ consistently—ranging from 2.34× faster on Digits to 89.62× faster on California Housing (9.14 ms vs. 819.43 ms) and 80.44× faster on Bike Sharing.
Figure 2: Runtime across different number of input features n for different order of interactions k. TreePII consistently outperforms TreeSHAP-IQ in all scenarios.
  • Asymmetric Speedups (vs. Brute Force): For 2nd-order Weighted SII, TreePII outperformed the naive baseline by 31.5× on Diabetes, 67.6× on Titanic, and 2,050× on California Housing (22.20 ms vs. 45.5 seconds).
  • Qualitative Payoff: On the Adult Income dataset, imposing a temporal hierarchy (birth features $\rightarrow$ education/marriage $\rightarrow$ work/financials) revealed hidden dynamics. For example, a positive interaction between education and race vanished under Weighted SII—showing the synergy was driven by the upstream birth attribute—while genuine downstream synergies (like age and work class) stood out clearly.

Limitations and Future Work

  • Very Deep Trees: TreePII's speed advantage relies on tree depth $D$ being much smaller than feature count $n$. In edge cases where $D \approx n$, $\binom{D}{k}$ approaches $\binom{n}{k}$, shrinking the speedup.
  • Extreme Polynomial Paths: Choosing highly complex polynomial paths with steep weights requires many quadrature points ($M$), which could introduce floating-point instability (and non-polynomial paths are approximate rather than exact, though bounded by standard Gauss-Legendre error).
  • Choosing the Hierarchy: TreePII makes asymmetric interactions fast to compute, but it doesn't tell you what weights or feature priorities to pick. Designing principled ways to select and validate feature hierarchies is left as a key direction for future research.

Summary updated

BibTeX
@inproceedings{choi2026treepii,
  author = {Junho Choi and Jaesik Choi},
  title = {{TreePII: Efficient Computation of Higher-Order Probabilistic Interaction Indices in Tree Ensembles}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=H6uLXEZRGE},
}
Figure