arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1605.06402cs.CVcs.LGcs.NE
收藏

Ristretto:面向硬件的卷积神经网络逼近

Ristretto: Hardware-Oriented Approximation of Convolutional Neural Networks

Bern University of Applied Sciences(伯尔尼应用科学大学);University of California Davis(加州大学戴维斯分校)

Philipp Gysel

摘要:

卷积神经网络(CNN)近年来取得了重大突破。他们在计算机视觉方面的表现已经达到甚至超过了人类的能力。深度神经网络可以捕获复杂的非线性特征;然而,这种能力是以高计算和内存需求为代价的。最先进的网络需要数十亿次算术运算和数百万个参数。为了使智能手机、谷歌眼镜和监控摄像头等嵌入式设备具备深度学习的惊人功能,可以使用专用硬件加速器来减少执行时间和功耗。在无法保证快速连接到云或隐私很重要的应用程序中,计算需要在本地完成。最近提出了许多用于深度神经网络的硬件加速器。加速器设计的第一个重要步骤是深度网络的面向硬件的近似,这可以实现节能推理。我们提出了Ristretto,一个快速和自动化的框架CNN近似。Ristretto模拟自定义硬件加速器的硬件算法。该框架减少了网络参数的位宽和资源密集型层的输出,从而显著减少了乘法单元的芯片面积。或者,Ristretto可以完全消除对乘法器的需求,从而产生仅加法器的算术。该工具微调修剪网络,以实现高分类精度。由于深度神经网络的训练可能非常耗时,Ristretto使用在GPU上运行的高度优化的例程。这可以快速压缩任何给定的网络。给定1%的最大容差,Ristretto可以成功地将CaffeNet和SqueezeNet压缩到8位。Ristretto的代码可用。

英文摘要:

Convolutional neural networks (CNN) have achieved major breakthroughs in recent years. Their performance in computer vision have matched and in some areas even surpassed human capabilities. Deep neural networks can capture complex non-linear features; however this ability comes at the cost of high computational and memory requirements. State-of-art networks require billions of arithmetic operations and millions of parameters. To enable embedded devices such as smartphones, Google glasses and monitoring cameras with the astonishing power of deep learning, dedicated hardware accelerators can be used to decrease both execution time and power consumption. In applications where fast connection to the cloud is not guaranteed or where privacy is important, computation needs to be done locally. Many hardware accelerators for deep neural networks have been proposed recently. A first important step of accelerator design is hardware-oriented approximation of deep networks, which enables energy-efficient inference. We present Ristretto, a fast and automated framework for CNN approximation. Ristretto simulates the hardware arithmetic of a custom hardware accelerator. The framework reduces the bit-width of network parameters and outputs of resource-intense layers, which reduces the chip area for multiplication units significantly. Alternatively, Ristretto can remove the need for multipliers altogether, resulting in an adder-only arithmetic. The tool fine-tunes trimmed networks to achieve high classification accuracy. Since training of deep neural networks can be time-consuming, Ristretto uses highly optimized routines which run on the GPU. This enables fast compression of any given network. Given a maximum tolerance of 1%, Ristretto can successfully condense CaffeNet and SqueezeNet to 8-bit. The code for Ristretto is available.

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

↑