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

Luu Trong Nhan, Luu Trung Duong, Pham Ngoc Nam, Truong Cong Thang
9/28/2025
cs.NEcs.AIcs.CV

No official code found. Best implementation: luutn2002/grad-obf-snn (0 stars, MIT, last commit 2025-09-30).

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.

View on arXivView PDF

Code Implementations(1)

MIT

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

00PythonJul 21, 20251 years agoMIT

Cite this paper

@article{nhan2025accuracyrobustness,
  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},
  year   = {2025},
  eprint = {2509.23762},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.23762v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2509.23762.svg)](https://codeofpaper.com/paper/2509.23762)

Discussion