[Paper Review] Heterogeneous Bitwidth Binarization in Convolutional Neural Networks
This paper proposes Heterogeneous Bitwidth Neural Networks (HBNNs), where individual parameters in a CNN can have distinct bitwidths (e.g., 1-, 2-, or 3-bit), enabling fractional average bitwidths. By using a 'middle-out' bitwidth selection strategy during training, HBNNs achieve accuracy comparable to homogeneous 2-bit networks while reducing average bitwidth to just 1.4 bits, leading to significant gains in energy efficiency and area reduction on FPGA and ASIC hardware.
Recent work has shown that fast, compact low-bitwidth neural networks can be surprisingly accurate. These networks use homogeneous binarization: all parameters in each layer or (more commonly) the whole model have the same low bitwidth (e.g., 2 bits). However, modern hardware allows efficient designs where each arithmetic instruction can have a custom bitwidth, motivating heterogeneous binarization, where every parameter in the network may have a different bitwidth. In this paper, we show that it is feasible and useful to select bitwidths at the parameter granularity during training. For instance a heterogeneously quantized version of modern networks such as AlexNet and MobileNet, with the right mix of 1-, 2- and 3-bit parameters that average to just 1.4 bits can equal the accuracy of homogeneous 2-bit versions of these networks. Further, we provide analyses to show that the heterogeneously binarized systems yield FPGA- and ASIC-based implementations that are correspondingly more efficient in both circuit area and energy efficiency than their homogeneous counterparts.
Motivation & Objective
- To address the inefficiency of homogeneous binarization, where all parameters use the same low bitwidth, despite modern hardware supporting variable bitwidths per parameter.
- To explore whether assigning different bitwidths to individual parameters during training can improve the accuracy-compression-power trade-off in binarized CNNs.
- To develop a practical training method that selects optimal bitwidths per parameter to achieve target average bitwidths while maintaining high model accuracy.
- To demonstrate that heterogeneous bitwidth designs yield more efficient FPGA and ASIC implementations than homogeneous counterparts.
Proposed method
- Introduce Heterogeneous Bitwidth Neural Networks (HBNNs), allowing each network parameter to have an independent bitwidth, enabling fractional average bitwidths.
- Adapt a state-of-the-art homogeneous binarization training framework with a greedy 'middle-out' bitwidth selection algorithm to assign bitwidths during backpropagation.
- Use a straight-through estimator for gradient flow during training, maintaining floating-point weights while binarizing parameters to their assigned bitwidths.
- Perform hyperparameter search over bitwidth distributions to find optimal configurations that minimize average bitwidth while preserving accuracy.
- Estimate hardware efficiency using recent FPGA and ASIC implementations, modeling circuit area and power based on total computational units per parameter.
Experimental results
Research questions
- RQ1Can assigning variable bitwidths to individual parameters in a CNN improve the accuracy-compression-power trade-off compared to homogeneous binarization?
- RQ2Is it feasible to train a CNN with heterogeneous bitwidths per parameter using standard deep learning frameworks and optimization techniques?
- RQ3Can fractional average bitwidths (e.g., 1.4 bits) achieve accuracy equivalent to 2-bit homogeneous models while reducing hardware resource usage?
- RQ4How do heterogeneous bitwidth designs compare in area and power efficiency to homogeneous designs on FPGA and ASIC platforms?
Key findings
- HBNNs achieve 89.4% top-1 accuracy on ImageNet with MobileNet using only 1.4 average bitwidth, matching the accuracy of homogeneous 2-bit models.
- On VGG-8, a heterogeneous binarization with 1.4 average bits achieves 89.4% accuracy on ZC706 FPGA, using 28% less LUT occupancy than a 2-bit homogeneous version.
- ASIC implementations of HBNNs reduce chip area by 50% (from 297 mm² to 145.5 mm²) and power by 51% (from 18.62 mW to 9.1 mW) compared to 2-bit homogeneous designs, while maintaining 64.7% accuracy on MobileNet.
- The 'middle-out' bitwidth selection strategy outperforms other greedy methods in minimizing bitwidth while preserving accuracy across multiple models and datasets.
- Heterogeneous bitwidths enable fine-grained tuning of the accuracy-occupancy-power trade-off, allowing designers to maximize throughput or minimize area based on target hardware constraints.
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.