Introduction
Spiking Neural Networks (SNNs) serve as the energy-efficient, neuromorphic counterparts to traditional Artificial Neural Networks (ANNs). By communicating via binary pulses (spikes) rather than continuous values, SNNs achieve incredible efficiency on specialized hardware. However, training them presents a significant challenge: the step function that triggers a spike is non-differentiable, breaking standard backpropagation.
To circumvent this, researchers typically use "surrogate gradients"—smooth approximations of the step function. While effective for shallow networks, these approximations introduce intrinsic errors. In deep networks, these errors accumulate and magnify across layers, leading to severe "gradient error accumulation." Consequently, as SNNs increase in depth, their performance often plateaus or degrades sharply compared to ANNs.
Proposed Method: Surrogate Module Learning (SML)
To address this degradation in deep SNNs, the authors propose Surrogate Module Learning (SML). Instead of attempting to engineer the "perfect" surrogate gradient shape, SML provides a cleaner, alternative path for gradients to flow during training.
The SML framework operates on four core principles:
- Surrogate Modules: Auxiliary, fully differentiable ANN blocks are inserted alongside specific SNN blocks during the training phase. These act as "training wheels" to guide the learning process.
- Dual-Path Backpropagation: During the backward pass, a layer receives gradients from two distinct sources: the subsequent SNN layers (which contain accumulated approximation errors) and the surrogate ANN module (which provides a precise, error-free gradient shortcut).
- Self-Distillation Loss: To ensure the surrogate module effectively assists the SNN, a novel loss function employing self-distillation is used. This forces the outputs of the SNN blocks and their corresponding surrogate ANN modules to align, allowing the surrogate path to effectively "teach" the SNN.
- Zero Inference Overhead: Crucially, once training is complete, all surrogate modules are discarded. The final model is a pure SNN that runs without any additional computational cost, fully retaining its original energy efficiency.
Key Insights and Results
The authors evaluated SML across a wide range of standard (CIFAR-10, CIFAR-100, ImageNet) and neuromorphic (ES-ImageNet, DVS-CIFAR10) datasets. The performance gains are consistent and significant:
- Overcoming the Depth Barrier: Theoretical analysis and empirical results demonstrate that when the surrogate module's output closely matches the SNN's output, the scale of the gradient error is reduced by approximately half. This allows SNNs to maintain high accuracy at much greater depths than previously possible.
- ImageNet: On a Spiking ResNet-34 architecture, SML improved top-1 accuracy by 3.46%, reaching 69.35%—a remarkably high mark for directly trained SNNs.
- CIFAR-100 & Neuromorphic Data: SML achieved 78.00% accuracy on CIFAR-100, outperforming state-of-the-art methods like TET and GLIF. On the event-based ES-ImageNet dataset, SML improved accuracy by 4.87% over previous benchmarks using the same architecture.
- Faster Convergence: SML-trained networks converge faster, with training accuracy improving more rapidly in early epochs compared to standard direct training.
Limitations and Future Work
While SML introduces zero overhead during inference, it does increase memory and computational requirements during training. For a simulation time step of $T=1$, training time increased by approximately 53%, though this overhead decreases significantly as the number of time steps increases. Additionally, the method introduces new hyperparameters (such as the distillation loss weight and the number of channels in surrogate modules) that may require tuning for novel architectures.
Future work may explore more complex backward connections, potentially mimicking the long-range feedback loops found in biological brains to further enhance multi-layer learning in neuromorphic systems.
Summary updated