[Paper Review] WRPN: Training and Inference using Wide Reduced-Precision Networks
WRPN introduces a novel training and inference framework that reduces activation and weight precision in deep neural networks while maintaining or improving accuracy by widening network layers. By quantizing activations and weights to low bit-widths (e.g., 4b or 2b) and doubling filter maps, WRPN achieves full-precision accuracy with significantly reduced compute, memory, and energy costs—demonstrated on AlexNet and ResNet with 14–15% of the compute cost of full-precision models.
For computer vision applications, prior works have shown the efficacy of reducing the numeric precision of model parameters (network weights) in deep neural networks but also that reducing the precision of activations hurts model accuracy much more than reducing the precision of model parameters. We study schemes to train networks from scratch using reduced-precision activations without hurting the model accuracy. We reduce the precision of activation maps (along with model parameters) using a novel quantization scheme and increase the number of filter maps in a layer, and find that this scheme compensates or surpasses the accuracy of the baseline full-precision network. As a result, one can significantly reduce the dynamic memory footprint, memory bandwidth, computational energy and speed up the training and inference process with appropriate hardware support. We call our scheme WRPN - wide reduced-precision networks. We report results using our proposed schemes and show that our results are better than previously reported accuracies on ILSVRC-12 dataset while being computationally less expensive compared to previously reported reduced-precision networks.
Motivation & Objective
- To address the high memory and compute cost of deep neural networks in real-time robotics and embedded vision applications.
- To reduce the precision of both activations and weights without sacrificing model accuracy, contrary to prior work that focused only on weight quantization.
- To explore whether increasing filter map width can compensate for accuracy loss due to reduced-precision activations.
- To design a hardware-friendly quantization scheme suitable for efficient deployment on embedded and real-time systems.
- To demonstrate that reduced-precision networks can outperform full-precision baselines in accuracy while being computationally cheaper.
Proposed method
- Quantize activation values to k-bit fixed-point representation in the range [0,1], using the formula $ \frac{round((2^k - 1) \cdot A)}{2^k - 1} $.
- Quantize weight values to k-bit fixed-point in the range {-1,+1}, using $ \frac{round((2^{k-1} - 1) \cdot W)}{2^{k-1} - 1} $, with one bit reserved for sign.
- Increase the number of filter maps in each layer by a factor of two to compensate for reduced precision, maintaining or improving model capacity.
- Perform end-to-end training from scratch using mixed-precision quantized tensors, with scaling via floating-point constants to preserve gradient flow.
- Use affine transformations to map full-precision tensors to quantized representations, enabling efficient hardware mapping.
- Apply the scheme to standard models like AlexNet and ResNet-34 on the ILSVRC-12 dataset to evaluate accuracy and efficiency.
Experimental results
Research questions
- RQ1Can reducing activation precision below 32-bit without increasing model depth or width maintain or improve model accuracy?
- RQ2Does increasing the number of filter maps in a layer effectively compensate for the accuracy degradation caused by low-precision activations?
- RQ3Can a hardware-friendly quantization scheme for both weights and activations enable efficient deployment on embedded and real-time systems?
- RQ4Does the WRPN approach achieve higher accuracy than full-precision baselines while reducing computational and memory costs?
- RQ5What is the optimal trade-off between precision reduction and filter map widening for achieving high accuracy with low compute overhead?
Key findings
- AlexNet with 4-bit weights and 2-bit activations, combined with 2x filter maps, achieves 58.6% top-1 accuracy—matching the full-precision baseline (57.2%) and surpassing it when using 4b activations.
- The WRPN variant of AlexNet with 4b weights and 4b activations achieves 58.6% top-1 accuracy, which is 1.44% higher than the full-precision baseline.
- The 4b/4b WRPN AlexNet variant requires only 14% of the total compute cost of the full-precision baseline, despite a 3.9x increase in raw FMA operations.
- ResNet-34 with 4b weights and 8b activations, and 2x filter maps, achieves 73.8% top-1 accuracy—surpassing the full-precision baseline of 73.2%.
- The reduced-precision ResNet-34 variant has a total compute cost of only 15.1% of the full-precision model, demonstrating significant efficiency gains.
- The proposed quantization scheme is hardware-friendly, enabling efficient implementation on embedded and real-time systems through fixed-point arithmetic and scalable scaling operations.
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.