T-Rex (Tree-Rectangles): Reformulating Decision Tree Traversal as Hyperrectangle Enclosure
Meghana Madhyastha, Tamas Budavari, Vladimir Braverman, Joshua T. Vogelstein, Randal C. Burns
Abstract
Tree ensembles, random forests and gradient boosted trees, are useful in resource-limited machine learning deployments. However, traversing tree data structures is not cache friendly, which results in high latency during inference or regression. Tree traversal incurs random I/Os making inference memory bound. We present a system that trades many random I/Os for few sequential I/O by remapping a forest of trees into a single spatial index. It builds on the observation that each leaf in the forest encodes a hyperrectangle in the feature space. We make queries I/O efficient through pruning and space-filling curves. We then optimize computation through quantization of hyperrectangle boundaries and vectorization of enclosure queries. Our evaluation on a diverse set of benchmark datasets shows that the system reduces inference latency by 2 times in memory and 10 times for external memory with no detectable loss of accuracy.
Ask about this paper
Ask your agent about it.
Lune has read the top-tier papers around this one, so every answer names the papers it rests on.
Your agent calls
Lunesearch_papers
Free to start. No credit card required.
Terminal
Install the CLIlune papers get c1029bdc-94be-493c-9121-83c236ea510aRelated papers
- BLOCKSET (Block-Aligned Serialized Trees): Reducing Inference Latency for Tree ensemble DeploymentMeghana Madhyastha, Kunal Lillaney, James Browne, Joshua T. Vogelstein et al.KDD 2021 · 1 citation
- LISA: A Learned Index Structure for Spatial DataPengfei Li, Hua Lu, Qian Zheng, Long Yang et al.SIGMOD 2020 · 158 citations
- Smaller, more accurate regression forests using tree alternating optimizationArman Zharmagambetov, Miguel Á. Carreira-PerpiñánICML 2020 · 34 citations
- Effectively Learning Spatial IndicesJianzhong Qi, Guanli Liu, Christian S. Jensen, Lars KulikVLDB 2020 · 121 citations
- MiniMalloc: A Lightweight Memory Allocator for Hardware-Accelerated Machine LearningMichael D. MoffittASPLOS 2023 · 5 citations
