[Paper Review] Weight Normalization based Quantization for Deep Neural Network Compression
This paper proposes Weight Normalization based Quantization (WNQ), a novel method that applies weight normalization to mitigate the long-tail distribution of deep neural network weights, thereby reducing quantization error. WNQ achieves state-of-the-art performance on CIFAR-100 and ImageNet, outperforming existing methods like LQ-Net and QIL, especially at low bit-widths (2-bit and 3-bit), by significantly lowering relative mean-squared quantization error.
With the development of deep neural networks, the size of network models becomes larger and larger. Model compression has become an urgent need for deploying these network models to mobile or embedded devices. Model quantization is a representative model compression technique. Although a lot of quantization methods have been proposed, many of them suffer from a high quantization error caused by a long-tail distribution of network weights. In this paper, we propose a novel quantization method, called weight normalization based quantization (WNQ), for model compression. WNQ adopts weight normalization to avoid the long-tail distribution of network weights and subsequently reduces the quantization error. Experiments on CIFAR-100 and ImageNet show that WNQ can outperform other baselines to achieve state-of-the-art performance.
Motivation & Objective
- To address the high quantization error in low-bit DNN quantization caused by long-tail weight distributions.
- To improve model compression performance by minimizing quantization error through weight normalization.
- To explore the impact of weight distribution on quantization accuracy, a previously underexplored factor in model quantization.
- To achieve state-of-the-art performance in low-bit weight quantization without sacrificing model accuracy.
Proposed method
- WNQ applies weight normalization to each filter before quantization, transforming the weight distribution to reduce long-tail effects.
- It quantizes weights per filter rather than per layer, enabling more precise and stable quantization.
- The method uses a standard quantization function with learned scale and shift parameters, where the scale is derived from the L2 norm of the normalized weights.
- Weight normalization is applied during training, and the quantized weights are used in inference with minimal accuracy drop.
- The approach is compatible with existing quantization frameworks and can be combined with activation quantization.
- The method is evaluated using relative mean-squared quantization error (mse) as a metric to compare distributional stability.
Experimental results
Research questions
- RQ1How does the long-tail distribution of network weights affect quantization error in low-bit DNNs?
- RQ2Can weight normalization effectively reduce quantization error by smoothing the weight distribution?
- RQ3Does WNQ outperform existing state-of-the-art quantization methods like LQ-Net and QIL in low-bit settings?
- RQ4Can WNQ maintain high accuracy when quantizing all layers, including the first and last layers, which are often excluded in prior methods?
- RQ5What is the impact of weight distribution on the relative mean-squared quantization error in different layers?
Key findings
- WNQ achieves a 0.24 Top1-gap on ImageNet with 3-bit quantization, outperforming LQ-Net (0.38 gap) and QIL (0.30 gap), with all layers quantized.
- On CIFAR-100, WNQ reduces the Top1-gap to 0.39 with 3-bit quantization, compared to 0.66 for LQ-Net, indicating lower quantization error.
- For ResNet18 on ImageNet, WNQ achieves a 0.03 Top1-gap at 2-bit, significantly better than LQ-Net’s 0.28 gap.
- The relative mean-squared quantization error (mse) in the last fully-connected layer is 5.29× lower in WNQ than in LQ-Net, confirming reduced quantization error.
- WNQ’s weight distribution is smoother and less long-tailed than LQ-Net’s, especially in the last layer, which correlates with improved performance.
- On MobileNetv1, WNQ improves Top1 accuracy by 1.24% (2-bit) and 2.06% (3-bit) over LQ-Net, demonstrating consistent gains across architectures.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.