查表乘加:FPGA软逻辑中量化神经网络的可扩展处理
Table-Lookup MAC: Scalable Processing of Quantised Neural Networks in FPGA Soft Logic
AI总结:
本文提出TLMAC框架,通过将量化神经网络权重聚类映射为查表处理单元并优化布局布线,在单个商用FPGA上实现了ImageNet规模全精度准确率模型的可扩展查表计算。
摘要:
近年来,神经网络量化方面的进展取得了显著成果,三比特网络在复杂任务中达到了最先进的全精度准确率。这些成就为通过降低精度计算来加速神经网络提供了宝贵机会。在FPGA上实现这一点可以利用比特级可重构性,这是传统CPU和GPU所不具备的。同时,神经网络处理的高数据强度催生了计算存储一体化的范式,包括在FPGA平台上。通过在软逻辑中将训练好的模型权重的影响编程为查表操作,可以避免从存储单元传输权重数据,从而缓解存储瓶颈。然而,先前的方法面临可扩展性差的问题——高逻辑利用率使其局限于小型网络或二值模型的子网络,且准确率较低。在本文中,我们提出了查表乘加(TLMAC)框架,用于编译和优化量化神经网络,以实现可扩展的基于查表的处理。TLMAC将独特的权重组聚类并映射到基于查表的处理单元,从而实现高度并行计算,同时利用参数冗余。我们进一步提出了布局布线算法,以减少LUT利用率和布线拥塞。我们证明TLMAC显著提高了先前相关工作的可扩展性。我们高效的逻辑映射和高度的复用使得整个ImageNet规模的量化模型(具有全精度准确率)能够在一块商用FPGA上通过基于查表的计算实现。
英文摘要:
Recent advancements in neural network quantisation have yielded remarkable outcomes, with three-bit networks reaching state-of-the-art full-precision accuracy in complex tasks. These achievements present valuable opportunities for accelerating neural networks by computing in reduced precision. Implementing it on FPGAs can take advantage of bit-level reconfigurability, which is not available on conventional CPUs and GPUs. Simultaneously, the high data intensity of neural network processing has inspired computing-in-memory paradigms, including on FPGA platforms. By programming the effects of trained model weights as lookup operations in soft logic, the transfer of weight data from memory units can be avoided, alleviating the memory bottleneck. However, previous methods face poor scalability - the high logic utilisation limiting them to small networks/sub-networks of binary models with low accuracy. In this paper, we introduce Table Lookup Multiply-Accumulate (TLMAC) as a framework to compile and optimise quantised neural networks for scalable lookup-based processing. TLMAC clusters and maps unique groups of weights to lookup-based processing elements, enabling highly parallel computation while taking advantage of parameter redundancy. Further place and route algorithms are proposed to reduce LUT utilisation and routing congestion. We demonstrate that TLMAC significantly improves the scalability of previous related works. Our efficient logic mapping and high degree of reuse enables entire ImageNet-scale quantised models with full-precision accuracy to be implemented using lookup-based computing on one commercially available FPGA.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。