NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Understanding the Convergence of Direct Training of SNNs with Surrogate Gradients

Zelin Wei, Tianxing Man, Wanli Shi, Bin Gu

NeurIPS page · Open on the map

Category: Brain Signals & Spiking Networks › Spiking Neural Network Efficiency · Type: theory · Keywords: spiking neural networks, direct training, surrogate gradients, local zeroth-order, convergence analysis, threshold-tail functional

Areas: Optimization & Algorithms › Optimization Dynamics › Zeroth-Order Optimization

Summary

The paper provides a unified convergence analysis for direct training of SNNs using surrogate gradients and local zeroth-order estimators, establishing non-asymptotic guarantees and a diagnostic threshold-tail statistic.

Explained to a 5-year-old

We study how to teach spiking brain computers that fire like little bells. When we try to teach them directly, the signals are not smooth, so we need a special way to check if they are learning. We create a tool that watches how close the signals get to the firing point and uses that to guide learning. This helps us be sure the computers actually improve over time. It also tells us when something is going wrong during training.

Explained to a 5-year-old, longer

We look at a kind of computer brain called a spiking neural network that works like a brain by sending tiny electrical pulses. Training these networks directly is tricky because the pulses are not smooth, like a step function, which makes it hard to calculate how to change them. Researchers have tried two tricks: using a smooth approximation called a surrogate gradient and using a method that estimates gradients by small perturbations. Both tricks keep the pulses sharp in the forward pass but use smooth signals for learning. This creates a mismatch between what the network does and how we think it should learn. The paper creates a new analysis that unifies these tricks, introducing a smoothed version of the spiking objective just for analysis. It splits the learning error into two parts: one from the mismatch between the real training direction and the smoothed direction, and another from the difference between the smoothed objective and the true spiking objective. Both errors are controlled by a new measure called a threshold-tail functional, which counts how often the network's internal voltage gets very close to the point where it fires. Under some reasonable assumptions, the analysis proves that the training will eventually reach a good solution for the original spiking objective. Experiments on many different spiking network designs and benchmark tests show that the theory works in practice, reveal the size of the errors, and demonstrate that the threshold-tail functional can be used to diagnose problems during training. This work gives both a solid theoretical foundation and practical tools for anyone trying to train spiking neural networks directly.

For a technical reader

The paper presents a convergence analysis for direct training of spiking neural networks that uses surrogate gradients or local zeroth-order estimators. It introduces a smoothed objective to bridge the gap between the discrete forward pass and the continuous backward pass, decomposes the resulting error into gradient-level and objective-level components, and controls them with a threshold-tail statistic. Under standard regularity assumptions, the analysis yields a non-asymptotic guarantee for the original spiking objective. Experiments confirm the theory and show the statistic’s usefulness as a diagnostic.

Problem

Direct optimization of models that produce discrete spikes suffers from a mismatch between forward and backward passes, making it unclear whether the updates converge to the desired discrete objective.

Method

The approach introduces a smoothed spike objective as an analytical bridge, decomposes the training error into gradient-level mismatch and objective-level consistency, and controls both via a threshold-tail functional that measures proximity of membrane potentials to the firing threshold. Under regularity assumptions, it yields a non-asymptotic convergence guarantee for the original discrete-spike objective.

Results

The approach demonstrates convergence on various architectures, reveals systematic gradient mismatches, and validates the threshold-tail statistic as an effective diagnostic tool.

Contributions

A unified convergence analysis framework for direct training methods, a decomposition of training error into gradient and objective components, and a threshold-tail functional that quantifies spike proximity for diagnostics.

Limitations and assumptions

The guarantee relies on regularity assumptions about the membrane dynamics and requires the threshold-tail functional to be well-behaved; the analysis is limited to the considered direct-training settings.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction