MVQ:Towards Efficient DNN Compression and Acceleration with Masked Vector Quantization
Authors:
- Shuaiting LiSLShuaiting Li
- Chengxuan WangCWChengxuan Wang
- Juncan DengJDJuncan Deng
- Zeyu WangZWZeyu Wang
- Zewen YeZYZewen Ye
- Zongsheng WangZWZongsheng Wang
- Haibin ShenHSHaibin Shen
- Kejie HuangKHKejie Huang
Preprint
Abstract
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.Keywords
All Related Versions
- Version 1, 2024-12-13, ArXiv
- Version 2, 2024-12-16, ArXiv
- Published version: , 731.
This publication has 7 references indexed in Scilit:
- An Accelerator for Sparse Convolutional Neural Networks Leveraging Systolic General Matrix-matrix MultiplicationACM Transactions on Architecture and Code Optimization, 2022
- Systolic Tensor Array: An Efficient Structured-Sparse GEMM Accelerator for Mobile CNN InferenceIEEE Computer Architecture Letters, 2020
- Towards Convolutional Neural Networks Compression via Global&Progressive Product Quantization2020
- Mr.Wolf: An Energy-Precision Scalable Parallel Ultra Low Power SoC for IoT Edge ProcessingIEEE Journal of Solid-State Circuits, 2019
- Scaling equations for the accurate prediction of CMOS device performance from 180 nm to 7 nmIntegration, 2017
- Eyeriss: An Energy-Efficient Reconfigurable Accelerator for Deep Convolutional Neural NetworksIEEE Journal of Solid-State Circuits, 2016
- Product Quantization for Nearest Neighbor SearchIEEE Transactions on Pattern Analysis and Machine Intelligence, 2010