arXiv:2610.17463cs.AIOct 2026

Manuscript Offprint

arXiv:2610.17463

An FPGA-Based Spiking Neural Network for Spatiotemporal Pattern Learning and Classification

Jingang Jin, Yue Ma, Zhenhang Zhang, Qinru Qiu

Jingang Jin, Yue Ma, Zhenhang Zhang and Qinru Qiu

Department of Electrical Engineering and Computer Science

Syracuse University, Syracuse, New York, USA

{jjin24, yma183, zzhan281, qiqiu}@syr.edu

Abstract—Spiking Neural Networks (SNNs) are promising for energy-efficient spatiotemporal pattern recognition at the edge, but efficient deployment and on-device adaptation require specialized hardware. In this work, we present an FPGA implementation of multilayer SNNs for spatiotemporal pattern classification, in which both inference and training take place on the same hardware. Our design adopts a temporal-forward-only training algorithm that avoids the memory and latency overhead associated with traditional Backpropagation Through Time (BPTT). A mixed-precision scheme balances training stability with resource efficiency, and architectural optimization maximizes hardware and memory utilization. We further identify and resolve hazards that arise when inference and learning share the same memory, including port conflicts between the forward and backward access patterns and read-after-write dependencies in floating-point potential accumulation. Experimental evaluations on MNIST and five multivariate time-series classification datasets demonstrate that, with fully on-chip training, our SNN model achieves accuracy comparable to SNN or LSTM trained with BPTT. Compared to CPU and GPU based implementations, our FPGA design delivers 2.5×2.5\times to 6×6\times higher throughput while consuming an order of magnitude less energy per sample.

Index Terms—Neuromorphic Computing, Spiking Neural Network, In-hardware learning, FPGA

I. INTRODUCTION

Driven by the emergence of cyber-physical systems in recent years, a growing number of neural network models have been integrated into edge devices, such as smart vehicles and wearable sensors. Because user behavior, environmental conditions, and even sensor characteristics vary over time and across systems, it is highly desirable for neural networks to adapt to their specific hardware and application environment through in-hardware learning after deployment, in order to maintain performance.

There is also increasing demand for edge devices to process temporal sensor readings not as static, frame-based input, but as a stream with spatiotemporal structure. Compared to buffering an entire sequence and classifying all temporal samples at once, a state-space model (e.g., a recurrent neural network (RNN)) that processes input sample-by-sample incurs much lower computational cost and latency, making it more suitable for edge applications. However, a key challenge is that RNNs are trained using Backpropagation Through Time (BPTT), which unrolls the network over time, so its memory requirement grows linearly with sequence length. Moreover, training cannot begin until the entire sequence has been received, which again causes high latency and a bursty workload. These properties make it difficult to train RNNs on edge devices.

Spiking neural networks (SNNs) [1] [2] present a promising alternative to conventional artificial neural networks. They are extremely energy efficient due to their event-driven dynamics and sparse computation. They are also well suited for temporal pattern recognition, since each neuron maintains a hidden state, making the network inherently an RNN. Finally, recent research on three-factor Hebbian learning [30] has made it possible to train such networks for spatiotemporal classification without unrolling the network in time [31]. Hence, unlike BPTT training, where memory requirements grow with the length of the input sequence, memory requirements under these algorithms remain constant throughout training.

Given that their computational patterns differ significantly from those of conventional ANNs, SNNs are not well-suited to traditional platforms like CPUs and GPUs, whose architectures are not optimized for sparse, event-driven, fine-grained parallelism. To leverage the full advantages of SNNs, researchers have proposed several dedicated neuromorphic processors, notably IBM TrueNorth [3] and Intel Loihi [4]. Although highly optimized, these neuromorphic chips often impose limitations on data precision, neuron models, and supported learning rules. As an emerging research area, SNN structure and training algorithms are evolving rapidly. These new dataflows and computing models require specialized hardware circuit, which current neuromorphic processors cannot efficiently support without approximation and simplification.

Field-Programmable Gate Arrays (FPGAs) occupy a strategic middle ground, offering a compelling balance of flexibility and efficiency. They also provide massive parallelism similar to GPUs, but at a more fine-grained level. Researchers have proposed numerous designs for SNN acceleration on FPGAs [5] [6] [7] [8], which exhibit significantly lower energy consumption than their CPU or GPU counterparts while offering greater flexibility than ASIC-based neuromorphic processors. However, existing work primarily focuses on accelerating the inference of pre-trained SNN models, largely overlooking online learning scenarios that are prevalent in edge applications.

When online learning is taken into consideration, SNN implementation complexity increases substantially. Numerous variables, including parameters and neuron potentials, are shared between the forward and backward propagation stages and accessed in diverse patterns, introducing both data and re-source (e.g., memory port) dependencies. These dependencies hinder efficient hardware utilization on FPGAs.

In this work, we present an FPGA implementation of multilayer SNNs with on-chip learning capability. Our design integrates a stateful synapse filter structure within the spiking neuron model, a temporal forward-only training algorithm that eliminates the need for BPTT, and a conservative mixed-precision scheme to achieve high energy efficiency and processing throughput. We further introduce optimization strategies, such as loop unrolling, memory partition and read/write scheduling, for computation and memory access concurrency to fully exploit FPGA hardware resources. Memory hazards that are unique to systems hosting both forward and backward propagation are also identified and resolved.

Experimental evaluations on MNIST and five multivariate time-series classification datasets demonstrate that our implementation achieves accuracy comparable to SNN or ANN trained using BPTT. Compared to CPU- and GPU-based implementations, our FPGA acceleration delivers 2.5×2.5\times to 6×6\times higher throughput at roughly one-tenth the energy per sample.

The contributions of this work are summarized as follows:

• We implement multilayer SNNs on FPGAs with in-hardware learning capability, performing both training and inference entirely on-chip for spatiotemporal stream classification.

• We propose a resource-aware loop unrolling strategy guided by the empirical observation that both resource consumption and execution cycles scale linearly with the unroll factor, and a coarse-grained pipelining strategy that overlaps weight updates with backward passes.

• We propose a BRAM partitioning and interleaving scheme to resolve memory access conflicts between forward and backward passes, and use buffer insertion to resolve Read-After-Write (RAW) hazards.

• We evaluate our design on both static image (MNIST) and multivariate time-series classification tasks, demonstrating competitive accuracy against prior on-chip learning implementations and significant efficiency gains over CPU and GPU platforms.

References (30)