Binary Complex Neural Network Acceleration on FPGA : (Invited Paper)

Hongwu Peng, Shanglin Zhou, Scott Weitze, Jiaxin Li, Sahidul Islam, Tong Geng, Ang Li, Wei Zhang, Minghu Song, Mimi Xie, Hang Liu, Caiwen Ding

TL;DR

This paper presents a high-performance FPGA accelerator for Binarized Complex Neural Networks (BCNNs), achieving inference speeds of over 5,000 frames per second. By combining a novel structural pruning algorithm with a custom hardware architecture, the authors demonstrate that complex-valued networks—critical for signal processing—can be deployed on edge devices with high efficiency and minimal accuracy loss.

What Problem Does This Paper Address?

Most modern deep neural networks (DNNs) operate in the real-valued domain. While effective for images, they struggle with signal processing tasks where phase information is vital. Deep Complex Networks (DCNs) can handle this data but are computationally expensive and memory-intensive, making them difficult to use in real-time systems that require instant decision-making.

Furthermore, deploying large models on FPGAs often hits a "memory wall." Accessing off-chip memory (DDR4) is significantly slower and more power-hungry than using on-chip memory (BRAM/URAM). To make complex-valued networks practical for edge deployment, researchers need a way to drastically reduce model size and computational complexity without sacrificing the unique benefits of complex-valued arithmetic.

Methods

The authors attack the problem from both the algorithmic and hardware perspectives:

1. Algorithmic Optimization

  • Structural Pruning with SLR: The researchers used Surrogate Lagrangian Relaxation (SLR) to prune the network. Unlike standard unstructured pruning, which creates irregular memory access patterns, structural pruning removes entire channels, making it much more hardware-friendly. SLR was found to converge faster and achieve higher accuracy than the more common ADMM-based pruning.
  • Binary Quantization: They employed a Straight-Through Estimator (STE) to quantize weights and activations to just a single bit (binarization). In the complex domain, this means the real and imaginary parts are binarized individually (quadrant binarization).

2. Hardware Architecture

  • Custom BCNN Accelerator: The authors designed a novel 2D convolution accelerator specifically for BCNNs. By binarizing the complex numbers, the heavy floating-point multiplications are replaced by simple bitwise XOR and popcount operations.
  • Architectural Shifts: The BCNN architecture differs from standard CNNs; for instance, batch normalization becomes mandatory for convergence, and the bias term is removed to save resources.
Comparison between original CNN and BCNN architectures
  • Complex Input Generation: Since standard images are real-valued, the authors implemented a two-layer residual CNN to "learn" the imaginary part, creating a complex-valued input for the rest of the network.
Complex input generation process

Datasets

The proposed BCNN models and hardware were evaluated using two primary benchmarks:

  • CIFAR-10: Used for training and evaluating NIN-Net and ResNet-18 models.
  • ImageNet: Used to evaluate the pruning and quantization performance on the larger ResNetE-18 model.

Key Insights and Ideas

  • The Superiority of Average Pooling: In a surprising finding, the authors compared different pooling methods for BCNNs. While "spectral pooling" (using FFT) is theoretically interesting for complex data, average pooling provided the best balance of accuracy and computational simplicity for hardware implementation.
Comparison of different pooling functions on image data
  • Complex Robustness: Complex-valued networks appear more robust to heavy compression than their real-valued counterparts. Even after 20× pruning and binarization, the complex models maintained higher accuracy levels.
  • On-Chip Efficiency: By compressing the model enough to fit entirely within the FPGA's on-chip memory (35 MB on the Alveo U200), the design avoids the 400× bandwidth bottleneck of off-chip DDR4 memory.

Key Results

The experimental results, conducted on a Xilinx Alveo U280 board, show significant gains:

  • High Throughput: The design achieved 5,882 frames/s for complex NIN-Net and 4,938 frames/s for complex ResNet-18.
  • Hardware Efficiency: The accelerator maintained over 90% resource utilization, indicating a highly optimized hardware design.
  • Cross-Platform Speedup: The FPGA implementation outperformed a high-end Nvidia Quadro RTX 6000 GPU by 1.51× for NIN-Net and 1.58× for ResNet-18.
  • Effective Compression: The SLR pruning achieved a 20× pruning rate with negligible loss in accuracy.

Limitations and Future Work

While the paper demonstrates impressive throughput, the authors focus primarily on image classification datasets (CIFAR-10, ImageNet) to prove the concept. The true test for BCNNs lies in raw signal processing applications (like radar or radio modulation classification) where phase information is naturally present in the source data. Future work could explore these native complex-data domains and even deeper residual architectures.

Hardware design architecture for the BCNN accelerator

Summary updated

BibTeX
@inproceedings{peng2021binary,
  author = {Hongwu Peng and Shanglin Zhou and Scott Weitze and Jiaxin Li and Sahidul Islam and Tong Geng and Ang Li and Wei Zhang and Minghu Song and Mimi Xie and Hang Liu and Caiwen Ding},
  title = {{Binary Complex Neural Network Acceleration on FPGA : (Invited Paper)}},
  booktitle = {ASAP},
  year = {2021},
  doi = {10.1109/asap52443.2021.00021},
}
Figure