Neuromorphic computing paradigms enhance robustness through spiking neural networks

Jianhao Ding, Zhaofei Yu, Jian K. Liu, Tiejun HuangNature Communications 2025

Abstract

The success of deep learning methods over the past decade has been partially shrouded in the shadow of adversarial attacks. Even a tiny undetectable deformation can lead to vicious misleading targeted at safety-critical applications. In contrast, the brain is far more robust when performing complex cognitive tasks. Nevertheless, the underlying mechanisms that contribute to the brain's high reliability remain largely unexplored. At the intersection of neuroscience and artificial intelligence, we show that neuromorphic paradigms offer a promising solution to the dilemma brought by deep learning's inherent vulnerabilities. Specifically, we exploit the temporal processing capabilities of spiking neural networks (SNNs) to achieve robustness surpassing that of traditional artificial neural networks (ANNs). We demonstrate that prioritizing task-critical information in the encoded sequence and employing early exit decoding to ignore later perturbations significantly enhance SNN robustness. Further improvements in robustness are achieved by accurately capturing temporal dependencies through specialized training algorithms. Additionally, we introduce a fusion encoding strategy to balance SNN generalization on natural data with robustness against adversarial input. Experimental results on the CIFAR-10 dataset show that SNNs trained with these combined methods achieve twice the robustness of ANNs. Overall, our work demonstrates that neuromorphic computing, leveraging the temporal processing capabilities of SNNs, not only provides superior robustness compared to ANNs but also retains the benefit of low energy consumption. These advancements pave the way for developing next-generation, environmentally friendly, and reliable spike-based intelligent systems.

Introduction

Despite the massive success of Deep Learning, Artificial Neural Networks (ANNs) remain notoriously fragile. A "tiny undetectable deformation"—an adversarial attack—can flip a model's prediction, posing a massive risk for safety-critical applications like autonomous driving or medical diagnostics. In contrast, the human brain is remarkably robust. A key difference lies in temporal processing: while ANNs are largely static and rate-based, the brain uses precise spike timing. This research explores how the "neuromorphic paradigm"—specifically Spiking Neural Networks (SNNs)—can use the dimension of time to filter out malicious noise that would otherwise cripple a standard AI model.

Overview of SNN training, evaluation under attack, and potential applications.

Exploiting Temporal Dynamics for Robustness

The core innovation lies in leveraging the unique temporal processing capabilities of SNNs. By prioritizing task-critical information early in a spike sequence and employing "early exit" decoding, SNNs can effectively ignore adversarial perturbations.

Encoding and Decoding Strategies

The researchers introduced a suite of techniques designed to exploit the temporal nature of SNNs:

  • RateSyn (Rate Synchronization) Encoding: This novel method maps pixel intensities to spike durations. Specifically, RateSynE (End-aligned) ensures that "foreground" information (high pixel values) appears at the very beginning of the temporal sequence, while "background" noise is pushed to the end.
  • TTFS (Time-to-First-Spike) Decoding: Instead of averaging spikes over a long window, this method makes a prediction based on the timing of the first spike. This acts as a natural "early exit" strategy; the network makes its decision and "stops listening" before later adversarial perturbations can take effect.
  • Fusion Encoding: To balance the high accuracy of standard "current encoding" on clean data with the robustness of temporal encoding, a fusion strategy concatenates multiple encoding schemes along the channel dimension.
Comparison of ANN and SNN pipelines and various encoding schemes (Current, Poisson, RateSynS, RateSynE) showing temporal spike distributions.

Temporal Backpropagation (Temp-BP)

Unlike standard activation-based training (Act-BP), Temp-BP calculates gradients based on precise spike timing. This allows the network to learn more nuanced temporal dependencies, leading to flatter minima in the loss landscape and better generalization.

Key Insights: Time as a Filter

The most profound insight is that SNNs can "ignore" attacks by simply being faster than the noise. Because adversarial perturbations often affect the background (low-value pixels), SNN neurons require time to accumulate enough membrane potential to reflect that noise. By deciding early (TTFS), the SNN effectively filters out the attack. By meticulously crafting the encoding (RateSynE) to put task-critical information at the front of the "spike train," a synergy is created with early-exit decoding.

Furthermore, this "early exit" strategy provides a dual benefit: it enhances robustness while simultaneously reducing the number of Synaptic Operations (SOPs), leading to significantly higher energy efficiency.

Experimental Results

The approaches were evaluated on standard benchmarks including MNIST, FashionMNIST, and CIFAR-10 (using a ResNet-18 backbone).

  • Double the Robustness: On the CIFAR-10 dataset, SNNs trained with the combined fusion and temporal methods achieved twice the accuracy of traditional ReLU-based ANNs when subjected to adversarial attacks.
  • Superior Efficiency: SNNs using TTFS decoding and fused encoding consumed 5.6x less energy and achieved an 8.2x lower Energy-Delay Product (EDP) compared to their ANN counterparts.
  • Training Efficacy: SNNs trained with Temp-BP consistently outperformed those converted from ANNs or trained with Act-BP, proving that capturing precise timing is essential for robust neuromorphic systems.

Conclusion and Future Directions

This work demonstrates that neuromorphic computing offers a promising path toward reliable AI. While current results are impressive, future work will explore "active" defenses (like adversarial training) in conjunction with these architectural advantages. Additionally, testing these paradigms on larger datasets like ImageNet and exploring more complex biological features, such as dendritic structures, will be crucial for scaling these robust, energy-efficient systems.

Summary updated

BibTeX
@inproceedings{ding2025neuromorphic,
  author = {Jianhao Ding and Zhaofei Yu and Jian K. Liu and Tiejun Huang},
  title = {{Neuromorphic computing paradigms enhance robustness through spiking neural networks}},
  booktitle = {Nature Communications},
  year = {2025},
  doi = {10.1038/s41467-025-65197-x},
}
Figure