arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2208.04854cs.ARcs.AIcs.LG
收藏

基于FPGA的高吞吐量混合精度CNN加速器设计

Design of High-Throughput Mixed-Precision CNN Accelerators on FPGA

RWTH Aachen University(亚琛工业大学)

Cecilia Latotzke, Tim Ciesielski, Tobias Gemmeke

摘要:

卷积神经网络(CNN)在各个应用领域都达到了高精度,但需要大量的计算并导致昂贵的数据移动。在交易准确性的同时降低这些成本的一种方法是减少权重和/或激活字长。因此,逐层混合精度量化允许更有效的结果,同时膨胀设计空间。在这项工作中,我们提出了一个深入的定量方法,有效地探索设计空间,考虑到有限的硬件资源,一个给定的FPGA。我们的整体探索方法垂直遍历从架构到逻辑级别的各种设计入口级别,并横向涵盖从处理元件到低功耗的优化,以实现高效的混合精度CNN加速器。我们得到的硬件加速器实现了真正的混合精度运算,能够有效执行逐层和逐通道量化CNN。映射前馈和身份快捷连接混合精度CNN导致竞争性的准确性-吞吐量权衡:ResNet-18的245帧/秒和87.48%的Top-5准确性,ResNet-152的92.9%的Top-5准确性和1.13 TOps/s。因此,与相应的浮点基线相比,参数所需的内存占用减少了4.9倍和9.4倍。

英文摘要:

Convolutional Neural Networks (CNNs) reach high accuracies in various application domains, but require large amounts of computation and incur costly data movements. One method to decrease these costs while trading accuracy is weight and/or activation word-length reduction. Thereby, layer-wise mixed-precision quantization allows for more efficient results while inflating the design space. In this work, we present an in-depth quantitative methodology to efficiently explore the design space considering the limited hardware resources of a given FPGA. Our holistic exploration approach vertically traverses the various design entry levels from the architectural down to the logic level, and laterally covers optimization from processing elements to dataflow for an efficient mixed-precision CNN accelerator. Our resulting hardware accelerators implement truly mixed-precision operations that enable efficient execution of layer-wise and channel-wise quantized CNNs. Mapping feed-forward and identity-shortcut-connection mixed-precision CNNs result in competitive accuracy-throughout trade-offs: 245 frames/s with 87.48% Top-5 accuracy for ResNet-18 and 92.9% Top-5 accuracy with 1.13 TOps/s for ResNet-152, respectively. Thereby, the required memory footprint for parameters is reduced by 4.9x and 9.4x compared to the respective floating-point baseline.

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

↑