arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2412.10261cs.CVcs.AR
收藏

MVQ:基于掩码向量量化的高效DNN压缩与加速

MVQ:Towards Efficient DNN Compression and Acceleration with Masked Vector Quantization

Zhejiang University(浙江大学)

Shuaiting Li, Chengxuan Wang, Juncan Deng, Zeyu Wang, Zewen Ye, Zongsheng Wang, Haibin Shen, Kejie Huang

AI总结:

提出MVQ方法,结合N:M剪枝与掩码k-means量化重要权重,在EWS加速器上实现稀疏脉动阵列,提升能效2.3倍并减少55%阵列尺寸。

摘要:

向量量化(VQ)是一种硬件友好的DNN压缩方法,能够降低硬件加速器的存储成本和权重加载数据宽度。然而,传统的向量量化技术会导致显著的精度损失,因为重要权重未能得到良好保留。为解决这一问题,提出了一种名为MVQ的新方法,旨在用有限数量的码字更好地逼近重要权重。在算法层面,我们的方法通过N:M剪枝去除较不重要的权重,然后通过掩码k-means算法最小化剩余权重与码字之间的向量聚类误差。仅计算未剪枝权重与码字之间的距离,并利用这些距离更新码字。在架构层面,我们的加速器在EWS(增强权重固定)CNN加速器上实现向量量化,并提出了一种稀疏脉动阵列设计,以最大化掩码向量量化带来的益处。\我们的算法在多种模型上针对图像分类、目标检测和分割任务进行了验证。实验结果表明,MVQ不仅在可比压缩比下优于传统向量量化方法,还减少了FLOPs。在ASIC评估下,与基础EWS加速器相比,我们的MVQ加速器能效提升了2.3倍,脉动阵列尺寸减少了55%。与之前的稀疏加速器相比,MVQ实现了1.73倍的能效提升。

英文摘要:

Vector quantization(VQ) is a hardware-friendly DNN compression method that can reduce the storage cost and weight-loading datawidth of hardware accelerators. However, conventional VQ techniques lead to significant accuracy loss because the important weights are not well preserved. To tackle this problem, a novel approach called MVQ is proposed, which aims at better approximating important weights with a limited number of codewords. At the algorithm level, our approach removes the less important weights through N:M pruning and then minimizes the vector clustering error between the remaining weights and codewords by the masked k-means algorithm. Only distances between the unpruned weights and the codewords are computed, which are then used to update the codewords. At the architecture level, our accelerator implements vector quantization on an EWS (Enhanced weight stationary) CNN accelerator and proposes a sparse systolic array design to maximize the benefits brought by masked vector quantization.\\ Our algorithm is validated on various models for image classification, object detection, and segmentation tasks. Experimental results demonstrate that MVQ not only outperforms conventional vector quantization methods at comparable compression ratios but also reduces FLOPs. Under ASIC evaluation, our MVQ accelerator boosts energy efficiency by 2.3$\times$ and reduces the size of the systolic array by 55\% when compared with the base EWS accelerator. Compared to the previous sparse accelerators, MVQ achieves 1.73$\times$ higher energy efficiency.

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

↑