English

Accuracy-Robustness Trade Off via Spiking Neural Network Gradient Sparsity Trail

Neural and Evolutionary Computing 2025-12-04 v3 Artificial Intelligence Computer Vision and Pattern Recognition

Abstract

Spiking Neural Networks (SNNs) have attracted growing interest in both computational neuroscience and artificial intelligence, primarily due to their inherent energy efficiency and compact memory footprint. However, achieving adversarial robustness in SNNs, (particularly for vision-related tasks) remains a nascent and underexplored challenge. Recent studies have proposed leveraging sparse gradients as a form of regularization to enhance robustness against adversarial perturbations. In this work, we present a surprising finding: under specific architectural configurations, SNNs exhibit natural gradient sparsity and can achieve state-of-the-art adversarial defense performance without the need for any explicit regularization. Further analysis reveals a trade-off between robustness and generalization: while sparse gradients contribute to improved adversarial resilience, they can impair the model's ability to generalize; conversely, denser gradients support better generalization but increase vulnerability to attacks. Our findings offer new insights into the dual role of gradient sparsity in SNN training.

Keywords

Cite

@article{arxiv.2509.23762,
  title  = {Accuracy-Robustness Trade Off via Spiking Neural Network Gradient Sparsity Trail},
  author = {Luu Trong Nhan and Luu Trung Duong and Pham Ngoc Nam and Truong Cong Thang},
  journal= {arXiv preprint arXiv:2509.23762},
  year   = {2025}
}

Comments

Work under peer-review