[Paper Review] Retraining-Based Iterative Weight Quantization for Deep Neural Networks
This paper proposes an iterative retraining-based weight quantization method that enables 1-bit quantization of LSTM models on the PTB dataset without accuracy degradation. By repeatedly retraining with full-precision weights after each quantization step, the method reduces quantization error and finds flatter minima, enabling high compression with minimal accuracy loss, especially when combined with pruning.
Model compression has gained a lot of attention due to its ability to reduce hardware resource requirements significantly while maintaining accuracy of DNNs. Model compression is especially useful for memory-intensive recurrent neural networks because smaller memory footprint is crucial not only for reducing storage requirement but also for fast inference operations. Quantization is known to be an effective model compression method and researchers are interested in minimizing the number of bits to represent parameters. In this work, we introduce an iterative technique to apply quantization, presenting high compression ratio without any modifications to the training algorithm. In the proposed technique, weight quantization is followed by retraining the model with full precision weights. We show that iterative retraining generates new sets of weights which can be quantized with decreasing quantization loss at each iteration. We also show that quantization is efficiently able to leverage pruning, another effective model compression method. Implementation issues on combining the two methods are also addressed. Our experimental results demonstrate that an LSTM model using 1-bit quantized weights is sufficient for PTB dataset without any accuracy degradation while previous methods demand at least 2-4 bits for quantized weights.
Motivation & Objective
- To reduce the number of bits required for weight quantization in deep neural networks without modifying the training procedure.
- To address the accuracy degradation caused by aggressive quantization, especially in memory-intensive RNNs like LSTMs.
- To develop a method that improves quantization quality through iterative retraining, minimizing mean squared error (MSE) between full-precision and quantized weights.
- To explore the synergistic effect of combining pruning and iterative quantization for enhanced compression and accuracy.
- To demonstrate that 1-bit quantization can achieve full-precision model performance on sequence modeling tasks like language modeling.
Proposed method
- The method applies iterative quantization: after quantizing weights to low-bit representations, the model is retrained using full-precision weights to refine the solution.
- At each iteration, the model is retrained from the current quantized weights, allowing it to converge to a flatter minimum in the loss landscape.
- Quantization is performed using a greedy alternating approach: for k-bit quantization, each bit is optimized sequentially by minimizing the residual error.
- The quantization process uses sign-based binarization for 1-bit and recursive residual minimization for higher bits, with scaling factors adjusted per layer.
- Pruning is applied before quantization to reduce the number of parameters, which accelerates convergence and improves quantization quality.
- The framework avoids modifying the original training algorithm and instead leverages retraining to improve quantization fidelity iteratively.
Experimental results
Research questions
- RQ1Can iterative retraining with full-precision weights reduce quantization error and improve model accuracy after aggressive weight quantization?
- RQ2Does combining pruning with iterative quantization lead to faster convergence and lower bit-width requirements?
- RQ3Can 1-bit quantization achieve full-precision performance on LSTM models for language modeling tasks like PTB?
- RQ4How does iterative retraining affect the loss landscape, and does it lead to flatter minima that improve generalization?
- RQ5What is the optimal synergy between pruning and iterative quantization in terms of compression ratio and accuracy?
Key findings
- The proposed method achieves a test perplexity of 113.426 on the PTB small model using only 1-bit quantization, matching the full-precision baseline of 115.111.
- For the PTB medium model with 80% pruning and 21 retraining iterations, the method achieves a test perplexity of 85.540 using 1-bit quantization.
- On the PTB large model with 85% pruning, the method achieves a test perplexity of 80.308 with 1-bit quantization, close to the full-precision result.
- On the Text8 dataset, the method achieves a test perplexity of 105.632 with 6-bit quantization, outperforming the baseline Alternating method which reports 105.972 at the same bit width.
- The combination of pruning and iterative quantization reduces the number of retraining iterations needed and accelerates convergence, as shown by faster MSE decay in Figure 8.
- The method demonstrates that 1-bit quantization is sufficient for state-of-the-art performance on PTB, whereas prior methods required at least 2–4 bits.
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.