DeepFire2: A Convolutional Spiking Neural Network Accelerator on FPGAs

Myat Thu Linn Aung, Daniel Gerlinghoff, Chuping Qu, Liwei Yang, Tian Huang, Rick Siow Mong Goh, Tao Luo, Weng-Fai Wong · DOI

TL;DR

This paper introduces DeepFire2, a novel FPGA-based hardware accelerator for Spiking Neural Networks (SNNs). DeepFire2 addresses the scalability limitations of previous SNN accelerators by introducing a flexible "split-kernel mapping" strategy that efficiently distributes large network layers across multiple FPGA regions, achieving significant improvements in throughput and energy efficiency.

What Problem Does This Paper Address?

Traditional Artificial Neural Networks (ANNs) are computationally intensive, leading to high power consumption. Spiking Neural Networks (SNNs), inspired by the brain's efficiency, offer a promising alternative by using integrate-and-fire neurons that operate on binary spike trains, thus reducing the need for complex multipliers. However, accelerating large, complex SNNs on hardware has been a challenge. Existing specialized hardware (ASICs) often lack flexibility, while previous FPGA implementations struggled with scalability, particularly when mapping large network layers across the FPGA's multiple processing regions (Super Logic Regions or SLRs). This paper tackles the problem of efficiently mapping large SNN layers onto multi-die FPGAs to overcome resource limitations and achieve high performance and energy efficiency.

Methods

DeepFire2 introduces a new hardware architecture and a key mapping strategy called "split-kernel mapping." This approach allows large convolutional kernels to be split and distributed across multiple SLRs, preventing any single SLR from becoming a bottleneck due to memory or compute resource limitations. This contrasts with previous "layer-wise mapping" where an entire layer was confined to one SLR, limiting scalability for larger networks.

Key architectural innovations include:

  • Split-Kernel Mapping: This technique allows for fine-grained control over how layers are allocated to SLRs. It enables distributing kernels across multiple SLRs, balancing resource utilization and minimizing inter-SLR communication strain.
  • Optimized Neuron Core Design: The integrate-and-fire neuron core is redesigned to reduce the reliance on lookup tables (LUTs) for the AND operation, instead utilizing registers. This significantly improves scalability for large networks.
  • Deep Pipelining: The architecture employs deep pipelining, enabling a high clock speed of up to 600 MHz.
  • Two-Stage Feature Buffering: This mechanism efficiently handles the transfer of spike features between layers.
  • Transduction Layer: This initial layer converts raw image data into spike trains, using multipliers for 8-bit operands, followed by an adder tree and accumulator.

Datasets

The paper evaluates DeepFire2 on several standard image classification datasets:

  • MNIST: A classic dataset for handwritten digit recognition.
  • Cifar-10: A dataset of 60,000 32x32 color images in 10 classes.
  • Cifar-100: A dataset of 60,000 32x32 color images in 100 classes.
  • Tiny-ImageNet: A subset of ImageNet, often used for benchmarking.
  • ImageNet: A large-scale dataset of over 14 million images in 1000 classes, representing a significant challenge for SNN accelerators.

The paper does not introduce new benchmark datasets but demonstrates the capability of DeepFire2 to handle large-scale datasets like ImageNet, which was previously a significant hurdle for SNN hardware.

Key Insights and Ideas

  • Scalability through Flexibility: The core insight is that achieving scalability in SNN accelerators on FPGAs hinges on flexible mapping strategies. Split-kernel mapping allows for dynamic distribution of computational tasks, overcoming the fixed resource limitations of individual SLRs.
  • Resource Balancing is Crucial: The paper highlights that simply mapping layers to SLRs isn't enough; balancing the utilization of different resources (DSPs, LUTs, memory) across SLRs is critical for optimal performance and power efficiency.
  • Optimizing for SNNs: DeepFire2 demonstrates that specialized hardware designs, like the register-based AND operation for SNNs, can significantly reduce resource usage and improve performance compared to generic approaches.
  • Bridging the Gap to Large-Scale Datasets: The ability to deploy a full-scale ImageNet model on an FPGA is a major achievement, showcasing the practical viability of SNNs for complex real-world tasks.

Key Results

  • Throughput and Power Efficiency: DeepFire2 achieves a throughput of up to 79 kFPS for MNIST, nearly doubling its predecessor (DeepFire). It also reports an almost 10-fold improvement in throughput and power efficiency compared to other previous SNN implementations.
  • High Clock Speed: The architecture reaches a clock speed of up to 600 MHz, significantly higher than many non-FPGA implementations.
  • ImageNet Deployment: DeepFire2 is the first neuromorphic IP capable of deploying a full-scale ImageNet implementation on an actual FPGA, achieving 40.1% accuracy.
  • Energy Efficiency: For MNIST, DeepFire2 achieves 10.26 kFPS/W, which is competitive with ASIC solutions and orders of magnitude better than GPU and CPU implementations.
  • Resource Utilization: The paper shows efficient utilization of FPGA resources, with some configurations achieving nearly 80% utilization in both memory and compute.

Limitations and Future Work

  • Accuracy Trade-off: While DeepFire2 achieves high performance, the paper notes a trade-off between accuracy and performance, particularly for large datasets like ImageNet where accuracy is around 40%. This is attributed to the inherent differences between SNNs and ANNs and the constraints of hardware implementation.
  • Manual Mapping: Currently, the mapping of layers to SLRs is done manually, requiring estimation of resource needs. Future work could involve developing automated mapping tools to further optimize this process.
  • Limited SLR Availability: While theoretically scalable to an unlimited number of SLRs, practical FPGA packages are limited to a few SLRs (typically up to four).
  • Future Work: The authors suggest that further optimizations could be achieved by exploring different mapping strategies and by developing more advanced compilation flows. They also hint at the potential for further improvements in accuracy through techniques like training with spike activations and using leaky ReLU or tanh activations.

Summary updated

BibTeX
@article{aung2023deepfire,
  author = {Myat Thu Linn Aung and Daniel Gerlinghoff and Chuping Qu and Liwei Yang and Tian Huang and Rick Siow Mong Goh and Tao Luo and Weng-Fai Wong},
  title = {{DeepFire2: A Convolutional Spiking Neural Network Accelerator on FPGAs}},
  journal = {IEEE Trans. Computers},
  year = {2023},
  doi = {10.1109/tc.2023.3272284},
}
Figure