[Paper Review] Towards Efficient Training for Neural Network Quantization
The paper introduces scale-adjusted training (SAT) and gradient-calibrated PACT (CG-PACT) to enable efficient, high-accuracy quantized neural networks, achieving state-of-the-art results on MobileNet and PreResNet-50.
Quantization reduces computation costs of neural networks but suffers from performance degeneration. Is this accuracy drop due to the reduced capacity, or inefficient training during the quantization procedure? After looking into the gradient propagation process of neural networks by viewing the weights and intermediate activations as random variables, we discover two critical rules for efficient training. Recent quantization approaches violates the two rules and results in degenerated convergence. To deal with this problem, we propose a simple yet effective technique, named scale-adjusted training (SAT), to comply with the discovered rules and facilitates efficient training. We also analyze the quantization error introduced in calculating the gradient in the popular parameterized clipping activation (PACT) technique. Through SAT together with gradient-calibrated PACT, quantized models obtain comparable or even better performance than their full-precision counterparts, achieving state-of-the-art accuracy with consistent improvement over previous quantization methods on a wide spectrum of models including MobileNet-V1/V2 and PreResNet-50.
Motivation & Objective
- Analyze whether quantization accuracy loss comes from reduced capacity or training procedure during quantization.
- Derive rules for efficient training by examining gradient propagation in quantized networks.
- Propose SAT to preserve training dynamics under quantization.
- Investigate gradient-calibrated PACT (CG-PACT) to correct gradient errors in activation quantization.
- Demonstrate state-of-the-art performance on MobileNet-V1/V2 and PreResNet-50 on ImageNet under quantization.
Proposed method
- Analyze gradient propagation with effective weights in convolution/linear layers to derive two efficient-training rules (ETR I and ETR II).
- Propose scale-adjusted training (SAT) to keep weight variance appropriate after clamping and quantization.
- Evaluate DoReFa weight quantization with weight clamping and SAT to preserve training dynamics.
- Introduce CG-PACT to correct gradient calculation for the PACT activation quantizer.
- Combine SAT and CG-PACT and benchmark on MobileNet-V1/V2 and PreResNet-50 on ImageNet to compare with prior quantization methods.
Experimental results
Research questions
- RQ1Is the accuracy drop in quantized networks primarily due to reduced capacity or training inefficiencies during quantization?
- RQ2What are the necessary rules to ensure convergent and efficient training for quantized networks?
- RQ3Can SAT restore efficient training when weights are clamped or quantized?
- RQ4Does correcting activation gradient in PACT (CG-PACT) improve low-precision training?
- RQ5Do SAT and CG-PACT yield state-of-the-art results across popular architectures on ImageNet?
Key findings
- SAT helps maintain efficient training by keeping weight variance in a suitable range after clamping and quantization.
- Quantized models with SAT can achieve comparable or better performance than full-precision counterparts on MobileNet-V1/V2 and PreResNet-50.
- CG-PACT improves training at low precision by calibrating the gradient with respect to the PACT clipping parameter.
- Combining SAT and CG-PACT yields state-of-the-art accuracy under quantization across multiple models.
- Quantization can act as a beneficial regularizer, and activating quantization (activation quantization) often improves generalization in some settings.
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.