[Paper Review] Training with Quantization Noise for Extreme Fixed-Point Compression
This paper proposes training deep neural networks with quantization noise to enable extreme fixed-point compression beyond standard int8, using stochastic weight quantization over random subsets to enable unbiased gradients. The method achieves state-of-the-art accuracy-compression trade-offs, attaining 82.5% MNLI accuracy with a 14MB RoBERTa model and 80.0% ImageNet top-1 accuracy with a 3.3MB EfficientNet-B3.
We tackle the problem of producing compact models, maximizing their accuracy for a given model size. A standard solution is to train networks with Quantization Aware Training, where the weights are quantized during training and the gradients approximated with the Straight-Through Estimator. In this paper, we extend this approach to work beyond int8 fixed-point quantization with extreme compression methods where the approximations introduced by STE are severe, such as Product Quantization. Our proposal is to only quantize a different random subset of weights during each forward, allowing for unbiased gradients to flow through the other weights. Controlling the amount of noise and its form allows for extreme compression rates while maintaining the performance of the original model. As a result we establish new state-of-the-art compromises between accuracy and model size both in natural language processing and image classification. For example, applying our method to state-of-the-art Transformer and ConvNet architectures, we can achieve 82.5% accuracy on MNLI by compressing RoBERTa to 14MB and 80.0 top-1 accuracy on ImageNet by compressing an EfficientNet-B3 to 3.3MB.
Motivation & Objective
- To address the challenge of achieving high model accuracy under extreme compression constraints, especially beyond int8 quantization.
- To overcome the performance degradation caused by gradient approximation errors in Straight-Through Estimator (STE) during extreme quantization.
- To enable effective training with low-precision fixed-point representations, including Product Quantization, by introducing controlled stochastic noise.
- To establish new state-of-the-art accuracy-compression trade-offs in both NLP and computer vision.
Proposed method
- Stochastically quantize different random subsets of weights during each forward pass to introduce controlled noise and enable unbiased gradient flow.
- Use a noise control mechanism to balance the trade-off between gradient accuracy and compression efficiency.
- Apply the method during training with a modified loss function that accounts for the stochastic quantization process.
- Extend the approach to extreme compression techniques such as Product Quantization, where traditional STE fails due to high approximation error.
- Maintain full-precision gradients for unquantized weights while allowing quantized weights to be updated via noise-injected gradients.
- Integrate the method into standard training pipelines for Transformers and ConvNets without architectural modifications.
Experimental results
Research questions
- RQ1Can stochastic weight quantization with random subset selection improve gradient estimation in extreme fixed-point quantization?
- RQ2Does introducing controlled quantization noise enable effective training for compression methods like Product Quantization?
- RQ3Can the proposed method achieve state-of-the-art accuracy-compression trade-offs in both NLP and image classification?
- RQ4How does the method perform under extreme compression, such as 14MB RoBERTa or 3.3MB EfficientNet-B3?
Key findings
- The method achieves 82.5% accuracy on the MNLI benchmark when compressing RoBERTa to 14MB, setting a new SOTA for model size.
- It attains 80.0% top-1 accuracy on ImageNet by compressing an EfficientNet-B3 to just 3.3MB, exceeding prior methods.
- The approach enables stable training and high performance even with extreme quantization, such as Product Quantization, where STE fails.
- By using random subset quantization, the method provides unbiased gradients, reducing approximation errors in low-precision training.
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.