arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.11260cs.DCcs.AI
收藏

面向边缘深度学习的质量可扩展量化方法

Quality Scalable Quantization Methodology for Deep Learning on Edge

Salman Abdul Khaliq, Rehan Hafiz

AI总结:

提出一种质量可扩展量化方法,通过3位编码和自适应乘法器降低CNN能耗与规模,在边缘设备上实现高效部署,实验显示内存节省达82.49%且精度接近最优。

摘要:

深度学习架构需要大量的计算,其中卷积神经网络中的卷积操作占据了大部分计算能量。我们提出工作的目标是降低CNN的能耗和规模,以便在普适计算设备上的边缘计算中使用机器学习技术。我们提出了一种系统性的质量可扩展设计方法,包括在较高抽象层次上的质量可扩展量化以及在较低抽象层次上的质量可扩展乘法器。第一个组成部分包括参数压缩,我们通过用3位编码来近似深度学习模型滤波器中值的表示。提出了一种基于移位和缩放的片上解码硬件,可以解码这些3位表示以恢复近似的滤波器值。这样,DNN模型的规模得以减小,并且可以通过通信信道发送到边缘计算设备上进行解码。通过近似限制数据位数,从而降低了功耗。在第二个组成部分中,我们提出了一种质量可扩展乘法器,通过将数字转换为规范有符号数字表示,并进一步通过减少最低有效位来近似数字,从而减少部分乘积的数量。这些量化后的CNN在几乎不需要或不需要微调的情况下,提供了与原始权重网络几乎相同的精度。自适应乘法器的硬件利用门控时钟来降低乘法过程中的能量消耗。所提出的方法大大减少了DNN模型的内存和功耗需求,使其成为在边缘计算上部署深度学习的一种可行方法。在LeNet和ConvNets上进行的实验表明,零的占比最多增加6%,内存节省高达82.4919%,同时保持了接近最先进的精度。

英文摘要:

Deep Learning Architectures employ heavy computations and bulk of the computational energy is taken up by the convolution operations in the Convolutional Neural Networks. The objective of our proposed work is to reduce the energy consumption and size of CNN for using machine learning techniques in edge computing on ubiquitous computing devices. We propose Systematic Quality Scalable Design Methodology consisting of Quality Scalable Quantization on a higher abstraction level and Quality Scalable Multipliers at lower abstraction level. The first component consists of parameter compression where we approximate representation of values in filters of deep learning models by encoding in 3 bits. A shift and scale based on-chip decoding hardware is proposed which can decode these 3-bit representations to recover approximate filter values. The size of the DNN model is reduced this way and can be sent over a communication channel to be decoded on the edge computing devices. This way power is reduced by limiting data bits by approximation. In the second component we propose a quality scalable multiplier which reduces the number of partial products by converting numbers in canonic sign digit representations and further approximating the number by reducing least significant bits. These quantized CNNs provide almost same ac-curacy as network with original weights with little or no fine-tuning. The hardware for the adaptive multipliers utilize gate clocking for reducing energy consumption during multiplications. The proposed methodology greatly reduces the memory and power requirements of DNN models making it a feasible approach to deploy Deep Learning on edge computing. The experiments done on LeNet and ConvNets show an increase upto 6% of zeros and memory savings upto 82.4919% while keeping the accuracy near the state of the art.

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

↑