Delay learning based on temporal coding in Spiking Neural Networks

Pengfei Sun, Jibin Wu, Malu Zhang, Paul Devos, Dick BotteldoorenNeural Networks 2024 · DOI

Abstract

Spiking Neural Networks (SNNs) are biologically inspired models that offer significant energy efficiency for edge computing. However, traditional SNN training often relies on rate coding, which requires multiple time steps and limits efficiency. This paper presents Delay Learning based on Temporal Coding (DLTC), a novel framework that optimizes synaptic weights, axonal delays, and neuronal thresholds. By employing Time-To-First-Spike (TTFS) coding and a differentiable z-domain transformation, DLTC achieves state-of-the-art accuracy on vision and auditory benchmarks while improving computational sparsity and reducing inference latency.

Introduction: The Shift to Temporal Coding

Spiking Neural Networks (SNNs) mimic the brain's communication via discrete spikes, offering a low-power alternative to standard Deep Neural Networks (DNNs). Most existing SNN research utilizes rate coding, where information is represented by the frequency of spikes over time. While effective, rate coding often necessitates long simulation windows, undermining the energy benefits of the architecture.

In contrast, temporal coding, specifically Time-To-First-Spike (TTFS), encodes information in the precise timing of the initial spike. This approach is inherently more efficient as it allows for faster decision-making. However, most temporal-coding models only adjust synaptic weights, which only indirectly influence spike timing.

Comparison of Direct, Rate, and TTFS coding schemes.

The DLTC Framework

The proposed DLTC framework addresses the limitations of weight-only tuning by making axonal delays and firing thresholds learnable parameters. The model integrates three primary components:

  1. Synaptic Weights: Traditional connection strengths.
  2. Learnable Axonal Delays: Variable time shifts for each input signal, allowing the network to align critical spikes or delay irrelevant noise.
  3. Adjustable Thresholds: Neurons learn individual firing limits to optimize response times for specific tasks.

To enable training via backpropagation, the authors mapped discrete spike times into a continuous z-domain using an exponential transformation. This makes the relationship between weights, delays, and thresholds differentiable. For complex audio tasks, the framework was integrated with the SLayer architecture using surrogate gradients.

Mechanism of learnable axonal delays ($t_{delay}$) and their impact on membrane potential $u(t)$ and output spikes $I(t)$.

Experimental Evaluation

The framework was evaluated across a diverse set of benchmarks to test its versatility:

  • Vision: MNIST (handwritten digits), Fashion-MNIST (clothing), and CIFAR-10 (object recognition).
  • Auditory: BAE-TIDIGITS, where spoken digits are processed via biologically plausible cochlear filter banks.
  • Logic: The XOR problem, demonstrating that delay learning alone can solve non-linear tasks that weight-tuning struggles with.

Key Results and Insights

DLTC consistently outperformed weight-only baselines across all datasets:

  • State-of-the-Art Accuracy: The model achieved 99.78% on MNIST, 90.40% on Fashion-MNIST, and 99.36% on BAE-TIDIGITS.
  • Reduced Latency: In MNIST tests, the output "decision spike" occurred at approximately 2.5ms, a significant improvement over the 4ms observed in baseline models.
  • Increased Sparsity: The network learned to "ignore" data by assigning long delays to less relevant information, ensuring these signals arrived after a decision was already made. This increased sparsity by approximately 17% in the first layer, further reducing computational costs.

Conclusion and Future Work

DLTC demonstrates that direct learning of temporal parameters—delays and thresholds—is crucial for maximizing the potential of SNNs. While current implementations show significant algorithmic gains, the authors acknowledge that real-world power savings will be fully realized when these models are deployed on neuromorphic hardware (e.g., Intel Loihi) that natively supports programmable delays. Future research will focus on unifying architectures for broader time-series applications and exploring heterogeneous threshold configurations.

Summary updated

BibTeX
@article{sun2024delay,
  author = {Pengfei Sun and Jibin Wu and Malu Zhang and Paul Devos and Dick Botteldooren},
  title = {{Delay learning based on temporal coding in Spiking Neural Networks}},
  journal = {Neural Networks},
  year = {2024},
  doi = {10.1016/j.neunet.2024.106678},
}
Figure