Rethinking the Membrane Dynamics and Optimization Objectives of Spiking Neural Networks

Hangchi Shen, Qian Zheng, Huamin Wang, Gang PanNeurIPS 2024

TL;DR

This paper proposes a novel approach to improve Spiking Neural Networks (SNNs) by rethinking their membrane dynamics and optimization objectives. They introduce a "learnable initial membrane potential" (IMP) that allows neurons to generate richer spike patterns and a "last time step" (LTS) method to accelerate convergence in static tasks, achieving state-of-the-art results on several benchmarks.

What Problem Does This Paper Address?

Spiking Neural Networks (SNNs) hold great promise for energy-efficient AI due to their biological inspiration and reduced computational complexity. However, their performance often lags behind traditional Artificial Neural Networks (ANNs). A key limitation identified by the authors is the restricted expressive power of SNNs, stemming from the fixed firing patterns of neurons within discrete time steps. This is exacerbated by the common practice of initializing the "initial membrane potential" (IMP) to zero, which limits the range of possible neuron behaviors. Furthermore, existing training methods for SNNs, particularly for static tasks, can be slow to converge and may not fully leverage the temporal dynamics of the neurons.

Methods

The paper introduces two main innovations:

  1. Learnable Initial Membrane Potential (IMP): Instead of fixing the IMP to zero, the authors propose making it a learnable parameter for each neuron. This allows neurons to start with a non-zero membrane potential, enabling them to generate a wider variety of spike patterns and mappings. This is achieved by treating the IMP as an initial state that can be optimized during training.
  2. Last Time Step (LTS) for Static Tasks: For static tasks (where the input remains constant over time), the authors observe that SNN accuracy improves as the membrane potential evolves. To accelerate this process and improve convergence speed, they propose the LTS method. This method focuses the optimization objective on the output of the last time step, effectively treating it as the final decision point and reducing the need for extensive temporal processing.

Additionally, they propose a Label-Smoothed Temporal Efficient Training (TET) loss for neuromorphic tasks. This modification aims to mitigate conflicts between optimization and regularization terms in existing TET losses, leading to better performance.

Datasets

The paper evaluates their methods on the following datasets:

  • Neuromorphic Datasets:
    • CIFAR10-DVS
    • N-Caltech101
  • Static Datasets:
    • ImageNet1k
    • ImageNet100
    • CIFAR10/100

Key Insights and Ideas

  • IMP is more than just a reset: The initial membrane potential (IMP) is not merely a starting point but a crucial factor influencing the dynamic behavior and expressive capabilities of spiking neurons.
  • Beyond firing rate: Current SNN implementations often rely on firing rate or average membrane potential for output. This work demonstrates that exploring other aspects of membrane dynamics, like IMP, can unlock richer information encoding.
  • Static tasks benefit from temporal evolution: In static scenarios, the accuracy of SNNs increases over time as the membrane potential evolves. This suggests that optimizing for the final state is a viable strategy.
  • LTS accelerates static task convergence: By focusing on the last time step's output for static tasks, the LTS method significantly speeds up training without sacrificing accuracy.
  • Label smoothing for better neuromorphic training: A modified TET loss with label smoothing helps to resolve training conflicts and improve performance on neuromorphic datasets.

Key Results

The proposed methods achieve significant improvements:

  • CIFAR10-DVS: State-of-the-art accuracy of 87.80% (with IMP + TET-S).
  • N-Caltech101: State-of-the-art accuracy of 87.86% (with IMP + TET-S).
  • ImageNet1k: Achieved an accuracy of 71.83% with SEW-ResNet50 + LTS + IMP, surpassing the vanilla SEW-ResNet152 by 4.05%.
  • Convergence Speed: The LTS method demonstrates faster convergence on static tasks compared to standard SDT and TET.
  • Computational Overhead: The proposed IMP method incurs negligible additional computational overhead during inference.

Limitations and Future Work

The authors acknowledge several limitations:

  • IMP Gradient Sensitivity: The learnable IMP has a small gradient during training, making it sensitive to initialization.
  • Parameter Increase: Learnable IMP can lead to an increased number of parameters, though computational cost remains similar.
  • LTS Time Step Limit: The effectiveness of LTS might decrease with very large time steps, as supervision is only applied at the final step. They suggest using LTS for static tasks with time steps less than 8.
  • Unified Loss Function: The paper notes the challenge of finding a single loss function that excels on both static and neuromorphic tasks.

Future work could explore the combination of LTS with the latest spike transformer technologies and investigate more unified loss functions.

Summary updated

BibTeX
@inproceedings{shen2024rethinking,
  author = {Hangchi Shen and Qian Zheng and Huamin Wang and Gang Pan},
  title = {{Rethinking the Membrane Dynamics and Optimization Objectives of Spiking Neural Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=18j8y34Ub1},
}
Figure