Efficient Realization of Decision Trees for Real-Time Inference
K.-H. Chen, C. Su, C. Hakert, S. Buschjäger, C.-L. Lee, J.-K. Lee, K. Morik, J.-J. Chen, ACM Transactions on Embedded Computing Systems 21 (2022) 1–26.
Download
No fulltext has been uploaded.
DOI
Journal Article
| Published
| English
Author
Chen, Kuan-Hsun;
Su, Chiahui;
Hakert, Christian;
Buschjäger, Sebastian;
Lee, Chao-Lin;
Lee, Jenq-Kuen;
Morik, Katharina;
Chen, Jian-Jia
Abstract
<jats:p>For timing-sensitive edge applications, the demand for efficient lightweight machine learning solutions has increased recently. Tree ensembles are among the state-of-the-art in many machine learning applications. While single decision trees are comparably small, an ensemble of trees can have a significant memory footprint leading to cache locality issues, which are crucial to performance in terms of execution time. In this work, we analyze memory-locality issues of the two most common realizations of decision trees, i.e., native and if-else trees. We highlight that both realizations demand a more careful memory layout to improve caching behavior and maximize performance. We adopt a probabilistic model of decision tree inference to find the best memory layout for each tree at the application layer. Further, we present an efficient heuristic to take architecture-dependent information into account thereby optimizing the given ensemble for a target computer architecture. Our code-generation framework, which is freely available on an open-source repository, produces optimized code sessions while preserving the structure and accuracy of the trees. With several real-world data sets, we evaluate the elapsed time of various tree realizations on server hardware as well as embedded systems for Intel and ARM processors. Our optimized memory layout achieves a reduction in execution time up to 75 % execution for server-class systems, and up to 70 % for embedded systems, respectively.</jats:p>
Publishing Year
Journal Title
ACM Transactions on Embedded Computing Systems
Volume
21
Issue
6
Page
1-26
LibreCat-ID
Cite this
Chen K-H, Su C, Hakert C, et al. Efficient Realization of Decision Trees for Real-Time Inference. ACM Transactions on Embedded Computing Systems. 2022;21(6):1-26. doi:10.1145/3508019
Chen, K.-H., Su, C., Hakert, C., Buschjäger, S., Lee, C.-L., Lee, J.-K., Morik, K., & Chen, J.-J. (2022). Efficient Realization of Decision Trees for Real-Time Inference. ACM Transactions on Embedded Computing Systems, 21(6), 1–26. https://doi.org/10.1145/3508019
@article{Chen_Su_Hakert_Buschjäger_Lee_Lee_Morik_Chen_2022, title={Efficient Realization of Decision Trees for Real-Time Inference}, volume={21}, DOI={10.1145/3508019}, number={6}, journal={ACM Transactions on Embedded Computing Systems}, publisher={Association for Computing Machinery (ACM)}, author={Chen, Kuan-Hsun and Su, Chiahui and Hakert, Christian and Buschjäger, Sebastian and Lee, Chao-Lin and Lee, Jenq-Kuen and Morik, Katharina and Chen, Jian-Jia}, year={2022}, pages={1–26} }
Chen, Kuan-Hsun, Chiahui Su, Christian Hakert, Sebastian Buschjäger, Chao-Lin Lee, Jenq-Kuen Lee, Katharina Morik, and Jian-Jia Chen. “Efficient Realization of Decision Trees for Real-Time Inference.” ACM Transactions on Embedded Computing Systems 21, no. 6 (2022): 1–26. https://doi.org/10.1145/3508019.
K.-H. Chen et al., “Efficient Realization of Decision Trees for Real-Time Inference,” ACM Transactions on Embedded Computing Systems, vol. 21, no. 6, pp. 1–26, 2022, doi: 10.1145/3508019.
Chen, Kuan-Hsun, et al. “Efficient Realization of Decision Trees for Real-Time Inference.” ACM Transactions on Embedded Computing Systems, vol. 21, no. 6, Association for Computing Machinery (ACM), 2022, pp. 1–26, doi:10.1145/3508019.