AI NewsInfrastructureAnnouncement
Shopify open-sourced TreeWalker, a Rust inference engine for tree models
Shopify released TreeWalker, an open-source Rust engine that scores tree-ensemble models. It skips tests that repeat across rows.

Image: Shopify Engineering
Why it mattersDelivery date, fraud score and search ranking often score groups of rows that share most inputs. Skipping the repeated work costs nothing to try.
Teams that score thousands of delivery predictions a second waste most of that work. Each row runs the same decision tree, and each tree asks the same questions about the same fields. Shopify's engineering team wrote TreeWalker to skip those repeated tests. It is written in Rust and published under an open-source licence. Richard Newman and Durmus Karatay posted the release on 2 December 2026.
TreeWalker scores gradient-boosted tree models, the kind a team trains with XGBoost or LightGBM. The authors say it reads groups of related rows together. It shares the decisions that apply to every row in the group. It only repeats the tests where the inputs differ. "TreeWalker scored our delivery model 3.96x faster than our current delivery evaluator" on the same trees and inputs. They tested this on the same training, trees and results.
The method
A tree ensemble scores one row by asking a question about one field. Then it asks another, and so on down each tree. For a group of rows that share most fields, most of those answers are the same. The authors call this grouped traversal. The engine finds a natural group in the input. It walks the tree once for the shared fields. It then only branches where a row differs.
The repository is at github.com/Shopify/treewalker. A paper is on arXiv at arxiv.org/abs/2610.03939. The authors also point to the open-source Falcon library as the backend TreeWalker builds on.
The numbers Shopify reports
Shopify reports several measurements. Each is from a specific workload.
The headline number is 3.96x faster than its current delivery evaluator on Shopify's own delivery model. The post calls this the internal model-scoring measurement.
Two public datasets gave stronger results. On survival datasets at 104 to 128 rows per group, the speedup ranged from 7.7x to 9.1x. The authors ran this on the SUPPORT and FLCHAIN datasets.
A third workload asked what-if questions. It scored the same row with one input changed at a time. On Intel hardware the speedup fell from 15.2x at one changing field to 8.1x at eight changing fields. On Arm the speedup fell from 9.2x to 6.2x across the same range.
The post also lists cases where grouped traversal was slower. Across 33 Intel and 78 Arm configurations, small groups underperformed the plain walk. The authors say the engine needs a natural group in the workload to pay off.
Where this helps and where it does not
The method works where a team scores groups of rows that share most inputs. The post lists delivery forecasts, search result scoring and scenario analysis. Fraud scoring and ad bidding fit the same shape. A team that scores one row at a time, and never groups, gets nothing from TreeWalker. The engine is also only for tree-ensemble models. A team that serves a neural network or a language model is reading the wrong post.
Shopify owns a payments and shopping platform with many such workloads, so the speedup serves its own needs. A team outside Shopify should measure the engine on its own model first. Test it on your own input groups before planning a migration. The trees, the depth, the feature count and the group size all move the number.
Source
- Shopify Engineering: TreeWalker: Avoiding redundant work across rows and trees
This item was written by an AI system from the linked source. Reveneau is responsible for what it publishes.
Get AI News in your inbox
New developer tools, model and agent releases, and how teams are actually using them to release software. Short, and only when there is something worth reading.


