位实用的深度神经网络计算
Bit-pragmatic Deep Neural Network Computing
摘要:
我们量化了在深度神经网络(DNN)中处理卷积层乘法时无效计算的来源,并提出了Pragmatic(PRA),这是一种利用它来提高性能和能效的架构。这些无效计算的来源最好在传统乘法器的上下文中理解,该乘法器在内部生成多个项,即被乘数和2的幂的乘积,它们加在一起产生最终乘积[1]。在运行时,这些项中的许多项是零,因为它们是在被乘数与乘数的零位组合时生成的。虽然常规位并行乘法器并行计算所有项以减少个别乘积等待时间,但PRA使用a)将乘数表示即时转换为2的幂的显式列表,及b)混合位并行多被乘数/位串行乘数处理单元仅计算非零项。PRA利用了无效计算的两个来源:1)上述零积项,其是乘数表示中缺乏显式性的结果,以及2)用于乘数和乘数两者的表示精度的过度,例如,[2]的文件。测量表明,对于卷积层,PRA的直接变体比DaDiaNao(DaDN)加速器[3]提高了2.6倍,比STR [4]提高了1.4倍。同样,PRA与DaDN和STR相比,平均提高了28%和10%的能源效率。改进的跨通道同步方案将性能提高到DaDN的3.1倍。最后,即使使用8位量化表示,实用的好处仍然存在[5]。
英文摘要:
We quantify a source of ineffectual computations when processing the multiplications of the convolutional layers in Deep Neural Networks (DNNs) and propose Pragmatic (PRA), an architecture that exploits it improving performance and energy efficiency. The source of these ineffectual computations is best understood in the context of conventional multipliers which generate internally multiple terms, that is, products of the multiplicand and powers of two, which added together produce the final product [1]. At runtime, many of these terms are zero as they are generated when the multiplicand is combined with the zero-bits of the multiplicator. While conventional bit-parallel multipliers calculate all terms in parallel to reduce individual product latency, PRA calculates only the non-zero terms using a) on-the-fly conversion of the multiplicator representation into an explicit list of powers of two, and b) hybrid bit-parallel multplicand/bit-serial multiplicator processing units. PRA exploits two sources of ineffectual computations: 1) the aforementioned zero product terms which are the result of the lack of explicitness in the multiplicator representation, and 2) the excess in the representation precision used for both multiplicants and multiplicators, e.g., [2]. Measurements demonstrate that for the convolutional layers, a straightforward variant of PRA improves performance by 2.6x over the DaDiaNao (DaDN) accelerator [3] and by 1.4x over STR [4]. Similarly, PRA improves energy efficiency by 28% and 10% on average compared to DaDN and STR. An improved cross lane synchronication scheme boosts performance improvements to 3.1x over DaDN. Finally, Pragmatic benefits persist even with an 8-bit quantized representation [5].
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。