[Paper Review] A Spike in Performance: Training Hybrid-Spiking Neural Networks with Quantized Activation Functions
This paper introduces a novel training method for hybrid-spiking neural networks (hSNNs) that smoothly interpolates between non-spiking (ANN) and spiking (SNN) regimes by modeling spiking neurons as one-bit quantizers with temporally diffused quantization error. The approach achieves state-of-the-art accuracy on sMNIST and psMNIST while reducing average activity to 3.74 bits and significant bits to 1.26, enabling substantial energy efficiency gains without sacrificing performance.
The machine learning community has become increasingly interested in the energy efficiency of neural networks. The Spiking Neural Network (SNN) is a promising approach to energy-efficient computing, since its activation levels are quantized into temporally sparse, one-bit values (i.e., "spike" events), which additionally converts the sum over weight-activity products into a simple addition of weights (one weight for each spike). However, the goal of maintaining state-of-the-art (SotA) accuracy when converting a non-spiking network into an SNN has remained an elusive challenge, primarily due to spikes having only a single bit of precision. Adopting tools from signal processing, we cast neural activation functions as quantizers with temporally-diffused error, and then train networks while smoothly interpolating between the non-spiking and spiking regimes. We apply this technique to the Legendre Memory Unit (LMU) to obtain the first known example of a hybrid SNN outperforming SotA recurrent architectures -- including the LSTM, GRU, and NRU -- in accuracy, while reducing activities to at most 3.74 bits on average with 1.26 significant bits multiplying each weight. We discuss how these methods can significantly improve the energy efficiency of neural networks.
Motivation & Objective
- To address the challenge of maintaining state-of-the-art accuracy when converting non-spiking networks to spiking neural networks (SNNs), which often degrades performance due to one-bit spike precision.
- To develop a principled method for training hybrid-SNNs that balance accuracy and energy efficiency by smoothly interpolating between ANN and SNN regimes.
- To enable energy-efficient neural network inference by quantizing activations to sparse, one-bit spikes while bounding quantization error over time.
- To demonstrate that hybrid networks can outperform both standard ANNs and SNNs in accuracy while achieving superior energy efficiency.
- To provide a generalizable framework applicable to various architectures, including recurrent networks like the Legendre Memory Unit (LMU).
Proposed method
- The method models spiking neurons as one-bit quantizers that diffuse quantization error across future time steps, analogous to Floyd-Steinberg dithering in signal processing.
- It introduces a continuous, differentiable interpolation between non-spiking (32-bit) and spiking (1-bit) activation regimes during training, allowing the network to learn optimal quantization behavior.
- The approach uses a quantized activation function with a time-distributed error model, ensuring bounded quantization error and enabling backpropagation through the quantization process.
- The framework is applied to the Legendre Memory Unit (LMU), where the dynamics of the low-pass filter and preference for zero states facilitate stable training of hybrid networks.
- The method generalizes to arbitrary bit-widths, including fractional bit representations, and supports both positive and negative spike outputs.
- Training involves a schedule that gradually increases spiking behavior, allowing the network to adapt to reduced precision while maintaining accuracy.
Experimental results
Research questions
- RQ1Can a hybrid-spiking neural network be trained to outperform standard non-spiking and spiking networks in accuracy while achieving superior energy efficiency?
- RQ2How can quantization error in spiking neural networks be bounded and temporally diffused to preserve performance during training?
- RQ3To what extent can the interpolation between non-spiking and spiking regimes improve the trade-off between accuracy and energy efficiency?
- RQ4Can the proposed method be effectively applied to recurrent architectures like the LMU, which are sensitive to error accumulation over time?
- RQ5What are the actual bit-width and significant bits metrics of hybrid-SNNs, and how do they compare to standard ANNs and SNNs in terms of hardware energy savings?
Key findings
- The hybrid-SNN trained with the proposed method achieved state-of-the-art accuracy on the sMNIST dataset, outperforming all other SNNs and non-spiking RNNs except the original LMU.
- On the more challenging psMNIST task, the hybrid-SNN achieved higher accuracy than any non-spiking RNN except the original LMU, demonstrating strong performance despite reduced precision.
- The average activity per neuron was reduced to 3.74 bits, with only 1.26 significant bits per weight, indicating substantial energy savings potential in hardware.
- The method enabled a 26-bit reduction in activity precision compared to the standard LMU implementation, with only a 0.32% drop in test accuracy.
- The framework successfully bounded quantization error over time and allowed stable training of hybrid networks, even when training the LMU matrices were fixed.
- The approach generalizes to other architectures and supports multi-bit and fractional bit quantization, enabling flexible trade-offs between accuracy and energy efficiency.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.