arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.12531cs.LGstat.ML
收藏

TREE:面向高效执行的树正则化方法

TREE: Tree Regularization for Efficient Execution

TU Dortmund University(多特蒙德工业大学);University of Twente(特温特大学)

Lena Schmid, Daniel Biebert, Christian Hakert, Kuan-Hsun Chen, Michel Lang, Markus Pauly, Jian-Jia Chen

AI总结:

针对资源受限设备上决策树推理效率问题,提出通过正则化CART算法不纯度计算偏好不对称分裂的TREE方法,可在精度损失极小的前提下将执行时间最多降低约4倍。

摘要:

机器学习方法在资源高度受限设备上的兴起,不仅需要为目标平台选择合适的模型架构,还需要针对推理阶段的执行时间消耗优化所选模型,以最优地利用可用资源。随机森林与决策树被证明是适用于该场景的模型,因为它们不仅可针对总模型大小进行深度调整,还在根据底层内存架构优化执行效率方面具备巨大潜力。\n除了通过强制缩短决策树路径从而减少推理执行时间的直接策略外,硬件感知实现还能以正交方式优化执行时间。其中一项特定的硬件感知优化是对决策树的内存进行布局,使高概率路径被从系统缓存中逐出的可能性更低。当树节点内的分裂不均衡、且访问其中一个子节点的概率很高时,该方法效果尤其显著。\n本文提出了一种通过在决策树训练过程中奖励不均衡概率分布来缩短路径长度的方法,该方法仅会造成极小的精度下降。具体而言,我们对CART(分类与回归树)算法的不纯度计算进行正则化,使其在评估分裂准则时不仅偏好低不纯度,还偏好高度不对称的分布,从而为内存架构感知实现提供很高的优化潜力。\n我们的研究表明,尤其对于二分类数据集和包含大量样本的数据集,这种正则化形式可使执行时间最多降低约4倍,且仅伴随极小的精度下降。

英文摘要:

The rise of machine learning methods on heavily resource constrained devices requires not only the choice of a suitable model architecture for the target platform, but also the optimization of the chosen model with regard to execution time consumption for inference in order to optimally utilize the available resources. Random forests and decision trees are shown to be a suitable model for such a scenario, since they are not only heavily tunable towards the total model size, but also offer a high potential for optimizing their executions according to the underlying memory architecture. In addition to the straightforward strategy of enforcing shorter paths through decision trees and hence reducing the execution time for inference, hardware-aware implementations can optimize the execution time in an orthogonal manner. One particular hardware-aware optimization is to layout the memory of decision trees in such a way, that higher probably paths are less likely to be evicted from system caches. This works particularly well when splits within tree nodes are uneven and have a high probability to visit one of the child nodes. In this paper, we present a method to reduce path lengths by rewarding uneven probability distributions during the training of decision trees at the cost of a minimal accuracy degradation. Specifically, we regularize the impurity computation of the CART algorithm in order to favor not only low impurity, but also highly asymmetric distributions for the evaluation of split criteria and hence offer a high optimization potential for a memory architecture-aware implementation. We show that especially for binary classification data sets and data sets with many samples, this form of regularization can lead to an reduction of up to approximately four times in the execution time with a minimal accuracy degradation.

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

↑