arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1809.10170cs.LGcs.DCstat.ML
收藏

高性能零内存开销直接卷积

High Performance Zero-Memory Overhead Direct Convolutions

Carnegie Mellon University(卡内基梅隆大学)

Jiyuan Zhang, Franz Franchetti, Tze Meng Low

摘要:

深度神经网络中卷积层的计算通常依赖于高性能例程,该例程通过使用额外的存储器(用于打包目的或作为算法的一部分所需)来以空间换取时间以提高性能。这种做法有两个问题。首先,这些例程会产生额外的内存开销,这会减少网络的整体大小,从而适合内存容量有限的嵌入式设备。其次,这些高性能例程没有针对执行卷积进行优化,这意味着获得的性能通常低于传统预期。在本文中,我们证明了直接卷积,正确实现时,消除了所有内存开销,并产生的性能是10%至400%之间的传统和嵌入式CPU架构的卷积层的现有高性能实现倍。我们还表明,一个高性能的直接卷积具有更好的缩放性能,即遭受较少的性能下降,当增加线程的数量。

英文摘要:

The computation of convolution layers in deep neural networks typically rely on high performance routines that trade space for time by using additional memory (either for packing purposes or required as part of the algorithm) to improve performance. The problems with such an approach are two-fold. First, these routines incur additional memory overhead which reduces the overall size of the network that can fit on embedded devices with limited memory capacity. Second, these high performance routines were not optimized for performing convolution, which means that the performance obtained is usually less than conventionally expected. In this paper, we demonstrate that direct convolution, when implemented correctly, eliminates all memory overhead, and yields performance that is between 10% to 400% times better than existing high performance implementations of convolution layers on conventional and embedded CPU architectures. We also show that a high performance direct convolution exhibits better scaling performance, i.e. suffers less performance drop, when increasing the number of threads.

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

↑