TreeWalker: Partial Evaluation for Grouped Tree-Ensemble Inference
Not on the map. Why?
Abstract (arXiv)
Many inference workloads evaluate a trained tree ensemble on row groups that share feature values: discrete-time survival models expand each patient into G time steps, click-through-rate models score every item in a search session, and scenario analyses vary a few inputs while holding the rest fixed. Standard inference treats each row independently and repeats the shared work G times. We present TreeWalker, which applies partial evaluation to grouped inference: constant features are static, varying features dynamic. It walks each tree once per group, partitions a row bitmask at varying splits, and skips empty subtrees. Training is unchanged: TreeWalker reads standard LightGBM and XGBoost models. We prove a structural work decomposition: per-tree work splits into the constant-projected subtree size |Tc|, G leaf writes, and a predicate-mask provisioning cost Q. For the trace evaluator, per-row work approaches a (dv+1)/(d+1) fraction of a row-independent walk as G → ∞. On Intel, TreeWalker is 2.5-3.2× faster than a row-independent traversal at the reference configuration (T=500, L=8) and 6.8-7.8× faster at G=128 on the survival datasets, with larger gains on Arm. On a scenario-analysis benchmark it is faster in all 16 configurations on both architectures. For f64 models, outputs match treelite's GTIL up to summation order; for f32 models, f64 accumulation is closer to a Kahan-compensated reference than native f32 on 99.98% of rows and never farther.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 4 of its 29 references that are in the map. First posted on arXiv 2 Oct 2026.
Builds on
4 of 29 references.
References · 4
- 2016XGBoost: A Scalable Tree Boosting Systemcited by 5,166
- 2020Gaussian Process Boostingcited by 26
- 2020A Tensor Compiler for Unified Machine Learning Prediction Servingcited by 20
- 2022Yggdrasil Decision Forests: A Fast and Extensible Decision Forests Librarycited by 13
Built on by
Not cited yet.