NeuraLUT:将神经网络密度隐藏于可布尔综合的函数中
NeuraLUT: Hiding Neural Network Density in Boolean Synthesizable Functions
AI总结:
该研究提出NeuraLUT方法,通过将子网络映射到单个LUT、分区内用浮点全连接层加跳跃连接、分区间强制稀疏量化,实现受FPGA硬件启发的稀疏DNN训练,在相同精度下最高降低4.3倍延迟。
摘要:
现场可编程门阵列(FPGA)加速器已被证明能成功处理对延迟和资源要求严苛的深度神经网络(DNN)推理任务。神经网络(NN)中计算量最大的操作之一是特征向量与权重向量之间的点积。因此,此前的一些FPGA加速工作提出,将具有量化输入输出的神经元直接映射到查找表(LUT)以进行硬件实现。在这些工作中,神经元的边界与LUT的边界完全重合。我们提出放宽这些边界,将整个子网络映射到单个LUT中。由于子网络被整合在LUT内部,单个分区内的NN拓扑结构和精度不会影响生成的查找表的大小。因此,我们在每个分区内部使用浮点精度的全连接层——这类层作为通用函数逼近器具备优势,但在分区之间强制实施严格的稀疏性和量化,此时NN拓扑结构会暴露于电路拓扑结构之下。尽管这种方法实现成本较低,但可能导致神经网络深度过大,因此为了解决梯度消失等挑战,我们还在分区内部引入了跳跃连接。由此产生的方法可被视为采用一种受特定FPGA硬件启发的稀疏模式来训练DNN,这种模式使DNN能够被映射到深度浅得多的电路级网络,从而显著降低延迟。我们在一项已知的延迟关键任务——喷注子结构标记,以及经典计算机视觉任务——使用MNIST数据集的数字分类上验证了所提出的方法。与现有工作相比,我们的方法使LUT内部具备更强的函数表达能力,在相同精度下,神经网络的延迟最高可降低4.3倍。
英文摘要:
Field-Programmable Gate Array (FPGA) accelerators have proven successful in handling latency- and resource-critical deep neural network (DNN) inference tasks. Among the most computationally intensive operations in a neural network (NN) is the dot product between the feature and weight vectors. Thus, some previous FPGA acceleration works have proposed mapping neurons with quantized inputs and outputs directly to lookup tables (LUTs) for hardware implementation. In these works, the boundaries of the neurons coincide with the boundaries of the LUTs. We propose relaxing these boundaries and mapping entire sub-networks to a single LUT. As the sub-networks are absorbed within the LUT, the NN topology and precision within a partition do not affect the size of the lookup tables generated. Therefore, we utilize fully connected layers with floating-point precision inside each partition, which benefit from being universal function approximators, but with rigid sparsity and quantization enforced between partitions, where the NN topology becomes exposed to the circuit topology. Although cheap to implement, this approach can lead to very deep NNs, and so to tackle challenges like vanishing gradients, we also introduce skip connections inside the partitions. The resulting methodology can be seen as training DNNs with a specific FPGA hardware-inspired sparsity pattern that allows them to be mapped to much shallower circuit-level networks, thereby significantly improving latency. We validate our proposed method on a known latency-critical task, jet substructure tagging, and on the classical computer vision task, digit classification using MNIST. Our approach allows for greater function expressivity within the LUTs compared to existing work, leading to up to $4.3\times$ lower latency NNs for the same accuracy.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。