# Zeroth-Order Forward-Only SNN Training Inspiring Neuromorphic On-Chip Learning

Zeroth-order training with a subspace makes spiking networks train on chips

Mingyue Qin, Shuyu Yin, Qinghai Guo, Peilin Liu, Xiaolin Huang, Fei Wen · International Conference on Machine Learning · 2026-9-29

- **Problem** Zeroth-order training works for ResNet20 ANNs but fails on spiking networks. Swapping ReLU for LIF neurons makes few perturbations change the loss, because the Heaviside step inflates gradient-estimate variance.
- **Method** SZO perturbs weights only along a low-dimensional subspace built from sampled weight snapshots. Instead of all d coordinates, it uses k basis vectors from PCA, so each gradient estimate needs fewer forward passes.
- **Results** On CIFAR10 from scratch, SZO-CGE scored 86.21±0.17, compared to 86.74±0.12 for full-space BP.

## Why zeroth-order training stalls on spiking networks

Zeroth-order methods need only forward passes, which makes them attractive for neuromorphic hardware that avoids backward paths. The authors test this on CIFAR10: DeepZero with CGE trains a ResNet20 ANN well, but the SNN variant, built by swapping ReLU for LIF neurons, does not train. Both networks ran for 40 epochs, and the SNN variant used a time-step of 1.

A perturbation counts as effective when it changes the mini-batch loss, and the SNN has a much lower share of effective perturbations.

## Where the variance comes from

The authors compare the output variance of the Heaviside, sigmoid and ReLU activations when the input is a symmetric random variable with a small spread. For a Gaussian input z with variance σ², the Heaviside output has variance 0.25, the ReLU output about 0.341σ², and the sigmoid output about 0.0625σ². For small σ the Heaviside output therefore varies far more than the other two, which is the variance amplification the authors describe.

Intuitively, a small change of the pre-activation moves a Heaviside output only when it crosses zero, and then it jumps by a full unit.

The share of effective perturbations also drops sharply, which the authors link to training failure. These observations motivate variance reduction for ZO optimization on SNNs, and the authors choose a subspace for that purpose.

## A low-dimensional trajectory in SNN training

The authors train Spike-ResNet18 (11.22M) on CIFAR100 and Spike-ResNet50 (25.56M) on ImageNet1K with BPTT and surrogate gradients at time-step 4. These runs reach 74.42% on CIFAR100 and 64.36% on ImageNet1K.

The top ten components explain more than 90% of the variance for both networks. Training inside a 60-dimension subspace spanned by the top eigenvectors reaches accuracy comparable to full parameter training. The authors read this as evidence that SNN training trajectories also have a low-dimensional structure.

## How the subspace estimator and update work

The projection matrix P holds k orthonormal basis vectors, and SZO perturbs parameters along these vectors rather than along all d coordinates. SZO-CGE takes a central difference along each basis vector and sums the results, which costs 2k forward passes. \\\[ \\hat{\\nabla}\\,\\mathcal{L}\_B(\\theta)=\\sum\_{i=1}^{k}\\frac{\\mathcal{L}\_B(\\theta+\\mu v\_i)-\\mathcal{L}\_B(\\theta-\\mu v\_i)}{2\\mu}\\,v\_i \\\] Here µ is the perturbation scale, and each vi is a column of P.

SZO-RGE instead draws q Gaussian vectors zi in R^k, maps them to the full space with P, and averages the central differences. The parameter update adds a momentum term to the zeroth-order step, with η as the learning rate and β in \[0, 1). \\\[ \\theta\_{t+1}=\\theta\_t-\\eta\\,\\hat{\\nabla}\\,\\mathcal{L}\_{B\_t}(\\theta\_t)+\\beta(\\theta\_t-\\theta\_{t-1}) \\\] The authors choose PCA because it ranks basis vectors by importance, and they note that other orthonormalization methods could replace it.

## What the convergence bound establishes

The SNN loss is not continuous, so the analysis works on the Gaussian-smoothed loss, defined by averaging the loss over perturbations u drawn from N(0, I\_d). \\\[ \\mathcal{L}^{\\mu}\_x(\\theta)=\\mathbb{E}\_{u\\sim\\mathcal{N}(0,I\_d)}\\big\[\\mathcal{L}\_x(\\theta+\\mu u)\\big\] \\\] The expected zeroth-order update equals an SGD step on this smoothed loss.

The analysis assumes the original loss is bounded by M, the smoothed loss is L-smooth with bounded gradient norm, and the projection error is bounded by ε. The variance from sampling data is bounded by σ², and the mini-batch variance is σ² divided by B.

Theorem 5.4 sets the learning rate in terms of L, β and T, and requires µ and ε to lie within thresholds set by T and β. It bounds the average squared gradient norm of the smoothed loss by a term of order k(1 − β)/√T plus a σ² term. Full-space zeroth-order training has a rate of order d/√T, so the subspace bound is smaller when k ≪ d. The authors stress that the bound needs a relatively large perturbation scale, which they contrast with standard ANN analyses that use small µ.

## Training from scratch

For CIFAR10 and CIFAR100 the subspace dimension is 60 and 150 models are sampled, while DVS-Gesture uses 80 models and dimension 20. SZO and BP-Subspace train for 40 epochs, while BP trains for 100 epochs on ImageNet1K and 200 epochs on the other datasets.

On CIFAR10 with Spike-ResNet20, full-space BP scored 86.74±0.12 and BP-Subspace 86.42±0.32. SZO-CGE scored 86.21±0.17, compared to 83.71±0.34 for SZO-RGE with q=20 and 81.29±0.35 for SZO-RGE with q=1.

On ImageNet1K with Spike-ResNet50, full-space BP scored 63.81±0.78, while SZO-CGE scored 61.71±0.18 and SZO-RGE with q=1 scored 61.82±0.10. Subspace training reached accuracy similar to 60 epochs of full-space BP in fewer than 10 epochs. The authors argue that the subspace dimension of tens largely removes the gap between CGE and RGE, which otherwise favours CGE in high dimensions.

## Continual training from a pretrained model

Spike-ResNet18 is pretrained for 100 epochs on CIFAR100, and a 20-dimensional subspace is sampled from epochs 80 to 100. For ImageNet1K, Spike-ResNet50 is pretrained for 60 epochs and its subspace comes from epochs 50 to 60, and continual training runs for 20 epochs.

On CIFAR100, SZO passes 74% within one epoch, which is close to the converged full-space BP accuracy reached after about 50 epochs. SZO-CGE reaches 74.59% on CIFAR100, compared to 74.42% for full-space BP. On ImageNet1K, SZO-CGE reaches 63.73%, compared to 64.36% for converged full-space BP.

SZO-RGE reaches a maximum accuracy comparable to SZO-CGE while needing less training time. On CIFAR100, BP takes 97 epochs and 58.2 minutes, while SZO-CGE takes 4 epochs and 69.6 minutes and SZO-RGE with q=1 takes 6 epochs and 8.7 minutes. On ImageNet1K, the BP runs use 8 V100 GPUs while SZO-CGE and SZO-RGE use 2, so those times are not on identical hardware.

## Unsupervised adaptation to corruptions

The authors adapt pretrained Spike-ResNet20, Spike-ResNet18 and Spike-ResNet50 to CIFAR10C, CIFAR100C and ImageNetC at severity level 5. Models adapt over one cycle of the 15 corruptions in CIFAR100C and ImageNetC, and the Reset and Continual settings are both evaluated.

For CIFAR10C and CIFAR100C the subspace uses Gaussian severity 1 models sampled over 10 epochs.

On CIFAR100C in the Reset setting, SZO-CGE scored 72.47, compared to 52.54 for Tent trained with full-space BP. On CIFAR10C in the Continual setting, SZO-CGE scored 76.10, compared to 64.58 for Tent with full-space BP. BP-Subspace scored 75.02 on CIFAR100C in the Reset setting, above SZO-CGE, so SZO-CGE is not the top method in every cell.

The authors attribute the advantage over Tent to the stability of low-dimensional training, since entropy minimization can be misled by confident but wrong predictions. The gap is larger in the Continual setting, and SZO-RGE with q=10 scored only 31.09 on CIFAR10C in that setting.

## Memory and training cost

BP and BP-Mix must store all inter-layer activations, so their memory grows steeply with batch size and time-steps. SZO does not store these activations, so its memory grows only marginally with batch size and stays almost unchanged across time-steps. SZO does need to store the subspace projection matrix of size d×k, but the authors judge this overhead much smaller than the activation storage.

From scratch on CIFAR100, SZO-CGE takes 38 epochs and 1335.2 minutes, with 1797818 forward passes, while BP takes 197 epochs and 142.8 minutes. So SZO-CGE uses many more forward passes per epoch, and its wall-clock time can exceed BP's even though it needs fewer epochs.

## Sensitivity to perturbation scale and subspace settings

On CIFAR10 with Spike-ResNet20, SZO-CGE stays between 85.91±0.31 and 86.21±0.17 for µ from 0.6 to 2.2. On CIFAR100 with Spike-ResNet18, the same range gives 73.20±0.33 down to 72.98±0.47 across the tested µ values.

A smaller sample window needs fewer source-pretraining epochs, and a smaller subspace dimension needs less memory. Figure 6 shows that a larger subspace dimension gives higher accuracy for training from scratch.

## Limitations

The subspace is built by hand from offline BP pretraining, so its usefulness depends on whether it transfers to downstream on-chip tasks. The authors suggest that data-driven or meta-learning approaches could build more transferable subspaces, but they did not test them. The experiments focus on small-to-medium models and classification tasks, and sequential language modelling was not tested.

On CIFAR10 from scratch, SZO-RGE with q=1 scored 81.29±0.35, well below the 86.74±0.12 of full-space BP.

## Paper info

- **Authors**: Mingyue Qin, Shuyu Yin, Qinghai Guo, Peilin Liu, Xiaolin Huang, Fei Wen
- **Venue**: International Conference on Machine Learning · Published
- **First published**: 2026-9-29
- **Added**: 2026-11-25
- **Original paper terms**: [Check in the original ↗](https://proceedings.mlr.press/v306/qin26l.html)
- **What we show**: Paper info and commentary

[Original paper ↗](https://proceedings.mlr.press/v306/qin26l.html)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Mingyue Qin, Shuyu Yin, Qinghai Guo, Peilin Liu, Xiaolin Huang, Fei Wen (2026). Zeroth-Order Forward-Only SNN Training Inspiring Neuromorphic On-Chip Learning. International Conference on Machine Learning. https://proceedings.mlr.press/v306/qin26l.html

**BibTeX**

```
@article{qin2026zeroth,
  title = {{Zeroth-Order Forward-Only SNN Training Inspiring Neuromorphic On-Chip Learning}},
  author = {Mingyue Qin and Shuyu Yin and Qinghai Guo and Peilin Liu and Xiaolin Huang and Fei Wen},
  year = {2026},
  journal = {International Conference on Machine Learning},
  url = {https://proceedings.mlr.press/v306/qin26l.html}
}
```

## Other paper commentary

- [Roboclock: A Unified Benchmark for Time-Aware Robotic Intelligence](https://refivu.com/en/papers/d28d7b22-274f-4e81-9d24-a3d9cc69084a-roboclock-a-unified-benchmark-for-time-aware-robotic.md)
- [Demographic Encoding is Not Exposure: Fairness and Privacy in Chest X-ray Foundation Models](https://refivu.com/en/papers/d91f434f-7371-40be-9129-9d3da0b4398c-demographic-encoding-is-not-exposure-fairness-and-privacy.md)
- [Token Pruning Needs a Protected Sink Token: Coherent Spatial Aggregation in Vision Transformers](https://refivu.com/en/papers/ccf2a0da-8ba4-468b-bb16-97b8206e5236-token-pruning-needs-a-protected-sink-token-coherent.md)
- [The cyborg fly: reflexes survive engineered actuators, coordination needs stand-ins](https://refivu.com/en/papers/7ee56916-27c9-439c-be7d-f45cd51b88f4-the-cyborg-fly-reflexes-survive-engineered-actuators.md)
- [Text Is Just Another Shot in Vision-Language Models: Simple Probes on Frozen Encoders Do It](https://refivu.com/en/papers/7a41ea95-b526-4d30-ba8b-9da3784c902c-text-is-just-another-shot-in-vision-language.md)
- [Deneb-Vritra: Descriptions, Edges and Names Examined by Blocking Via Restoring Token Representations and Attention](https://refivu.com/en/papers/0b67f9eb-1c6f-468f-98bf-5eb090a75bfd-deneb-vritra-descriptions-edges-and-names-examined-by.md)
- [Predicting Rare-Mode Collapse in Recursive Generative Training from Single-Generation Calibration](https://refivu.com/en/papers/5c8147d8-eed2-4206-bf09-95dd28fcd1c5-predicting-rare-mode-collapse-in-recursive-generative.md)
- [Large Language Models Must Be Taught to Know What They Don’t Know](https://refivu.com/en/papers/4d71ae08-4963-4ae9-916f-e448018e1866-large-language-models-must-be-taught-to-know.md)

## Terms in this paper

- [CIFAR10](https://refivu.com/en/terms/19bd6ffb1901-cifar10)
- [test accuracy](https://refivu.com/en/terms/021c3c30b755-test-accuracy)
- [PCA](https://refivu.com/en/terms/2f4628e32ef5-pca)
- [Training time](https://refivu.com/en/terms/30f285d1cd73-training-time)
- [CIFAR100](https://refivu.com/en/terms/bb341ab98ac5-cifar100)
- [BN](https://refivu.com/en/terms/06ab8cd7b193-bn)
- [BPTT](https://refivu.com/en/terms/30069c46face-bptt)
- [ImageNet1K](https://refivu.com/en/terms/8cfcb134f1ea-imagenet1k)
- [LIF neuron](https://refivu.com/en/terms/7867151dafb2-lif-neuron)
- [spiking neural networks](https://refivu.com/en/terms/1bab06a1a75e-spiking-neural-networks)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/62311c6d-94fc-4546-98d2-cb89a4630c19-zeroth-order-forward-only-snn-training-inspiring)
