Spiking Neural Networks (SNNs) are often hailed as the energy-efficient future of AI because they process information using discrete, binary pulses—spikes—much like the biological brain. However, this efficiency comes at a steep cost for training. In a standard neural network, the activation function (like ReLU) is continuous and differentiable. In an SNN, the activation is a step function: a neuron stays silent until its internal "membrane potential" hits a threshold, at which point it fires.
The derivative of a step function is zero everywhere except at the threshold, where it is undefined (infinite). This "dead neuron" problem makes standard gradient descent impossible. To bypass this, researchers use surrogate gradients (SG): during the backward pass, they replace the non-differentiable step function with a smooth, differentiable approximation like a sigmoid or a triangle.
The challenge is that a static surrogate gradient is a "one-size-fits-all" solution to a dynamic problem. Recent research has shifted toward Adaptive Surrogate Gradients, where the shape, width, and position of the gradient approximation evolve to match the network's internal state.
The Dilemma of Static Surrogates
A surrogate gradient essentially defines a "window" of differentiability. If the window is too wide, the gradient is a poor approximation of the actual spike, leading to high approximation error. If the window is too narrow, most neurons fall outside it, their gradients become zero, and the network stops learning—a phenomenon known as gradient vanishing.
Yuhang Li and colleagues addressed this in Dspike by introducing a tunable temperature parameter. By evolving the shape of the surrogate during training, the model can start with smooth gradients to facilitate early exploration and transition to sharper gradients for fine-tuning, effectively balancing the trade-off between signal flow and approximation accuracy.
Learning the Gradient Shape
Rather than manually scheduling the surrogate's shape, why not let the network learn it? Ziming Wang and Rui Yan proposed Adaptive Smoothing Gradient Learning (ASGL) in Adaptive Smoothing Gradient Learning for Spiking Neural Networks.
In ASGL, the "smoothing factor" (the width of the surrogate) is treated as a learnable parameter updated via backpropagation alongside the weights. This allows different layers to adopt different levels of smoothing. Early layers might keep a broad window to prevent dead neurons, while later layers sharpen their gradients to improve classification precision. This self-correction mechanism significantly reduces the sensitivity of SNNs to initial hyperparameter settings.
Aligning with Membrane Potential Dynamics
A surrogate gradient is only useful if it is centered where the neurons are actually "living." If a neuron's membrane potential is far from the firing threshold, a static surrogate centered at the threshold provides no useful signal.
Jiaqiang Jiang and Lei Wang introduced MPD-AGL in Adaptive Gradient Learning for Spiking Neural Networks by Exploiting Membrane Potential Dynamics. This method dynamically scales the width of the surrogate gradient to match the shifting distribution of a neuron's membrane potential. By ensuring the gradient's active window covers the actual range of the neuron's state, the approach prevents gradient vanishing even at ultra-low latencies.
Similarly, Dongcheng Zhao and Yi Zeng developed the Adaptive Sharpness Surrogate Gradient (ASSG) in Towards Reliable Evaluation of Adversarial Robustness for Spiking Neural Networks. They use an exponential moving average (EMA) to track membrane potential statistics in real-time, adjusting the sharpness of the surrogate for individual neurons at each timestep. This level of granularity is crucial for both stable training and for accurately evaluating how SNNs respond to adversarial attacks.
Adaptive Gradients for Exploration
The role of the surrogate gradient extends beyond simple optimization; it can also act as a mechanism for exploration. In the context of Reinforcement Learning (RL), Korneel Van den Berghe and Guido De Croon demonstrated in Adaptive Surrogate Gradients for Sequential Reinforcement Learning in Spiking Neural Networks that the slope of the surrogate gradient can function like exploration noise.
By starting with a shallow slope, the agent is encouraged to explore a broader range of parameters. As the agent's performance stabilizes, the slope is steepened to allow for precise policy fine-tuning. This scheduling proved essential for training SNNs to perform complex tasks like flying a real-world quadrotor.
Stabilizing Deep Architectures
As SNNs scale to hundreds of layers, the reliance on Batch Normalization (BN) becomes a bottleneck for energy efficiency. Xinyu Shi and Zhaofei Yu showed in Training Deep Spiking Neural Networks without Normalization that adaptive surrogate gradients, when combined with proper initialization (SpikeInit), can replace normalization layers entirely. By adjusting the gradient approximation based on real-time membrane potential statistics during the backward pass, they successfully trained SNNs with up to 1,000 layers, maintaining stability and performance without the computational overhead of BN.
By treating the surrogate gradient not as a fixed mathematical hack, but as a dynamic, learnable component of the network architecture, these researchers have unlocked the ability to train deeper, more robust, and more efficient spiking models.