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

基于FPGA数据流平台的大规模量化神经网络流结构

Streaming Architecture for Large-Scale Quantized Neural Networks on an FPGA-Based Dataflow Platform

Technion – Israel Institute of Technology(以色列理工学院)

Chaim Baskin, Natan Liss, Evgenii Zheltonozhskii, Alex M. Bronshtein, Avi Mendelson

摘要:

深度神经网络(DNN)由在从IoT设备到超级计算机的一系列计算机体系结构上执行的不同应用使用。这些网络的足迹是巨大的,以及他们的计算和通信需求。为了缓解资源压力,研究表明,在许多情况下,权重和其他参数的低精度表示(每个参数1-2位)可以实现类似的精度,同时需要更少的资源。使用量化值使得能够使用FPGA来运行NN,因为FPGA很好地适合这些原语;例如,FPGA为按位运算提供了有效的支持,并且可以处理任意精度的数字表示。本文提出了一种新的流架构上运行QNN的FPGA。所提出的架构比替代方案更好地扩展,使我们能够利用具有多个FPGA的系统。我们还包括对跳过连接的支持,这在最先进的NN中使用,并表明我们的架构允许几乎免费添加这些连接。所有这些都使我们能够实现一个18层的ResNet,用于224 x224图像分类,达到57.5%的top-1准确率。此外,我们实现了一个全尺寸的量化AlexNet。与以前的工作相比,我们使用2位激活而不是1位激活,这将AlexNet的前1名准确率从41.8%提高到51.03%。AlexNet和ResNet都可以在FPGA上处理1000类实时分类。与最新的Nvidia GPU上的相同NN相比,我们实现的ResNet-18的功耗降低了5倍,ImageNet的速度降低了4倍。适合单个FPGA的更小的NN在小(32 x32)输入上比GPU运行得更快,同时消耗的能量和功率最多减少20倍。

英文摘要:

Deep neural networks (DNNs) are used by different applications that are executed on a range of computer architectures, from IoT devices to supercomputers. The footprint of these networks is huge as well as their computational and communication needs. In order to ease the pressure on resources, research indicates that in many cases a low precision representation (1-2 bit per parameter) of weights and other parameters can achieve similar accuracy while requiring less resources. Using quantized values enables the use of FPGAs to run NNs, since FPGAs are well fitted to these primitives; e.g., FPGAs provide efficient support for bitwise operations and can work with arbitrary-precision representation of numbers. This paper presents a new streaming architecture for running QNNs on FPGAs. The proposed architecture scales out better than alternatives, allowing us to take advantage of systems with multiple FPGAs. We also included support for skip connections, that are used in state-of-the art NNs, and shown that our architecture allows to add those connections almost for free. All this allowed us to implement an 18-layer ResNet for 224x224 images classification, achieving 57.5% top-1 accuracy. In addition, we implemented a full-sized quantized AlexNet. In contrast to previous works, we use 2-bit activations instead of 1-bit ones, which improves AlexNet's top-1 accuracy from 41.8% to 51.03% for the ImageNet classification. Both AlexNet and ResNet can handle 1000-class real-time classification on an FPGA. Our implementation of ResNet-18 consumes 5x less power and is 4x slower for ImageNet, when compared to the same NN on the latest Nvidia GPUs. Smaller NNs, that fit a single FPGA, are running faster then on GPUs on small (32x32) inputs, while consuming up to 20x less energy and power.

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

↑