基于可重构逻辑的自定义硬件结构扩展神经网络性能
Scaling Neural Network Performance through Customized Hardware Architectures on Reconfigurable Logic
摘要:
近年来,卷积神经网络有了显著的改进,在某些问题上超过了人类的准确性,性能超过了传统的计算机视觉算法。虽然计算模式本身相对简单,但仍然存在重大的计算和内存挑战,因为CNN可能包含数百万个浮点参数,需要数十亿次浮点运算来处理单个图像。这些计算要求,加上超过典型缓存大小的存储空间,对现代计算架构提出了重大的性能和功耗挑战。扩展性能和功率效率的一个有希望的机会是利用所有激活和权重的降低精度表示,因为这允许扩展计算能力,降低权重和特征图缓冲要求以及能耗。虽然会遇到精度的小幅下降,但这些量化神经网络已被证明在标准基准数据集上实现了最先进的精度,例如MNIST,CIFAR-10,SVHN甚至ImageNet,从而提供了非常有吸引力的设计权衡。目前的研究主要集中在实现极端的变种与完全二进制化的权重和/或激活,以及通常较小的输入图像。在本文中,我们研究了在支持各种精度的权重和激活,更大的图像尺寸,以及越来越多的特征映射通道方面的可扩展性。主要贡献是一个正式的方法来理解现有的硬件架构的可扩展性与成本模型和性能预测的目标设备大小的函数。我们提供了在服务器级平台(即AWS F1节点)上验证ImageNet分类的实验结果。
英文摘要:
Convolutional Neural Networks have dramatically improved in recent years, surpassing human accuracy on certain problems and performance exceeding that of traditional computer vision algorithms. While the compute pattern in itself is relatively simple, significant compute and memory challenges remain as CNNs may contain millions of floating-point parameters and require billions of floating-point operations to process a single image. These computational requirements, combined with storage footprints that exceed typical cache sizes, pose a significant performance and power challenge for modern compute architectures. One of the promising opportunities to scale performance and power efficiency is leveraging reduced precision representations for all activations and weights as this allows to scale compute capabilities, reduce weight and feature map buffering requirements as well as energy consumption. While a small reduction in accuracy is encountered, these Quantized Neural Networks have been shown to achieve state-of-the-art accuracy on standard benchmark datasets, such as MNIST, CIFAR-10, SVHN and even ImageNet, and thus provide highly attractive design trade-offs. Current research has focused mainly on the implementation of extreme variants with full binarization of weights and or activations, as well typically smaller input images. Within this paper, we investigate the scalability of dataflow architectures with respect to supporting various precisions for both weights and activations, larger image dimensions, and increasing numbers of feature map channels. Key contributions are a formalized approach to understanding the scalability of the existing hardware architecture with cost models and a performance prediction as a function of the target device size. We provide validating experimental results for an ImageNet classification on a server-class platform, namely the AWS F1 node.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。