Logic Shrinkage:用于高效神经网络推理的学习FPGA网表稀疏性
Logic Shrinkage: Learned FPGA Netlist Sparsity for Efficient Neural Network Inference
摘要:
使用原生LUT作为独立可训练推理算子的FPGA特定DNN架构已被证明可以实现有利的面积精度和能量精度权衡。这一领域的第一个工作是LUTNet,它在标准DNN基准测试中表现出了最先进的性能。在本文中,我们提出了这种基于LUT的拓扑结构的学习优化,从而比直接使用现成的手工设计的网络效率更高。这类架构的现有实现需要手动指定每个LUT的输入数量K。选择适当的K先验是具有挑战性的,并且即使在高粒度下(例如,每层)这样做也是一个耗时且容易出错的过程,这使得FPGA的空间灵活性未得到充分利用。此外,先前的工作看到LUT输入随机连接,这不能保证网络拓扑的良好选择。为了解决这些问题,我们提出了逻辑收缩,一个细粒度的网表修剪方法,使K自动学习的每一个LUT在一个神经网络的FPGA推理为目标。通过去除确定为低重要性的LUT输入,我们的方法提高了所得加速器的效率。我们的GPU友好型LUT输入去除解决方案能够在训练期间处理大型拓扑,速度可以忽略不计。通过逻辑收缩,我们将CNV网络分类CIFAR-10的最佳LUTNet实现的面积和能效分别提高了1.54倍和1.31倍,同时匹配其准确性。这种实现也达到了同样准确,严重修剪BNN的面积效率的2.71倍。在采用Bi-Real Net架构的ImageNet上,采用逻辑收缩导致合成后面积比LUTNet减少2.67倍,从而实现了以前在当今最大的FPGA上不可能实现的实现。
英文摘要:
FPGA-specific DNN architectures using the native LUTs as independently trainable inference operators have been shown to achieve favorable area-accuracy and energy-accuracy tradeoffs. The first work in this area, LUTNet, exhibited state-of-the-art performance for standard DNN benchmarks. In this paper, we propose the learned optimization of such LUT-based topologies, resulting in higher-efficiency designs than via the direct use of off-the-shelf, hand-designed networks. Existing implementations of this class of architecture require the manual specification of the number of inputs per LUT, K. Choosing appropriate K a priori is challenging, and doing so at even high granularity, e.g. per layer, is a time-consuming and error-prone process that leaves FPGAs' spatial flexibility underexploited. Furthermore, prior works see LUT inputs connected randomly, which does not guarantee a good choice of network topology. To address these issues, we propose logic shrinkage, a fine-grained netlist pruning methodology enabling K to be automatically learned for every LUT in a neural network targeted for FPGA inference. By removing LUT inputs determined to be of low importance, our method increases the efficiency of the resultant accelerators. Our GPU-friendly solution to LUT input removal is capable of processing large topologies during their training with negligible slowdown. With logic shrinkage, we better the area and energy efficiency of the best-performing LUTNet implementation of the CNV network classifying CIFAR-10 by 1.54x and 1.31x, respectively, while matching its accuracy. This implementation also reaches 2.71x the area efficiency of an equally accurate, heavily pruned BNN. On ImageNet with the Bi-Real Net architecture, employment of logic shrinkage results in a post-synthesis area reduction of 2.67x vs LUTNet, allowing for implementation that was previously impossible on today's largest FPGAs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。