Skip to main content
QUICK REVIEW

[Paper Review] FireFly: A High-Throughput Hardware Accelerator for Spiking Neural Networks with Efficient DSP and Memory Optimization

Jindong Li, Guobin Shen|arXiv (Cornell University)|Jan 5, 2023
Advanced Memory and Neural ComputingEngineering3 citations
TL;DR

FireFly is an FPGA-based hardware accelerator for spiking neural networks that achieves high throughput by leveraging Xilinx DSP48E2 blocks for efficient spike-weight accumulation and optimizing memory access with a unified buffer for synaptic weights and membrane voltages. It delivers 5.53 TOP/s at 300 MHz on resource-constrained edge FPGAs, setting a new benchmark in computational density efficiency for SNN accelerators.

ABSTRACT

Spiking neural networks (SNNs) have been widely used due to their strong biological interpretability and high energy efficiency. With the introduction of the backpropagation algorithm and surrogate gradient, the structure of spiking neural networks has become more complex, and the performance gap with artificial neural networks has gradually decreased. However, most SNN hardware implementations for field-programmable gate arrays (FPGAs) cannot meet arithmetic or memory efficiency requirements, which significantly restricts the development of SNNs. They do not delve into the arithmetic operations between the binary spikes and synaptic weights or assume unlimited on-chip RAM resources by using overly expensive devices on small tasks. To improve arithmetic efficiency, we analyze the neural dynamics of spiking neurons, generalize the SNN arithmetic operation to the multiplex-accumulate operation, and propose a high-performance implementation of such operation by utilizing the DSP48E2 hard block in Xilinx Ultrascale FPGAs. To improve memory efficiency, we design a memory system to enable efficient synaptic weights and membrane voltage memory access with reasonable on-chip RAM consumption. Combining the above two improvements, we propose an FPGA accelerator that can process spikes generated by the firing neuron on-the-fly (FireFly). FireFly is the first SNN accelerator that incorporates DSP optimization techniques into SNN synaptic operations. FireFly is implemented on several FPGA edge devices with limited resources but still guarantees a peak performance of 5.53TOP/s at 300MHz. As a lightweight accelerator, FireFly achieves the highest computational density efficiency compared with existing research using large FPGA devices.

Motivation & Objective

  • Address the lack of efficient arithmetic and memory management in existing FPGA-based SNN accelerators.
  • Overcome performance bottlenecks caused by fabric-only implementations and inefficient use of dedicated DSP blocks in FPGAs.
  • Design a lightweight, reconfigurable accelerator suitable for edge devices with limited on-chip resources.
  • Achieve high computational density and throughput by optimizing both arithmetic operations and memory access patterns in SNNs.
  • Demonstrate feasibility and superiority of FPGA-specific optimizations for SNN inference on commercial edge FPGAs.

Proposed method

  • Generalized SNN synaptic operations into a multiplex-accumulate (MAC) operation compatible with Xilinx DSP48E2 hard blocks.
  • Implemented spike computation using DSP48E2 blocks instead of general-purpose logic fabric to improve clock frequency and energy efficiency.
  • Designed a hierarchical synaptic weight delivery system to reduce off-chip memory bandwidth pressure.
  • Introduced a Psum-Vmem unified buffer to co-locate partial sum and membrane voltage data, minimizing on-chip memory footprint.
  • Employed a monolithic systolic array architecture with regular, pipelined interconnects to enhance timing closure and scalability.
  • Optimized for reconfigurability by targeting commercially available, low-resource FPGA edge devices without relying on large on-chip RAM.

Experimental results

Research questions

  • RQ1How can SNN arithmetic operations be efficiently mapped to FPGA DSP hard blocks to improve performance and energy efficiency?
  • RQ2What memory access patterns and data structures can minimize on-chip memory usage while supporting high parallelism in SNN inference?
  • RQ3Can a lightweight SNN accelerator achieve high throughput on resource-constrained FPGA edge devices without relying on large on-chip memory?
  • RQ4To what extent can FPGA-specific optimization techniques—especially DSP48E2 utilization—improve SNN inference performance compared to fabric-only designs?
  • RQ5How does the proposed accelerator compare in computational density and performance to existing SNN accelerators using larger or more expensive FPGA devices?

Key findings

  • FireFly achieves a peak performance of 5.53 TOP/s at 300 MHz on low-resource FPGA edge devices, outperforming existing SNN accelerators in computational density efficiency.
  • The use of DSP48E2 blocks for SNN-specific arithmetic operations enables higher clock frequencies and better energy efficiency than fabric-only implementations.
  • The Psum-Vmem unified buffer reduces on-chip memory consumption by co-locating partial sums and membrane voltages, enabling efficient memory access with minimal resource usage.
  • The hierarchical weight delivery system effectively reduces off-chip memory bandwidth demands, supporting high parallelism without over-relying on on-chip storage.
  • FireFly demonstrates successful timing closure on commercial edge FPGAs, achieving stable operation at 300 MHz despite complex interconnects and high parallelism.
  • The accelerator supports multiple deep SNN models across various datasets, proving its reconfigurability and practicality for real-world SNN applications.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.