arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2112.01875cs.LGcs.AR
收藏

基于FPGA的HLS Hoeffding树学习算法

A Flexible HLS Hoeffding Tree Implementation for Runtime Learning on FPGA

Faculty of Engineering University of Porto(波尔图大学工程学院);INESC-TEC(INESC-TEC 研究所)

Luís Miguel Sousa, Nuno Paulino, João Canas Ferreira, João Bispo

摘要:

在嵌入式系统中实现机器学习时,决策树通常因其简单性和可扩展性而受到青睐。Hoeffding树是一种决策树,它利用Hoeffding界来学习数据中的模式,而不必连续存储数据样本以供将来重新处理。这使得它们特别适合在嵌入式设备上部署。在这项工作中,我们突出的HLS实现的Hoeffding树的功能。实现参数包括样本的特征大小(D)、输出类的数量(K)和树允许增长的最大节点数量(Nd)。我们的目标是Xilinx MPSoC ZCU 102,并评估:设计的资源需求和时钟频率为不同数量的类和功能大小,不同的样本大小(N)的几个合成数据集上的执行时间,输出类的数量和执行时间和准确性的两个数据集从UCI。对于D3、K5和N40000的问题大小,在103 MHz下运行的单个决策树的推理速度比1.2 GHz ARM Cortex-A53内核快8.3倍。与Hoeffding树的参考实现相比,我们在UCI数据集上实现了相当的分类精度。

英文摘要:

Decision trees are often preferred when implementing Machine Learning in embedded systems for their simplicity and scalability. Hoeffding Trees are a type of Decision Trees that take advantage of the Hoeffding Bound to allow them to learn patterns in data without having to continuously store the data samples for future reprocessing. This makes them especially suitable for deployment on embedded devices. In this work we highlight the features of an HLS implementation of the Hoeffding Tree. The implementation parameters include the feature size of the samples (D), the number of output classes (K), and the maximum number of nodes to which the tree is allowed to grow (Nd). We target a Xilinx MPSoC ZCU102, and evaluate: the design's resource requirements and clock frequency for different numbers of classes and feature size, the execution time on several synthetic datasets of varying sample sizes (N), number of output classes and the execution time and accuracy for two datasets from UCI. For a problem size of D3, K5, and N40000, a single decision tree operating at 103MHz is capable of 8.3x faster inference than the 1.2GHz ARM Cortex-A53 core. Compared to a reference implementation of the Hoeffding tree, we achieve comparable classification accuracy for the UCI datasets.

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

↑