DPRed:使典型的激活和权重值在深度学习计算中发挥作用
DPRed: Making Typical Activation and Weight Values Matter In Deep Learning Computing
摘要:
我们表明,为深度神经网络中的所有值选择单一数据类型(精度),即使该数据类型在每层都不同,也相当于最坏情况设计。如果我们通过以更细的粒度调整精度来针对常见情况,则可以使用更短的数据类型。我们提出了动态精度降低(DPRed),在这里我们对权重和激活进行分组,并使用特定于每个组的精度对它们进行编码。每组精度是静态选择的权重和动态的硬件激活。我们利用这些精度来减少:1)片外存储和片内外通信,以及2)执行时间。与16 b和8b型号的无压缩相比,DPRed压缩将片外流量平均减少了近35%和33%。这使得可以为给定的片外存储器接口维持更高的性能,同时还提高了能效。我们还演示了处理每组激活和/或权重所需的时间与卷积层和全连接层所用的精度成比例的设计。这提高了密集和稀疏网络的执行时间和能源效率。我们展示了这些技术在8位网络中的工作原理,其中利用动态精度变化的两种不同硬件变体实现了1.82倍和2.81倍的加速比。
英文摘要:
We show that selecting a single data type (precision) for all values in Deep Neural Networks, even if that data type is different per layer, amounts to worst case design. Much shorter data types can be used if we target the common case by adjusting the precision at a much finer granularity. We propose Dynamic Precision Reduction (DPRed), where we group weights and activations and encode them using a precision specific to each group. The per group precisions are selected statically for the weights and dynamically by hardware for the activations. We exploit these precisions to reduce: 1) off-chip storage and off- and on-chip communication, and 2) execution time. DPRed compression reduces off-chip traffic to nearly 35% and 33% on average compared to no compression respectively for 16b and 8b models. This makes it possible to sustain higher performance for a given off-chip memory interface while also boosting energy efficiency. We also demonstrate designs where the time required to process each group of activations and/or weights scales proportionally to the precision they use for convolutional and fully-connected layers. This improves execution time and energy efficiency for both dense and sparse networks. We show the techniques work with 8-bit networks, where 1.82x and 2.81x speedups are achieved for two different hardware variants that take advantage of dynamic precision variability.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。