Revisiting batch normalization for training low-latency deep spiking neural networks from scratch

Youngeun Kim, Priyadarshini PandaOpenReview 2020

Abstract

Spiking Neural Networks (SNNs) have recently emerged as an alternative to deep learning owing to sparse, asynchronous and binary event (or spike) driven processing, that can yield huge energy efficiency benefits on neuromorphic hardware. However, training high-accuracy and low-latency SNNs from scratch suffers from non-differentiable nature of a spiking neuron. To address this training issue in SNNs, we revisit batch normalization and propose a temporal Batch Normalization Through Time (BNTT) technique. Most prior SNN works till now have disregarded batch normalization deeming it ineffective for training temporal SNNs. Different from previous works, our proposed BNTT decouples the parameters in a BNTT layer along the time axis to capture the temporal dynamics of spikes. The temporally evolving learnable parameters in BNTT allow a neuron to control its spike rate through different time-steps, enabling low-latency and low-energy training from scratch. We conduct experiments on CIFAR-10, CIFAR-100, Tiny-ImageNet and event-driven DVS-CIFAR10 datasets. BNTT allows us to train deep SNN architectures from scratch, for the first time, on complex datasets with just few 25-30 time-steps. We also propose an early exit algorithm using the distribution of parameters in BNTT to reduce the latency at inference, that further improves the energy-efficiency.

Introduction

Spiking Neural Networks (SNNs) are often hailed as the "third generation" of neural networks, designed to mimic the brain's energy efficiency by processing information via discrete, binary "spikes" over time. Despite their potential for massive energy savings on neuromorphic hardware, training high-accuracy SNNs from scratch remains a significant challenge.

Traditional training methods face three primary hurdles:

  1. Non-Differentiability: The spiking threshold is a step function with a zero derivative almost everywhere, preventing standard gradient descent.
  2. High Latency: Many SNNs require thousands of time-steps to reach peak accuracy, negating their energy benefits.
  3. Temporal Normalization: Standard Batch Normalization (BN) fails in SNNs because it ignores the temporal dimension; spike dynamics evolve over time, making static normalization parameters ineffective.

This paper introduces Batch Normalization Through Time (BNTT), a technique that decouples normalization parameters across the temporal dimension to enable efficient, low-latency training from scratch.

Methods: Batch Normalization Through Time

BNTT addresses the limitations of standard BN by introducing time-specific parameters. Unlike standard BN, which applies identical learnable parameters across all time-steps, BNTT assigns unique means ($\mu^t$), variances ($(\sigma^t)^2$), and learnable scaling factors ($\gamma^t$) to each time-step $t$. This allows the network to adapt to the evolving temporal dynamics of spikes as they propagate through deep layers.

Spiking neuron dynamics and surrogate gradient training.

Key Innovations

  • Time-Specific Scaling: By decoupling $\gamma$ along the time axis, the network can effectively tune neuron sensitivity at different stages of the temporal sequence, effectively acting as a dynamic threshold.
  • Bias Removal: The shift parameter ($\beta$) was removed to prevent redundant voltage accumulation and maintain spike sparsity.
  • Surrogate Gradient Training: To overcome non-differentiability, a smooth surrogate function approximates the gradient of the spiking neuron during backpropagation, as illustrated in the figure above.
  • Temporal Early Exit: The authors observed that $\gamma^t$ values often follow a Gaussian-like trend. By monitoring these values, the network can "early exit" once activity drops below a threshold, further reducing inference latency.

Experimental Benchmarks

The BNTT framework was evaluated on several complex datasets, moving beyond simple benchmarks like MNIST:

  • Static Datasets: CIFAR-10, CIFAR-100, and Tiny-ImageNet (200 classes).
  • Neuromorphic Dataset: DVS-CIFAR10, which consists of event-driven data from a moving camera.

Notably, this work is among the first to successfully train deep SNNs from scratch on Tiny-ImageNet with ultra-low latency.

Key Results and Insights

BNTT demonstrates a significant leap in performance and efficiency compared to traditional ANN-to-SNN conversion and other training methods.

Comparison of average spike counts across layers for (a) Conversion, (b) Surrogate BP, and (c) BNTT.

Performance Highlights

  • Ultra-Low Latency: As shown in the comparison above, BNTT achieves 90.5% accuracy on CIFAR-10 in just 25 time-steps, whereas conversion methods often require 1,000 steps to reach similar accuracy.
  • State-of-the-Art Accuracy: On CIFAR-100, BNTT reached 66.6% accuracy (50 steps). On Tiny-ImageNet, it achieved 57.8% (30 steps), outperforming previous conversion-based baselines.
  • Energy Efficiency: Simulated on IBM's TrueNorth hardware, BNTT-trained models were approximately 32x more energy-efficient than conversion-based models and 9x more efficient than standard VGG9 ANNs.
  • Robustness: SNNs trained with BNTT exhibited superior robustness to Gaussian noise and adversarial attacks, as the temporal integration of spikes naturally filters transient noise.

Conclusion and Future Work

BNTT provides a robust framework for training deep, low-latency SNNs from scratch. While it achieves remarkable efficiency, future work will focus on scaling these methods to the full ImageNet-1K dataset and exploring more advanced temporal coding schemes. Additionally, researchers aim to optimize the memory footprint of time-varying parameters to better suit resource-constrained edge devices.

Summary updated

BibTeX
@misc{kim2020revisiting,
  author = {Youngeun Kim and Priyadarshini Panda},
  title = {{Revisiting batch normalization for training low-latency deep spiking neural networks from scratch}},
  year = {2020},
  eprint = {2010.01729},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.01729},
  howpublished = {OpenReview},
}
Figure