arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2101.04354cs.LGcs.NE
收藏

能量有效神经网络中基于激活密度的混合精度Quantization

Activation Density based Mixed-Precision Quantization for Energy Efficient Neural Networks

UTEC(秘鲁工程技术大学);Yale University(耶鲁大学)

Karina Vasquez, Yeshwanth Venkatesha, Abhiroop Bhattacharjee, Abhishek Moitra, Priyadarshini Panda

摘要:

随着神经网络在嵌入式设备中获得广泛采用,需要模型压缩技术来促进在资源受限环境中的部署。量化是产生最先进的模型压缩的常用方法之一。大多数方法采用完全训练的模型,应用不同的算法来确定网络不同层的最佳位精度,并重新训练网络以恢复精度的任何下降。基于激活密度(AD)-层中非零激活的比例-我们提出了一种训练量化方法。我们的方法在训练过程中计算每层的位宽,从而产生具有竞争力精度的混合精度模型。由于我们在训练过程中训练较低精度的模型,因此我们的方法以较低的训练复杂度产生最终的量化模型,并且还消除了重新训练的需要。我们在VGG 19/ResNet 18架构上对CIFAR-10,CIFAR-100,TinyImagenet等基准数据集进行了实验,并报告了准确性和能量估计。在我们的实验中,我们在估计的乘法和累加(MAC)减少方面实现了约4.5倍的收益,同时将训练复杂度降低了50%。为了进一步评估我们所提出的方法的能源效益,我们开发了一个混合精度可扩展的内存处理(PIM)硬件加速器平台。硬件平台结合了移位-相加功能,用于处理多位精度神经网络模型。在PIM平台上评估用我们提出的方法获得的量化模型,与16位模型相比,能量降低了约5倍。此外,我们发现,与基线16位精度的未修剪模型相比,将基于AD的量化与基于AD的修剪(两者都在训练期间进行)相结合,在PIM平台上分别为VGG 19和ResNet 18架构产生高达~ 198倍和~ 44倍的能量减少。

英文摘要:

As neural networks gain widespread adoption in embedded devices, there is a need for model compression techniques to facilitate deployment in resource-constrained environments. Quantization is one of the go-to methods yielding state-of-the-art model compression. Most approaches take a fully trained model, apply different heuristics to determine the optimal bit-precision for different layers of the network, and retrain the network to regain any drop in accuracy. Based on Activation Density (AD)-the proportion of non-zero activations in a layer-we propose an in-training quantization method. Our method calculates bit-width for each layer during training yielding a mixed precision model with competitive accuracy. Since we train lower precision models during training, our approach yields the final quantized model at lower training complexity and also eliminates the need for re-training. We run experiments on benchmark datasets like CIFAR-10, CIFAR-100, TinyImagenet on VGG19/ResNet18 architectures and report the accuracy and energy estimates for the same. We achieve ~4.5x benefit in terms of estimated multiply-and-accumulate (MAC) reduction while reducing the training complexity by 50% in our experiments. To further evaluate the energy benefits of our proposed method, we develop a mixed-precision scalable Process In Memory (PIM) hardware accelerator platform. The hardware platform incorporates shift-add functionality for handling multi-bit precision neural network models. Evaluating the quantized models obtained with our proposed method on the PIM platform yields ~5x energy reduction compared to 16-bit models. Additionally, we find that integrating AD based quantization with AD based pruning (both conducted during training) yields up to ~198x and ~44x energy reductions for VGG19 and ResNet18 architectures respectively on PIM platform compared to baseline 16-bit precision, unpruned models.

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

↑