A Deep Learning Accelerator Based on a Streaming Architecture for Binary Neural Networks

Quang Hieu Vo, Linh Ngoc Le, Faaiz Asim, Lok-Won Kim, Choong Seon HongIEEE Access 2022

Abstract

Binarized Neural Networks (BNNs) significantly reduce the computational and memory requirements of deep learning models by using 1-bit weights and activations. However, mapping these models efficiently to hardware remains a challenge due to memory bottlenecks and logic redundancy. This paper proposes a streaming accelerator architecture for BNNs that leverages coarse-grained pipelining, K-means-based weight reuse, and optimized logic compression. Implemented on a Xilinx Zynq UltraScale+ MPSoC, the design achieves record-breaking throughput, reaching over 1.5 million frames per second (FPS) for the MNIST dataset while utilizing significantly fewer hardware resources than existing state-of-the-art frameworks.

Introduction

The deployment of Deep Neural Networks (DNNs) on edge devices is often constrained by limited power, memory, and processing capabilities. BNNs address these constraints by replacing 32-bit floating-point operations with bitwise XNOR and population count (popcount) operations. Despite these simplifications, traditional "layer-by-layer" hardware accelerators often suffer from high latency and energy consumption due to frequent off-chip memory access. This work introduces a streaming architecture that processes data in a continuous pipeline, eliminating intermediate storage and maximizing hardware utilization.

Proposed Streaming Architecture

The core of the proposed system is a "streaming" pipeline where each neural network layer is instantiated as a dedicated hardware stage. This allows for high-throughput processing as multiple frames can be processed simultaneously across different stages of the network.

Hardware-Efficient Binary Convolutions

To minimize the area footprint, the accelerator uses specialized logic for binary convolutions. Instead of standard multipliers, the design employs XNOR gates followed by an adder tree to sum the results. This approach replaces expensive arithmetic with simple bitwise logic.

Binary convolution logic using XNOR gates and an adder tree.

The design further optimizes the summation process using 6:3 and 3:2 compressor trees, which are more efficient than standard digital adders on FPGA lookup tables (LUTs).

Weight Reuse via K-means Clustering

A key innovation in this work is the reduction of redundant computations through K-means clustering. By identifying similar weight patterns and calculating results for "centroid" weights, the system only needs to compute the differences for related weights. This strategy led to a 67% reduction in LUT usage and a 93% reduction in power consumption in specific model configurations.

Layer Fusion and Simplification

The architecture also optimizes the sequence of non-convolutional layers to reduce hardware overhead. By fusing Batch Normalization with the Binarization step, the hardware can determine the binary output using a simple comparison against a threshold. Furthermore, when Maxpooling is performed on binary data, it can be simplified into a logical OR operation, significantly reducing logic complexity.

Optimization of Batchnorm, Binarization, and Maxpooling sequences.

Experimental Results

The accelerator was evaluated on the MNIST and CIFAR-10 datasets using an Ultra96 development board. The design's "BRAM-less" nature allowed it to flow data directly between layers without intermediate off-chip storage.

  • MNIST: The system achieved a throughput of 1,531,000 FPS with an accuracy of 98.4%.
  • CIFAR-10: The system reached 205,000 FPS with 80.2% accuracy.

Compared to the well-known FINN framework, the proposed design utilized three times fewer LUTs while maintaining comparable accuracy. The area efficiency, measured in FPS per LUT, was approximately 1.5 times higher than previous state-of-the-art designs like FINN-R.

Conclusion

This paper demonstrates that a streaming architecture combined with intelligent weight reuse and logic optimization can push the boundaries of BNN performance on edge hardware. While currently limited to feed-forward architectures, the significant gains in throughput and area efficiency provide a strong foundation for future scaling to more complex models like ResNets and larger datasets like ImageNet.

Summary updated

BibTeX
@article{vo2022deep,
  author = {Quang Hieu Vo and Linh Ngoc Le and Faaiz Asim and Lok-Won Kim and Choong Seon Hong},
  title = {{A Deep Learning Accelerator Based on a Streaming Architecture for Binary Neural Networks}},
  journal = {IEEE Access},
  year = {2022},
  doi = {10.1109/access.2022.3151916},
}
Figure