[Paper Review] Effective Training of Convolutional Neural Networks with Low-bitwidth Weights and Activations
This paper proposes three novel training strategies—progressive quantization, stochastic precision, and joint knowledge distillation—to effectively train convolutional neural networks with both low-bitwidth weights and activations. By progressively quantizing weights then activations, using one-stage stochastic quantization to reduce training overhead, and jointly training a full-precision teacher with a low-precision student, the method achieves state-of-the-art accuracy on ImageNet and CIFAR-100 with 2-bit weights and activations, outperforming baselines by up to 3.06% relative error reduction.
This paper tackles the problem of training a deep convolutional neural network of both low-bitwidth weights and activations. Optimizing a low-precision network is very challenging due to the non-differentiability of the quantizer, which may result in substantial accuracy loss. To address this, we propose three practical approaches, including (i) progressive quantization; (ii) stochastic precision; and (iii) joint knowledge distillation to improve the network training. First, for progressive quantization, we propose two schemes to progressively find good local minima. Specifically, we propose to first optimize a net with quantized weights and subsequently quantize activations. This is in contrast to the traditional methods which optimize them simultaneously. Furthermore, we propose a second progressive quantization scheme which gradually decreases the bit-width from high-precision to low-precision during training. Second, to alleviate the excessive training burden due to the multi-round training stages, we further propose a one-stage stochastic precision strategy to randomly sample and quantize sub-networks while keeping other parts in full-precision. Finally, we adopt a novel learning scheme to jointly train a full-precision model alongside the low-precision one. By doing so, the full-precision model provides hints to guide the low-precision model training and significantly improves the performance of the low-precision network. Extensive experiments on various datasets (e.g., CIFAR-100, ImageNet) show the effectiveness of the proposed methods.
Motivation & Objective
- To address the challenge of training deep CNNs with both low-bitwidth weights and activations, which is hindered by the non-differentiability of quantization operations.
- To reduce the training burden of multi-stage progressive quantization while maintaining performance gains.
- To improve low-precision network performance by leveraging knowledge distillation from a full-precision teacher network.
- To jointly optimize the teacher and student networks to enable mutual improvement during training.
- To develop a general, effective training framework applicable to various network architectures and bitwidths.
Proposed method
- Proposes a two-stage progressive quantization scheme: first train with quantized weights only, then fine-tune with quantized activations.
- Introduces a second progressive quantization scheme that gradually reduces bitwidth from full-precision to target low-precision during training.
- Develops a one-stage stochastic precision strategy that randomly samples and quantizes sub-networks (e.g., layers or blocks) while keeping the rest in full-precision, mimicking dropout to improve gradient flow.
- Introduces joint knowledge distillation where a full-precision teacher and low-precision student are trained together, with the teacher guiding the student via loss minimization on logits or features.
- Uses a joint training objective that combines cross-entropy loss on labels and knowledge distillation loss between teacher and student outputs.
- Combines all three components—progressive quantization, stochastic precision, and joint knowledge distillation—into a unified training framework for maximum performance.
Experimental results
Research questions
- RQ1Can progressive quantization, by decoupling weight and activation quantization, lead to better optimization and higher accuracy in low-bitwidth CNNs?
- RQ2Does a one-stage stochastic precision strategy effectively reduce training complexity while maintaining performance gains from progressive quantization?
- RQ3Can joint training of a full-precision teacher and low-precision student improve the accuracy of the student model beyond standard knowledge distillation?
- RQ4How do the proposed methods interact when combined, and what is the maximum performance gain on standard benchmarks like ImageNet and CIFAR-100?
- RQ5Is the proposed framework generalizable across different network architectures (e.g., ResNet, PreResNet, AlexNet) and bitwidths (e.g., 2-bit, 4-bit)?
Key findings
- On ImageNet with ResNet-50 and 2-bit weights and activations, the proposed method achieved a Top-1 accuracy of 72.40%, a 3.06% relative improvement over the baseline.
- For ResNet-50 with 2W, 2A, the method achieved 72.40% Top-1 accuracy, outperforming the baseline by 3.06% and the DoReFa-Net baseline by 2.39% in Top-1 error reduction.
- On CIFAR-100 with AlexNet and 2W, 2A, the method achieved 65.23% Top-1 accuracy with SP and KD, a 1.34% improvement over the baseline.
- On ImageNet with AlexNet and 2W, 2A, the method achieved 51.96% Top-1 accuracy with TS, PP, and KD, a 3.17% improvement over the baseline.
- The joint knowledge distillation strategy improved both the full-precision teacher and low-precision student models simultaneously, demonstrating mutual benefit.
- Combining all three components—progressive quantization, stochastic precision, and joint knowledge distillation—yielded the highest performance across all datasets and 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.