When Bio-Inspired Computing meets Deep Learning: Low-Latency, Accurate, & Energy-Efficient Spiking Neural Networks from Artificial Neural Networks

Gourav Datta, Zeyu Liu, James Diffenderfer, Bhavya Kailkhura, Peter A. BeerelarXiv 2023 · DOI

Spiking Neural Networks (SNNs) represent a promising frontier for energy-efficient AI, particularly on edge devices. By utilizing sparse, binary spikes for communication, SNNs can replace computationally expensive multiply-accumulate (MAC) operations with simple additions. However, training high-performance SNNs remains a challenge. A prevalent solution is ANN-to-SNN conversion, where a pre-trained Artificial Neural Network (ANN) is mapped onto an SNN architecture.

The Latency-Accuracy Trade-off

The primary obstacle in ANN-to-SNN conversion is the high latency required to achieve competitive accuracy. Traditional "rate coding" schemes require numerous time steps to represent multi-bit ANN activations accurately. Reducing these time steps typically leads to significant "deviation errors," where the SNN's firing rate fails to approximate the source ANN's activation values. As illustrated in the error analysis below, the average deviation error typically decreases as the number of time steps increases, but standard methods struggle to maintain precision at ultra-low latencies (e.g., $T < 8$).

Analysis of deviation error and activation mapping between ANN and SNN across different time steps.

Methodology

To overcome these limitations, this work introduces a novel framework characterized by three main innovations:

  1. Modified IF Neuron Model: Instead of standard rate coding, the authors employ a "radix coding" approach. By modifying the Integrate-and-Fire (IF) neuron to perform bit-wise comparisons over time, $T$ time steps can represent $2^T$ levels of precision, leading to an exponential reduction in latency.
  2. Lossless BN Bias Shifting: The authors mathematically prove that shifting the bias term in the ANN's Batch Normalization (BN) layers can ensure a lossless mapping to the SNN domain.
  3. Fine-grained $\ell_1$ Regularization: To ensure energy efficiency isn't sacrificed for speed, a specialized regularizer is used during ANN training. This regularizer penalizes the number of active bits in the binary-encoded activations, promoting spike sparsity. Since bit-wise operations are non-differentiable, a surrogate gradient (straight-through estimator) is employed during backpropagation.

Experimental Results

The proposed framework was evaluated on benchmarks ranging from CIFAR-10 to ImageNet using architectures like VGG-16, ResNet, and MobileNetV2. On ImageNet, the method achieved a state-of-the-art 73.30% top-1 accuracy with only 4 time steps.

Comparison of ImageNet Top-1 Accuracy vs. computational cost (Timesteps * Spiking Activity) against state-of-the-art methods.

As shown in the figure above, the proposed method ("Ours") occupies the optimal top-left region of the accuracy-activity trade-off space, delivering higher accuracy with significantly lower computational overhead than existing methods like TET, QCFS, or OPI. This translates to a 7.2x to 15.1x reduction in compute energy compared to standard SNN implementations.

Conclusion

By rethinking the fundamental representation of information in SNNs, this research demonstrates that ultra-low latency and high accuracy are achievable. The transition from rate coding to radix coding, combined with sparsity-aware training, paves the way for the deployment of sophisticated deep learning models on power-constrained neuromorphic hardware. Future work will explore extending this framework to more complex tasks such as object detection and video processing.

Summary updated

BibTeX
@misc{datta2023when,
  author = {Gourav Datta and Zeyu Liu and James Diffenderfer and Bhavya Kailkhura and Peter A. Beerel},
  title = {{When Bio-Inspired Computing meets Deep Learning: Low-Latency, Accurate, \& Energy-Efficient Spiking Neural Networks from Artificial Neural Networks}},
  year = {2023},
  eprint = {2312.06900},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.06900},
}
Figure