Training Energy-Efficient Deep Spiking Neural Networks with Time-to-First-Spike Coding

Seongsik Park, Sungroh YoonarXiv 2021

Abstract

Spiking Neural Networks (SNNs) offer a low-power alternative to traditional Deep Neural Networks (DNNs) by utilizing sparse, event-driven computation. Among SNN coding schemes, Time-to-First-Spike (TTFS) is theoretically the most energy-efficient but remains difficult to train due to its non-differentiable nature. This paper presents a novel direct training framework for deep TTFS-based SNNs using a differentiable surrogate model and specialized regularization techniques. By optimizing for both accuracy and spike sparsity, the proposed method achieves state-of-the-art performance on CIFAR-10/100 while significantly reducing energy consumption compared to existing temporal coding methods.

Introduction

Deep Neural Networks (DNNs) are computationally intensive, posing challenges for deployment on resource-constrained edge devices. SNNs mimic biological neural processing using discrete spikes, enabling significant energy savings. TTFS coding, where each neuron fires at most once per inference, is highly efficient as information is encoded in the precise timing of that single spike. However, training deep SNNs with TTFS is hindered by non-differentiability and "spike congestion" in models converted from pre-trained DNNs. This work addresses these issues through a direct training approach that treats the SNN as a differentiable surrogate model.

Methodology

The core of the approach is a surrogate DNN model that maps membrane potentials into the spike time domain. This mapping accounts for three critical constraints: pruning (no spike), quantization (discrete time steps), and clipping (spikes outside the time window).

Surrogate DNN mapping and activation function regions showing pruning, quantization, and clipping.

To optimize this model, the authors introduce several key innovations:

  1. Stochastically Relaxed Activation (SR): Mitigates gradient vanishing by occasionally using a standard ReLU activation during training, facilitating initial learning before transitioning to the constrained spiking function.
  2. Temporal Kernel Regularization (TR): Applies L2 regularization to temporal kernel parameters to keep activations within high-precision ranges, managing the trade-off between representation range and quantization error.
  3. Temporal Kernel-aware Batch Normalization (TB): A specialized normalization layer that shifts activation distributions toward the "pruning region," actively encouraging sparsity by reducing unnecessary spikes.

Results and Discussion

The framework was evaluated using the VGG-16 architecture on CIFAR-10 and CIFAR-100 benchmarks. On CIFAR-10, the model reached a peak accuracy of 91.49% with only 0.049 million spikes—a 4x reduction compared to Temporal Switching Coding (TSC) for similar accuracy levels.

Test accuracy vs. spike count for various model configurations, highlighting the benefits of SR and TR.

As shown in the results, the inclusion of SR and TR significantly improves the accuracy-sparsity trade-off. The overall "spike rate" was reduced to a mere 0.03%, leading to estimated energy savings of 54%–77% over current state-of-the-art temporal coding methods on neuromorphic hardware architectures. This demonstrates that direct training for TTFS coding allows for unprecedented spike sparsity without sacrificing accuracy.

Conclusion

This research proves that training specifically for TTFS coding from the start allows for much lower spike density than conversion methods. While challenges remain regarding inference latency and scaling to larger datasets like ImageNet, this work demonstrates a viable path toward highly energy-efficient deep SNNs for edge computing and neuromorphic hardware.

Summary updated

BibTeX
@misc{park2021training,
  author = {Seongsik Park and Sungroh Yoon},
  title = {{Training Energy-Efficient Deep Spiking Neural Networks with Time-to-First-Spike Coding}},
  year = {2021},
  eprint = {2106.02568},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.02568},
}
Figure