Abstract
While hardware implementations of inference routines for Binarized Neural Networks (BNNs) are plentiful, current realizations of efficient BNN hardware training accelerators, suitable for Internet of Things (IoT) edge devices, leave much to be desired. Conventional BNN hardware training accelerators perform forward and backward propagations with parameters adopting binary representations, and optimization using parameters adopting floating or fixed-point real-valued representations—requiring two distinct sets of network parameters. In this paper, we propose a hardware-friendly training method that, contrary to conventional methods, progressively binarizes a singular set of fixed-point network parameters, yielding notable reductions in power and resource utilizations. We use the Intel FPGA SDK for OpenCL development environment to train our progressively binarizing DNNs on an OpenVINO FPGA. We benchmark our training approach on both GPUs and FPGAs using CIFAR-10 and compare it to conventional BNNs.
Introduction
Binarized Neural Networks (BNNs) are highly desirable for edge computing because they replace power-hungry multiplications with simple additions. However, training them is notoriously difficult. Standard BNN training is often unstable due to the non-differentiable signum function. To circumvent this, researchers typically use a "Straight-Through Estimator" (STE), which creates a mismatch between binary weights used in the forward pass and high-precision weights used for updates. Furthermore, hardware accelerators for BNN training usually require maintaining two distinct sets of parameters, consuming significant memory and logic resources on FPGAs.
Methods
The proposed Progressive Binarization approach, implemented using the Intel FPGA SDK for OpenCL, addresses these inefficiencies by gradually transitioning a single set of fixed-point parameters into binary states.
Key technical innovations include:
- The Continuation Method: Instead of immediate binarization, a scaling parameter ($v$) increases over time, causing the activation function to evolve from a smooth, differentiable curve into a sharp step function.
- Piece-Wise Linear (PWL) Approximation: Replacing the standard hyperbolic tangent ($tanh$) with a PWL function ensures the derivative is a constant, simplifying the hardware logic required for backpropagation.
- Single Parameter Representation: Unlike conventional BNNs, PBNNs only require a single set of fixed-point parameters during training, drastically reducing the memory footprint and simplifying the data path.
Results
The researchers evaluated their approach using the CIFAR-10 dataset on an OpenVINO FPGA. The PBNN approach outperformed traditional BNN training methods across several key metrics.
- Accuracy: On CIFAR-10, the 16-bit PBNN achieved 86.94% accuracy, outperforming stochastic BNNs (86.45%) and deterministic BNNs (86.16%), nearly matching the 32-bit floating-point baseline (86.77%).
- Power and Speed: On the FPGA, the PBNN routine consumed the least power (7.60W for 8-bit) and achieved the shortest training time per epoch (27.66s for 8-bit).
- Resource Efficiency: PBNNs showed a notable reduction in hardware overhead. For 16-bit implementations, PBNNs used ~85% of available Adaptive Logic Modules (ALMs), whereas stochastic methods required ~94%.
Conclusion
Progressively Binarizing Neural Networks (PBNNs) provide a more stable and resource-efficient path for training low-precision models on edge hardware. By treating binarization as a sequence of smooth sub-optimization problems, PBNNs avoid the instability of the Straight-Through Estimator while significantly reducing memory and power requirements. Future work will focus on scaling this approach to more complex datasets like ImageNet and further optimizing the binarization schedule.
Summary updated