[Paper Review] Scaling Binarized Neural Networks on Reconfigurable Logic
This paper enhances the FINN framework to scale binarized neural networks (BNNs) on large FPGAs by introducing a -1-based padding technique that maintains a 1-bit datapath while improving accuracy. It achieves 12,000 FPS inference on CIFAR-10 at 88.7% accuracy with 14.8 TOPS performance and under 41W power, demonstrating high efficiency and scalability on the ADM-PCIE-8K5 FPGA platform.
Binarized neural networks (BNNs) are gaining interest in the deep learning community due to their significantly lower computational and memory cost. They are particularly well suited to reconfigurable logic devices, which contain an abundance of fine-grained compute resources and can result in smaller, lower power implementations, or conversely in higher classification rates. Towards this end, the Finn framework was recently proposed for building fast and flexible field programmable gate array (FPGA) accelerators for BNNs. Finn utilized a novel set of optimizations that enable efficient mapping of BNNs to hardware and implemented fully connected, non-padded convolutional and pooling layers, with per-layer compute resources being tailored to user-provided throughput requirements. However, FINN was not evaluated on larger topologies due to the size of the chosen FPGA, and exhibited decreased accuracy due to lack of padding. In this paper, we improve upon Finn to show how padding can be employed on BNNs while still maintaining a 1-bit datapath and high accuracy. Based on this technique, we demonstrate numerous experiments to illustrate flexibility and scalability of the approach. In particular, we show that a large BNN requiring 1.2 billion operations per frame running on an ADM-PCIE-8K5 platform can classify images at 12 kFPS with 671 us latency while drawing less than 41 W board power and classifying CIFAR-10 images at 88.7% accuracy. Our implementation of this network achieves 14.8 trillion operations per second. We believe this is the fastest classification rate reported to date on this benchmark at this level of accuracy.
Motivation & Objective
- Address the scalability of binarized neural networks (BNNs) on large FPGAs beyond embedded platforms.
- Overcome the accuracy degradation caused by lack of padding in prior BNN FPGA accelerators like FINN.
- Improve BRAM utilization efficiency in BNN accelerators to support larger network topologies.
- Enable high-throughput, low-power BNN inference on reconfigurable logic while maintaining a 1-bit datapath.
- Demonstrate state-of-the-art performance on large-scale BNNs using the FINN framework on modern FPGA platforms.
Proposed method
- Propose a modified padding strategy that uses -1 values instead of 0s to preserve the 1-bit datapath in BNNs.
- Introduce architectural enhancements to the MVTU (Matrix-Vector Tensor Unit) to support multiple vector multiplications in parallel, improving BRAM utilization.
- Extend the FINN framework to support larger BNNs by optimizing memory partitioning and resource allocation on the ADM-PCIE-8K5 FPGA.
- Implement a streaming architecture with per-layer compute resources tailored to throughput requirements.
- Use XNOR and popcount operations for binary inference, eliminating multipliers and reducing area and power consumption.
- Apply on-chip memory (OCM) for weights and activation buffers to minimize off-chip memory access and improve bandwidth.
Experimental results
Research questions
- RQ1Can BNNs be scaled to large, high-throughput inference tasks on modern FPGAs while maintaining a 1-bit datapath?
- RQ2How can padding be effectively applied in BNNs without requiring a 2-bit datapath or sacrificing accuracy?
- RQ3What are the main bottlenecks in the FINN framework when scaling to larger networks on high-end FPGAs?
- RQ4To what extent can BRAM utilization be improved in BNN accelerators to support larger models?
- RQ5Can high inference rates (e.g., 12 kFPS) be achieved with low power consumption (<41W) and high accuracy (>88%) on CIFAR-10 using BNNs on FPGAs?
Key findings
- The proposed -1-based padding improves BNN accuracy to 88.7% on CIFAR-10 while maintaining a 1-bit datapath, outperforming no-padding and matching 0-padding accuracy.
- The implementation achieves 12,000 frames per second (FPS) with only 671 μs latency on the ADM-PCIE-8K5 FPGA.
- The system delivers 14.8 trillion operations per second (TOPS) with less than 41W board power consumption.
- BRAM utilization in FINN is suboptimal, averaging only ~22% efficiency due to fragmented weight memory allocation from fixed $F^m$ in MVTUs.
- Architectural enhancement to the MVTU to support multiple vector multiplications in parallel could significantly improve BRAM utilization and reduce resource overhead.
- The approach demonstrates the highest reported classification rate for a BNN at 88.7% accuracy on CIFAR-10, setting a new performance benchmark for binarized inference on FPGAs.
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.