Manuscript Offprint
arXiv:2610.32409PAFS: Perturbation-Aware Firing Scaffolds for Robust Event-Based SNNs
Abstract
Event-based spiking neural networks (SNNs) encode information through temporal firing dynamics, but the same stateful computation makes their predictions sensitive to event loss, timestamp jitter, and speed variation. These perturbations alter evidence accumulation, yet late-layer firing trajectories can retain error-diagnostic structure that is absent from the final logits alone. We introduce Perturbation-Aware Firing Scaffolds (PAFS), a labeled post-training calibration method that exploits this structure without updating the pretrained backbone. PAFS associates standardized late-layer leaky integrate-and-fire trajectories with the class-probability residuals of an Adapter anchor, then applies singular value decomposition to extract compact residual-aligned channel directions. At inference, firing trajectories from the same backbone pass are projected onto this fixed low-rank scaffold and combined with anchor statistics to predict a residual logit correction. Across four matched dataset–backbone settings spanning three event datasets and two spiking Transformer architectures, PAFS improves corrupted-average and worst-condition accuracy over the corresponding Adapter anchors, with maximum gains of 3.06 and 3.65 percentage points. In the DailyAction-DVS/Spikingformer setting, the added trainable parameters amount to approximately 0.34% of the frozen backbone.
Introduction
Event-based spiking neural networks (SNNs) are well suited to asynchronous sensory streams because they combine sparse spike-based computation with stateful temporal processing (Maass 1997; Lichtsteiner, Posch, and Delbruck 2008). Their membrane states and spike sequences preserve how evidence evolves over time, while recent spiking Transformers further strengthen representation capacity through attention-based feature interaction (Zhou et al. 2023, 2026). This combination of sparse computation and temporal state makes SNNs particularly attractive for event-based recognition, where predictions depend not only on which events occur, but also on when and in what order they arrive.
The same stateful dynamics, however, also create a source of vulnerability (Luo et al. 2025). In event-based systems, sensor noise, bandwidth constraints, synchronization errors, varying observation windows, and changes in motion speed can lead to event loss, timestamp jitter, and temporal rescaling. Although these distortions often preserve the underlying semantics, they alter when and how evidence is accumulated, thereby perturbing membrane dynamics and increasing the risk of incorrect predictions (Hao et al. 2024). This vulnerability is particularly consequential in latency-sensitive applications such as autonomous driving and unmanned aerial vehicle navigation, where perception failures can compromise safe decision-making. Yet the resulting firing responses are not necessarily unstructured: late-layer trajectories may still retain systematic signals associated with the anchor model's residual errors. This motivates a complementary view of temporal robustness: it should not only reduce sensitivity to temporal perturbations, but also exploit the diagnostic information preserved in internal firing dynamics.
Existing SNN robustness methods typically rely on robust training, adversarial optimization, or redesigned neuronal dynamics and event representations (Liang et al. 2022; Ding et al. 2022, 2024; Xu et al. 2024). These approaches require access to the training pipeline and backbone parameters, which may be unavailable when a pretrained model must be adapted to deployment shifts. Parameter efficient methods such as Adapters and LoRA reduce adaptation cost (Houlsby et al. 2019; Hu et al. 2022), but prediction-loss-driven adaptation does not explicitly identify which internal temporal responses remain informative about the model's unresolved errors. We hypothesize that these residual errors are associated with a compact set of coordinated directions in late-layer firing trajectories, providing a targeted signal for labeled post-training calibration with a frozen backbone.
Based on this hypothesis, we propose Perturbation-Aware Firing Scaffolds (PAFS), a lightweight robustness-calibration framework for frozen SNNs. PAFS first trains a bottleneck Adapter on labeled clean and corrupted training samples to obtain an anchor predictor. It then associates standardized late-layer leaky integrate-and-fire (LIF) trajectories with the anchor's class-probability residuals and extracts the dominant residual-aligned channel directions. During inference, a zero-initialized linear head maps the projected scaffold features and anchor statistics to a residual logit correction. PAFS therefore reuses internal temporal information from the same backbone pass; it neither updates the pretrained backbone nor requires a second backbone evaluation.
Across four matched dataset–backbone settings spanning three event-based benchmarks and two spiking Transformer architectures, PAFS improves both corrupted-average and worst-condition accuracy over the corresponding Adapter anchor, while extensive ablations validate the contributions of residual alignment, low-rank scaffold construction, and complementary late-layer firing features.
Our contributions are threefold:
• We identify that residual prediction errors under temporal corruptions remain systematically encoded in late-layer firing trajectories of frozen event-based SNNs, providing correction-relevant information beyond the final logits.
• We propose PAFS to operationalize this mechanism by aligning standardized LIF trajectories with class-wise probability residuals and extracting a compact residual-aligned firing subspace for single-pass logit correction.
• Experiments across three event datasets and two spiking Transformer backbones demonstrate consistent robustness gains. Controlled comparisons further show that the benefit arises from residual-aligned internal firing structure, rather than logits alone, generic low-rank compression, or a single firing source.
Event Based Neuromorphic Vision
Event cameras asynchronously report changes in log intensity as events carrying spatial location, timestamp, and polarity (Lichtsteiner, Posch, and Delbruck 2008). Their low latency and high dynamic range support fast motion perception and sparse sensing (Gallego et al. 2022). DVS-Gesture established a widely used event based gesture benchmark (Amir et al. 2017), while DailyAction-DVS introduces more varied action dynamics (Liu et al. 2021). DVS-Gesture-Chain further shows that recognition can depend on temporal composition rather than event counts alone. These properties make missing windows, timestamp jitter, and speed changes meaningful robustness tests.
Deep SNN Training and Spiking Transformers
The non differentiable spike function motivates spatio-temporal backpropagation (Wu et al. 2018) and surrogate gradient learning (Neftci, Mostafa, and Zenke 2019). Threshold dependent normalization improves optimization in deep SNNs (Zheng et al. 2021), while residual connections enable greater depth (Fang et al. 2021a). Temporal efficient training reduces the cost of learning across time (Deng et al. 2022), and learnable LIF dynamics improve temporal representation (Fang et al. 2021b). Gated attention coding introduces adaptive temporal control (Qiu et al. 2024), whereas two compartment neurons enrich state dynamics (Zhang et al. 2024). These methods strengthen the backbone but do not identify which late firing trajectories predict residual errors after training.
Spikformer introduces spiking self attention for event recognition (Zhou et al. 2023). Spike driven Transformer reduces multiplication heavy computation (Yao et al. 2023), and its second version develops a broader meta architecture (Yao et al. 2024). QKFormer studies hierarchical spiking attention (Zhou et al. 2024). Spikingformer further uses spike driven residual learning to reduce non spike computation (Zhou et al. 2026). PAFS operates on late LIF responses and is evaluated with both Spikformer and Spikingformer.
Robustness of SNNs
Early analysis examined whether spike based models possess inherent robustness (Sharmin et al. 2020). Training based defenses subsequently introduced adversarial objectives (Liang et al. 2022), gradient regularization (Ding et al. 2022), and sparse gradient constraints (Liu et al. 2024). Stochastic gating provides another route to robust spike propagation (Ding et al. 2024). Event frequency encoding instead modifies the input representation (Xu et al. 2024), while membrane potential distribution regularization targets the internal state (Jiang et al. 2026). Certified analysis establishes formal robustness guarantees for SNNs (Mukhoty et al. 2024). Temporal threat models expose failures in rate and timing information (Hao et al. 2024), and combined attacks assess both channels jointly (Wang et al. 2026). This work addresses a different stage: the backbone is fixed, and only internal activity from the training split is used to calibrate the errors that remain after parameter-efficient adaptation.
Parameter Efficient Adaptation and Firing Subspaces
Bottleneck Adapters add residual down and up projections while retaining frozen backbone parameters (Houlsby et al. 2019). LoRA instead learns low rank factors for selected weight updates (Hu et al. 2022). Both motivate lightweight adaptation, but neither specifies which temporal SNN responses should drive a post hoc correction. The proposed method uses an Adapter only to form the anchor predictor; its main representation is an error aligned subspace extracted from LIF firing curves.
The term firing scaffold should not be confused with parameter pruning. Lottery ticket studies first identified sparse subnetworks in conventional neural networks (Frankle and Carbin 2019), and related work extends this hypothesis to SNNs (Kim et al. 2022). PAFS deletes no synaptic edge or channel: its scaffold comprises the dominant left singular di-rections of an aggregated firing–residual signature. It is a calibration representation, not a compressed replacement network.
Method
Overview
Figure 1 summarizes the key idea of PAFS. Instead of modifying the pretrained backbone, PAFS treats the adapter predictor as an anchor and exploits residual-related temporal signals preserved in late-layer firing dynamics. The central design is to transform perturbation-induced firing responses into a compact residual-aligned scaffold, which provides complementary evidence for correcting the anchor prediction. After calibration, all learned components remain fixed, enabling label-free inference with a single backbone pass.
Adapter Anchor
Let denote a pretrained SNN with frozen backbone and classifier. We define temporal domains as
where denotes the clean domain and the remaining domains correspond to temporal corruptions. For an input , represents the transformation under domain . We first attach a lightweight Adapter after the final encoder block to obtain a fixed reference predictor. Let denote the logits produced by the SNN with frozen parameters and Adapter parameters . Only Adapter parameters are optimized:
We select the checkpoint with the highest mean validation accuracy across all domains, freeze both and , and refer to as the Adapter anchor. The Adapter architecture, initialization, and parameter derivations are provided in Appendix A, while its optimization and model-selection settings are summarized in Appendix C.
Residual-Aligned Firing Scaffold
The central component of PAFS identifies late-layer firing directions associated with the remaining errors of the Adapter anchor. For selected LIF layers , we use a training-only calibration subset
Validation and test samples are never used to estimate scaffold statistics or bases. For every sample and temporal domain, we collect the firing response
where indexes the selected LIF layer, denotes the sample, and denotes the temporal domain. Here, is the number of time steps, is the number of channels, and is the number of spatial locations obtained by flattening the feature map at layer . Accordingly, indexes a flattened spatial location.
Since temporal corruptions primarily affect the evolution of evidence, we aggregate spatial tokens while preserving the temporal dimension:
The resulting representation describes channel-wise temporal firing trajectories, where and index channel and time dimensions.
To prevent intrinsically high-rate channels from dominating the subspace, we estimate and over and all domains in P, then standardize each trajectory:
where are channel-time means and standard deviations. Subtraction, division, and the maximum in Eq. (4) are element-wise; the floor prevents unstable scaling of nearly constant entries.
For the frozen Adapter anchor, define
Its probability residual is
where is the residual vector, is the one-hot label vector, and is the number of classes. Unlike a scalar prediction loss, preserves the class-wise direction of the remaining error: its ground-truth component indicates how much probability should be increased, while its negative components identify the over-predicted classes whose probabilities should be reduced.
To emphasize the failure modes that remain unresolved by the Adapter anchor, we assign each calibration sample an error-aware weight:
where controls the additional contribution of an incorrectly classified sample. Thus, correctly classified samples retain unit weight, whereas misclassified samples receive weight .
We next associate the internal firing response of each sample with the class-wise correction required by the anchor. For a channel–time coordinate , measures the standardized firing response, while specifies the signed probability adjustment required for class . We
A. Overview: Backbone with Adapter anchor

B. Stage 2: Residual-Aligned Scaffold Construction
C. Stage 3: Adapter-Scaffold Residual Correction
Figure 1: Overview of PAFS. The SNN backbone remains frozen throughout. Stage 1 learns a lightweight Adapter anchor under multiple temporal domains. Stage 2 constructs perturbation-aware firing scaffolds by aligning late-layer LIF trajectories with anchor prediction residuals and extracting dominant error-related firing directions. Stage 3 projects firing responses onto the fixed scaffolds and learns a residual logit correction for the anchor predictor.
therefore define the sample-level firing–residual association as
where t and k index the temporal steps and classes, respectively. This construction pairs each channel–time firing response with each class-wise residual component. A positive entry indicates that the corresponding channel–time response co-occurs with a requirement to increase the probability of class k, whereas a negative entry indicates a requirement to decrease it. Its magnitude reflects the joint strength of the firing response and the class-specific correction. Flattening the time–class pair is only a reshaping operation that preserves all temporal and class-wise associations while arranging firing channels as matrix rows.
For each temporal domain p, we aggregate these sample-level associations using their error-aware weights:
The rows of index firing channels, while its columns index time–class residual coordinates. Associations that recur across calibration samples with consistent signs accumulate in , whereas sample-specific or inconsistent patterns tend to cancel. Consequently, acts as a weighted empirical cross-moment that summarizes which temporal channel responses are systematically associated with the anchor's remaining class-probability errors. It captures statistical association rather than causal attribution.
We define the set of corrupted domains as
To prevent domains with larger firing-residual magnitudes from dominating the scaffold, we normalize each domain-specific signature before averaging:
where denotes the Frobenius norm and prevents division by zero for a degenerate domain-specific signature. This normalization gives each corruption domain comparable influence regardless of its overall association magnitude. The clean domain is excluded because the scaffold is designed to capture perturbation-induced firing–residual structure rather than nominal firing patterns.
Finally, we perform SVD:
Because is organized in firing-channel space, its left singular vectors define the dominant residual-aligned firing directions. We retain the first directions:
(12) where . The transpose converts the retained singular vectors into a projection matrix from channel space to scaffold coordinates. These rank-r directions maximize the Frobenius energy of the aggregated firing–residual association captured by the projection. The scaffold basis therefore preserves the dominant perturbation-related residual structure without modifying the backbone.
Scaffold-based Residual Calibration
Given an input x, the current firing trajectory is standardized using the stored calibration statistics and projected onto the fixed scaffold:
The projected feature measures the response of the current firing trajectory along the learned residual-aligned scaffold directions. It therefore summarizes whether the current sample exhibits internal temporal patterns that were associated with class-wise prediction residuals during scaffold construction.
The scaffold feature provides residual-related temporal information from the internal firing dynamics, while the Adapter anchor describes the current prediction through its logits, probabilities, and uncertainty statistics. We concatenate these complementary features to predict the residual logit correction:
where , .
Writing and for the largest and second-largest probabilities, the three scalar statistics are
Confidence and margin summarize decision strength, while normalized entropy summarizes uncertainty; all three lie in .
The correction head first predicts a logit residual:
where denotes feature concatenation, , and are the trainable correction-head parameters. The corrected logits are then given by
where the scalar controls the magnitude of the residual correction. We select according to the mean validation accuracy across the clean and corrupted domains, and keep the selected value fixed at test time.
Only the correction parameters are optimized, while the backbone parameters, Adapter parameters, and scaffold bases remain fixed. Writing , the correction objective is
(18)
Here, controls the penalty on unnecessary logit changes; we set . Additional implementation details for firing hooks, tensor organization, and scaffold projection are provided in Appendix A. The calibration protocol, correction-head optimization, and correction-scale selection are detailed in Appendix C.
We initialize , so correction training starts exactly from the Adapter anchor.
Parameter and Inference Cost
PAFS trains only the Adapter and correction head while keeping the pretrained predictor frozen. On DailyAction-DVS with Spikingformer, it adds 8.796K trainable parameters, corresponding to 0.342% of the 2.569M-parameter predictor; fixed scaffold buffers are excluded from this ratio. Detailed accounting is provided in Appendix A, with measured efficiency results in Appendix D. Inference requires one backbone pass, followed by scaffold projection and lightweight logit correction.
Experiments
Protocol
Datasets and backbones. We evaluate PAFS on CIFAR10-DVS (Li et al. 2017), DailyAction-DVS (Liu et al. 2021), and the temporally composed DVS-Gesture-Chain (DVS-GC) benchmark (Vicente-Sola et al. 2025).
To assess architectural transfer, we evaluate DailyAction-DVS with both Spikformer and Spikingformer (Zhou et al. 2023, 2026). We use Spikingformer for CIFAR10-DVS and Spikformer for DVS-GC, yielding the four dataset–backbone settings reported in Table 1. The rationale for these dataset–backbone assignments, together with the complete input and temporal-corruption protocol, is provided in Appendix B.
For the main evaluation, we use multiple dataset–backbone settings to examine whether PAFS generalizes across different spiking Transformer architectures. For controlled analyses, we select the backbone according to the objective of each study rather than enforcing a single backbone across all ablations. Mechanism comparisons are conducted with Spikingformer, which provides a strong backbone setting for evaluating whether the proposed residual-aligned representation contributes beyond the anchor prediction. Rank and channel-selection analyses are conducted with Spikformer to study scaffold capacity and representation choices under a fixed
| Method | Clean | Window Drop | Jitter | Speed | Corr. Avg. | Worst |
|---|---|---|---|---|---|---|
| DailyAction-DVS, Spikformer | ||||||
| LoRA | ||||||
| Plain MLP | ||||||
| Adapter | ||||||
| PAFS (ours) | ||||||
| DailyAction-DVS, Spikingformer | ||||||
| LoRA | ||||||
| Plain MLP | ||||||
| Adapter | ||||||
| PAFS (ours) | ||||||
| CIFAR10-DVS, Spikingformer | ||||||
| LoRA | ||||||
| Plain MLP | ||||||
| Adapter | ||||||
| PAFS (ours) | ||||||
| DVS-GC, Spikformer | ||||||
| LoRA | ||||||
| Plain MLP | ||||||
| Adapter | ||||||
| PAFS (ours) | ||||||
Table 1: Robustness comparison across datasets and spiking Transformer backbones. Results are mean test accuracy (%) ± standard deviation over three matched seeds; Corr. Avg. averages the three temporal corruptions, and Worst denotes the lowest corrupted-condition accuracy.
architecture. Layer complementarity is further examined on both backbones to verify that the observed behavior is not architecture specific.
All inputs are represented as event-count frames with a spatial resolution of . Within each setting, all methods use the same pretrained checkpoint, data splits, corruption settings, and evaluation protocol.
Corruption protocol. We evaluate clean inputs and three temporal corruptions: removing all events within a randomly selected interval covering 30% of the sequence duration, perturbing event timestamps by offsets within temporal units, and rescaling timestamps to simulate a twofold speed change. All corrupted event streams are converted into event-count frames using the same preprocessing as the clean inputs. Scaffold construction and correction-head training use only the training split. For PAFS and all trainable correction methods, the correction scale and all other hyperparameters are selected on the validation split, while their test split is used exclusively for final evaluation. The provenance of inherited Full checkpoints is reported separately in Appendix B: two historical DVS-GC Full anchors and the historical Spikformer CIFAR10-DVS Full anchor were test-selected. They are used only as frozen starting points; no test examples are used to fit or select PAFS or the reported correction controls.
Training and selection. The frozen backbone is adapted using clean inputs and the three corruptions with bottleneck width . PAFS uses two late LIF layers, error weight , and rank per layer. A training-only calibration subset is used for scaffold construction, with normalization statistics estimated without validation or test data. All newly trained Adapter, baseline, and correction checkpoints are selected according to mean validation accuracy across the four operating conditions, without using test data for fitting or selection. The inherited Full anchors follow the selection provenance reported in Appendix B. Complete calibration splits, optimization schedules, hyperparameters, software and hardware settings, and matched random seeds are provided in Appendix C.
Compared methods. For the main robustness comparison in Table 1, we compare PAFS with LoRA (Hu et al. 2022), the Adapter anchor, and Plain MLP on Full. Plain MLP denotes a two-layer residual MLP attached to the logit descriptor of the original frozen checkpoint, without using an Adapter anchor or internal firing features. Its parameter budget is approximately matched to that of the Adapter.
For the controlled representation analysis in Table 2, we additionally evaluate a Logit-only MLP. This baseline operates on the frozen Adapter anchor, receives only the anchor logit descriptor , and follows the same second-stage training objective and validation-based correction-scale selection as PAFS. Its trainable parameter budget is matched to that of the PAFS correction head. Architectural and optimization details for all baselines and controls are provided in Appendix C.
Metrics. We report clean accuracy, corrupted-average accuracy over Window Drop, Jitter, and Speed, and Worst, defined as the lowest cross-seed mean accuracy among the three corruptions. Results are reported as mean standard deviation over three matched runs.
| Dataset | Representation | Clean | Window Drop | Jitter | Speed | Avg. | Corr. Avg. | Worst |
|---|---|---|---|---|---|---|---|---|
| CIFAR10-DVS | PAFS (ours) | 57.43±1.21 | 53.53±3.00 | 49.07±2.40 | 37.73±2.66 | 49.44±2.63 | 46.78±2.63 | 37.73±2.66 |
| PCA scaffold | 56.93±1.08 | 52.87±2.55 | 47.42±2.08 | 36.31±2.18 | 48.38±1.92 | 45.53±2.03 | 36.31±2.18 | |
| Random scaffold | 56.84±1.17 | 52.61±2.72 | 47.18±2.22 | 36.74±2.36 | 48.34±2.06 | 45.51±2.14 | 36.74±2.36 | |
| Logit-only MLP | 56.71±1.12 | 52.76±2.63 | 47.05±1.96 | 36.58±2.27 | 48.28±1.98 | 45.46±2.07 | 36.58±2.27 | |
| Adapter anchor | 57.50±1.32 | 53.43±2.84 | 48.80±1.95 | 37.60±2.43 | 49.33±2.34 | 46.61±2.34 | 37.60±2.43 | |
| DailyAction-DVS | PAFS (ours) | 99.65±0.27 | 94.69±2.03 | 96.54±1.83 | 94.46±2.96 | 96.34±2.20 | 95.23±2.20 | 94.46±2.96 |
| PCA scaffold | 99.54±0.24 | 93.15±2.36 | 95.08±1.86 | 93.38±2.64 | 95.29±1.88 | 93.87±2.07 | 93.15±2.36 | |
| Random scaffold | 99.42±0.31 | 92.47±2.58 | 95.36±1.74 | 92.28±2.76 | 94.88±1.96 | 93.37±2.12 | 92.28±2.76 | |
| Logit-only MLP | 99.31±0.35 | 91.82±2.68 | 94.39±2.08 | 91.47±2.94 | 94.25±2.08 | 92.56±2.24 | 91.47±2.94 | |
| Adapter anchor | 99.31±0.35 | 91.23±3.12 | 95.62±1.64 | 93.31±2.60 | 94.87±1.73 | 93.39±1.73 | 91.23±3.12 |
Table 2: Mechanism controls with Spikingformer under a matched Adapter anchor and correction protocol. All variants differ only in the representation used for correction. Results are mean test accuracy (%) ± standard deviation over three matched seeds.
Robustness Across Backbones
Table 1 shows that PAFS achieves the highest reported mean Corr. Avg. and Worst accuracies across all four dataset–backbone settings. Its advantage over the corresponding Adapter anchor is observed across all evaluated corruptions rather than being concentrated in a particular perturbation or architecture, indicating that the proposed correction is broadly applicable within the studied deployment setting. This consistency suggests that the PAFS design remains effective across different dataset characteristics and backbone-specific temporal computations without relying on a single failure pattern.
The magnitude of improvement is nevertheless task dependent. PAFS provides clearer gains on DVS-GC and DailyAction-DVS, where recognition relies more strongly on temporal structure, but offers only a marginal improvement on CIFAR10-DVS. This pattern suggests that the method is most useful when the errors remaining after Adapter training are still reflected in late-layer firing trajectories. Moreover, PAFS consistently outperforms the Logit-only MLP, although both use the same Adapter anchor and residual-correction objective. The comparison supports the conclusion that internal firing dynamics contain correction-relevant information that is not fully represented by the anchor logits alone.
Generalization to unseen corruption severities. Figure 2 evaluates all methods across corruption strengths beyond the nominal training settings. PAFS retains the highest or competitive accuracy over most Window Drop and Jitter levels, with its clearest advantage under severe event removal. Under Speed Change, performance degrades toward both extreme speed factors; PAFS remains competitive around the nominal operating range but does not dominate every unseen severity. These results indicate that the residual-aligned scaffold transfers across perturbation magnitudes, although the benefit is non-uniform across corruption types.
Representation and Design Analysis
Representation controls. Table 2 compares PAFS with matched logit-only, PCA-scaffold, and random-scaffold variants under the same Adapter anchor and correction proto- col. PAFS achieves the strongest robustness, with a clearer advantage on DailyAction-DVS, particularly under Window Drop, while differences on CIFAR10-DVS are modest. The improvement over the logit-only variant shows that late-layer firing trajectories contain correction-relevant information beyond the anchor logits. Its advantage over PCA and random bases further shows that access to internal activations or low-rank compression alone is insufficient; aligning firing directions with the Adapter's class-wise probability residuals yields a representation better matched to the Adapter anchor's remaining temporal errors. Appendix D further examines sensitivity to the number of training-only calibration samples and compares PAFS with scalar channel-ranking criteria.

Figure 2: Generalization across Window Drop, Jitter, and Speed severities on DailyAction-DVS with Spikingformer. Results are averaged over three matched random seeds, with shaded regions showing standard deviation.
Rank sensitivity. Figure 3 shows that PAFS remains broadly stable across different scaffold ranks, with selected by validation performance. Increasing the rank does not consistently improve robustness, suggesting that the dominant residual-related firing structure is compact and that additional directions mainly introduce redundant variation. These results support the use of a small low-rank scaffold for temporal robustness calibration.
Layer complementarity. Figure 4 compares attention-only, MLP-only, and combined attention–MLP scaffolds under the same validation-based protocol. The combined scaffold achieves the strongest robustness across both backbones, while attention-only features better preserve clean accuracy. This consistent behavior suggests that attention and MLP firing responses capture different but complementary aspects of the residual error structure, and their combination provides

Figure 3: Rank sensitivity of PAFS on DailyAction-DVS with Spikformer. The dashed line marks the validation-selected rank ; error bars show standard deviation over three matched seeds.

(a) Spikformer

(b) Spikingformer
Figure 4: Layer evidence on DailyAction-DVS with Spikformer and Spikingformer. Attention+MLP denotes the final PAFS configuration; error bars show standard deviation over three matched seeds.
more effective evidence for residual correction.
Conclusion
PAFS extracts residual-aligned firing subspaces from a frozen SNN for post-training calibration. It improves robustness over Adapter and Logit-only correction without modifying the predictor or adding a backbone pass.
References
Amir, A.; Taba, B.; Berg, D.; Melano, T.; McKinstry, J.; Di Nolfo, C.; Nayak, T.; Andreopoulos, A.; Garreau, G.; Mendoza, M.; Kusnitz, J.; Debole, M.; Esser, S.; Delbruck, T.; Flickner, M.; and Modha, D. 2017. A Low Power, Fully Event-Based Gesture Recognition System. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 7243–7252.
Deng, S.; Li, Y.; Zhang, S.; and Gu, S. 2022. Temporal Efficient Training of Spiking Neural Network via Gradient Reweighting. In International Conference on Learning Representations.
Ding, J.; Bu, T.; Yu, Z.; Huang, T.; and Liu, J. 2022. SNN-RAT: Robustness-enhanced Spiking Neural Network through Regularized Adversarial Training. In Advances in Neural Information Processing Systems, volume 35, 24780–24793.
Ding, J.; Yu, Z.; Huang, T.; and Liu, J. K. 2024. Enhancing the Robustness of Spiking Neural Networks with Stochastic Gating Mechanisms. Proceedings of the AAAI Conference on Artificial Intelligence, 38(1): 492–502.
Fang, W.; Yu, Z.; Chen, Y.; Huang, T.; Masquelier, T.; and Tian, Y. 2021a. Deep Residual Learning in Spiking Neural Networks. In Advances in Neural Information Processing Systems, volume 34, 21056–21069.
Fang, W.; Yu, Z.; Chen, Y.; Masquelier, T.; Huang, T.; and Tian, Y. 2021b. Incorporating Learnable Membrane Time Constant to Enhance Learning of Spiking Neural Networks. In Proceedings of the IEEE/CVF International Conference on Computer Vision, 2661–2671.
Frankle, J.; and Carbin, M. 2019. The Lottery Ticket Hypothesis: Finding Sparse, Trainable Neural Networks. In International Conference on Learning Representations.
Gallego, G.; Delbruck, T.; Orchard, G.; Bartolozzi, C.; Taba, B.; Censi, A.; Leutenegger, S.; Davison, A. J.; Conradt, J.; Daniilidis, K.; and Scaramuzza, D. 2022. Event-Based Vision: A Survey. IEEE Transactions on Pattern Analysis and Machine Intelligence, 44(1): 154–180.
Hao, Z.; Bu, T.; Shi, X.; Huang, Z.; Yu, Z.; and Huang, T. 2024. Threaten Spiking Neural Networks through Combining Rate and Temporal Information. In International Conference on Learning Representations.
Houlsby, N.; Giurgiu, A.; Jastrzebski, S.; Morrone, B.; De Laroussilhe, Q.; Gesmundo, A.; Attariyan, M.; and Gelly, S. 2019. Parameter-Efficient Transfer Learning for NLP. In Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, 2790–2799.
Hu, E. J.; Shen, Y.; Wallis, P.; Allen-Zhu, Z.; Li, Y.; Wang, S.; Wang, L.; and Chen, W. 2022. LoRA: Low-Rank Adaptation
of Large Language Models. In International Conference on Learning Representations.
Jiang, R.; Jiang, C.; Yan, R.; and Tang, H. 2026. MPD-SGR: Robust Spiking Neural Networks with Membrane Potential Distribution-Driven Surrogate Gradient Regularization. Proceedings of the AAAI Conference on Artificial Intelligence, 40(3): 1864–1872.
Kim, Y.; Li, Y.; Park, H.; Venkatesha, Y.; Yin, R.; and Panda, P. 2022. Exploring Lottery Ticket Hypothesis in Spiking Neural Networks. In Computer Vision – ECCV 2022, 102–120.
Li, H.; Liu, H.; Ji, X.; Li, G.; and Shi, L. 2017. CIFAR10-DVS: An Event-Stream Dataset for Object Classification. Frontiers in Neuroscience, 11: 309.
Liang, L.; Xu, K.; Hu, X.; Deng, L.; and Xie, Y. 2022. Toward Robust Spiking Neural Network Against Adversarial Perturbation. In Advances in Neural Information Processing Systems, volume 35, 10244–10256.
Lichtsteiner, P.; Posch, C.; and Delbruck, T. 2008. A 120 dB 15 s Latency Asynchronous Temporal Contrast Vision Sensor. IEEE Journal of Solid-State Circuits, 43(2): 566–576.
Liu, Q.; Xing, D.; Tang, H.; Ma, D.; and Pan, G. 2021. Event-based Action Recognition Using Motion Information and Spiking Neural Networks. In Proceedings of the Thirtieth International Joint Conference on Artificial Intelligence, 1743–1749.
Liu, Y.; Bu, T.; Ding, J.; Hao, Z.; Huang, T.; and Yu, Z. 2024. Enhancing Adversarial Robustness in SNNs with Sparse Gradients. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, 30738–30754.
Luo, X.; Chen, K.; Sun, P.-S.; Tian, C. X.; Basu, A.; and Li, H. 2025. SPACE: SPIke-Aware Consistency Enhancement for Test-Time Adaptation in Spiking Neural Networks. In Advances in Neural Information Processing Systems, volume 38, 43160–43186.
Maass, W. 1997. Networks of Spiking Neurons: The Third Generation of Neural Network Models. Neural Networks, 10(9): 1659–1671.
Mukhoty, B.; AlQuabeh, H.; De Masi, G.; Xiong, H.; and Gu, B. 2024. Certified Adversarial Robustness for Rate Encoded Spiking Neural Networks. In International Conference on Learning Representations.
Neftci, E. O.; Mostafa, H.; and Zenke, F. 2019. Surrogate Gradient Learning in Spiking Neural Networks: Bringing the Power of Gradient-Based Optimization to Spiking Neural Networks. IEEE Signal Processing Magazine, 36(6): 51–63.
Qiu, X.; Zhu, R.-J.; Chou, Y.; Wang, Z.; Deng, L.-J.; and Li, G. 2024. Gated Attention Coding for Training High-Performance and Efficient Spiking Neural Networks. Proceedings of the AAAI Conference on Artificial Intelligence, 38(1): 601–610.
Sharmin, S.; Rathi, N.; Panda, P.; and Roy, K. 2020. Inherent Adversarial Robustness of Deep Spiking Neural Networks: Effects of Discrete Input Encoding and Non-linear Activations. In Computer Vision – ECCV 2020, 399–414.
Vicente-Sola, A.; Manna, D. L.; Kirkland, P.; Di Caterina, G.; and Bihl, T. J. 2025. Spiking Neural Networks for event-based action recognition: A new task to understand their advantage. Neurocomputing, 611: 128657.
Wang, S.; Zhang, M.; Jiang, Y.; Zhang, D.; Belatreche, A.; Liang, Y.; Shan, Y.; Zhou, Z.; Yang, Y.; and Li, H. 2026. Robust Spiking Neural Networks Against Adversarial Attacks. In International Conference on Learning Representations.
Wu, Y.; Deng, L.; Li, G.; Zhu, J.; and Shi, L. 2018. Spatio-Temporal Backpropagation for Training High-Performance Spiking Neural Networks. Frontiers in Neuroscience, 12: 331.
Xu, M.; Ma, D.; Tang, H.; Zheng, Q.; and Pan, G. 2024. FEEL-SNN: Robust Spiking Neural Networks with Frequency Encoding and Evolutionary Leak Factor. In Advances in Neural Information Processing Systems, volume 37, 91930–91950.
Yao, M.; Hu, J.; Hu, T.; Xu, Y.; Zhou, Z.; Tian, Y.; Xu, B.; and Li, G. 2024. Spike-driven Transformer V2: Meta Spiking Neural Network Architecture Inspiring the Design of Next-generation Neuromorphic Chips. In International Conference on Learning Representations.
Yao, M.; Hu, J.; Zhou, Z.; Yuan, L.; Tian, Y.; Xu, B.; and Li, G. 2023. Spike-driven Transformer. In Advances in Neural Information Processing Systems, volume 36, 64043–64058.
Zhang, S.; Yang, Q.; Ma, C.; Wu, J.; Li, H.; and Tan, K. C. 2024. TC-LIF: A Two-Compartment Spiking Neuron Model for Long-Term Sequential Modelling. Proceedings of the AAAI Conference on Artificial Intelligence, 38(15): 16838–16847.
Zheng, H.; Wu, Y.; Deng, L.; Hu, Y.; and Li, G. 2021. Going Deeper with Directly-Trained Larger Spiking Neural Networks. Proceedings of the AAAI Conference on Artificial Intelligence, 35(12): 11062–11070.
Zhou, C.; Yu, L.; Zhou, Z.; Zhang, H.; Wang, J.; Zhou, H.; Ma, Z.; and Tian, Y. 2026. Spikingformer: A Key Foundation Model for Spiking Neural Networks. Proceedings of the AAAI Conference on Artificial Intelligence, 40(3): 2236–2244.
Zhou, C.; Zhang, H.; Zhou, Z.; Yu, L.; Huang, L.; Fan, X.; Yuan, L.; Ma, Z.; Zhou, H.; and Tian, Y. 2024. QKFormer: Hierarchical Spiking Transformer using Q-K Attention. In Advances in Neural Information Processing Systems, volume 37, 13074–13098.
Zhou, Z.; Zhu, Y.; He, C.; Wang, Y.; Yan, S.; Tian, Y.; and Yuan, L. 2023. Spikformer: When Spiking Neural Network Meets Transformer. In International Conference on Learning Representations.
Supplementary Material for PAFS: Perturbation-Aware Firing Scaffolds for Robust Event-Based SNNs
This supplement provides additional derivations, dataset rationale, reproducibility settings, and experimental analyses supporting the main paper. We focus on architectural details, parameter and memory accounting, experimental protocols, and implementation settings required to reproduce and interpret the results.
Appendix A: Additional Derivations and Method Details
Adapter architecture. The Adapter is inserted after the final encoder block of the frozen SNN. It uses a residual bottleneck parameterization (Houlsby et al. 2019). For a channel-last feature tensor , the same bottleneck transformation is shared over all temporal steps and spatial positions:
(S1)
where and . Here, LN denotes Layer Normalization (Ba, Kiros, and Hinton 2016), and GELU denotes the Gaussian Error Linear Unit (Hendrycks and Gimpel 2016). The trainable parameter set contains the down- and up-projection weights, their biases, and the LayerNorm affine parameters. The up-projection weight and bias are initialized to zero, so the Adapter branch initially contributes no residual and the predictor starts exactly from the original frozen SNN.
Complete calibration procedure. Algorithm S1 summarizes the complete PAFS training and deployment procedure. From the checkpoint training indices, we form a fixed training-only calibration pool
where and under the default configuration.
Only is used to estimate the channel–time normalization statistics and construct the residual-aligned scaffold bases. The remaining subset is excluded from these Stage 2 operations. This partition does not define a train/validation split: both subsets remain part of and may appear as ordinary training examples during Adapter and correction-head optimization. The subset is not used as validation data for checkpoint or deployment-scale selection, or for final test reporting.
Scaffold and correction implementation. We follow Eqs. (2)–(18) of the main paper for firing extraction, spatial aggregation, channel–time standardization, probability
Algorithm S1: PAFS calibration and prediction
Require: Frozen SNN ; training set ; scaffold-fitting subset ; temporal domains ; selected LIF layers ; scaffold rank
Ensure: Adapter anchor ; fixed scaffold buffers ; trained correction head ; deployment scale
1: Stage 1: Train the Adapter anchor
2: Initialize Adapter parameters
3: for each Adapter update do
4: Sample and
5: Set
6: Update using
7: end for
8: Select validation-best checkpoint and freeze it
9: Stage 2: Construct residual-aligned scaffolds
10: for do
11: for do
12: Run the frozen anchor on
13: Collect trajectories and anchor probability
14: Compute residual and error-aware weight
15: end for
16: end for
17: for do
18: Estimate and standardize trajectories
19: Construct weighted firing-residual matrices
20: Normalize and aggregate the corrupted-domain matrices
21: Compute SVD
22: Store scaffold basis
23: end for
24: Freeze scaffold bases and normalization statistics
25: Stage 3: Train the correction head at unit scale
26: Initialize correction head to zero
27: for each correction-head update do
28: Sample and
29: Set
30: Run the frozen Adapter anchor once on
31: Project the selected firing trajectories onto
32: Compute the raw residual
33: Set
34: Update only using Eq. (18) of the main paper with
35: end for
36: Freeze the trained correction head as
37: Validation-only scale selection
38: Set = and
39: Evaluate on the validation split
40: Retain scales satisfying the clean-performance guard
41: Select the retained scale with the highest validation robust average
42: Inference: run the frozen anchor once and output residuals, error-aware weighting, domain-balanced association matrices, SVD-based scaffold construction, scaffold projection, and residual correction. For each selected source, the hooked LIF output is arranged as a tensor, where the spatial dimensions are flattened into . Spatial locations are averaged while time is preserved, producing a trajectory for each sample and domain. The two selected late-layer sources are the attention projection LIF response (proj_lif) and the first MLP LIF response (fc1_lif). The bases and normalization statistics are frozen after construction, and the correction head operates on their projected coordinates without an additional backbone pass.
Relation to probability calibration. PAFS learns a feature-dependent residual logit correction for robustness; it does not claim calibrated confidence probabilities. This distinction matters because conventional post-hoc probability calibration aims to align predicted confidence with empirical correctness (Guo et al. 2017), whereas PAFS uses firing trajectories to correct perturbation-induced classification errors.
Trainable-parameter derivation. For hidden dimension C and bottleneck dimension b, the Adapter contains
trainable parameters. The two projection matrices contribute , their biases contribute , and the LayerNorm affine parameters contribute . The correction feature has dimension . Including the output bias, the correction head contains
and the total learned overhead is
For DailyAction-DVS with Spikingformer, , , , , , and , giving
This is approximately 0.342% of the frozen 2.569M-parameter predictor.
Persistent-buffer derivation. The fixed scaffold bases and channel–time normalization statistics require
stored scalars. For two selected layers with , , and , the bases contain 2,048 scalars and the normalization statistics contain 16,384 scalars. In FP32, these fixed buffers require 72.0 KiB. They receive no gradients and are excluded from the trainable-parameter percentage.
Appendix B: Dataset Selection and Evaluation Protocol
Evaluation Scope. The evaluation is organized around three claims. First, PAFS should remain effective across event-recognition tasks with different dependence on temporal structure. Second, its gains should transfer across spiking-transformer architectures rather than depend on one particular backbone implementation. Third, the method should improve robustness under complementary temporal failure modes without sacrificing performance on clean inputs. The dataset–backbone settings, corruption suite, and evaluation metrics are selected to test these claims separately.
Datasets
CIFAR10-DVS. CIFAR10-DVS is a balanced event-based object-classification benchmark containing 10,000 recordings from the ten CIFAR-10 categories, with 1,000 event streams per class (Li et al. 2017). The event streams are generated by displaying static CIFAR-10 images on a monitor and moving them along predefined trajectories while a DVS records the resulting intensity changes. Consequently, the semantic label is inherited from static object identity rather than from naturally evolving motion.
We use CIFAR10-DVS as a weak temporal-order control. It tests whether PAFS remains useful when long-range temporal composition is not itself label-defining, while its display-generated motion means that it is not used as the primary evidence for robustness to natural human actions. The release does not prescribe one unique train/validation/test partition, so the split used in this work is treated as part of the experimental protocol and is kept identical across all compared methods.
DailyAction-DVS. DailyAction-DVS contains 1,440 directly recorded event clips of 15 subjects performing 12 daily actions: bend, climb, fall down, get up, jump, lie down, carry box, run, sit down, stand up, walk, and pick up (Liu et al. 2021). Recordings cover two illumination conditions and two camera placements with different viewing distances and angles. Each example is a short, cropped, single-action clip rather than a continuous activity stream.
Unlike display-converted object datasets, DailyAction-DVS directly records human motion and includes variation in subject, illumination, and viewpoint. We therefore use it as the principal setting for evaluating robustness to temporal perturbations in natural action recordings. DailyAction-DVS is also evaluated with both Spikformer and Spikingformer, allowing architectural transfer to be studied while holding the task, split, preprocessing, and corruption protocol fixed.
DVS-Gesture-Chain. DVS-Gesture-Chain (DVS-GC) is an order-sensitive benchmark generated from the real event-camera recordings of DVS128 Gesture rather than an independently captured corpus (Amir et al. 2017; Vicente-Sola et al. 2025). The upstream DVS128 Gesture dataset contains 1,342 labeled gesture instances from 29 subjects under three illumination conditions. DVS-GC constructs examples by selecting gesture primitives and concatenating them into ordered chains.
Different orders are assigned different labels, so two samples containing the same local gesture primitives may belong to different classes solely because their temporal arrangements differ. DVS-GC therefore provides the most explicit test of whether PAFS preserves structured timing information rather than only aggregate firing activity or event counts. Because the chains are programmatically composed, we interpret DVS-GC as a controlled temporal-order benchmark rather than as a dataset of naturally occurring long activities. The audited configuration uses , 81 classes, train/validation/test sizes of 6,318/1,620/1,944, and a shard size of 64. The generator source exposes a composition parameter and seed 123 as defaults, but the cached artifacts do not retain these values. We therefore do not present them as verified run-level settings.
Why the datasets are complementary. The three datasets are selected to test PAFS under progressively stronger forms of temporal dependence. CIFAR10-DVS provides an object-recognition setting in which class identity is largely determined by accumulated spatial evidence and temporal order is comparatively weak. DailyAction-DVS introduces natural human-action dynamics, where recognition depends more strongly on how motion evidence evolves over time. DVS-GC further provides an explicitly order-sensitive setting in which similar elementary gestures form different classes through temporal composition. This progression is directly aligned with the central hypothesis of PAFS: residual errors should be more recoverable from late-layer firing trajectories when task-relevant temporal structure remains encoded beyond the anchor logits.
Dataset papers and official resources. The dataset papers and official or author-provided resources used in this work are listed below.
• CIFAR10-DVS: dataset paper: https://doi.org/10.3389/fnins.2017.00309; official data release: https://doi.org/10.6084/m9.figshare.4724671.v2.
• DailyAction-DVS: dataset paper: https://www.ijcai.org/proceedings/2021/240; author repository and data instructions: https://github.com/qianhuiliu/SNN-action-recognition.
• DVS-Gesture-Chain: dataset paper: https://doi.org/10.1016/j.neucom.2024.128657; official generator: https://github.com/VicenteAlex/DVS-Gesture-Chain. The benchmark is constructed from DVS128 Gesture, whose original paper is cited in the main text.
Backbone Architectures
Shared architecture and input convention. Every audited backbone receives a mini-batch of event-frame sequences with shape , where and the two input channels encode event polarity. Both encoders have depth 2, hidden dimension 256, MLP hidden dimension 1,024, and patch size 16. The patch embedding therefore yields an token grid with 64 spatial tokens per simulation step. The temporal dimension is retained throughout the multistep spiking layers: spatial token interaction is computed within each step, whereas membrane states propagate information across time.
Spikformer. Spikformer is a directly trained spiking vision Transformer that replaces conventional floating-point self-attention with Spiking Self-Attention (SSA) (Zhou et al. 2023). The audited implementation uses fixed LIF neurons with and the PyTorch backend. Its architecture consists of a Spiking Patch Splitting stem, a sequence of Transformer encoder blocks containing SSA and spiking MLP modules, global average pooling, and a linear classifier. Query, key, and value representations are converted into spike-form tensors, and the attention interaction is performed without softmax.
Spikformer uses a post-activation, spike-element-wise residual organization: the output of a spiking branch is added to the shortcut representation. It therefore supplies PAFS with firing trajectories generated by a canonical softmax-free spiking Transformer with attention and MLP pathways.
Spikingformer. Spikingformer retains softmax-free global spike attention but changes the placement of spiking activations and the organization of residual propagation (Zhou et al. 2026). The audited model is the base ConvBN→LIF→MaxPool tokenizer variant, rather than a dagger or CML-downsampling variant. It uses fixed LIF neurons with and the CuPy backend, followed by pre-activation Spiking Self-Attention and pre-activation spiking MLP blocks. Before a learned projection, the residual representation is converted into binary spikes, while the membrane-valued shortcut is propagated across blocks.
The central distinction can be summarized as
where denotes a learned transformation and SN denotes a spiking-neuron operation. Spikingformer therefore changes the activation placement, residual information path, and internal firing organization rather than merely changing the parameter count.
Why both backbones are evaluated. Both models use spiking-neuron dynamics, spike-form attention representations, softmax-free global token interaction, and attention-MLP encoder blocks. However, their tokenizers, projection operators, activation placement, and residual representations differ. Spikformer evaluates PAFS under a post-activation spike-element-wise shortcut, whereas Spikingformer evaluates it under a pre-activation membrane-shortcut design in which learned transformations receive binary spike inputs.
DailyAction-DVS is evaluated with both backbones while the dataset split, event conversion, temporal corruptions, and model-selection protocol remain fixed. CIFAR10-DVS is additionally evaluated with Spikingformer, and DVS-GC with Spikformer, producing four dataset–backbone settings. Consistent behavior across these settings supports cross-backbone transfer within spiking Transformers; it does not imply generalization to every possible SNN architecture.
How PAFS interfaces with the backbones. PAFS leaves the pretrained backbone and original classifier frozen. The Adapter is inserted after the final encoder block, while firing trajectories are collected from two late internal sources: the attention projection LIF response (proj_lif) and the first MLP LIF response (fc1_lif). Each captured response is arranged as a tensor, spatially averaged while preserving time, and projected onto a fixed rank-4 scaffold.
This interface is kept unchanged across the two backbones. The architectural transfer experiment therefore changes the internal firing and residual organization of the predictor while preserving the PAFS extraction, construction, and correction protocol.
Backbone papers and implementations. The official resources are:
• Spikformer (Zhou et al. 2023): official implementation of the ICLR 2023 model, available at https://github.com/ZK-Zhou/spikformer.
• Spikingformer (Zhou et al. 2026): official implementation accompanying the cited paper, available at https://github.com/TheBrainLab/Spikingformer.
Temporal corruption operators. The main paper describes the temporal distortions using event-time terminology at a high level. In the evaluated implementation, timestamp jitter and speed change are applied after event-to-frame conversion to the fixed event-count representation. Timestamp jitter stochastically displaces discrete frame-bin contents, whereas speed change resamples the temporal frame axis and restores the original sequence length by zero-padding. The exact operators are specified below.
Window Drop. For a drop fraction , the number of removed bins is
With , this gives . For each sample , the starting bin is drawn independently as
so that in the reported setting. The bins in are set to zero, while all remaining bins are unchanged. This corruption therefore removes one contiguous interval of temporal evidence.
Jitter. For each sample n and source frame bin t, an independent integer offset is sampled as
The destination index is
The complete content of source bin t is accumulated at destination bin . When multiple source bins map to the same destination, their values are summed. Offsets that would leave the valid range are accumulated at the first or final bin; bins are neither discarded nor wrapped around. Because this operator acts on already-binned count frames, it does not perform event-level timestamp reordering.
Speed. For speed factor s, the temporal length is first changed to
The reported setting uses the acceleration convention , giving . The complete temporal axis is linearly interpolated from 16 to 8 bins with PyTorch interpolation using align_corners = false. The result is then center-padded with four zero bins on each side to restore length 16. Thus, the compressed signal occupies output bins 4 through 11. Event counts are not explicitly renormalized after interpolation, and the operator does not separately remove events outside an observation window because the entire frame sequence is compressed before padding.
Controlled data usage and comparison protocol. Training the Adapter and correction head, estimating normalization statistics, and constructing the firing scaffolds use only samples from the training split. Hyperparameters, checkpoints, and the correction scale are selected exclusively on the validation split, while the test split is reserved for final reporting. Within each dataset–backbone setting, all methods use the same pretrained checkpoint, data splits, frame conversion, corruption definitions, validation and test realizations, and matched random seeds. All model and scale selection is performed exclusively on the validation split using the predefined criterion for the corresponding method or training stage.
Metrics aligned with the evaluation claims. The metrics distinguish preservation of the original predictor from robustness under temporal distribution shift. Clean accuracy measures whether calibration degrades the uncorrupted operating condition. Accuracy under each individual corruption exposes condition-specific behavior and prevents gains on one temporal shift from masking failures on another.
Let denote the clean condition, the set containing Window Drop, Jitter, and Speed, and . For matched runs, the cross-run mean accuracy under condition is
The aggregate metrics are
Avg. summarizes performance under a uniformly weighted mixture of clean and corrupted conditions. Corr. Avg. excludes the typically high clean accuracy so that robustness gains are not diluted by the uncorrupted condition. Worst reports the lowest cross-run mean among the three corruptions and therefore captures performance under the most challenging evaluated temporal shift. The primary robustness criteria are Corr. Avg. and Worst, while clean accuracy is reported as a preservation constraint.
All accuracies are reported in percent as mean standard deviation over matched runs. For Worst, we first identify the corruption with the lowest cross-run mean accuracy and then report the standard deviation of that same corruption, ensuring that its mean and variation refer to one common operating condition. Differences between methods are computed from matched runs, and all reported robustness gains are absolute percentage-point differences.
Appendix C: Reproducibility Settings and Hyperparameters
Reproducibility protocol. All quantities used to construct PAFS are estimated exclusively from the training split. The validation split is used for checkpoint, hyperparameter, and correction-scale selection, while the test split is reserved for final reporting. The three stages are explicitly decoupled: the pretrained backbone and original classifier remain frozen throughout, the Adapter is frozen before scaffold construction, and only the correction head is optimized after the scaffold has been fixed. All comparison methods use matched data splits, corruption realizations, validation data, and random seeds. Checkpoints and deployment scales are selected using the predefined validation-only criterion for the corresponding method or training stage.
Calibration sampling and data use. PAFS requests a training-only calibration pool with cap . Let denote the number of examples available in the corresponding checkpoint training split. The realized pool size is
| Control | Matched components | Changed factor |
|---|---|---|
| LoRA | Frozen predictor, data protocol, and validation selection | Parameter-efficient weight update |
| Plain MLP | Frozen predictor and approximately matched Adapter budget | Output-space residual MLP without an Adapter anchor |
| Logit-only | Adapter anchor, correction budget, optimization, and selection | Uses only ; no firing features |
| PCA / Random | Anchor, LIF sources, rank, correction head, and training | Fixed firing-basis construction rule |
| Scalar rules | Candidate coordinates, retained budget, correction head, and training | Channel-ranking criterion only |
Table S1: Matched conditions and isolated factors for the baseline and control comparisons.
The default request cap is . In the default DailyAction-DVS setting, all requested examples are available, so .
For each matched model seed, the realized pool is independently and deterministically partitioned using a seed derived from that model seed and the scaffold-fitting fraction . The resulting subsets are disjoint: .
Under the default setting, unique training examples are used for normalization-statistic estimation and scaffold construction. The remaining examples are excluded from Stage 2 scaffold estimation. This partition is generated independently for each matched model seed and does not define an additional validation split.
Because Adapter and correction-head optimization use the complete training split , samples from both and may appear as ordinary training examples in Stages 1 and 3. The subset is not used to estimate scaffold statistics or bases, select a checkpoint or deployment scale, or report final test performance.
To align notation with the main paper, we use and . The default value denotes the calibration-pool request cap, whereas is the number of examples used to estimate normalization statistics and scaffold bases.
Adapter-anchor optimization. During Stage 1, only the Adapter parameters are optimized; the pretrained backbone and original classifier remain fixed. Both trainable stages use AdamW (Loshchilov and Hutter 2019); only the optimized parameter set differs. Each mini-batch is drawn from one of the four training domains—Clean, Window Drop, Jitter, or Speed—as specified by the multi-domain objective in Eq. (1) of the main paper. This protocol exposes the Adapter to all evaluated operating conditions without mixing different temporal distributions within one mini-batch.
The Adapter checkpoint is selected by mean validation accuracy over the clean condition and the three temporal corruptions. This criterion favors an anchor that performs consistently across operating conditions rather than specializing in either clean inputs or a single corruption. Once selected, the Adapter is frozen and denoted by . It then defines both the firing trajectories and prediction residuals used in scaffold construction.
Scaffold construction. Stage 2 contains no gradient-based optimization. The frozen backbone, classifier, and Adapter anchor are used to extract the selected late-layer LIF trajectories from the scaffold-fitting subset. Channel–time normalization, probability-residual computation, error-aware weighting, domain-balanced association, and SVD-based basis extraction follow Eqs. (2)–(12) of the main paper. The resulting normalization statistics and rank-r scaffold bases are stored as fixed buffers and receive no gradients during correction training.
Freezing the Adapter before this stage ensures that the firing trajectories and prediction residuals remain defined relative to one common anchor predictor. Allowing the Adapter to change afterward would alter the representation coordinate system and create a moving target for the correction head.
Correction-head optimization and scale selection. During Stage 3, only the linear correction head is optimized. The backbone, original classifier, Adapter anchor, normalization statistics, and scaffold bases remain fixed. Correction training follows the same one-domain-per-mini-batch protocol used for Adapter training.
The correction weight and bias are initialized to zero, so the initial residual satisfies and training begins exactly from the frozen Adapter anchor. The correction head is trained with a fixed unit residual scale,
Writing , the resulting trained correction head is
(S9)
The deployment scale is selected only after has been fixed. The nonzero correction scales summarized in the main paper are
The validation procedure additionally retains as an anchor-preserving fallback, giving
For , the corrected predictor exactly recovers the frozen Adapter anchor:
We first retain the scales that satisfy the anchor-relative clean-performance guard:
(S10)
Accuracy is represented on the scale, so permits a maximum clean-validation reduction of 0.5 percentage points.
Among the feasible candidates, we select
where is the mean validation accuracy over Window Drop, Jitter, and Speed. The deployed predictor is therefore
Accordingly, Eq. (18) of the main paper is instantiated during correction-head optimization with the fixed unit scale . The candidate deployment scales in A are not used to fit ; they are evaluated only after training has produced and frozen . Test-time prediction then uses Eq. (S12) with the validation-selected scale . Both and remain fixed during test evaluation.
Corruption resampling and evaluation seeds. Temporal corruption parameters are generated deterministically from the matched model seed and the current execution stage. During Adapter, LoRA, and Plain-MLP training, one of the four domains is selected for each mini-batch, and stochastic corruption parameters are regenerated when the epoch or batch step changes. Thus, training exposes each method to repeatedly resampled temporal perturbations rather than to one fixed corrupted training set.
During correction-head training, the clean, Window Drop, Jitter, and Speed domains are traversed according to the recorded epoch-step schedule, and the stochastic parameters of the selected corruption are regenerated for each mini-batch.
For validation, test evaluation, and deployment-scale selection, the domain-specific random generator is recreated from the same deterministic seed for every evaluation call. Consequently, each method, anchor/corrected predictor pair, and candidate residual scale is evaluated on the same corruption realization within a matched model seed. Validation and test corruptions therefore remain fixed across checkpoints and scale candidates, whereas training corruptions are resampled over optimization steps.
Controlled data usage and comparison protocol. Training the Adapter and correction head, estimating normalization statistics, and constructing the firing scaffolds use only samples from the training split. Checkpoints, hyperparameters, and deployment scales are selected exclusively on the
| Setting | Value |
|---|---|
| Input representation | event-count frames |
| Spatial resolution | |
| Adapter bottleneck | |
| Adapter dropout | 0.05 |
| Optimizer | AdamW |
| Learning rate | |
| Batch size | 128 |
| Maximum Adapter epochs | 160 |
| Maximum correction-head epochs | 80 |
| Adapter checkpoint criterion | Four-condition mean validation accuracy |
| Correction-head training scale | |
| Correction-head initialization | Zero weight and zero bias |
| Selected LIF sources | Attention proj_lif and MLP fc1_lif |
| Selected layers | Two late LIF layers |
| Scaffold rank | per selected layer |
| Error weight | |
| Correction penalty | |
| Nonzero deployment scales | |
| Anchor-preserving fallback | |
| Deployment-scale criterion | Validation Corr. Avg. subject to the clean-performance guard |
| Clean-performance guard | (0.5 percentage points) |
| Calibration request cap | |
| Scaffold-fitting fraction | |
| Default realized split | 512 pool = 384 scaffold-fitting + 128 scaffold-excluded samples |
| Matched random seeds | 7, 11, and 42 |
Table S2: Default PAFS implementation, optimization, and model-selection settings. The calibration request cap applies to unique training samples and may be truncated by training-split availability.
validation split using the predefined criterion for the corresponding method or training stage, while the test split is reserved for final reporting. Within each dataset–backbone setting, all methods use the same pretrained checkpoint, data splits, frame conversion, corruption definitions, validation and test realizations, and matched model seeds. These controls isolate the effect of the adaptation or correction mechanism from differences in data access, corruption sampling, or evaluation conditions.
Parameter-efficient and output-space controls. As summarized in Table S1, the Adapter, LoRA, and Plain MLP baselines evaluate alternative lightweight adaptation or output-space correction mechanisms. The more tightly matched Logit-only MLP isolates whether anchor output statistics alone are sufficient for residual correction.
The Adapter anchor is the predictor obtained after Stage 1 and contains neither scaffold projection nor residual correction. It is the direct reference for measuring the contribution of Stages 2 and 3.
Baseline implementations. LoRA (Hu et al. 2022) is applied directly to the frozen Full predictor. It uses rank 8, scaling parameter 16, dropout 0.05, and adapts the query, key, value, attention-output, and two MLP projections in the final encoder block. The original projections remain frozen, and the second low-rank factor is initialized to zero.
Plain MLP on Full attaches a two-layer residual MLP with ReLU and dropout 0.05 to the logit descriptor of the original frozen checkpoint. Its output projection is initialized to zero, so the initial predictor is identical to the Full checkpoint. The hidden widths are selected as the nearest parameter match to the 6,924-parameter Adapter: 173, 28, and 203 for DailyAction-DVS, DVS-GC, and CIFAR10-DVS, respectively.
The Logit-only MLP is instead attached to the same frozen Adapter anchor as PAFS and receives only , without firing hooks or scaffold features. Its two-layer residual head is parameter-matched to the corresponding PAFS correction head, and its output projection is initialized to zero. Thus, correction training begins exactly from the Adapter anchor.
The PCA and random-scaffold controls use the same frozen Adapter anchor, selected LIF sources, retained rank, correction head, and optimization protocol as PAFS. PCA retains the leading principal-component directions of the standardized firing trajectories. The random scaffold uses a fixed Gaussian basis orthogonalized by reduced QR decomposition. Scalar channel controls instead retain individual firing channels through a one-hot basis; only the channel-ranking criterion changes.
Baseline optimization. Adapter, LoRA, and Plain MLP on Full use AdamW with learning rate , zero weight decay, batch size 128, global-norm gradient clipping at 1.0, and at most 160 epochs. Validation is performed every five epochs, with early-stopping patience of six validation events. These methods use CUDA automatic mixed precision during training and FP32 evaluation.
PAFS and the Logit-only, PCA, random-scaffold, and scalar-selection controls use AdamW with the same learning rate and zero weight decay, batch size 128, global-norm gradient clipping at 1.0, and at most 80 correction epochs. Correction training is performed in FP32 with the residual scale fixed to . The trained correction head is subsequently frozen, and the deployment scale is selected only on the validation split according to the protocol above.
Firing-space controls. The firing-space controls in Table S1 preserve the frozen Adapter anchor, correction capacity, and optimization protocol while changing how the retained firing representation is constructed. The PCA and random scaffold controls preserve the same Adapter anchor, firing sources, rank, correction head, and optimization procedure as PAFS. PCA uses the leading principal-component directions of standardized firing trajectories, whereas the random control uses a fixed random orthonormal basis of the same shape. They test whether activation-dominant or ar-binary low-dimensional firing representations can replace residual-aligned scaffold construction.
The scalar channel controls preserve the same candidate features, retained-feature budget, correction head, and optimization protocol while changing only the ranking criterion. Random ranking, activation frequency, activation variance, and temporal variance test generic firing salience. Perturbation sensitivity favors channels that change between clean and corrupted inputs, while residual relevance explicitly scores association with the anchor prediction residual. These controls distinguish individual-channel importance from multivariate residual-aligned firing structure.
Software, hardware, and random seeds. Experiments use Ubuntu 22.04.5, Python 3.12.3, PyTorch 2.8.0 with CUDA 12.8 and cuDNN 9.10.2. The server contains four NVIDIA GeForce RTX 5090 GPUs. Each training or evaluation run uses one GPU; independent seeds and configurations may run in parallel, but no individual run uses distributed multi-GPU optimization. The main dependencies include SpikingJelly 0.0.0.0.8, Tonic 1.6.0, CuPy-CUDA12x 13.6.0, timm 1.0.27, NumPy 1.26.4, SciPy 1.14.1, and scikit-learn 1.5.1. Unless otherwise stated, results use matched model seeds 7, 11, and 42.
Appendix D: Additional Experimental Results
Overview. The following analyses test three practical and mechanistic implications of the PAFS hypothesis. First, we examine whether useful residual-aligned scaffolds can be estimated from a modest training-only calibration pool. Second, we test whether the robustness gain extends beyond matched correction capacity when scaffold-projected internal firing coordinates are provided. Third, we test whether generic or independently ranked firing features can replace the proposed multivariate residual-aligned scaffold.
Estimating residual-aligned scaffolds from limited calibration data. A practical consequence of the proposed low-dimensional firing representation is that its residual-aligned directions should be recoverable from a modest training-only calibration pool. Figure S1 therefore varies the number of unique training samples available for scaffold construction.
With held fixed, the four realized pools produce scaffold-fitting subsets of 96, 192, 384, and 697 samples and scaffold-excluded remainder subsets of 32, 64, 128, and 232 samples. The firing sources, scaffold rank, correction head, corruption protocol, and model-selection procedure remain unchanged.
Increasing the request cap from 128 to 256, corresponding to an increase from 96 to 192 scaffold-fitting samples, improves both Corr. Avg. and Worst. The trend is non-monotonic thereafter: the predefined 512-cap configuration

Figure S1: Sensitivity to the training-only calibration request cap on DailyAction-DVS with Spikformer. Requested caps of 128, 256, 512, and 1,024 yield realized pools of 128, 256, 512, and 929 unique samples, respectively. The fixed 0.75 fitting fraction gives scaffold-fitting subsets of 96, 192, 384, and 697 samples. Each point is the mean over three matched seeds, with error bars denoting standard deviation. Corr. Avg. averages Window Drop, Jitter, and Speed; Worst reports the corruption with the lowest cross-run mean.
remains competitive, while the 1,024 request—realized as 929 samples—does not consistently outperform the smaller configurations.
The non-monotonic behavior indicates that robustness does not increase mechanically with scaffold-fitting set size. Within this fixed-rank study, useful residual-aligned directions can already be estimated from a modest training-only subset. This experiment therefore supports scaffold estimability under a limited calibration budget, but does not independently establish intrinsic low rank or monotonic sample efficiency. The default request cap was fixed before this sensitivity analysis and was not selected from the reported test curves.
Efficiency–robustness trade-off. Table S3 reports a representative deployment profile on DailyAction-DVS with Spikingformer. All methods operate on the same frozen 2.569M-parameter predictor and are measured under identical profiling conditions.
PAFS and the matched Logit-only MLP introduce the same number of learned parameters, isolating the value of scaffold-projected firing information from correction capacity. Relative to Adapter, the Logit-only MLP reduces Corr. Avg. by 0.83 percentage points while improving Worst by 0.24 points. PAFS instead improves Corr. Avg. and Worst by 1.84 and 3.23 points, respectively.
This improvement adds 0.035M MACs over Adapter, while measured latency and gross GPU board energy increase by 10.6% and 7.5%. The main runtime cost comes from collecting two late-layer firing trajectories and projecting them onto fixed rank-4 bases; no additional backbone pass is required. The matched comparison therefore indicates that the robustness gain is associated with internal firing coordinates rather than output-space correction capacity alone.
| Method | Deployment overhead ↓ | Measured inference cost ↓ | Robustness gain vs. Adapter ↑ | ||||
|---|---|---|---|---|---|---|---|
| Learned params (K / % frozen) | FP32 storage (KiB) | Added MACs (M/sample) | Latency (ms/sample) | Energy (mJ/sample) | Δ Corr. Avg. (pp) | Δ Worst (pp) | |
| Adapter | 6.924 / 0.270% | 27.0 | 6.29137.749 | 5.989 ± 0.0486.299 ± 0.160 | 819.1 ± 11.1854.9 ± 12.7 | 0.00 | 0.00 |
| LoRA | 36.864 / 1.435% | 144.0 | (+31.458)6.293 | (+5.2%)6.318 ± 0.065 | (+4.4%)853.3 ± 3.3 | -1.12 | +0.12 |
| Logit-only MLP | 8.796 / 0.342% | 34.4 | (+0.002)6.326 | (+5.5%)6.626 ± 0.011 | (+4.2%)880.1 ± 7.4 | -0.83 | +0.24 |
| PAFS (ours) | 8.796 / 0.342% | 106.4 | (+0.035) | (+10.6%) | (+7.5%) | +1.84 | +3.23 |
Table S3: Efficiency–robustness trade-off on DailyAction-DVS with Spikingformer. All methods share the same frozen 2.569M-parameter predictor. Learned parameters and FP32 storage denote method-specific additions; PAFS storage additionally includes 72.0 KiB fixed scaffold and normalization buffers. Added MACs are measured relative to the frozen predictor. Latency and energy are mean ± standard deviation over three matched seeds. Parentheses indicate changes from Adapter. Robustness gains are absolute percentage-point improvements. Here, , , and KiB denotes bytes.
| Method / scoring rule | Clean | Window Drop | Jitter | Speed | Corr. Avg. | Worst |
|---|---|---|---|---|---|---|
| Adapter | 97.35±0.53 | 86.62±1.22 | 90.43±2.50 | 86.85±3.65 | 87.97±1.57 | 86.62±1.22 |
| PAFS (Ours) | 97.46±0.53 | 87.20±1.51 | 90.77±2.80 | 88.93±3.34 | 88.97±2.28 | 87.20±1.51 |
| Random ranking | 97.18±0.61 | 85.74±1.68 | 89.88±2.17 | 85.92±3.08 | 87.18±1.46 | 85.74±1.68 |
| Activation frequency | 97.52±0.48 | 86.48±1.45 | 90.61±1.92 | 86.34±2.84 | 87.81±1.30 | 86.34±2.84 |
| Activation variance | 97.58±0.46 | 86.71±1.56 | 89.92±2.06 | 86.10±2.73 | 87.58±1.28 | 86.10±2.73 |
| Temporal variance | 97.31±0.55 | 87.36±1.41 | 89.85±1.80 | 86.20±2.69 | 87.80±1.21 | 86.20±2.69 |
| Perturbation sensitivity | 97.28±0.52 | 86.95±1.29 | 90.55±2.11 | 87.62±2.91 | 88.37±1.38 | 86.95±1.29 |
| Residual relevance | 97.41±0.47 | 87.08±1.33 | 90.94±1.71 | 87.85±2.51 | 88.62±1.15 | 87.08±1.33 |
Table S4: Controlled comparison of PAFS and scalar channel-selection rules on DailyAction-DVS with Spikformer under the default rank-4-per-layer protocol. PAFS and all scalar controls use the same retained-feature budget and the same 1,872-parameter correction head. Only the rule used to construct the retained firing representation changes. Results are mean test accuracy (%) ± standard deviation over three matched model seeds. Corr. Avg. averages Window Drop, Jitter, and Speed, while Worst denotes the corruption with the lowest cross-run mean accuracy.
Residual alignment and multivariate firing structure. Table S4 evaluates increasingly targeted alternatives to the proposed scaffold, ranging from generic firing salience and perturbation sensitivity to independently ranked residual-relevant channels. All variants preserve the same Adapter anchor, firing sources, retained-feature budget, correction head, and optimization protocol; only the construction of the retained firing representation changes.
Random ranking and generic activation statistics do not consistently outperform the Adapter anchor, indicating that firing magnitude or variability alone is insufficient for identifying correction-relevant internal responses. Perturbation sensitivity performs more strongly, suggesting that channels affected by temporal shifts are more informative than generally active channels. Residual relevance is the strongest scalar control, reaching 88.62 Corr. Avg. and 87.08 Worst. This result supports the interpretation that alignment with the Adapter anchor's remaining prediction errors is more informative than generic firing salience or perturbation sensitivity alone.
PAFS achieves the strongest overall robustness, with 88.97 Corr. Avg. and 87.20 Worst, outperforming every scalar ranking rule under the same retained-feature budget and correction protocol. It also obtains the best Speed accuracy, exceed- ing residual relevance by 1.08 percentage points under global temporal rescaling. Although individual scalar controls are competitive under specific corruptions, none matches PAFS on both aggregate robustness criteria. Together, these comparisons indicate that residual alignment accounts for most of the observed robustness improvement in this controlled setting, while the multivariate functional-SVD scaffold captures complementary joint firing structure that is not recovered by independently ranking channels.
Supplementary References
Amir, A.; Taba, B.; Berg, D.; Melano, T.; McKinstry, J.; Di Nolfo, C.; Nayak, T.; Andreopoulos, A.; Garreau, G.; Mendoza, M.; Kusnitz, J.; Debole, M.; Esser, S.; Delbruck, T.; Flickner, M.; and Modha, D. 2017. A Low Power, Fully Event-Based Gesture Recognition System. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 7243–7252.
Ba, J. L.; Kiros, J. R.; and Hinton, G. E. 2016. Layer Normalization. arXiv preprint arXiv:1607.06450.
Guo, C.; Pleiss, G.; Sun, Y.; and Weinberger, K. Q. 2017. On Calibration of Modern Neural Networks. In Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, 1321–1330.
Hendrycks, D.; and Gimpel, K. 2016. Gaussian Error Linear Units (GELUs). arXiv preprint arXiv:1606.08415.
Houlsby, N.; Giurgiu, A.; Jastrzebski, S.; Morrone, B.; De Laroussilhe, Q.; Gesmundo, A.; Attariyan, M.; and Gelly, S. 2019. Parameter-Efficient Transfer Learning for NLP. In Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, 2790–2799.
Hu, E. J.; Shen, Y.; Wallis, P.; Allen-Zhu, Z.; Li, Y.; Wang, S.; Wang, L.; and Chen, W. 2022. LoRA: Low-Rank Adaptation of Large Language Models. In International Conference on Learning Representations.
Li, H.; Liu, H.; Ji, X.; Li, G.; and Shi, L. 2017. CIFAR10-DVS: An Event-Stream Dataset for Object Classification. Frontiers in Neuroscience, 11: 309.
Liu, Q.; Xing, D.; Tang, H.; Ma, D.; and Pan, G. 2021. Event-based Action Recognition Using Motion Information and Spiking Neural Networks. In Proceedings of the Thirtieth International Joint Conference on Artificial Intelligence, 1743–1749.
Loshchilov, I.; and Hutter, F. 2019. Decoupled Weight Decay Regularization. In International Conference on Learning Representations.
Vicente-Sola, A.; Manna, D. L.; Kirkland, P.; Di Caterina, G.; and Bihl, T. J. 2025. Spiking Neural Networks for event-based action recognition: A new task to understand their advantage. Neurocomputing, 611: 128657.
Zhou, C.; Yu, L.; Zhou, Z.; Zhang, H.; Wang, J.; Zhou, H.; Ma, Z.; and Tian, Y. 2026. Spikingformer: A Key Foundation Model for Spiking Neural Networks. Proceedings of the AAAI Conference on Artificial Intelligence, 40(3): 2236–2244.
Zhou, Z.; Zhu, Y.; He, C.; Wang, Y.; Yan, S.; Tian, Y.; and Yuan, L. 2023. Spikformer: When Spiking Neural Network Meets Transformer. In International Conference on Learning Representations.