arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1705.07175cs.DCcs.CVcs.LGcs.NE
收藏

Espresso:BCNN的高效前向传播

Espresso: Efficient Forward Propagation for BCNNs

University of Victoria(维多利亚大学)

Fabrizio Pedersoli, George Tzanetakis, Andrea Tagliasacchi

摘要:

有许多应用场景需要优化深度神经网络(DNN)预测阶段的计算性能和内存占用。二进制神经网络(BDNNs)已被证明是实现这一目标的有效方法。在本文中,我们展示了如何使用二进制表示来实现卷积神经网络(CNN)。Espresso是一个用C/CUDA编写的紧凑但功能强大的库,具有CNN正向传播所需的所有功能,在一个小于400 KB的二进制文件中,没有任何外部依赖。虽然它主要是为了利用大规模的GPU并行性而设计的,但Espresso也为CNN提供了等效的CPU实现。Espresso为BCNN提供了特殊的卷积层和密集层,利用位打包和逐位计算来实现高效执行。这些技术提供了矩阵乘法例程的加速,并且同时减少了存储参数和激活时的内存使用。我们的实验表明,Espresso是显着快于现有的实现优化的二进制神经网络($\approx$ 2个数量级)。Espresso是在Apache 2.0许可下发布的,可在http://github.com/fpeder/espresso上获得。

英文摘要:

There are many applications scenarios for which the computational performance and memory footprint of the prediction phase of Deep Neural Networks (DNNs) needs to be optimized. Binary Neural Networks (BDNNs) have been shown to be an effective way of achieving this objective. In this paper, we show how Convolutional Neural Networks (CNNs) can be implemented using binary representations. Espresso is a compact, yet powerful library written in C/CUDA that features all the functionalities required for the forward propagation of CNNs, in a binary file less than 400KB, without any external dependencies. Although it is mainly designed to take advantage of massive GPU parallelism, Espresso also provides an equivalent CPU implementation for CNNs. Espresso provides special convolutional and dense layers for BCNNs, leveraging bit-packing and bit-wise computations for efficient execution. These techniques provide a speed-up of matrix-multiplication routines, and at the same time, reduce memory usage when storing parameters and activations. We experimentally show that Espresso is significantly faster than existing implementations of optimized binary neural networks ($\approx$ 2 orders of magnitude). Espresso is released under the Apache 2.0 license and is available at http://github.com/fpeder/espresso.

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

↑