[Paper Review] WRPN & Apprentice: Methods for Training and Inference using Low-Precision Numerics
This paper proposes WRPN, Apprentice, and WRPN+Apprentice—three software-based methods to train and infer deep neural networks using low-precision numerics (down to 2-bit weights and 8-bit activations) without sacrificing accuracy. By combining filter widening, knowledge distillation, and hybrid optimization, the methods achieve state-of-the-art accuracy in low-precision settings, with models outperforming both baseline full-precision networks and prior low-precision approaches.
Today's high performance deep learning architectures involve large models with numerous parameters. Low precision numerics has emerged as a popular technique to reduce both the compute and memory requirements of these large models. However, lowering precision often leads to accuracy degradation. We describe three schemes whereby one can both train and do efficient inference using low precision numerics without hurting accuracy. Finally, we describe an efficient hardware accelerator that can take advantage of the proposed low precision numerics.
Motivation & Objective
- To address the accuracy degradation common in low-precision deep neural networks (DNNs) during training and inference.
- To reduce memory and compute costs by lowering precision of both activations and weights, especially where they dominate memory footprint.
- To maintain or improve model accuracy despite aggressive quantization, particularly in large-batch training and real-time inference scenarios.
- To design a hardware accelerator optimized for low-precision operations, specifically 2-bit weights and 8-bit activations.
- To demonstrate that low-precision DNNs can match or exceed full-precision accuracy through algorithmic and architectural innovations.
Proposed method
- WRPN (Wide Reduced-Precision Networks) increases the number of filters in a layer—particularly in the first third of layers—to compensate for accuracy loss from reduced-precision activations and weights.
- Apprentice uses knowledge distillation, where a full-precision teacher network guides training of a low-precision student network by matching logits and softmax outputs.
- WRPN+Apprentice combines filter widening with distillation, applying both techniques simultaneously to further close the accuracy gap.
- The proposed accelerator is a systolic array with 64 processing engines, optimized for 2b weight and 8b activation matrix multiplication, using bit-parallel comparison instead of multipliers.
- The accelerator uses 32-bit signed accumulators and avoids floating-point units, enabling 15x smaller area and 12x better power efficiency than full-precision designs.
- The system is designed to support both training and inference with low-precision numerics, leveraging software schemes to maintain accuracy.
Experimental results
Research questions
- RQ1Can low-precision DNNs (with 2-bit weights and 8-bit activations) achieve or exceed the accuracy of full-precision models?
- RQ2Does widening network filters mitigate accuracy loss from quantizing activations and weights?
- RQ3Can knowledge distillation from a full-precision teacher network improve the accuracy of a low-precision student network during training?
- RQ4What is the optimal trade-off between precision reduction and model size in low-batch and high-batch inference scenarios?
- RQ5Can a specialized hardware accelerator efficiently support the proposed low-precision numerics while enabling high throughput and low power?
Key findings
- For ResNet-44 with 2-bit weights and 8-bit activations, WRPN+Apprentice achieves 5.8% top-1 error, surpassing the 6.5% baseline full-precision error.
- For ResNet-56 with 2-bit weights and 8-bit activations, WRPN+Apprentice achieves 5.6% top-1 error, outperforming the 6.2% baseline full-precision error.
- The Apprentice scheme reduces the accuracy gap between full-precision and low-precision models, achieving 5.8% error for ResNet-56 (vs. 6.2% baseline) with 2b weights and 8b activations.
- The proposed accelerator is 15x smaller in area and 12x more power-efficient than a full-precision design at the same process node.
- In large-batch training and inference, activation memory dominates; thus, reducing activation precision provides greater system-level benefits than reducing weight precision.
- The combination of filter widening and distillation enables convergence to higher accuracy than training low-precision models from scratch, with faster convergence observed in some cases.
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.