SAGE: Surrogate-gradient Adaptation via Attention-Guided Entropy for Spiking Transformers
Organizations: USD Artificial Intelligence Research Lab Department of Computer Science University of South Dakota Vermillion, SD 57069, USA
Abstract
Spiking neural networks (SNNs) offer an energy-efficient alternative to conventional deep neural networks by exploiting sparse event-driven computation, but their training remains challenging because the non-differentiable spike function requires surrogate gradients whose fixed shape may be suboptimal across layers and training stages. In this work, we introduce SAGE, an uncertainty-modulated surrogate-gradient mechanism for Transformer-based SNNs. SAGE estimates block-level uncertainty from normalized self-attention entropy and uses this signal to adapt the surrogate-gradient slope during training while leaving the inference model unchanged. By modulating only the training-time surrogate parameter, the proposed method preserves the original architecture and deployment cost while improving optimization flexibility. Experiments on CIFAR-10/100 demonstrate that SAGE achieves improved accuracy over fixed-surrogate baselines, with results up to 1-2% consistent gains across multiple simulation time steps. These results highlight the potential of attention-derived uncertainty as a lightweight training signal for adaptive surrogate-gradient learning in transformer-based SNNs.
Figures & tables
| Method | Architecture | Params (M) | Timesteps | CIFAR-10 (%) | CIFAR-100 (%) |
|---|---|---|---|---|---|
| Hybrid Training Rathi et al. (2020) | VGG-11 | 9.27 | 125 | 92.22 | 67.87 |
| Diet-SNN Rathi and Roy (2020) | ResNet-20 | 0.27 | 10/5 | 92.54 | 64.07 |
| STBP-tdBN Zheng et al. (2021) | ResNet-19 | 12.63 | 4 | 92.92 | 70.86 |
| TET Deng et al. (2022) | ResNet-19 | 12.63 | 4 | 94.44 | 74.47 |
| Spikformer Zhou et al. (2022) | Spikformer-4-384 | 9.32 | 4 | 95.51 | 78.21 |
| RMP-SNN Han et al. (2020) | VGG-16 | 138.4 | 2048 | 93.63 | 70.93 |
| Method | Top-1 (%) |
|---|---|
| Hybrid Training Rathi et al. (2020) | 61.48 |
| STBP-tdBN Zheng et al. (2021) | 63.72 |
| TET Deng et al. (2022) | 63.72 |
| QCFS Bu et al. (2023) | 53.54 |
| Spikformer Zhou et al. (2022) | 70.24 |
| SAGE (Ours) | 60.60 |
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
Spiking Neural Networks
Spiking neural networks process information through discrete, time-dependent neural events, aiming for efficient computation and biologically inspired learning.
See all 345 papers