了解精度Quantization对神经网络精度和能量的影响
Understanding the Impact of Precision Quantization on the Accuracy and Energy of Neural Networks
摘要:
深度神经网络越来越受欢迎,因为它们用于为各种计算机视觉和机器学习应用生成最先进的结果。与此同时,为了解决更棘手的问题,这些网络的深度和复杂性都在增长。鉴于专用于这些网络的功率预算的限制,近年来一直强调低功耗、低内存解决方案的重要性。虽然最近提出了大量使用不同精度的专用硬件,但还没有对输入和网络参数的不同位精度和算法进行全面研究。在这项工作中,我们解决了这个问题,并进行了研究不同的位精度在神经网络(从浮点到定点,2的幂,二进制)。在我们的评估中,我们考虑并分析了精度缩放对网络精度和硬件指标(包括内存占用、功耗和能耗以及设计面积)的影响。我们还研究了训练时间方法,以补偿由于有限的位精度而导致的精度降低,并证明在大多数情况下,精度缩放可以以网络精度非常适度的降低为代价,在设计指标方面带来显着的好处。此外,我们建议使用较低精度时所获得的一小部分好处可以被放弃,以增加网络大小,从而提高精度。我们使用三个公认的网络和数据集来评估我们的实验,以显示其通用性。我们调查的权衡,并强调使用较低的精度在能源和内存占用方面的好处。
英文摘要:
Deep neural networks are gaining in popularity as they are used to generate state-of-the-art results for a variety of computer vision and machine learning applications. At the same time, these networks have grown in depth and complexity in order to solve harder problems. Given the limitations in power budgets dedicated to these networks, the importance of low-power, low-memory solutions has been stressed in recent years. While a large number of dedicated hardware using different precisions has recently been proposed, there exists no comprehensive study of different bit precisions and arithmetic in both inputs and network parameters. In this work, we address this issue and perform a study of different bit-precisions in neural networks (from floating-point to fixed-point, powers of two, and binary). In our evaluation, we consider and analyze the effect of precision scaling on both network accuracy and hardware metrics including memory footprint, power and energy consumption, and design area. We also investigate training-time methodologies to compensate for the reduction in accuracy due to limited bit precision and demonstrate that in most cases, precision scaling can deliver significant benefits in design metrics at the cost of very modest decreases in network accuracy. In addition, we propose that a small portion of the benefits achieved when using lower precisions can be forfeited to increase the network size and therefore the accuracy. We evaluate our experiments, using three well-recognized networks and datasets to show its generality. We investigate the trade-offs and highlight the benefits of using lower precisions in terms of energy and memory footprint.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。