arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2305.08579cs.LG
收藏

ARM设备上树集成模型的快速推理

Fast Inference of Tree Ensembles on ARM Devices

TU Dortmund(多特蒙德工业大学);Ca’ Foscari Univ. of Venice(威尼斯大学)

Simon Koschel, Sebastian Buschjäger, Claudio Lucchese, Katharina Morik

AI总结:

本文针对ARM设备上的树集成模型推理,将QuickScorer算法从Intel AVX移植到ARM NEON,并扩展至分类模型,研究定点量化影响,实现最高9.4倍加速,且量化模型速度更优而性能损失可忽略。

摘要:

随着机器学习模型日益融入日常生活,例如以物联网(IoT)的形式,学习模型的评估变得越来越重要。树集成模型是可用的最佳黑盒分类器之一,并且通常优于更复杂的分类器。尽管在Intel CPU上快速应用树集成模型已在文献中有所研究,但在ARM CPU(在物联网应用中更为常见)的背景下尚未得到研究。在本文中,我们将流行的QuickScorer算法及其同类算法从Intel的AVX指令集转换到ARM的NEON指令集。其次,我们将实现从排序模型扩展到分类模型,如随机森林。第三,我们研究了在随机森林中使用定点量化的效果。我们的研究表明,在ARM CPU上仔细实现树遍历,与参考实现相比,可以实现高达9.4倍的加速。此外,量化模型在速度上几乎在所有情况下都优于使用浮点值的模型,而对模型的预测性能影响可忽略不计。最后,我们的研究突出了ARM和Intel CPU之间以及不同ARM设备之间的架构差异,这些差异意味着最佳实现取决于特定的森林以及用于部署的特定设备。

英文摘要:

With the ongoing integration of Machine Learning models into everyday life, e.g. in the form of the Internet of Things (IoT), the evaluation of learned models becomes more and more an important issue. Tree ensembles are one of the best black-box classifiers available and routinely outperform more complex classifiers. While the fast application of tree ensembles has already been studied in the literature for Intel CPUs, they have not yet been studied in the context of ARM CPUs which are more dominant for IoT applications. In this paper, we convert the popular QuickScorer algorithm and its siblings from Intel's AVX to ARM's NEON instruction set. Second, we extend our implementation from ranking models to classification models such as Random Forests. Third, we investigate the effects of using fixed-point quantization in Random Forests. Our study shows that a careful implementation of tree traversal on ARM CPUs leads to a speed-up of up to 9.4 compared to a reference implementation. Moreover, quantized models seem to outperform models using floating-point values in terms of speed in almost all cases, with a neglectable impact on the predictive performance of the model. Finally, our study highlights architectural differences between ARM and Intel CPUs and between different ARM devices that imply that the best implementation depends on both the specific forest as well as the specific device used for deployment.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑