Deep activity propagation via weight initialization in spiking neural networks

Aurora Micheli, Olaf Booij, Jan van Gemert, Nergis Tomen

TL;DR

This paper introduces a novel weight initialization method specifically designed for Spiking Neural Networks (SNNs). By accounting for the unique spike-based activation function of SNNs, this method ensures that neural activity propagates effectively through deep networks, overcoming the vanishing spike problem that plagues traditional initialization techniques. This leads to improved accuracy, faster training, and greater robustness in SNNs.

What Problem Does This Paper Address?

Spiking Neural Networks (SNNs) are bio-inspired computational models that promise energy efficiency and fast processing by mimicking the brain's spiking communication. However, a major hurdle in their adoption is the difficulty of training deep SNNs. Unlike traditional Artificial Neural Networks (ANNs) that use continuous activation functions, SNNs rely on discrete "spikes" generated when a neuron's membrane potential crosses a threshold. This quantization process can lead to information loss and "vanishing spikes" in deeper layers, making it hard for gradients to propagate during training. Existing initialization methods, borrowed from ANNs, often fail to address this fundamental difference, leading to suboptimal performance.

Methods

The core contribution is the derivation of a new weight initialization strategy tailored for SNNs. The authors build upon the "variance flow" principle, aiming to maintain constant variance of neuron activations across layers. Crucially, they adapt this principle to the specific Heaviside step-like activation function of SNNs, which differs significantly from the ReLU activation function commonly used in ANNs. This adaptation leads to a new formula for initializing weights that accounts for the probability of a neuron firing, which is dependent on the firing threshold. The proposed method is theoretically shown to enable activity propagation without dissipation or amplification, unlike ANN-based methods.

Datasets

The paper evaluates its method on four image classification datasets:

  • MNIST: A standard dataset of handwritten digits.
  • Fashion MNIST (FMNIST): A dataset of clothing items, serving as a more challenging alternative to MNIST.
  • CIFAR-10: A dataset of color images of objects.
  • Neuromorphic MNIST (NMNIST): A spiking neuromorphic representation of the MNIST dataset, designed for SNNs.

Key Insights and Ideas

  • SNNs need specialized initialization: Standard ANN initialization methods (like Kaiming) are insufficient for SNNs because they don't account for the discrete, threshold-based nature of SNN activations.
  • Vanishing spikes are a key problem: The quantization in SNNs can lead to a drastic reduction in neural activity in deeper layers, hindering effective training.
  • Variance flow is still relevant: The principle of maintaining constant variance of activations across layers is a good guiding principle for SNN initialization, just as it is for ANNs.
  • Firing threshold matters: The probability of a neuron firing (and thus contributing to the next layer's input) is directly influenced by the firing threshold, a factor that must be considered in initialization.
  • Finite-size effects are important: For smaller networks, the discrete nature of spikes can lead to deviations from theoretical predictions, highlighting the need for sufficient layer width.

Key Results

  • Activity Propagation: The proposed initialization method successfully maintains constant variance of membrane potentials across 100-layer SNNs, ensuring that neural activity propagates without being dissipated or amplified. In contrast, Kaiming initialization leads to significant information loss after only a few layers.
  • Accuracy and Convergence: On MNIST and Fashion MNIST datasets, the proposed method achieved higher training accuracies (over 90% on MNIST, 70% on FMNIST for MLPs) and faster convergence compared to several baseline methods, including Kaiming.
  • Robustness: The method demonstrated robustness to variations in network depth, layer width, and neuron hyperparameters (leak factor $\beta$ and firing threshold $\theta$).
  • Performance on CIFAR-10: For the CNN architecture, the proposed method significantly outperformed other initialization techniques on the CIFAR-10 dataset.
  • Multi-time step performance: The initialization also showed good performance in preserving activity across multiple time steps, a crucial aspect for SNNs processing temporal data.

Limitations and Future Work

  • Temporal Dynamics: The theoretical derivation does not explicitly account for the temporal dynamics of neuron membrane potentials (leak and reset mechanisms). While the empirical results show good performance, this is noted as a limitation.
  • Independence Assumption: The assumption of independent activations, common in ANN initialization, is also made here, though it's acknowledged that this is often violated in real-world data like images.
  • Dataset Statistics: Unlike some SNN initialization methods (e.g., [15]), the proposed method does not require prior knowledge of dataset statistics, making it more generalizable.
  • Future Work: The authors suggest extending the analysis to more complex architectures and datasets to further evaluate the method's effectiveness. They also acknowledge the need to explicitly incorporate temporal dynamics into the theoretical framework.

Summary updated

BibTeX
@inproceedings{micheli2024deep,
  author = {Aurora Micheli and Olaf Booij and Jan van Gemert and Nergis Tomen},
  title = {{Deep activity propagation via weight initialization in spiking neural networks}},
  booktitle = {MLNCP @ NeurIPS},
  year = {2024},
  url = {https://openreview.net/forum?id=NNUMvNDknD},
}
Figure