Enabling Deep Spiking Neural Networks with Hybrid Conversion and Spike Timing Dependent Backpropagation

Nitin Rathi, Gopalakrishnan Srinivasan, Priyadarshini Panda, Kaushik Roy

Abstract

Spiking Neural Networks (SNNs) offer potential energy efficiency through asynchronous discrete events. However, deep SNNs typically suffer from high latency when converted from Artificial Neural Networks (ANNs) or high training costs when trained from scratch. We propose a hybrid training methodology that initializes an SNN with converted weights and thresholds, followed by incremental Spike Timing Dependent Backpropagation (STDB). This approach achieves state-of-the-art accuracy on ImageNet with significantly fewer time steps, converging in fewer than 20 epochs.

Introduction

Spiking Neural Networks (SNNs) are often hailed as the "third generation" of neural networks due to their biological plausibility and potential for extreme energy efficiency on neuromorphic hardware. Despite these advantages, training deep SNNs remains a significant challenge. Currently, researchers rely on two primary methods: ANN-to-SNN conversion and training from scratch using spike-based backpropagation.

ANN-to-SNN conversion is accurate but requires thousands of time steps to reach peak performance, which increases latency and negates energy savings. Conversely, training from scratch allows for low-latency operation but is computationally expensive, slow to converge, and difficult to scale to complex datasets like ImageNet. This paper introduces a hybrid approach to bridge this gap, enabling deep SNNs that are both accurate and fast.

Hybrid Training Methodology

The proposed hybrid training methodology consists of two main stages:

  1. Smart Initialization: The process begins by converting a pre-trained ANN into an SNN. This provides a "warm start" by setting weights and firing thresholds to near-optimal values, placing the model in a favorable region of the loss landscape.
  2. STDB Fine-tuning: The network is then refined using a novel Spike Timing Dependent Backpropagation (STDB) rule.

Spike Timing Dependent Backpropagation (STDB)

Because the spiking function is non-differentiable, standard backpropagation cannot be applied directly. The authors introduce a surrogate gradient based on the timing of spikes rather than just membrane potential. The weight update is proportional to the time difference ($\Delta t$) between the current time step and the most recent spike.

STDB surrogate gradient function based on time from last spike.

This temporal approach captures the sparsity of SNNs more effectively. Furthermore, since the gradient depends on integer time differences, values can be pre-computed in a look-up table, significantly accelerating the training process.

Experimental Results

The hybrid approach was evaluated on CIFAR-10, CIFAR-100, and ImageNet using VGG and ResNet architectures. The results demonstrate a superior balance between accuracy and latency compared to standard conversion methods.

Comparison of accuracy and latency (time steps T) across different training methods and architectures.

On the ImageNet dataset, the hybrid-trained VGG16 model achieved a top-1 accuracy of 65.19% with only 250 time steps. This represents a 10× reduction in latency compared to converted SNNs achieving similar accuracy levels. Additionally, the hybrid models typically converge in fewer than 20 epochs, a stark contrast to the hundreds of epochs often required when training SNNs from scratch.

Conclusion

This work presents a practical and efficient pipeline for developing deep SNNs. By combining the high-quality initialization of ANN conversion with the temporal refinement of STDB, the authors achieve competitive performance on large-scale benchmarks with minimal latency. Future work may explore more efficient input encoding schemes and direct measurements on neuromorphic hardware to further validate the energy-efficiency gains.

Summary updated

Abstract

Spiking Neural Networks (SNNs) operate with asynchronous discrete events (or spikes) which can potentially lead to higher energy-efficiency in neuromorphic hardware implementations. Many works have shown that an SNN for inference can be formed by copying the weights from a trained Artificial Neural Network (ANN) and setting the firing threshold for each layer as the maximum input received in that layer. These type of converted SNNs require a large number of time steps to achieve competitive accuracy which diminishes the energy savings. The number of time steps can be reduced by training SNNs with spike-based backpropagation from scratch, but that is computationally expensive and slow. To address these challenges, we present a computationally-efficient training technique for deep SNNs. We propose a hybrid training methodology: 1) take a converted SNN and use its weights and thresholds as an initialization step for spike-based backpropagation, and 2) perform incremental spike-timing dependent backpropagation (STDB) on this carefully initialized network to obtain an SNN that converges within few epochs and requires fewer time steps for input processing. STDB is performed with a novel surrogate gradient function defined using neuron's spike time. The proposed training methodology converges in less than 20 epochs of spike-based backpropagation for most standard image classification datasets, thereby greatly reducing the training complexity compared to training SNNs from scratch. We perform experiments on CIFAR-10, CIFAR-100, and ImageNet datasets for both VGG and ResNet architectures. We achieve top-1 accuracy of 65.19% for ImageNet dataset on SNN with 250 time steps, which is 10X faster compared to converted SNNs with similar accuracy.
BibTeX
@inproceedings{rathi2020enabling,
  author = {Nitin Rathi and Gopalakrishnan Srinivasan and Priyadarshini Panda and Kaushik Roy},
  title = {{Enabling Deep Spiking Neural Networks with Hybrid Conversion and Spike Timing Dependent Backpropagation}},
  booktitle = {International Conference on Learning Representations},
  year = {2020},
  url = {https://openreview.net/forum?id=1-JC_2W4O0},
}
Figure