Runtime Optimizations for Prediction with Tree-Based Models [article]

Nima Asadi, Jimmy Lin, Arjen P. de Vries
2013 arXiv   pre-print
Tree-based models have proven to be an effective solution for web ranking as well as other problems in diverse domains. This paper focuses on optimizing the runtime performance of applying such models to make predictions, given an already-trained model. Although exceedingly simple conceptually, most implementations of tree-based models do not efficiently utilize modern superscalar processor architectures. By laying out data structures in memory in a more cache-conscious fashion, removing
more » ... s from the execution flow using a technique called predication, and micro-batching predictions using a technique called vectorization, we are able to better exploit modern processor architectures and significantly improve the speed of tree-based models over hard-coded if-else blocks. Our work contributes to the exploration of architecture-conscious runtime implementations of machine learning algorithms.
arXiv:1212.2287v2 fatcat:k6xw6a54bvaqvjli7d4xn7wcke