FPGA多精度多算术CNN加速器的自动生成
Automatic Generation of Multi-precision Multi-arithmetic CNN Accelerators for FPGAs
摘要:
现代深度卷积神经网络(CNN)对计算要求很高,但实际应用通常需要高吞吐量和低延迟。为了帮助解决这些问题,我们提出了Tomato,这是一个旨在自动生成高效CNN加速器的框架。生成的设计是流水线的,每个卷积层使用不同的算法在不同的精度。使用Tomato,我们展示了最先进的多精度多算法网络,包括在FPGA上运行的MobileNet-V1。据我们所知,这是CNN的第一个多精度多算法自动生成框架。在软件中,Tomato对预训练的网络进行微调,以使用短的2的幂和固定点权重的混合,同时将分类准确性的损失降到最低。微调的参数与模板化的硬件设计相结合,在FPGA中自动生成高效的推理电路。我们展示了我们的方法如何显着降低模型大小和计算复杂性,并允许我们将完整的ImageNet网络打包到单个FPGA上,而无需首次访问片外存储器。此外,我们还展示了Tomato如何在单个或多个FPGA上运行各种大小的网络。据我们所知,我们自动生成的加速器在延迟和吞吐量方面至少比最接近的基于FPGA的竞争对手高出2- 4倍;生成的加速器以每秒3000帧以上的速度运行ImageNet分类。
英文摘要:
Modern deep Convolutional Neural Networks (CNNs) are computationally demanding, yet real applications often require high throughput and low latency. To help tackle these problems, we propose Tomato, a framework designed to automate the process of generating efficient CNN accelerators. The generated design is pipelined and each convolution layer uses different arithmetics at various precisions. Using Tomato, we showcase state-of-the-art multi-precision multi-arithmetic networks, including MobileNet-V1, running on FPGAs. To our knowledge, this is the first multi-precision multi-arithmetic auto-generation framework for CNNs. In software, Tomato fine-tunes pretrained networks to use a mixture of short powers-of-2 and fixed-point weights with a minimal loss in classification accuracy. The fine-tuned parameters are combined with the templated hardware designs to automatically produce efficient inference circuits in FPGAs. We demonstrate how our approach significantly reduces model sizes and computation complexities, and permits us to pack a complete ImageNet network onto a single FPGA without accessing off-chip memories for the first time. Furthermore, we show how Tomato produces implementations of networks with various sizes running on single or multiple FPGAs. To the best of our knowledge, our automatically generated accelerators outperform closest FPGA-based competitors by at least 2-4x for lantency and throughput; the generated accelerator runs ImageNet classification at a rate of more than 3000 frames per second.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。