Stabilizing Direct Training of Spiking Neural Networks: Membrane Potential Initialization and Threshold-robust Surrogate Gradient

Hyunho Kook, Byeongho Yu, Jeong Min Oh, Eunhyeok Park

TL;DR

Spiking Neural Networks (SNNs) offer an energy-efficient alternative to traditional deep networks but suffer from training instability due to temporal drift and erratic gradient flow when neuron thresholds are learnable. This paper introduces MP-Init, which eliminates temporal drift by initializing membrane potentials to their steady-state distribution, and TrSG, a threshold-robust surrogate gradient that stabilizes training. Together, they deliver state-of-the-art accuracy across static and neuromorphic datasets with virtually zero computational overhead.

What Problem Does This Paper Address?

Spiking Neural Networks (SNNs) process information using discrete, binary spikes over time. By mimicking biological brains, they promise massive energy savings, especially when deployed on neuromorphic hardware. However, training them directly via backpropagation is notoriously difficult due to two major roadblocks:

  1. Temporal Covariate Shift (TCS): As time steps progress, the internal distributions of neural activations drift. Previous attempts to fix this relied on adjusting batch normalization parameters at every single timestep, which blows up model complexity and fails to address the root cause: drift in the neuron's underlying membrane potential.
  2. Unstable Gradients with Learnable Thresholds: To make SNNs more flexible, researchers want to train internal neuron parameters like the threshold voltage ($V_{thr}$). However, because the spiking function is non-differentiable, standard surrogate gradients (SGs) must be used. Existing SG methods are highly sensitive to the scale of $V_{thr}$, leading to either "gradient flooding" (too many gradients flowing) or "gradient starvation/vanishing" (gradients disappearing entirely).

Methods

The authors propose two elegant, hardware-friendly innovations to tackle these issues:

  • MP-Init (Membrane Potential Initialization): Traditionally, a neuron's membrane potential is initialized to zero ($U[0] = 0$). The authors mathematically prove that the membrane potential naturally evolves toward a unique stationary distribution over time, making zero-initialization the primary driver of temporal drift. MP-Init tracks a running mean of the final membrane potential at the last timestep during training and uses it to initialize the potentials at $t=0$. This aligns the initial state with the steady state, eliminating TCS without needing timestep-specific parameters.
  • TrSG (Threshold-robust Surrogate Gradient): To safely train the threshold voltage ($V_{thr}$), TrSG re-formulates the surrogate gradient. It uses a relative-scale argument to ensure the gradient window scales properly with the threshold, and multiplies the spike output by the threshold on the forward path during training. This mathematical trick perfectly cancels out the problematic $1/V_{thr}$ scaling factor during backpropagation, making the gradient magnitude invariant to the threshold scale. Crucially, this scaling is training-only; during inference, the network reverts to standard binary spikes.

Datasets

The authors evaluated their approach on a diverse mix of static and dynamic (event-based) vision benchmarks:

  • Static Image Datasets: CIFAR-10, CIFAR-100, and ImageNet.
  • Neuromorphic/Dynamic Dataset: DVS-CIFAR10 (an event-stream dataset for object classification).
  • Downstream Task: Object detection on the COCO2017 dataset.

Key Insights and Ideas

  • The Root of Temporal Drift: TCS in SNN activations isn't an arbitrary phenomenon—it is fundamentally caused by the drift of the membrane potential away from zero and toward its natural stationary distribution. As shown below, conventional methods suffer from severe distribution drift over time, whereas MP-Init stabilizes both membrane potentials and subsequent activations from the very first timestep.
Figure 1. Membrane potential distribution of the third layer’s first spiking layer of ResNet-19 on CIFAR100
Figure 2. Activation distribution of the convolutional layer after the third layer’s first spiking layer of ResNet-19 on CIFAR100
  • The Threshold Dilemma: Conventional surrogate gradients create a nasty trade-off when thresholds are learnable. Absolute-scale SGs cause gradient flooding or starvation depending on the threshold size, while relative-scale SGs lead to gradient explosion or vanishing. TrSG decouples the gradient window from the gradient magnitude, achieving the best of both worlds.
  • Efficiency without Excess Spikes: One might worry that initializing membrane potentials to a non-zero value simply forces neurons to fire more frequently. The authors show that MP-Init actually forms a Pareto frontier, achieving higher accuracy than baselines even at identical or lower firing rates.

Key Results

  • State-of-the-Art Accuracy: On CIFAR-100 (with only 4 timesteps), the method achieves 77.66% accuracy, outperforming strong baselines like TAB (76.81%).
  • Massive Gains on Neuromorphic Data: On DVS-CIFAR10, the combination of MP-Init and TrSG hits 81.43% accuracy with ResNet-19, easily beating the previous best of 76.20% (RMP-Loss).
  • ImageNet Performance: Reached 69.67% top-1 accuracy on ImageNet using SEW-ResNet-34 at 4 timesteps, outperforming complex optimization methods with negligible overhead.
  • Low-Latency Reliability: At an aggressive latency constraint of just 2 timesteps, MP-Init provides a 1.66%pt accuracy boost over standard tdBN on CIFAR-100.

Limitations and Future Work

While MP-Init efficiently mitigates TCS with minimal overhead, the authors note that alternative initialization strategies could be explored for further optimization. Additionally, training internal parameters like threshold voltage and decay constants can introduce deployment challenges on certain neuromorphic hardware platforms that are strictly optimized for simpler, fixed-neuron dynamics. Future work will need to focus on adapting these methods to be more hardware-compatible and exploring broader architectural designs.

Summary updated

BibTeX
@inproceedings{kook2026stabilizing,
  author = {Hyunho Kook and Byeongho Yu and Jeong Min Oh and Eunhyeok Park},
  title = {{Stabilizing Direct Training of Spiking Neural Networks: Membrane Potential Initialization and Threshold-robust Surrogate Gradient}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2026},
  url = {https://openreview.net/forum?id=dVe6FUUFZ1},
}
Figure