Spiking neural networks (SNNs), networks whose neurons communicate with binary spikes over many discrete time steps, are expensive to train. Backpropagating through all $T$ time steps across $L$ layers requires storing every neuron's internal state, so memory grows as $L \times T$. Adversarial training, which teaches a model to resist small worst-case input changes, multiplies this cost. Its usual inner loop, projected gradient descent with $K$ steps (PGD-$K$), runs $K$ full forward and backward passes before every weight update. For an SNN, each of those passes unrolls over all $T$ steps. In practice this has kept robust SNN training confined to static images and away from the event-camera streams that SNNs are built for.
We propose to stop treating time as overhead and use it as the attacker's iteration budget. An SNN already processes its input as a sequence. We split that sequence into short chunks and backpropagate through each chunk separately. The input gradient from chunk $k$, which falls out of the same backward pass that updates the weights, is used to sharpen the perturbation applied to chunk $k+1$. The perturbation therefore gets a multi-step refinement over the course of one ordinary training pass. Memory scales with the chunk length rather than with $T$, and compute is close to standard training. The approach relies on a fact that earlier work recorded as a weakness: adversarial perturbations transfer from one time step to the next (Boosting the Robustness-Accuracy Trade-off of SNNs by Robust Temporal Self-Ensemble). That transfer is exactly what makes a warm start from the previous chunk useful.
Core Claim
Let the input sequence be split into $C$ chunks of length $W = T/C$. Let $\mathcal{L}_k$ be the classification loss read out from chunk $k$, computed with gradients truncated at chunk boundaries while neuron states carry forward. Let $\delta_k$ be the perturbation applied to chunk $k$. One training pass then performs
$$\theta \leftarrow \theta - \eta \nabla_\theta \mathcal{L}_k, \qquad \delta_{k+1} = \Pi_{\epsilon}\big(S(\delta_k) + \alpha\, \mathrm{sign}(\nabla_{\delta_k}\mathcal{L}_k)\big).$$
Here $\theta$ are the weights, $\eta$ and $\alpha$ are the weight and perturbation step sizes, and $\Pi_\epsilon$ projects back into the allowed budget $\epsilon$. $S$ maps a perturbation onto the next chunk's time indices. For static images repeated over time, $S$ is the identity, so the same $\delta$ simply receives $C$ refinement steps. For event streams, $S$ is a time shift.
The claim has two parts. On cost, this "temporal free" adversarial training needs memory proportional to $L \times W$ and roughly the compute of one standard pass, with no extra inner-loop passes. On robustness, it matches or exceeds single-step and regularizer-based SNN defenses when evaluated against full-sequence attacks that backpropagate through all $T$ steps. It should help most on native event streams, where conversion-based methods cannot be applied.
Two prior methods supply pieces of this. Adversarial training for free! also reuses the weight-update backward pass to update the perturbation. It gets its iterations by replaying the same minibatch $m$ times, which the file notes degrades accuracy as $m$ grows because data diversity shrinks. We replace replay over minibatches with refinement over time, so no sample is shown twice. Truncated backpropagation is the second borrowed ingredient. What is new is carrying an adversarial perturbation forward across truncation boundaries.
Research Program
The first component is the training procedure itself. It will be implemented for LIF (leaky integrate-and-fire) SNNs trained with surrogate gradients, on two kinds of input.
For static images with direct encoding, one perturbation $\delta$ is shared across time. Chunking turns one pass into a $C$-step attack whose later steps see neuron states shaped by earlier, weaker versions of $\delta$. Each pass begins with uniform random initialization inside the budget, following Fast is better than free: Revisiting adversarial training, as a guard against catastrophic overfitting.
For event streams binned into frames, each chunk has its own perturbation. The warm start $S$ shifts the previous chunk's perturbation forward in time. We will also test a variant that shifts and blends it with a fresh random draw.
The threat model is $\ell_\infty$ on binned event frames. We will additionally evaluate, but not train against, the spike-retiming threat model of Time Is All It Takes: Spike-Retiming Attacks on Event-Driven Spiking Neural Networks. That paper also shows standard adversarial training against retiming drops clean accuracy from about 95% to about 69–72%, which sets the bar for any retiming-aware variant.
The second component is analysis. Three questions matter here.
The first is whether truncation creates a blind spot, meaning robustness to locally optimized perturbations but not to attacks that exploit long temporal credit paths. SNN-RAT: Robustness-enhanced Spiking Neural Network through Regularized Adversarial Training motivates this worry: it found that attacks backpropagating through all time steps are far stronger than attacks through firing rates, because perturbations compound over time. We will measure robust accuracy as a function of $W$ against full-$T$ attackers.
The second is whether catastrophic overfitting appears. We will track single-step versus PGD-50 robust accuracy every epoch and compare surrogate gradient shapes, which addresses a gap the file notes SNN-RAT and conversion work left unexamined.
The third is how much the per-chunk readout, which treats each chunk as a member of a temporal ensemble in the sense of the self-ensemble work, contributes beyond the perturbation schedule.
Baselines
The naive reference is a standard surrogate-gradient SNN with no defense. SNN-RAT reports this collapses to 0.04% robust accuracy under PGD on CIFAR-10 with VGG-11. Next to it sits the expensive upper bound: full backpropagation through time with a PGD-$K$ inner loop. To make that baseline fit in memory, it will use gradient checkpointing or the reversible blocks of Memory-Efficient Reversible Spiking Neural Networks, which reports up to 8.1× memory reduction at about 33% extra training time. This is the robustness ceiling we want to approach at a fraction of the compute.
The strongest existing direct-training competitor on static data is A Unified Total Variation Framework for Membrane Potential Perturbation Dynamic. It regularizes membrane potentials instead of generating multi-step attacks. It reports 42.84% PGD-7 robust accuracy on CIFAR-10 with WRN-16 in 9.95 training hours, against more than 33 hours for earlier robust SNN methods. On CIFAR-100 with VGG-11 it reports 11.59% under AutoAttack.
The other competitors are as follows. SNN-RAT reports 21.16% PGD robust accuracy on CIFAR-10 with VGG-11 at about 90% clean accuracy. Adversarially Robust Spiking Neural Networks Through Conversion reports 19.6% robust and 91.4% clean accuracy on the same setting, and is applicable only to static data. We also include two direct ports of fast adversarial training to SNNs, both run with full backpropagation through time: single-step training with random initialization, and minibatch-replay free training.
Fairness will be enforced in three ways. Every method gets the same architecture (VGG-11 and WRN-16 on static data, plus a common event-stream backbone), the same $T$, the same $\epsilon$, and the same hyperparameter search budget. Wall-clock time and peak GPU memory are reported on identical hardware. Evaluation for all methods uses the same full-sequence attacks.
For event streams, no reported result was found on Lacuna for $\ell_\infty$ adversarial training on CIFAR10-DVS or DVS-Gesture. Every event-stream number therefore comes from baselines we run ourselves. The only file anchor is clean accuracy, for example 84.30% on CIFAR10-DVS with temporal reversal regularization (Temporal Reversed Training for Spiking Neural Networks with Generalized Spatio-Temporal Representation).
Beating the field means three things. On static CIFAR-10 at matched architecture, the method must reach robust accuracy within a few points of checkpointed PGD-$K$ while using wall-clock time comparable to or below MPPD-TV-$\ell_1$. Under AutoAttack it must exceed the single-step and replay ports. On event streams it must exceed every runnable baseline in robust accuracy at equal compute.
Two ablations isolate the key ingredient. The first resets the perturbation to fresh random noise at every chunk, which keeps chunking and per-chunk loss but removes the temporal warm start. The second keeps the warm start but backpropagates the full sequence, which shows what truncation costs.
Why not just…?
Why not just adversarially train an ANN and convert it? Conversion is a genuine threat on static images, where it reached 19.6% PGD robust accuracy and scaled to TinyImageNet. It has no answer for DVS event streams, because no static ANN equivalent of the input exists. We will report conversion on the static benchmarks and concede ground there if it wins at equal compute. The event-stream results carry the case.
Why not just regularize membrane potentials, as MPPD-TV-$\ell_1$ does? This is the strongest static competitor. It still stores all $L \times T$ states, and its 11.59% AutoAttack result on CIFAR-100 suggests weaknesses against adaptive attacks. Membrane smoothing and our perturbation schedule are compatible, so we will also test the combination. If MPPD-TV-$\ell_1$ alone matches our robustness at equal memory and time, the warm-start contribution is not worth it. The head-to-head on CIFAR-10 and DVS-Gesture settles this.
Why not collapse time with stabilized spike flows or rate-based differentiation and then apply fast adversarial training? SSF: Accelerating Training of Spiking Neural Networks with Stabilized Spiking Flow and Training High-Performance Low-Latency Spiking Neural Networks by Differentiation on Spike Representation assume static, repeated inputs. SNN-RAT shows that rate-based gradients underestimate attacks unrolled through time. We include an SSF-plus-fast-training baseline evaluated against full-$T$ attacks to measure that gap directly.
Why not just use reversible networks or checkpointing with ordinary PGD? These fix memory but not compute. Recomputation costs about 33% per pass in the reversible SNN paper, and that cost is repeated across all $K$ inner steps. They therefore serve as our expensive ceiling. Matching their robustness at roughly one pass of compute is the result we are after.
Proposed Experiments
Static experiments use CIFAR-10, CIFAR-100, and Tiny-ImageNet with VGG-11 and WRN-16 at $T \in \{4, 8, 16\}$ and $C \in \{2, 4, T\}$. Event experiments use CIFAR10-DVS (CIFAR10-DVS: An Event-Stream Dataset for Object Classification), DVS-Gesture, and N-MNIST at larger $T$, which is where memory savings matter. We report clean accuracy, PGD-50 accuracy, and AutoAttack accuracy, all computed with full-sequence surrogate gradients. We also check robustness under several surrogate gradient shapes to rule out gradient masking. Retiming attack success rate is measured with the projected-in-the-loop attack. Peak memory and wall-clock time complete the report.
Three results decide the project. The warm-start ablation must show a clear robust-accuracy gain over per-chunk random restarts. Without it, the time-as-iterations idea fails. Robust accuracy against full-$T$ attackers must not fall sharply as $W$ shrinks. A steep fall would mean truncation buys memory by hiding long-range vulnerabilities. On DVS-Gesture and CIFAR10-DVS, the method must beat the single-step and replay baselines at equal compute. If retiming success rates also drop without the large clean-accuracy loss reported for retiming adversarial training, that becomes a secondary result.
References
- Boosting the Robustness-Accuracy Trade-off of SNNs by Robust Temporal Self-Ensemble
- Adversarial training for free!
- Fast is better than free: Revisiting adversarial training
- Time Is All It Takes: Spike-Retiming Attacks on Event-Driven Spiking Neural Networks
- SNN-RAT: Robustness-enhanced Spiking Neural Network through Regularized Adversarial Training
- Memory-Efficient Reversible Spiking Neural Networks
- A Unified Total Variation Framework for Membrane Potential Perturbation Dynamic
- Adversarially Robust Spiking Neural Networks Through Conversion
- Temporal Reversed Training for Spiking Neural Networks with Generalized Spatio-Temporal Representation
- SSF: Accelerating Training of Spiking Neural Networks with Stabilized Spiking Flow
- Training High-Performance Low-Latency Spiking Neural Networks by Differentiation on Spike Representation
- CIFAR10-DVS: An Event-Stream Dataset for Object Classification