FireFly v2: Advancing Hardware Support for High-Performance Spiking Neural Network With a Spatiotemporal FPGA Accelerator

Jindong Li, Guobin Shen, Dongcheng Zhao, Qian Zhang, Yi Zeng

TL;DR

FireFly v2 is a high-performance FPGA accelerator for Spiking Neural Networks (SNNs) that bridges the gap between cutting-edge algorithms and hardware deployment. By introducing a novel spatiotemporal dataflow and supporting "non-spike" operations (like those found in ResNets), it achieves up to 2x the throughput of its predecessor and significantly outperforms current state-of-the-art accelerators in power and DSP efficiency.

What Problem Does This Paper Address?

Spiking Neural Networks (SNNs) are the "third generation" of neural networks, prized for their biological plausibility and extreme energy efficiency. However, there is a growing "hardware-algorithm gap." Modern, high-performance SNN algorithms often use techniques that are "hardware-unfriendly," such as:

  • Direct Input Encoding: Feeding raw analog pixel values into the first layer.
  • Residual Connections (ResNets): Adding spikes together, which results in multi-bit "non-spike" values.
  • Average Pooling: Creating fractional spike values.

Most specialized SNN hardware (like Intel’s Loihi) is designed strictly for binary spikes. When researchers try to deploy state-of-the-art (SOTA) models, they hit a wall because the hardware can't handle these non-spike operations. Furthermore, existing FPGA accelerators often struggle with memory bottlenecks caused by storing "membrane potentials"—the internal state of every single neuron—across time steps.

Methods

The authors introduce FireFly v2, which utilizes three key innovations to solve these issues:

  1. Bit-Serial Inspiration for Non-Spike Ops: Rather than building complex hardware for multi-bit math, FireFly v2 decomposes multi-bit or fractional spikes into sequences of binary spikes over equivalent time steps. This allows a single, streamlined "spike computing engine" to handle both standard binary spikes and complex SOTA operations without massive hardware overhead.
  2. Spatiotemporal Dataflow: Traditional accelerators often process time steps serially. FireFly v2 introduces a dataflow with four dimensions of parallelism: output channels, input channels, pixels, and—crucially—time steps. This allows the system to generate spikes "on-the-fly," eliminating the need to store massive amounts of membrane potential data on-chip.
  3. High-Frequency Systolic Array: The core compute engine is a systolic array optimized using "Double Data Rate" (DDR) techniques. While the main system runs at a standard frequency, the compute core runs at 500-600MHz, maximizing the utility of the FPGA's Digital Signal Processing (DSP) slices.

Datasets

The researchers evaluated FireFly v2 across a diverse range of benchmarks to prove its versatility:

  • Static Image Datasets: MNIST, CIFAR-10, and CIFAR-100.
  • Neuromorphic Dataset: DVS-Gesture (event-based data).
  • Large-Scale Benchmark: ImageNet, specifically using the SEW-ResNet34 architecture to test deep residual connections.

Key Insights and Ideas

  • Memory is the Real Enemy: The "aha moment" here is that storing membrane potentials is more expensive than re-calculating or streaming spikes. By shifting to a spatiotemporal dataflow, they drastically reduced on-chip memory consumption.
  • Frequency Matters: By decoupling the high-speed compute logic from the slower fabric logic, they pushed the FPGA to its theoretical limits (600MHz), proving that SNN hardware doesn't have to run at low clock speeds to be efficient.
  • Algorithm-Hardware Co-design: The support for non-spike operations means researchers don't have to "dumb down" their SNN models to get them to run on hardware; they can use the best performing SOTA architectures (like SEW-ResNet) directly.

Key Results

  • Speed: Achieved a clock frequency of 600MHz on Ultra96v2 FPGAs, the highest reported for any FPGA-based SNN accelerator.
  • Efficiency: Compared to the previous FireFly v1, v2 doubled both throughput and DSP efficiency.
  • Competitive Edge: Compared to DeepFire2 (a leading competitor), FireFly v2 showed 1.33x better DSP efficiency and 1.42x better power efficiency, even when running on smaller, edge-grade FPGA devices.
  • Accuracy: Maintained high benchmark accuracy (e.g., 93.6% on CIFAR-10 and 67.3% on ImageNet) by supporting full-precision SOTA algorithms.

Limitations and Future Work

  • Granularity Issues: The authors note that for very small feature maps (e.g., 4x4), the coarse-grained pixel parallelism leads to some idle hardware resources, reducing efficiency.
  • Sparsity Exploitation: While SNNs are inherently sparse (many neurons don't fire), this version of FireFly v2 does not yet explicitly skip computations for zero-value spikes. The authors identify "sparsity acceleration" as a key direction for future versions.
  • Quantization: While they support multi-bit spikes, they suggest that moving toward quantization-aware training could further optimize the bit-widths used in the bit-serial decomposition.

Summary updated

BibTeX
@article{li2024firefly,
  author = {Jindong Li and Guobin Shen and Dongcheng Zhao and Qian Zhang and Yi Zeng},
  title = {{FireFly v2: Advancing Hardware Support for High-Performance Spiking Neural Network With a Spatiotemporal FPGA Accelerator}},
  journal = {IEEE Trans. Comput. Aided Des. Integr. Circuits Syst.},
  year = {2024},
  doi = {10.1109/tcad.2024.3380550},
}
Figure