TreeLUT:一种利用梯度提升决策树进行推理加速的高效深度神经网络替代方案
TreeLUT: An Efficient Alternative to Deep Neural Networks for Inference Acceleration Using Gradient Boosted Decision Trees
AI总结:
本文提出开源工具TreeLUT,通过量化、硬件架构和流水线策略在FPGA上高效实现梯度提升决策树,仅用LUT资源,在保持竞争精度的同时显著提升硬件利用率、降低延迟并提高吞吐量。
摘要:
近年来,加速机器学习推理一直是一个活跃的研究领域。在此背景下,现场可编程门阵列(FPGAs)通过在深度神经网络(DNNs)中提供大规模并行性,已展现出令人瞩目的性能。神经网络(NNs)在推理过程中计算密集,因为它们需要大量的乘法和加法运算,这使得其实现成本高昂。近期许多研究通过结合稀疏诱导、量化以及将神经元或子网络转换为FPGA上的查找表(LUTs),在一定程度上解决了这一挑战。梯度提升决策树(GBDTs)在广泛的回归和分类任务中是深度神经网络的高精度替代方案,尤其适用于表格数据集。GBDTs的基本构建模块是决策树,其结构类似于二叉决策图。FPGA设计流程经过高度优化,能够高效地实现这种结构。除了决策树之外,GBDTs在推理过程中仅执行比较和加法等简单运算。我们提出TreeLUT,这是一个开源工具,利用高效的量化方案、硬件架构和流水线策略来实现GBDTs。它主要使用LUTs,在FPGA上不使用BRAMs或DSPs,从而实现高效率。我们使用多个分类数据集展示了TreeLUT的有效性,这些数据集通常用于评估超低面积和低延迟架构。利用这些基准,我们将实现结果与现有的DNN和GBDT方法进行了比较,例如DWN、PolyLUT-Add、NeuraLUT、LogicNets、FINN、hls4ml等。结果表明,与先前工作相比,TreeLUT在保持有竞争力的准确率的同时,显著改善了硬件利用率、延迟和吞吐量。
英文摘要:
Accelerating machine learning inference has been an active research area in recent years. In this context, field-programmable gate arrays (FPGAs) have demonstrated compelling performance by providing massive parallelism in deep neural networks (DNNs). Neural networks (NNs) are computationally intensive during inference, as they require massive amounts of multiplication and addition, which makes their implementations costly. Numerous studies have recently addressed this challenge to some extent using a combination of sparsity induction, quantization, and transformation of neurons or sub-networks into lookup tables (LUTs) on FPGAs. Gradient boosted decision trees (GBDTs) are a high-accuracy alternative to DNNs in a wide range of regression and classification tasks, particularly for tabular datasets. The basic building block of GBDTs is a decision tree, which resembles the structure of binary decision diagrams. FPGA design flows are heavily optimized to implement such a structure efficiently. In addition to decision trees, GBDTs perform simple operations during inference, including comparison and addition. We present TreeLUT as an open-source tool for implementing GBDTs using an efficient quantization scheme, hardware architecture, and pipelining strategy. It primarily utilizes LUTs with no BRAMs or DSPs on FPGAs, resulting in high efficiency. We show the effectiveness of TreeLUT using multiple classification datasets, commonly used to evaluate ultra-low area and latency architectures. Using these benchmarks, we compare our implementation results with existing DNN and GBDT methods, such as DWN, PolyLUT-Add, NeuraLUT, LogicNets, FINN, hls4ml, and others. Our results show that TreeLUT significantly improves hardware utilization, latency, and throughput at competitive accuracy compared to previous works.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。