acceptodds
Published as a conference paper at NeurIPS 2026

Do Not Let Spikes Flip: Margin-Resculpted Learning for Robust Spiking Neural Networks

Desong Zhang, Jia Hu, Geyong Min

Abstract

Spiking Neural Networks (SNNs) transmit information through energy-efficient discrete spike events, unlike the continuous activations used in conventional Artificial Neural Networks (ANNs). Existing SNN robustness methods often inherit ANN-oriented objectives that suppress continuous perturbations or stabilize membrane-potential dynamics. In this paper, we argue that SNN robustness should be analyzed through the stability of spike patterns under perturbations. We formalize perturbation-induced spike flips and introduce the flip rate as a training-agnostic metric for quantifying spike-pattern instability. We further show that spike flips are closely associated with membrane potentials near the firing threshold, and introduce margin occupancy to quantify this threshold-margin vulnerability. Based on these findings, we propose Margin-Resculpted Learning (MRL), which regularizes excessive threshold-margin occupancy with an activity-adaptive bound. MRL reduces vulnerable spike flips while preserving the threshold region needed for surrogate-gradient learning. Experiments across static and event-based datasets, architectures, surrogate functions, and attack settings demonstrate consistent robustness improvements.

Keywords:
Paris

Reviews

Among:
Shape:
123456this paper, Bottom 15%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 3.75 over 4 reviews, above 15% of the others.
Reviewer_ufFUOpenReview ↗
Rating
4
Clarity
3
Confidence
1
Originality
3
Quality
3
Significance
3
Read review
Summary

What I find interesting about this paper is that it steps away from the usual "is the membrane potential numerically stable" framing and instead asks whether perturbations actually flip spikes. The flip rate metric that comes out of this is a reasonable training-agnostic diagnostic, and the observation that layers with membrane potentials clustering near the firing threshold tend to have higher flip rates is intuitive. MRL itself is a fairly clean regularizer built on top of these findings. Overall the perspective shift feels worthwhile, even if the causal story isn't fully closed.

Strengths and weaknesses

The motivation coming from LIF dynamics is solid, and the connection between threshold-adjacent membrane states and spike flip vulnerability makes intuitive sense. The NB-MRL ablation is probably the most convincing single result in the paper — removing the bound causes training to completely collapse, which is about as direct evidence as you can get that the activity-adaptive bound is doing real work.

That said, a few things make me uneasy. The biggest issue is that the causal chain isn't really closed. What the paper mostly shows is correlation — high-MO layers tend to have high flip rates — but the leap from "reduce MO" to "improve robustness" isn't rigorously justified. The union bound in Eq.5 has an unobservable coefficient \alpha K, so it's a very loose reference rather than a guarantee. The three Findings are also all observed under CIFAR-10 + FGSM at ε=8/255, and there's no validation at stronger perturbations or on DVS datasets. Since these Findings are the whole motivation for MRL, it's a bit concerning if they only hold in one specific setting.

There's also no adversarial training baseline anywhere in the comparisons. SNN-RAT and SR both involve AT in some form, and without comparing against them it's genuinely hard to know where MRL stands relative to the strongest competition.

The APGD numbers in Table 1 are strange — PGD consistently beats APGD (e.g. CIFAR-10 Triangle/VGG11: PGD 32.89% vs APGDc 17.24%), which is the opposite of what you'd expect. The appendix doesn't fully specify the number of iterations or restarts for APGD, so it's unclear whether it actually converged. If it didn't, the "no gradient obfuscation" conclusion in Table 5 needs to be revisited.

On the writing side, the design rationale for \kappa(\cdot) in Eq.7 — using the surrogate gradient as a flip vulnerability proxy — is mostly deferred to Appendix E, which makes the choice feel a bit unmotivated when reading the main paper. Fig. 7 only shows curves with no numbers, so it's hard to tell whether the results have actually converged.

Questions
  1. Table 1 shows PGD consistently stronger than APGD, which is unusual. Can you provide the full APGD configuration — number of steps, restarts, step size schedule? If APGD wasn't run to convergence, the gradient obfuscation conclusion in Table 5 needs to be reexamined.
  2. SNN-RAT and SR both incorporate AT. Without comparing against these it's hard to assess MRL's real advantage over the strongest baselines. If compute is limited, at least CIFAR-10 results would help.
  3. The MO vs flip rate correlation in Fig. 3 is only shown for CIFAR-10 + FGSM at ε=8/255. Can you verify these hold at larger perturbation strengths (e.g., ε=16/255) or on DVS-CIFAR10? These findings are the core motivation for MRL.
  4. The surrogate gradient describes which neurons contribute to backprop, while flip risk is about which neurons are likely to change firing state under perturbation — these aren't quite the same thing. Can you ablate against a simple distance-decay function like κ(m)∝exp⁡(−∣m∣)\kappa(m) \propto \exp(-|m|) to show the surrogate binding actually matters?
  5. The paper argues [r(1-r)]^2 is more conservative than r(1-r) but doesn't experimentally compare the two in terms of the clean/robust accuracy trade-off. A CIFAR-10 ablation on this would help.
Limitations

The authors mention the clean-adversarial trade-off and increased training cost, which is honest. But the discussion is pretty shallow — it would be worth explaining why clean accuracy drops (is it because membrane potentials being pushed away from the threshold weakens feature representation?) and whether training longer or tuning MRL down could partially recover it.

Paper formatting concerns

No major formatting issues found

1 comment

Response to Reviewer ufFU


W1 & Q3: MO-Flip-Robustness Chain

Response: Thanks for raising this. Fig. 3 is the first evidence, not MRL's sole basis. A flip requires threshold crossing:

∣u−uth∣≤∣Δu∣.|u-u_{th}|\leq|\Delta u|.

Higher MO means more near-threshold states and more opportunities for flips. Figs. 5-6 provide intervention evidence: with other settings fixed, MRL reduces MO and flip rate, while Tables 1-3 show higher robustness.

Eq. (5) gives the decision link: a prediction change requires a decision-relevant flip. αK\alpha K is not used for training. In our Response to Reviewer p6zu, W1 & Q2, the last spiking layer serves as measurable SoutS_{out}, giving Kout=8192K_{out}=8192 and α=0.40\alpha=0.40. Its flip rate correlates with global flip rate and accuracy drop at 1.00 and 0.92.

Finding 1 already covers multiple datasets, architectures, three surrogates, FGSM/PGD, and eps from 2/2552/255 to 128/255128/255 in Fig. 1 and Appendix D. We further test Findings 2-3 using VGG11/Triangle under stronger attacks and DVS data:

DVS-CIFAR10, T=10, eps=8/255

LayerFlip rate (%)MOrhop
10.720.09
21.170.12
31.240.13
41.970.17
51.140.12
60.990.13
70.410.03
80.310.04
Overall correlation0.870.005

CIFAR-10, T=4, eps=16/255

LayerFlip rate (%)MOrhop
14.970.12
25.060.07
35.880.08
44.470.05
52.600.02
64.240.03
75.510.04
81.500.02
Overall correlation0.760.03

CIFAR-10, T=4, eps=64/255

LayerFlip rate (%)MOrhop
113.140.12
28.730.07
38.780.08
45.870.05
53.000.02
64.300.03
76.560.04
81.580.02
Overall correlation0.983.31e-5

The MO-flip relation remains significant on event data and at much larger budgets. Together with Figs. 5-6, this supports the chain beyond the original setting.


W2 & Q2: AT

Response: We agree that AT is an important reference. We therefore compare standard AT, SNN-RAT, SR+AT, StoG+AT, DLIF+AT, HoSNN+AT, and MRL+AT on CIFAR-10.

Compared with standard AT, MRL+AT improves every robust metric by at least 31.94 points, with only a 0.74-point clean decrease. It also exceeds the strongest VGG11 baseline, HoSNN+AT, by 10.97, 2.68, 1.97, and 3.81 points under FGSM, PGD, APGD-CE, and APGD-DLR, respectively, while retaining 0.42 points more clean accuracy. Thus, MRL complements AT rather than replacing it.

Training methodCleanFGSMPGDAPGD-CEAPGD-DLR
AT91.1638.2014.077.998.27
SNN-RAT#90.7445.2321.16--
SR+AT*85.6348.47-29.03-
StoG+AT90.1345.7427.74--
DLIF+AT88.9156.7140.3035.0939.85
HoSNN+AT90.0063.9843.3338.8937.94
MRL+AT90.4274.9546.0140.8641.75

# SNN-RAT uses T=8T=8.

* SR+AT uses WRN-16 with T=8T=8.


W3 & Q1: APGD Configuration

Response: Table 1 reports robust accuracy, so lower means a stronger attack. Therefore, MRL’s defense is higher in PGD (high acc) is normal, instead of an indicator of gradient obfuscation. DLIF, HoSNN also show this pattern.

For APGD, we use the full test set, untargeted white-box attacks, and torchattacks 3.5.1:

attacker=torchattacks.APGD(
  model,norm="Linf",eps=8/255,steps=10,n_restarts=1,
  loss="ce", eot_iter=1)

APGD uses a random start and initial step 2. This matches DLIF's 10-step, one-restart, EOT=1 protocol.

The reported ordering is therefore expected, not evidence of failed convergence. Table 5 also checks that PGD is stronger than FGSM, white-box is stronger than black-box, and accuracy falls with larger ϵ\epsilon and more PGD steps. APGD further lowers accuracy to 17.24%, showing that gradient attacks remain effective.


W4: Rationale for κ\kappa

Response: Thank you for this comment. We understand that the rationale may feel brief, but it is not introduced only in Appendix E.

Immediately before Eq. 6, the main text explains that an average margin can hide a small vulnerable concentration, while a hard window cannot capture gradual changes with distance. This motivates a soft threshold-sensitivity profile. Remark 1 after Eq. 7 then explains why we use the surrogate gradient: it matches the model's training region and avoids an arbitrary window width.

The main-text logic is therefore:

Threshold crossing →\rightarrow Soft vulnerability profile →\rightarrow Training surrogate profile

Appendix E only expands this argument by comparing average distance and fixed-window alternatives. Fig. 3 further supports the choice through significant MO-flip correlations across architectures and surrogates. Thus, the essential rationale accompanies Eqs. 6-7, while the appendix provides the detailed analysis.


W5: Fig7 Data

Thank you for pointing this out. We provide the numerical results underlying Fig. 7 below. These results show that the attacks have empirically reached a stable plateau.

KKC10 V11C100 V11C10 R18C100 R18Ima NR18Ima NR34Ima NR50
732.8912.7834.9214.896.528.179.33
1031.2111.4633.4513.455.697.318.20
1530.0710.3032.3012.675.006.987.54
2029.329.7831.5412.104.756.407.01
3028.799.4230.9811.984.676.006.76
4028.369.2030.6711.934.625.826.59
5028.019.1730.5111.924.615.796.55
6028.009.1630.4811.914.615.786.53
7028.009.1630.4711.914.615.786.53
8028.009.1630.4711.914.615.786.53

C10: CIFAR10, C100: CIFAR100, V11: VGG11, R18: ResNet18, Ima: ImageNet, NR: NF-ResNet


Q4: Surrogate gradient profile versus a general distance-decay profile

Response: Thank you for highlighting this distinction. We agree that the surrogate gradient is not the exact flip probability. For v=u−uthv=u-u_{\mathrm{th}}, a flip requires

∣v∣≤∣Δu∣.|v|\leq|\Delta u|.

Thus, distance provides the basic vulnerability signal, while κ\kappa is only a relative weight. We align it with the surrogate because MO also enters training: at the same distance, a state may have zero gradient under a compact-support surrogate but remain trainable under a smooth one. A fixed exp⁡(−∣m∣)\exp(-|m|) ignores this difference and may misalign MRL with the effective optimization region.

We replaced only κ\kappa with κexp⁡(m)=exp⁡(−∣m∣)\kappa_{\exp}(m)=\exp(-|m|) and retained the original gradient-norm balancing on CIFAR-10 and CIFAR-100. Both runs produced NaN losses. A likely cause is the changed MRL gradient scale: in

=\frac{\|\nabla L_{\mathrm{CE}}\|} {\|\nabla L_{\mathrm{MRL}}\|+\sigma},$$ a small MRL gradient can produce a very large coefficient and numerical overflow. To separate this interaction from the distance profile itself, we used $L=L_{\mathrm{CE}}+\beta L_{\mathrm{MRL}}^{\exp}$ and swept $\beta$ on CIFAR-10 with VGG11, Triangle, $T=4$, and seed 2026; all other settings were unchanged. |$\beta$|Clean|FGSM|PGD|APGD-CE|APGD-DLR| |-|-|-|-|-|-| |1|93.81|8.01|0.03|0.52|2.08| |10|93.00|10.76|0.30|0.92|2.94| |50|91.89|19.56|4.28|2.10|5.24| |100|88.98|25.42|9.26|4.64|6.06| |300|83.87|25.90|10.13|4.04|6.14| |500|80.19|22.99|8.23|2.44|4.13| At $\beta=1$, performance is nearly identical to the vanilla SNN, so the small differences are run variation. Larger $\beta$ confirms that distance decay contains a useful signal, but robustness improves only with substantial clean loss and declines again at $\beta=500$. Thus, distance is informative, but surrogate alignment provides a clearly better clean-robust balance without a profile-specific coefficient search. --- ## **Q5: Ablation of the Budget Exponent** **Response:** We evaluate $$B_l=[r_l(1-r_l)]^p$$ on CIFAR-10. Compared with $p=1$, $p=2$ costs only 0.19 points of clean accuracy but improves FGSM, PGD, APGD-CE, and APGD-DLR by 40.01, 28.94, 14.63, and 24.39 points. Thus, the first-order budget is too permissive to control threshold-adjacent occupancy. Although $p=2.25$ slightly improves FGSM and PGD, it loses 4.52 clean points and reduces both APGD results. Larger exponents further harm clean and robust accuracy. As $p\rightarrow+\infty$, $B_l\rightarrow0$, recovering NB-MRL and near optimization collapse. The squared form therefore gives the best overall clean-robust balance rather than simply maximizing one attack metric. |$p$|Clean|FGSM|PGD|APGD-CE|APGD-DLR| |-|-|-|-|-|-| |1|**92.76**|16.01|3.95|2.61|3.57| |1.5|91.75|39.85|19.76|8.97|20.12| |2 (Ours)|92.57|56.02|32.89|**17.24**|**27.96**| |2.25|88.05|**58.85**|**33.76**|16.01|25.91| |3|80.15|29.48|13.23|5.70|7.24| |5|74.75|12.76|1.10|1.27|0.78| |$+\infty$ (NB-MRL)|72.91|7.74|0.00|0.60|0.00| --- ## **Q6: Clean Accuracy Decreases Recover Method** **Response:** The reviewer's interpretation is correct. Threshold-adjacent membrane states are vulnerable to flips, but they are also the main region where surrogate gradients support learning. Reducing their excessive occupancy improves spike stability but can limit the flexibility used to represent clean samples. This is the clean-robust trade-off acknowledged in our Limitation section. In the main Triangle setting, clean accuracy decreases only from 93.75% to 92.57%, while FGSM and PGD increase from 8.19% and 0.03% to 56.02% and 32.89%. Thus, the robustness gain is much larger than the clean cost. Training longer does not address the cause because the drop is not due to insufficient convergence; it continues optimizing the same competing objectives (We've ever tried epoch=300 and 400, it remains nearly the same or lightly worse performance as epoch=200). Weakening MRL can recover some clean accuracy, but also reduces robustness, selecting a different trade-off rather than removing it. Our **Response to Reviewer Zt9w, Q1** provides this strength ablation. The adaptive budget and loss balancing already limit MRL to excessive MO, preserving part of the threshold region for normal learning.
Reviewer_iXyVOpenReview ↗
Rating
3
Clarity
2
Confidence
3
Originality
3
Quality
3
Significance
2
Read review
Summary

The paper introduces a novel method (MRL) to improve the robustness of spiking neural networks (SNNs) to adversarial attacks. The goal of MRL is to reduce the chance that an adversarial attack leads to appearances or disappearances of spikes, which the authors term spike flips and which decrease robustness. To achieve this, in MRL a regularization term is introduced that decreases the time membrane potentials spent near the threshold in case the margin occupancy is above an activity-dependent threshold. In turn, there are fewer time steps that are highly susceptible to spike flips. The authors numerically test their rationale by relating error rates to flip rates and membrane potential distributions and applying their method to several datasets.

Strengths and weaknesses

Overall, while the MRL method is original and fairly well supported by intuitive arguments, the empirical results seem to only partially support it and the presentation lacks clarity.

The MRL method explicitely uses the fact that SNNs communicate via discrete spikes and tries to increase the robustness of their existence and timing. This makes intuitively sense. The activity dependent regularization of the margin occupation is also a plausible idea.

However, the empirical results seem to only partially support the intuitive argument underlying the method as well as the usefulness of the method. Specifically, in Figure 1, it seems like most of the error change happens when the flip rate is still fairly constant (for small epsilon values), while when the flip rate changes, the error is fairly constant (for large epsilon values). Further, the performance improvement over existing methods appears to only be moderate and restricted to limited settings. For example, the DSD method seems to be very close to the performance of MRL when comparing setups with a similar clean accuracy.

Furthermore, the presentation lacks clarity. Examples for this include:

  • It is not specified how input spikes affect a neuron.
  • Many details on the experiments are missing, for example, what is the output of the networks.
  • I find the math in the analysis of finding 1 hard to understand. It introduces quantities and functions without really stating what they are. For example, a probability is introduced but it is unclear where the stochasticity is coming from.
  • The mathematical definition of the margin occupancy is hard to understand. For example, why is there a sign function in equation 7 when one anyways takes the absolute value.
  • In multiple figures, axes labels are missing. Also, it is unclear what "eps (/255)" is supposed to mean.
Questions

I would consider increasing the score in case stronger empirical support for the relation between spike flips and robustness is provided, in case stronger empirical support for the performance improvement is provided, and in case the clarity of the presentation is improved (see above for concrete suggestions).

Limitations

Yes

Paper formatting concerns

No issues

Final justification

The authors have addressed my concerns regarding the unclear link between error and flip rates and improved the clarity of the model description. My remaining concern is that the improvement of the method over existing ones appears to be moderate at best. Taken together, I am increasing my rating to 3.

1 comment

Response to Reviewer iXyV


W1: Two Curves Change at Different Rates

Response: Thanks for the comment! Error rate counts incorrectly classified images, while global flip rate averages all spike events across the network. Equal slopes or a linear relation are therefore not expected.

Suppose 100 images each produce 1000 spike events. If one decisive spike flips in each of 20 images and changes their predictions, error rises by 20 points, but global flip rate rises by only 0.00020.0002

Conversely, if 98 images are already incorrect, further flips in them cannot increase error again. Only flips that change the remaining correct predictions can do so. Flip rate may therefore keep rising in a higher speed while error approaches saturation.

This agrees with our scaling relation,

ΔAcc≤KγˉS≤αKγadv,\Delta\mathrm{Acc}\leq K\bar{\gamma}_S\leq\alpha K\gamma^{\mathrm{adv}},

which does not imply equal slopes. Across eight attack strengths, global flip rate and accuracy degradation have Spearman ρ=0.922\rho=0.922 (p=0.0011p=0.0011). Even for ϵ∈{2,4,6,8}/255\epsilon\in\{2,4,6,8\}/255, Spearman ρ=1.000\rho=1.000 and Pearson r=0.978r=0.978. Thus, Fig. 1 reflects global averaging and error saturation rather than a weak association. Due to space limit, please see our Response to Reviewer p6zu, W1 & Q2 for the full results.


W2: Comparison with DSD

Response: We agree that DSD is a strong baseline, but one close FGSM result does not show the full clean-robust trade-off. On CIFAR-10/VGG11, MRL achieves 92.57% clean, 56.02% FGSM, and 32.89% PGD accuracy, compared with 90.21%, 55.86%, and 30.21% for DSD. Thus, MRL improves PGD robustness while preserving 2.36% more clean accuracy.

On CIFAR-100, the clean accuracies are nearly identical (70.37% vs. 70.26%), but MRL raises PGD from 8.09% to 12.78%. This pattern also holds across all three metrics on ImageNet. On DVS-CIFAR10, MRL improves FGSM and PGD by 3.30 and 2.20 points at a 0.50-point clean cost.

MRL’s advantage is therefore not limited to a few settings, but appears in the clean-robust balance and under iterative attacks across static and event data.


W3: How Input Spikes Affect a Neuron

Response: Input spikes affect a neuron through weighted synaptic current:

cl,i[t]=∑jwl,ijsl−1,j[t]+bl,i.c_{l,i}[t]=\sum_j w_{l,ij}s_{l-1,j}[t]+b_{l,i}.

Since sl−1,j[t]∈{0,1}s_{l-1,j}[t]\in\{0,1\}, an incoming spike contributes its synaptic weight, while no spike contributes zero. Architecture-specific convolution, normalization, and residual operations are included in the layer operator. Static images enter the first layer at every time step, while DVS models use the event frame at time tt; later layers communicate through binary spikes.

This current is integrated with the previous membrane state according to Eq. (1). An input change produces an output spike flip only if it causes a threshold crossing. For example, with uth=1u_{th}=1, a state of 0.8 plus a spike of weight 0.25 reaches 1.05 and fires. From 0.3, the same spike reaches only 0.55, so no firing occurs.

MRL does not change synaptic transmission or LIF dynamics. It reduces excessive near-threshold states, making upstream current changes less likely to cause downstream spike flips.


W4: Experimental Details

Response: We thank the reviewer for raising this concern and apologize that the network output was not clearly stated. Dataset splits and preprocessing, attack settings, and training hyperparameters are provided in Appendices G, A, H, and Table 6.

All models use soft-reset LIF neurons with uth=1u_{th}=1 and τ=1.1\tau=1.1. VGG11 uses Conv-BN-LIF blocks, while ResNet18 and NF-ResNet use spiking residual blocks. The final classifier is a non-spiking linear layer that produces logits z[t]\mathbf z[t] at each time step. Prediction uses their temporal sum:

\qquad \hat y=\arg\max_c z_c.$$ Thus, the output is based on accumulated logits, not only the last time step or output spike counts. Training averages cross entropy over time: $$\mathcal L_{CE} =\frac1T\sum_{t=1}^{T}CE(\mathbf z[t],y).$$ The main experiments use seed 2026, SGD with momentum 0.9, and cosine annealing; other main settings are in Table 6. A full pipeline contains many low-level environment and configuration variables that are difficult to list individually. For reproducibility, we provide the MRL source code in the supplementary material, and all unlisted settings follow its defaults. We also commit to releasing the code publicly with the camera-ready version for future reproduction and research. --- ## **W5: Clarifying Finding 1** **Response:** Thank you for pointing this out. Finding 1 follows the chain $$\text{accuracy drop} \leq\text{prediction-change rate} \leq K\times\text{decision-relevant flip rate},$$ followed by an empirical connection to the measurable global flip rate. It neither assumes that every flip causes an error nor requires a linear relation. No stochastic neuron is needed. The probability comes from sampling inputs. Let $X$ be a randomly selected test image and $$E=\{h(X)\neq h(X^{adv})\}.$$ Even with deterministic inference, $E$ occurs for some images but not others. If 30 of 100 predictions change, then $P(E)=30\%$. Attack randomness can also be included when present; for FGSM, the probability comes only from different inputs. Accuracy can decrease only on samples whose predictions change. For example, suppose a model correctly classifies 90 of 100 images before an attack and 70 afterward. The accuracy drop is 20 percentage points, so at least 20 predictions must have changed. The actual number of changed predictions may be larger because: * a wrong prediction may change to another wrong class; * a wrong prediction may occasionally become correct. These cases change the prediction but do not increase the net accuracy drop. Therefore, $$\Delta\mathrm{Acc}\leq P(E).$$ For spike location $j=(\ell,i,t)$, define $$f_j(X)=\mathbb I[s_j(X)\neq s_j(X^{adv})].$$ Here, $P(f_j=1)$ is its flip frequency over test inputs, not random neuronal firing. Let $S$ contain decision-relevant locations and $K=|S|$, where $K$ counts locations rather than attack steps. A prediction change requires at least one flip in $S$, so the union bound gives $$P(E)\leq\sum_{j\in S}P(f_j=1) =K\bar{\gamma}_S.$$ This requires no independence between locations. Since the smallest $S$ is difficult to identify, we use the measurable global flip rate $\gamma^{adv}$ as a proxy: $$\bar{\gamma}_S\leq\alpha\gamma^{adv}, \qquad \Delta\mathrm{Acc}\lesssim\alpha K\gamma^{adv}.$$ In our **Response to Reviewer p6zu, W1 & Q2**, we make these terms measurable by taking VGG11's last spiking layer as $S_{out}$. Only deterministic pooling and a linear classifier follow it, so unchanged spikes there guarantee an unchanged output. We obtain $K_{out}=8192$ and $\alpha=0.40$. Across eight attack strengths, global and output flip rates have Spearman correlation 1.00, while output flip rate and accuracy drop have correlation 0.92. This gives concrete, measurable examples of $S$, $K$, and $\alpha$. --- ## **W6: The Role and Design of $\kappa(\cdot)$** **Response:** Let $v=u-u_{th}$. A spike flip requires threshold crossing, giving the necessary condition $$|v|\leq|\Delta u|.$$ MO therefore measures how much of a layer's membrane distribution occupies threshold-vulnerable positions. A simple average distance can be misleading. Consider layers with normalized margins $m_A=[0,10]$ and $m_B=[5,5]$. Both average to 5, but Layer A contains a state exactly at the threshold, while both states in Layer B are far away. The safe state at 10 cancels the vulnerable state at 0, hiding the threshold concentration. We instead score each margin before averaging: $$M_l=\mathbb E[\kappa(m_l)].$$ With the simplified Triangle profile $\kappa(m)=\max(0,1-m)$, the two layers have scores $[1,0]$ and $[0,0]$, giving $MO_A=0.5$ and $MO_B=0$. Thus, MO averages state vulnerability rather than raw distance. Ideally, $\kappa$ could be $P(\mathrm{flip}\mid m)$, but this depends on the attack and membrane changes and is unavailable during training. We therefore use the existing surrogate-gradient profile as a computable relative weight: $$\kappa(m_\ell)= \frac{|g(\mathrm{std}(v_l)\mathrm{sign}(v_l)m_\ell)|}{|g(0)|} =\frac{|g(v_l)|}{|g(0)|}.$$ The reviewer's observation is correct for our symmetric surrogates: the sign does not change their current values. However, the outer absolute value only makes the output of $g$ nonnegative, while the sign restores the original side of the threshold before evaluating $g$. **We retain the sign mark so MRL remains compatible with future asymmetric surrogates, where $|g(v)|$ and $|g(-v)|$ may differ.** This design also avoids choosing an extra window or decay function. In Fig. 3, MO and observed flip rate have Spearman $\rho=0.810$-$0.927$ across architectures and all three surrogates, with $p<0.05$ in every setting. --- ## **W7: Missing Labels and eps (/255)** **Response:** Thank you for pointing this out. The omitted labels occur in the membrane-potential distribution panels in Figs. 2(b)-(i) and Fig. 6(b),(d). Their horizontal axis is membrane potential $u$, and the red dashed line marks $u_{th}=1$. The vertical axis is the histogram-bin count. Its scale is omitted because these panels are used only to show distribution shape, especially peaks or concentration near the threshold; none of our conclusions relies on the absolute vertical values. The other figures provide complete axis information either in the plots or captions. For example, the Fig. 3 caption explicitly states that its horizontal axis is the spiking-layer index and its vertical axis is the shared scale of flip rate and MO. `eps` is shorthand for $\epsilon$, and `eps (/255)` means that each tick is measured in units of $1/255$. Thus, a displayed value $x$ denotes the $L_\infty$ budget $\epsilon=x/255$ in Eq. (2); for example, `8` means $\epsilon=8/255$.
Reviewer_Zt9wOpenReview ↗
Rating
4
Clarity
3
Confidence
4
Originality
3
Quality
3
Significance
3
Read review
Summary

This work studies adversarial robustness in SNNs from a spike-pattern stability perspective. The authors define perturbation-induced spike flips and introduce the flip rate as a metric for measuring spike-pattern instability. They further observe that spike flips are concentrated around membrane potentials near the firing threshold, and define margin occupancy (MO) to quantify the amount of membrane-potential mass in this threshold-sensitive region. Based on this analysis, the paper proposes Margin-Resculpted Learning (MRL), which regularizes excessive MO using an activity-adaptive bound while preserving part of the threshold region needed for surrogate-gradient learning.

Strengths and weaknesses

Strengths

  1. I appreciate the overall storyline of this work, which analyzes the relations among adversarial degradation, spike flip rates, and threshold-adjacent membrane states.

  2. The paper quantitatively defines MO and incorporates it into the loss function.

  3. The empirical results suggest that the proposed method can reduce both flip rate and MO, and improve adversarial robustness.

Weaknesses

  1. The novelty over prior work is not fully convincing. TGO has already identified threshold-neighboring neurons as a robustness bottleneck and improves robustness by pushing membrane potentials away from the firing threshold. This appears closely related to the motivation and mechanism of the proposed MRL method.

  2. The correlation between flip rate and error rate is not very convincing. In Figure 1, when ϵ is relatively small, the error rate increases while the flip rate remains nearly unchanged. This weakens the claim that flip rate consistently tracks adversarial degradation. In addition, the observed correlation seems more apparent only when the adversarial error rate becomes very high, which may limit its practical relevance under smaller attack strengths (I'm not certain, but I guess smaller attack strengths are more realistic).

  3. Some definitions and design choices are not sufficiently justified. For example, the rationale behind the specific MO formulation, the activity-adaptive bound, and the loss-balancing strategy. Please refer to my questions 2-4.

Questions
  1. If the loss-balancing coefficient λ is multiplied by an additional constant or hyperparameter C, could this provide a controllable way to balance the trade-off between reducing MO and preserving effective surrogate-gradient training? Could the authors provide an experiment on this additional scaling factor?

  2. Why does the MO in Eq. (6) need the margin vulnerability profile κ(·)? What additional information does κ(⋅) capture?

  3. What is the rationale behind the specific design of κ(⋅) in Eq. (7)?

  4. Why is the activity-adaptive budget Bℓ defined in this particular form? Why is the variance of a Bernoulli variable used to guide this design, and why is the squared variance adopted?

Limitations

Yes.

Paper formatting concerns

No.

Final justification

Thank you for the detailed responses. The rebuttal has addressed my major concerns.

The additional explanation regarding the different statistical levels of flip rate and prediction error resolves my concern about their non-proportional changes under weak attacks. Moreover, the discussion and ablation on the scaling factor C provide further evidence that the loss balancing is carefully considered. Although some design choices remain somewhat heuristic, the authors have provided reasonable motivations and clarification.

Therefore, I do not have further concerns and will maintain my original rating.

1 comment

Response to reviewer Zt9w


W1: MRL and TGO

Response: Thank you for raising this comparison. We agree that TGO established threshold-neighboring neurons as a robustness bottleneck, and we've cited it as the closest prior work. The overlap is the starting observation; MRL asks a different question: how can threshold vulnerability be measured directly from adversarial spike changes and then controlled without removing the region needed for learning?

First, the measured object is different. MRL pairs clean and adversarial inference at every sampled neuron and time step, then defines spike flips and global and layer-wise flip rates. These directly quantify the stability of the discrete spike patterns used by an SNN. TGO instead studies a Jacobian-based attack bound and derives state-flipping probability under Gaussian membrane noise. It does not define or measure global or layer-wise flip rates under actual adversarial attacks.

Second, we introduced Margin Occupancy (MO):

Ml=E[κ(∣u−uth∣std(u−uth))].M_l=\mathbb{E}\left[\kappa\left(\frac{|u-u_{th}|}{std(u-u_{th})}\right)\right].

This is a distribution-level measure, not simply the distance of one membrane potential. Normalization makes it comparable across layers, while the surrogate-induced profile adapts to Triangle, Sigmoid, and Rectangle without choosing one absolute margin. Importantly, MO is independently useful as a diagnostic. In Fig. 3, clean-input MO is strongly correlated with adversarial layer-wise flip rate across six architecture and surrogate settings: Spearman correlations are 0.810–0.927, all statistically significant. Thus, MO can identify more vulnerable layers before constructing the MRL loss. We believe this reusable metric is an important contribution to robust SNN community.

Third, the optimization rules differ. TGO applies a fixed distance constraint to states inside a chosen window. MRL penalizes only excessive MO:

LMRL=1L∑lmax⁡(0,Ml−Bl),Bl=[rl(1−rl)]2.L_{MRL}=\frac{1}{L}\sum_l\max(0,M_l-B_l),\qquad B_l=[r_l(1-r_l)]^2.

This distinction matters because threshold-near states are both flip-vulnerable and necessary for surrogate-gradient learning. The firing-rate-dependent BlB_l preserves an admissible amount for learning instead of pushing all such states away. The strong degradation of NB-MRL when BlB_l is removed supports this design.

The mechanisms are also different. TGO combines its fixed margin with a scheduled weight and noisy LIF neurons, changing firing from deterministic to probabilistic. MRL adds no neuronal noise and does not change the neuron model or forward spike computation. It combines surrogate-induced MO, an activity-dependent bound, and gradient-magnitude loss balancing.

These differences are reflected under the common CIFAR-100, VGG11, T=4T=4, and PGD7 evaluation: TGO reports 69.47% clean and 2.30% PGD accuracy, while Triangle MRL reaches 70.37% and 12.78%.


W2: Flip Rate and Error Rate

Response: It is important to distinguish an overall correlation from proportional changes. Our claim is that flip rate and adversarial error show an overall monotonic relationship as the attack becomes stronger. We do not expect the two curves to have the same slope or an exact numerical relationship. Therefore, their different changes across attack strengths in Fig. 1 do not weaken this correlation.

This difference follows from how the two metrics are defined. Error rate measures the final prediction of each sample, while global flip rate averages all spike events across layers, neurons, and time steps. Most spike events do not directly determine the prediction. Therefore, a few flips at important positions may clearly increase the error rate while causing only a small change in the global average. Conversely, when most samples are already misclassified, the error rate is close to saturation. More internal spikes may still flip, but the error rate has little room to increase. Thus, the two metrics should not be expected to change linearly or proportionally.

For an extreme but intuitive example, suppose the model produces 10000 spike events for one image. An attack changes only one important spike, but this changes the prediction from correct to incorrect. The classification outcome changes completely, while the global flip rate increases by only 1/10000 = 0.01%. This explains why, under a small ϵ\epsilon, the error rate can increase clearly even when the global flip rate appears nearly unchanged in the figure. Conversely, suppose 98 out of 100 images are already misclassified. A stronger attack may cause many additional internal spike flips, but the error rate can increase by at most another 2 percentage points because the other 98 images cannot be misclassified again. This explains why the flip rate may continue to increase under stronger attacks while the error rate changes more slowly.


Q1: Additional Hyperparameter CC

Response: Thank you for the suggestion. The short answer is yes: CC can shift the clean-robust trade-off, but our sweep shows that it is a coarse control rather than a uniformly better replacement for the original balancing rule.

Eq. (11) adaptively matches the gradient magnitudes of CE and MRL. Multiplying λMRL\lambda_{MRL} by CC makes the MRL gradient roughly CC times the CE gradient. Therefore, C<1C<1 relaxes membrane resculpting, while C>1C>1 applies it more strongly.

We tested C∈{0.1,0.25,0.5,1,1.5,2,3}C\in\{0.1,0.25,0.5,1,1.5,2,3\} on CIFAR-10 with VGG11, Triangle, and T=4T=4. The trend shows three regimes. Below 1, clean accuracy remains close to C=1C=1, but robustness falls quickly: at C=0.5C=0.5, FGSM and PGD decrease from 56.02% and 32.89% to 38.81% and 17.56%. At C=1.5C=1.5, FGSM and PGD rise modestly to 58.17% and 34.71%, but clean accuracy drops to 90.28% and APGD-DLR drops to 26.68%. For C≥2C\geq2, both clean and robust performance deteriorate sharply, consistent with MRL receiving too much weight for effective CE and surrogate-gradient learning.

Thus, CC does provide control, but no tested value improves all metrics. C=1C=1 offers the most balanced overall result, while C=1.5C=1.5 only shifts the preference toward FGSM and PGD at a cost elsewhere. This explains why we use adaptive gradient matching without another global tuning factor.

CCleanFGSMPGDAPGD-CEAPGD-DLR
0.193.3014.352.972.213.84
0.2592.1125.839.088.479.95
0.592.8638.8117.5612.2918.01
1 (Ours)92.5756.0232.8917.2427.96
1.590.2858.1734.7117.4226.68
282.4239.7720.3312.9814.49
380.2628.6511.796.499.70

W3, Q2 & Q3: κ\kappa

Response: Thank you for raising this important question. Reviewer iXyV, W6 raises the same concern about the role of κ\kappa in MO and the rationale behind Eq. (7). We provide a detailed explanation with an intuitive example in that response. Due to the limited rebuttal space, we kindly invite you to refer to our Response to Reviewer iXyV, W6. Thank you for your understanding.


W3 & Q4: Rationale for BlB_l

Response: A simple way to understand Eq. (10) is that the Bernoulli variance determines where the MO budget should be large, while the square determines how large that budget should be.

First, BlB_l prevents MRL from removing the entire threshold region. High MO indicates that more membrane states are close to the firing threshold and are easier to flip. However, these states also provide the surrogate gradients needed for training. MRL therefore penalizes only the excessive part:

LMRL=1L∑lmax⁡(0,Ml−Bl).L_{\mathrm{MRL}}=\frac{1}{L}\sum_l\max(0,M_l-B_l).

The budget should depend on layer activity because the same fixed value is not suitable for both nearly silent and highly active layers. A spike event satisfies sl∈{0,1}s_l\in\{0,1\}. If we randomly select a spike event from layer ll, it can be viewed as a Bernoulli variable with mean firing rate rlr_l and variance

Var(sl)=rl(1−rl).\mathrm{Var}(s_l)=r_l(1-r_l).

This variance provides the desired activity-dependent shape. It is zero when rl=0r_l=0 or 1, where the firing decision is deterministic, and reaches its maximum at rl=0.5r_l=0.5, where firing and silence are most balanced. Thus, nearly deterministic layers need little threshold occupancy, while layers with more uncertain spike decisions may retain more of this region for surrogate-gradient learning.

However, directly using the first-order variance can still give sparse layers too much budget. For example, low firing rates such as rl=0.05r_l=0.05 are common in SNNs. In this case, the full calculation is

rl(1−rl)=0.05×(1−0.05)=0.05×0.95=0.0475.r_l(1-r_l)=0.05\times(1-0.05)=0.05\times0.95=0.0475.

The first-order form would therefore allow 4.75% threshold occupancy in a layer whose firing activity is itself only 5%. This may retain many silent but near-threshold states that can become false spikes under small perturbations. Squaring the variance gives

Bl=[rl(1−rl)]2=(0.0475)2=0.00225625≈0.0023.B_l=[r_l(1-r_l)]^2=(0.0475)^2=0.00225625\approx0.0023.

The admissible budget is therefore reduced from 4.75% to about 0.23%. The first factor represents spike-decision uncertainty, while the second acts as an activity gate that limits how much of this uncertainty should be allocated to the threshold region. The square preserves the same activity-dependent shape but tightens the scaling in sparse layers from O(rl)O(r_l) to O(rl2)O(r_l^2). It therefore retains a limited region for surrogate-gradient learning without allowing excessive MO.

We do not view the square as a unique theoretical optimum. This is also stated explicitly in Remark 2 of the main paper. The full exponent ablation and analysis are provided in our Response to Reviewer p6zu, Q3. Due to the rebuttal space limit, we kindly invite you to refer to that response for the complete comparison.

Reviewer_p6zuOpenReview ↗
Rating
4
Clarity
3
Confidence
3
Originality
2
Quality
3
Significance
3
Read review
Summary

Summary

The paper propose to reframe adversarial robustness in spiking neural networks (SNNs) around the stability of spike patterns rather than the stability of continuous membrane potentials, arguing that only membrane fluctuations that cross the firing threshold and change a spike actually propagate to downstream computation. Building on this view, the authors make three connected contributions:

  • A mesure of Spike flip / flip rate — a training-agnostic metric counting neurons/time-steps where clean and adversarial inputs produce different spikes. Empirically, the flip rate rises monotonically with ε and correlates negatively with robust accuracy.
  • Margin occupancy (MO) — a distribution-level measure of how much membrane mass sits in the threshold-sensitive region, with the vulnerability profile instantiated directly from the surrogate-gradient profile rather than a hand-picked window. MO correlates strongly with layer-wise flip rate.
  • A regulairzation criterion : Margin-Resculpted Learning (MRL) — penalizing only MO that exceeds a hyperparameter-free, activity-adaptive budget Bₗ = [rₗ(1−rₗ)]², with gradient-magnitude-matched loss balancing.

Experiments span CIFAR-10/100, ImageNet, DVS-CIFAR10, and DVS-Gesture; three surrogates; VGG11/ResNet18/NF-ResNet; and FGSM/PGD/APGD attacks, plus a gradient-obfuscation checklist and ablations.

Strengths and weaknesses

Strengths

  • Clear, well-motivated conceptual reframing.

The spike-centric view is intuitive and the logical chain (flips track degradation → flips concentrate near threshold → MO predicts flips → regularize MO) is developed carefully, with each link supported by a distinct experiment rather than asserted. Elegant use of the surrogate gradient as the vulnerability profile. Instantiating κ(·) from the training surrogate (Appendix E) is a principled way to avoid an arbitrary margin window, and it makes MO self-consistent with optimization. The stated design desiderata in E.3 are sensible.

  • Thoughtful, hyperparameter-free bound.

Appendix F's derivation of Bₗ (Bernoulli-variance interpretation, the squared form for conservativeness in the sparse regime rₗ≪1, correct boundary behavior at rₗ∈{0,½,1}) is a genuinely nice piece of reasoning, and the NB-MRL ablation shows the bound is load-bearing, not decorative.

  • Good adversarial-evaluation.

Including the Athalye et al. obfuscation checklist, black-box vs. white-box comparison (Fig. 4), and APGD is a nice benchmark. The black-box-weaker-than-white-box result is the correct sign for ruling out gross gradient masking. Coverage across surrogates, event-based data, and up to ImageNet/NF-ResNet50 is strong, and the gradient-matched λ removes a tuning burden.

Weaknesses

  • The theoretical result is qualitative, not a bound.

ΔAcc ≲ αK·γᵃᵈᵛ chains a loose union bound with an unobservable restricted flip rate γ̄_S and an assumed proportionality γ̄_S ≤ α·γᵃᵈᵛ, where neither α nor K is ever estimated or constrained. As written (and as the footnote concedes), this is a scaling heuristic, not a guarantee, and it does little to justify the global flip rate as the right proxy for the decision-relevant one.

  • The strongest-attack comparison against the strongest baselines is missing.

Under APGD, MRL's robust accuracy drops sharply — e.g., CIFAR-100 VGG11 Triangle PGD 12.78 → APGD_c 3.99 / APGD_d 2.08. Yet DSD, TGO, FEEL, and StoG report no APGD numbers, so MRL is never compared to competitive SNN defenses under the attack that most stresses it. The favorable headline numbers rest largely on FGSM/PGD. No adversarial-training reference point. All comparisons are to SNN-specific regularization defenses; there is no comparison to (or combination with) standard adversarial training, the field's default robustness baseline. This makes it hard to place MRL's absolute robustness in context or to know whether it is a substitute or a complement.

  • Non-trivial clean-accuracy cost, unevenly distributed.

The trade-off is acknowledged, but it is sizeable for some surrogates: Rectangle loses ~5.7 pts clean on CIFAR-10 (87.71→82.04) and the CIFAR-100 "14.25 vs 2.04 FEEL" headline comes with clean 62.91 vs FEEL's 73.79. The mechanism-level fragility of Rectangle (near-collapse under NB-MRL) hints that the method interacts delicately with compact-support surrogates.

  • Residual gradient-masking concern specific to the mechanism.

MRL by construction moves mass out of exactly the region where the surrogate gradient — used both for training and for crafting white-box attacks — is nonzero. The black-box result is reassuring, but a transfer attack from an undefended model, or attacks generated with a smoothed/alternative surrogate at attack time (a mild BPDA-style check), would more directly rule out attack-time gradient attenuation. Fig. 7's multi-K sweep addresses a different question.

  • No error bars.

Given modest margins in several cells and the known variance of robustness numbers, single-run tables weaken confidence in the smaller improvements.

  • Training overhead

Heavy for a regularizer (+10–42% epoch time, +10–21% memory; e.g., +42% on NF-ResNet34), which somewhat offsets the "no inference overhead" selling point.

Questions

Questions for the authors

  • How does MRL compare to, and can it be combined with, standard adversarial training? Is the ~33% CIFAR-10 PGD robustness achieved without adversarial training?

  • Can α and K in ΔAcc ≲ αK·γᵃᵈᵛ be estimated empirically, even coarsely, or is the relation purely illustrative? Relatedly, is there any way to estimate the decision-relevant set S and check that γ̄_S tracks the global γᵃᵈᵛ?

  • How sensitive is robustness to the functional form of Bₗ (e.g., power 1 vs 2 vs 3)? A small sweep would clarify how much the squared form matters beyond the NB-MRL extreme.

  • Can you provide APGD (and ideally AutoAttack) numbers for DSD/TGO/FEEL so the strongest-attack comparison is head-to-head? To address masking directly: what is MRL's accuracy under attacks crafted with a different/smoothed surrogate than the one used for training?

  • Why does the Rectangle surrogate incur the largest clean cost and the NB-MRL collapse? Is there a mitigation for the clean–robust trade-off under compact-support surrogates?

  • Please add multi-seed error bars for at least the main CIFAR tables.

Limitations

The authors appropriately flag the clean–adversarial trade-off (Sec. 6) and training-cost increase (Appendix I). I would add to their list: the informal nature of the ΔAcc bound, the absence of adversarial-training and strongest-attack SOTA comparisons, and the lack of error bars, since each make less clear of the central robustness claims can be read.

Paper formatting concerns
1 comment

Response to Reviewer p6zu


W1 & Q2: Estimating SS, KK, and α\alpha, and validating global flip rate.

Response: Thanks for this comment. Rather than assume a unique minimal SS, which is difficult to isolate across layers and time, we use a measurable output-side set SoutS_{out}: all spike locations in VGG11's last spiking layer. This layer directly feeds deterministic pooling and the classifier. Identical clean and adversarial spikes there imply the same output, so a prediction change requires at least one flip in SoutS_{out}.

We tested CIFAR-10 with VGG11, and eight FGSM strengths:

eps (/255)Acc. Drop (%)Global Flip (%)Output Flip (%)γout/γglobal\gamma_{out}/\gamma_{global}
248.321.660.660.40
469.712.380.950.40
670.002.921.120.38
884.383.331.200.36
1685.944.321.260.29
3287.695.411.270.23
6488.616.491.350.21
12889.727.241.400.19

Across all strengths, γout\gamma_{out} and the global flip rate have ρ=1.00\rho=1.00 (p=4.96×10−5p=4.96\times10^{-5}). Removing the last layer from the global average still gives ρ(γrest,γout)=1.00\rho(\gamma_{rest},\gamma_{out})=1.00 with the same pp, indicating direct overlap does not explain the trend. Moreover, γout\gamma_{out} tracks accuracy drop with ρ=0.92\rho=0.92 (p=0.0011p=0.0011).

Here Kout=T(512×2×2)=8192K_{out}=T(512\times2\times2)=8192. The observed ratios satisfy γout/γglobal∈[0.19,0.40]\gamma_{out}/\gamma_{global}\in[0.19,0.40], so α=max⁡ϵγout/γglobal=0.40\alpha=\max_\epsilon\gamma_{out}/\gamma_{global}=0.40.

Thus, the relation is empirically instantiated rather than purely illustrative for this measurable set: KK is exact from the architecture and α\alpha is estimated from data. We do not require SoutS_{out} to be minimal or α\alpha to be universal; the key result is that global flip rate tracks spike changes directly upstream of the classifier even after removing overlap.


W2, Q1, & Q4: APGD, adversarial training (AT), and alternative attack surrogates.

Response: We address the three evaluation concerns below.

1. APGD. APGD uses adaptive optimization and can be stronger than fixed-step PGD; lower APGD accuracy is thus plausible and is not, alone, evidence of gradient masking. DSD, TGO, FEEL, and StoG do not report APGD or AutoAttack in the same setting. A fair author-reported comparison is therefore possible for DLIF and HoSNN. Reimplementing the remaining methods could confound the comparison with code, training, and hyperparameter differences.

DatasetMethodAPGD-CEAPGD-DLR
CIFAR-10DLIF0.170.08
CIFAR-10HoSNN10.3527.39
CIFAR-10MRL17.2427.96
CIFAR-100DLIF0.480.94
CIFAR-100HoSNN2.550.02
CIFAR-100MRL3.992.08

MRL leads all four comparable APGD columns, showing that its gains extend beyond FGSM and PGD.

2. Compatibility with AT. The 32.89% CIFAR-10 PGD result uses MRL without AT, and MRL can also be combined with AT. We combine MRL with FGSM-based AT using training ϵ=2/255\epsilon=2/255, and evaluate at ϵ=8/255\epsilon=8/255 on CIFAR-10 with VGG11 and T=4T=4.

Training methodCleanFGSMPGDAPGD-CEAPGD-DLR
AT91.1638.2014.077.998.27
StoG+AT90.1345.7427.74--
DLIF+AT88.9156.7140.3035.0939.85
HoSNN+AT90.0063.9843.3338.8937.94
MRL+AT90.4274.9546.0140.8641.75

MRL+AT achieves the best reported result in every robust column while preserving 90.42% clean accuracy. This directly positions MRL as a complement to standard AT.

3. Attack-time surrogate check. For each trained model, we keep its weights and forward spikes fixed and change only the backward surrogate used to craft FGSM attacks. The full CIFAR-10 test set is evaluated with VGG11, T=4T=4, and ϵ=8/255\epsilon=8/255.

Training surrogateTri attackRec attackSig attack
Tri56.0255.5557.14
Rec46.9646.5547.19
Sig46.2948.8149.28

Each model remains stable across matched, alternative, and smoother attack surrogates, with only modest fluctuations and no collapse. The strongest surrogate is not fixed: Rectangle is strongest for the Triangle and Rectangle models, while Triangle is strongest for the Sigmoid model; Sigmoid is never strongest. Hence, changing the backward gradient does not uncover hidden vulnerability. Together with APGD, this BPDA-style test directly argues against robustness caused by surrogate-specific gradient attenuation.


W3 & Q5: Rectangle clean cost, NB-MRL collapse, and mitigation

Response: Thank you for raising this. Compact support alone is not the cause, since both Rectangle and Triangle have it. The key difference is Rectangle's hard window. With v=u−uthv=u-u_{\mathrm{th}},

MlRec=P(∣v∣≤α).M_l^{\mathrm{Rec}}=P(|v|\leq\alpha).

All states inside this window have the same MO weight. For example, a small move away from the threshold does not lower MO until the state crosses the window boundary, where its Rectangle gradient also becomes zero. MRL can therefore push some states out of the region used for learning, causing a larger clean cost. Rectangle itself trains normally without MRL; the cost comes from this specific interaction.

NB-MRL makes the interaction extreme: removing BlB_l continually suppresses all MO, so more states leave the active window and effective gradient learning eventually collapses. Full MRL stops penalizing once Ml≤BlM_l\leq B_l, which limits this effect without claiming to repair Rectangle.

Triangle shows the practical mitigation. Its weight falls gradually, allowing MO to decrease while gradients remain nonzero. On CIFAR-10, MRL changes Triangle clean accuracy from 93.75% to 92.57%, while PGD rises from 0.03% to 32.89%. On CIFAR-100, it gives 70.37% clean and 12.78% PGD, versus FEEL's 73.79% and 2.04%. Thus, Triangle keeps most clean accuracy while retaining a large robustness gain, showing that the issue is Rectangle's hard window rather than compact support or MRL in general.


W4: Residual gradient-masking concern specific to the mechanism.

Response: MRL only regularizes MO above BlB_l and does not remove the entire region where surrogate gradients are active. More directly, we perform a BPDA-style check by keeping the model weights and forward spike computation unchanged while replacing the backward gradient used to generate attacks with Triangle, Rectangle, and the smoother Sigmoid surrogate. Robust accuracy shows only small fluctuations across these backward approximations, with no collapse. This indicates that the attack results do not depend on a particular surrogate gradient being weakened. Together with white-box attacks being consistently stronger than black-box attacks, these results provide no evidence of gradient masking or attack-time gradient attenuation within the tested setting. The complete BPDA-style experiment and results are provided in our response to W2, Q1, & Q4.


W5 & Q6: Error bars

Response: We evaluate the main Triangle setting using three independent training seeds: 2026, which is used in the paper, and two additional seeds, 2027 and 2028. All training and evaluation settings are kept unchanged. We report the mean and sample standard deviation across the three seeds.

CIFAR-10 seedCleanFGSMPGDAPGD-CEAPGD-DLR
202692.5756.0232.8917.2427.96
202791.9956.8331.2518.8427.90
202892.4056.1733.0117.7926.89
Mean±std92.32±0.3056.34±0.4332.38±0.9817.96±0.8127.58±0.60
CIFAR-100 seedCleanFGSMPGDAPGD-CEAPGD-DLR
202670.3723.9412.783.992.08
202771.0022.4411.723.511.97
202870.8623.5112.073.761.99
Mean±std70.74±0.3323.30±0.7712.19±0.543.75±0.242.01±0.06

The standard deviation remains below one percentage point for every clean and robust metric on both datasets. The results are therefore stable across training seeds and are not driven by a favorable single run.


W6: Training overhead

Response: We agree that MRL introduces a measurable training cost, reaching 42% in the largest case due to layer-wise MO computation and gradient balancing. However, all these operations are removed after training, with no additional parameters, time steps, or inference operations. The cost is therefore paid only once, while deployment retains exactly the same inference cost as the original SNN. Given that PGD accuracy on NF-ResNet34 improves from 0.01% to 8.17%, we consider this a reasonable trade-off between one-time training cost and substantial robustness gains with zero deployment overhead.


Q3: Ablation on the Exponent of BlB_l

Response: Thank you for this suggestion. We tested

Bl=[rl(1−rl)]pB_l=[r_l(1-r_l)]^p

on CIFAR-10 with VGG11, Triangle, and T=4T=4. Since 0≤rl(1−rl)≤1/40\leq r_l(1-r_l)\leq1/4, a larger pp makes BlB_l smaller, so MRL allows less MO.

The two ends of the sweep make the trade-off clear. At p=1p=1, the loose budget preserves 92.76% clean accuracy but gives only 3.95% PGD. At p=3p=3 or 55, the constraint is too strong: pushing too many states away from the effective gradient region harms both clean and robust accuracy. The limit p→+∞p\to+\infty gives Bl→0B_l\to0, which is NB-MRL.

The middle settings are more useful. Moving from p=1.5p=1.5 to p=2p=2 raises PGD from 19.76% to 32.89% while also improving clean accuracy. Although p=2.25p=2.25 adds 2.83 points under FGSM and 0.87 under PGD, it loses 4.52 clean points and performs worse under both APGD attacks. Thus, p=2p=2 is not the best value for every single attack, but it gives the strongest overall clean and robust balance in this sweep. The squared form therefore matters well before the NB-MRL extreme.

ppCleanFGSMPGDAPGD-CEAPGD-DLR
192.7616.013.952.613.57
1.591.7539.8519.768.9720.12
2 (Ours)92.5756.0232.8917.2427.96
2.2588.0558.8533.7616.0125.91
380.1529.4813.235.707.24
574.7512.761.101.270.78
+∞+\infty (NB-MRL)72.917.740.000.600.00

Comments on the paper

1 comment
Meta-review

The paper presents a clear spike-centric perspective on adversarial robustness in SNNs and proposes a simple, well-motivated regularizer based on margin occupancy. The empirical evaluation is broad across datasets, architectures, surrogate functions, and attacks, and generally supports the effectiveness of the method.

I have read the authors’ response and reviewer discussion. The rebuttal clarified the distinction from prior threshold-based defenses, the theoretical interpretation, and added stronger adversarial-training comparisons, multi-seed results, and attack-surrogate checks. The reviewers generally considered their major concerns addressed, although one reviewer noted that the improvements over some existing methods remain moderate.

Overall, the contribution is technically sound and practically relevant, and I recommend acceptance.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.