A 7.663-TOPS 8.2-W Energy-efficient FPGA Accelerator for Binary Convolutional Neural Networks

Yixing Li, Zichuan Liu, Kai Xu, Hao Yu, Fengbo Ren

Introduction

Convolutional Neural Networks (CNNs) have become the gold standard for image recognition and computer vision tasks. However, their deployment is often constrained by high computational demands, requiring billions of floating-point operations and significant memory bandwidth. While high-end GPUs provide the necessary throughput, their high power consumption poses challenges for energy-constrained environments like mobile devices and edge data centers.

This paper presents a specialized FPGA-based architecture designed to bridge the "throughput gap" by leveraging Binary Convolutional Neural Networks (BCNNs). By restricting weights and activations to binary values (+1 and -1), the proposed design replaces expensive multiplications with efficient bitwise logic, achieving 7.663 TOPS at just 8.2W.

Algorithmic Reformulation for Hardware Efficiency

The core innovation lies in the transition from standard floating-point arithmetic to binary operations. In a typical CNN, convolution involves intensive multiply-accumulate (MAC) operations. In the proposed BCNN framework, values are encoded as 1 and 0, allowing the hardware to perform convolutions using simple bitwise XNOR and bit-counting operations.

Comparison of standard CNN operations vs. BCNN bitwise logic.

Furthermore, the researchers simplified the normalization and binarization stages. Standard networks require complex mathematical steps to normalize data before binarizing it for the next layer. This architecture mathematically collapses these steps into a single thresholding operation. By asking a simple comparison question—"Is this value greater than X?"—the entire operation can be implemented using Field Programmable Gate Array (FPGA) Look-Up Tables (LUTs), significantly reducing logic complexity.

Hardware Architecture and Parallelism

The accelerator architecture is built on three pillars: massive parallelism, deep pipelining, and on-chip data management. The design utilizes "architectural unfolding" to process multiple parts of the network simultaneously.

The proposed FPGA accelerator pipeline showing parallel processing layers and memory channels.

To eliminate the "DRAM bottleneck"—the energy-intensive process of fetching data from external memory—the binarized model is compressed by up to 32x, allowing the entire network to fit within the FPGA's internal Block RAM (BRAM). A double-buffering scheme ensures a continuous data stream, enabling the hardware to maintain peak performance even with a batch size of 1. This makes the design particularly well-suited for real-time applications where low latency is critical.

Experimental Results

The design was implemented on a Xilinx Virtex-7 FPGA and evaluated using the CIFAR-10 dataset. The system achieved a top-1 accuracy of 87.8%, coming within 0.3% of the software baseline, proving that extreme quantization does not necessitate a significant loss in accuracy.

Key performance metrics compared to an NVIDIA Titan X GPU include:

  • Throughput: 7.663 TOPS and 6,218 frames per second (FPS).
  • Energy Efficiency: At a batch size of 16, the FPGA was 8.3x faster and 75x more energy-efficient than the Titan X.
  • Power Profile: The entire system operates at a mere 8.2 Watts.

Conclusion and Future Work

This work demonstrates that FPGAs can significantly outperform high-end GPUs in BCNN inference by leveraging bit-level parallelism. While highly effective for the 9-layer architecture tested, future work will focus on scaling this approach to more complex models like ResNet and larger datasets like ImageNet, which may require new strategies for managing on-chip memory limits. Additionally, the first layer currently remains in 6-bit fixed-point to preserve accuracy, suggesting a potential area for further optimization in fully-binary pipelines.

Summary updated

BibTeX
@inproceedings{li2017tops,
  author = {Yixing Li and Zichuan Liu and Kai Xu and Hao Yu and Fengbo Ren},
  title = {{A 7.663-TOPS 8.2-W Energy-efficient FPGA Accelerator for Binary Convolutional Neural Networks}},
  booktitle = {FPGA},
  year = {2017},
}
Figure