acceptodds
Published as a conference paper at NeurIPS 2026

TreeWalker: Partial Evaluation for Grouped Tree-Ensemble Inference

Durmus Karatay, Richard Newman

Abstract

Many prediction tasks evaluate a tree ensemble on row groups that share feature values: discrete-time survival models expand each patient into time steps, click-through-rate models score each item in a search session, and scenario analyses vary a few inputs while keeping others fixed. Standard tree-ensemble inference treats each row independently, ignoring this input-side correlation. We instantiate partial evaluation for grouped tree-ensemble inference: constant features are static, varying features dynamic. The algorithm walks each tree once per group, partitions a row bitmask at varying splits, and skips empty subtrees via an unsplit shortcut. We prove a structural work decomposition: per-tree work splits into the constant-projected subtree size , leaf writes, and a predicate-mask provisioning cost . For the trace evaluator, per-row work approaches as , giving asymptotic speedup . Empirically, TreeWalker delivers algorithmic speedup over a row-independent traversal at the reference model size (, ; for SUPPORT/FLCHAIN and empirical groups for Expedia), rising to – at on the survival datasets. For f64 models, outputs match treelite GTIL up to tree-ordering roundoff; for f32 models, TreeWalker's f64 leaf accumulation is close to a Kahan-compensated reference than native f32 on of rows, with the remaining tied.

Related papers

See more related submissions when the market opens.