TL;DR
Training Spiking Neural Networks (SNNs) typically relies on backpropagation, which is biologically implausible and highly inefficient for on-chip neuromorphic hardware. This paper introduces Online Pseudo-Zeroth-Order (OPZO) training, a novel method that uses a single forward pass with noise injection and momentum-based top-down feedback to assign credit. OPZO achieves performance comparable to exact backpropagation while remaining hardware-friendly and solving the massive variance issues that plague standard zeroth-order optimization methods.
What Problem Does This Paper Address?
Spiking Neural Networks (SNNs) mimic the brain's event-driven, sparse computation, making them incredibly energy-efficient on specialized neuromorphic hardware. However, figuring out how to train them effectively is a major bottleneck.
Currently, the most successful training methods rely on spatial and temporal backpropagation (BP) using surrogate gradients. But BP is a poor fit for neuromorphic chips: it requires symmetric forward and backward weights (the "weight transport" problem), separate forward and backward passes (which locks updates), and high memory to store intermediate states.
Researchers have tried alternatives. Direct Feedback Alignment (DFA) uses random top-down feedback, but its performance drops off a cliff on complex tasks. Zeroth-Order (ZO) optimization—which estimates gradients by perturbing the network with noise and observing the change in loss—only requires a forward pass. Unfortunately, standard ZO methods suffer from astronomical variance when applied to networks with thousands of parameters, causing them to fail entirely on deep SNNs. The authors aim to bridge this gap by creating a forward-only training method that actually scales.
Methods
The authors propose Online Pseudo-Zeroth-Order (OPZO) training to overcome these limitations. It relies on three key innovations:
- Pseudo-Zeroth-Order Formulation: Standard ZO methods treat the entire system (model + loss function) as a black box, relying on a single scalar loss value to guess the gradient. OPZO decouples them. It treats the SNN model as a black box (zeroth-order) but leverages the exact, easily computable gradients of the loss function (first-order). This provides a much richer, vector-based error signal.
- Momentum Feedback Connections: To solve the massive variance of ZO methods, OPZO doesn't just use the noisy perturbation from a single time step. Instead, it maintains a moving average (momentum) of the perturbation vectors to update the top-down feedback connections. This effectively tracks the expected Jacobian of the network, smoothing out the noise and providing a stable, accurate gradient estimate.
- Online Temporal Tracking: OPZO is combined with existing online training techniques (like Online Training Through Time, or OTTT) to handle the time dimension of SNNs. This allows the network to learn continuously in a forward-in-time manner, resulting in a local update rule that closely mimics biological three-factor Hebbian learning.
Key Insights and Ideas
- Variance Reduction is the Missing Link: The reason standard ZO methods fail in deep learning is that their variance scales linearly with the number of neurons. By introducing momentum to the feedback connections, OPZO drops this variance by several orders of magnitude, bringing it down to the same scale as exact backpropagation.
- We Can Bypass the Backward Pass: By using a single forward pass with noise injection, OPZO completely eliminates the need for a sequential, layer-by-layer backward pass. This allows for highly parallelized, on-chip learning.
- Biology Had the Right Idea: The resulting OPZO algorithm looks remarkably like biological learning. Synapses update based on local pre- and post-synaptic activity, modulated by a global, top-down error signal—perfectly aligning with neuroscientific theories of how the brain routes error.
Key Results
The authors evaluated OPZO across a mix of neuromorphic (N-MNIST, DVS-Gesture, DVS-CIFAR10) and static datasets (MNIST, CIFAR-10/100, ImageNet-1K).
- Accuracy: OPZO vastly outperforms existing BP alternatives. On CIFAR-100, standard ZO achieved a dismal 22.26% and DFA hit 49.50%. OPZO reached 60.93%. When combined with local learning (LL) techniques, OPZO hit 64.77%, effectively matching spatial BP (64.88%).
- Energy Efficiency: SNNs trained with OPZO (w/ LL) exhibited the lowest firing rates and synaptic operations. For example, on DVS-CIFAR10, OPZO required only $0.53 \times 10^9$ synaptic operations compared to BP's $1.51 \times 10^9$, making the resulting models highly energy-efficient for inference.
- Hardware Costs: Theoretical estimates show OPZO requires significantly less memory and fewer operations for error routing compared to BP, as it avoids storing intermediate activations for layer-by-layer backpropagation.
- Robustness: OPZO successfully fine-tuned a ResNet-34 on ImageNet under noisy conditions where DFA and standard ZO completely failed.
Limitations and Future Work
- Depth Scalability: Pure OPZO struggles to train very deep, plain networks from scratch due to non-smooth optimization landscapes. It relies heavily on residual connections or auxiliary techniques (like local learning) to scale to deeper architectures.
- Hardware Implementation: While designed for neuromorphic hardware, the experiments in this paper were simulated on GPUs. Actual deployment and benchmarking on physical neuromorphic chips (like Intel's Loihi 2) remains a crucial next step.
- Large-Scale Training from Scratch: While OPZO is great for fine-tuning and on-chip adaptation, training massive models from scratch on datasets like ImageNet still lags behind offline BP. The authors note OPZO is intended to complement offline BP (for post-deployment adaptation) rather than replace it entirely.
Summary updated