# TreeWalker: Partial Evaluation for Grouped Tree-Ensemble Inference

*Durmus Karatay, Richard Newman*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/150651) · [Open on the map](../papers.html#p150651)

Category: [Causality, Privacy & Learning Theory](../pcat/11.md) › [Tree Ensemble Compression and Interpretability](../pgroup/91.md) · Type: new method · Keywords: grouped tree-ensemble inference, partial evaluation, algorithmic speedup, tree traversal optimization, structured work decomposition

## Summary
TreeWalker introduces partial evaluation for grouped tree-ensemble inference, achieving up to 7.8× speedup by exploiting shared feature values across groups.

## Explained to a 5-year-old
TreeWalker is a new trick that helps computers make many predictions faster. It works when some inputs stay the same and only a few change, like checking many patients where most info is the same. Instead of starting from the beginning each time, it remembers the parts that never change and only checks the new parts. This makes the computer do less work and finish quicker. It helps in areas like medicine and online shopping.

## Explained to a 5-year-old, longer
TreeWalker is a clever method that speeds up predictions when many inputs are the same. Imagine you have a bunch of patients where most of their health information never changes, but a few details differ each time. Instead of re-evaluating the whole tree for each patient, TreeWalker keeps the unchanged parts fixed and only works on the parts that vary. This saves a lot of time because the computer doesn’t have to repeat the same calculations over and over. It works especially well for tasks like checking survival times, recommending products, or analyzing search sessions. By walking each tree only once per group and skipping empty branches, it reduces the amount of work dramatically. The method also includes a mathematical analysis that explains why it gets faster as more rows share the same features. In practice, it delivers several times faster performance on real datasets while still giving accurate results. This makes it useful for doctors, online services, and anyone who needs quick predictions from large groups of data.

## For a technical reader
TreeWalker performs partial evaluation on grouped tree ensembles by separating constant and dynamic features, walking each tree once per group, and using bitmask partitions to skip unchanged subtrees. It provides a theoretical work decomposition and an asymptotic speedup bound. Empirically, it yields 3× to 7.8× speedups on survival and click-through datasets while preserving numerical accuracy. The implementation is straightforward and integrates with existing tree-ensemble frameworks.

## Problem
Standard tree-ensemble inference processes each row independently, ignoring correlations among rows that share feature values, leading to redundant computation in grouped prediction tasks such as survival analysis and click-through-rate modeling.

## Method
The approach treats constant features as static and varying features as dynamic, walking each tree once per group, partitioning row bitmasks at splits, and skipping empty subtrees via an unsplit shortcut. It also provides a structural work decomposition and a trace evaluator that yields asymptotic speedup.

## Results
The approach achieves ~3× speedup at G=16 and up to 6.8-7.8× speedup at G=128 on survival datasets, while maintaining numerical accuracy comparable to a reference implementation.

## Contributions
It introduces partial evaluation for grouped tree-ensemble inference, provides a structural work decomposition analysis, and demonstrates substantial speedups across multiple real-world grouped prediction tasks while preserving numerical fidelity.

## Limitations and assumptions
Evaluated on a limited set of datasets and model sizes; f32 models show minor numerical discrepancies on a small fraction of rows.

## Practical relevance
The method can accelerate grouped inference in clinical survival analysis, recommendation systems, and scenario planning, reducing computational cost and enabling faster decision-making.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/150651)
