SoftSNN: Low-Cost Fault Tolerance for Spiking Neural Network Accelerators under Soft Errors

Rachmad Vidya Wicaksana Putra, Muhammad Abdullah Hanif, Muhammad Shafique · DOI

Abstract

Specialized hardware accelerators have been designed and employed to maximize the performance efficiency of Spiking Neural Networks (SNNs). However, such accelerators are vulnerable to transient faults (i.e., soft errors), which occur due to high-energy particle strikes and manifest as bit flips at the hardware layer. These errors can change weight values and neuron operations, leading to incorrect outputs and accuracy degradation. We propose SoftSNN, a novel methodology to mitigate soft errors in weight registers and neurons without expensive re-execution. SoftSNN employs SNN fault tolerance analysis, a Bound-and-Protect (BnP) technique, and lightweight hardware enhancements. Experimental results show that SoftSNN maintains accuracy degradation below 3% while reducing latency and energy by up to 3x and 2.3x respectively compared to traditional re-execution.

Introduction

As artificial intelligence moves toward edge applications like autonomous drones and IoT devices, hardware efficiency is paramount. Spiking Neural Networks (SNNs) are ideal for these environments due to their bio-inspired, event-based nature which minimizes power consumption. However, SNN hardware accelerators are highly susceptible to soft errors—transient faults caused by high-energy particle strikes (e.g., cosmic rays) that flip bits in memory and registers.

Figure 1: (a) SNN architecture overview and (b) the impact of soft errors where bit flips in weight registers lead to incorrect classification (e.g., 3 misclassified as 8).

In an SNN, a single bit flip can transform a weak synaptic connection into a dominant one or cause a neuron to fire uncontrollably. Traditional mitigation strategies like Triple Modular Redundancy (TMR) or re-execution incur massive overheads in latency and energy, often negating the benefits of using SNNs.

The SoftSNN Methodology

SoftSNN moves away from expensive redundancy toward a "self-healing" hardware approach through three primary contributions.

Figure 2: Overview of the SoftSNN methodology, integrating fault analysis, Bound-and-Protect techniques, and hardware enhancements.

1. SNN Fault Tolerance Analysis

The authors analyzed how bit flips impact SNN behavior, discovering that faults are asymmetrical. Bit flips that increase weight values are significantly more damaging than those that decrease them. Such "upward" flips cause neurons to become hyper-active, dominating the network's output and causing "burst spikes" that degrade accuracy.

2. Bound-and-Protect (BnP) Techniques

Leveraging the fault analysis, SoftSNN implements two key protections:

  • Weight Bounding: Synaptic weight registers are monitored. If a bit flip pushes a value beyond a "safe range" (defined by the maximum weight observed during clean training), the hardware automatically clips the value back to a predefined safe threshold.
  • Neuron Protection: The system monitors neuron "reset" logic. If a neuron's membrane potential remains above its firing threshold for multiple cycles without resetting—a clear indicator of a hardware fault—the system disables that neuron to prevent it from drowning out correct signals.

3. Hardware Support for BnP

To implement these checks efficiently, minimal circuit additions (comparators and multiplexers) are integrated into the synapse and neuron logic. To ensure the reliability of the mitigation logic itself, only these small, specific components are "radiation-hardened," keeping the overall area overhead low.

Experimental Evaluation

SoftSNN was evaluated using the MNIST and Fashion MNIST datasets across network sizes ranging from 400 to 3,600 neurons.

Key Results

Compared to traditional re-execution (TMR), SoftSNN demonstrates superior efficiency:

  • Accuracy: Even under high fault rates, SoftSNN keeps accuracy degradation below 3%, whereas unprotected networks can see accuracy drops of over 80%.
  • Efficiency: SoftSNN reduces latency by up to 3x and is 2.3x more energy-efficient than re-execution.
  • Area Overhead: Hardware modifications require only a 14-18% increase in chip area, a fraction of the 200%+ increase required for TMR.

Conclusion

SoftSNN provides a robust, low-cost framework for protecting SNN accelerators from soft errors. By focusing on mitigating "hyper-active" faults rather than correcting every bit flip, it achieves high reliability with minimal overhead. Future work includes extending these techniques to deep SNNs trained with backpropagation and evaluating performance on more complex datasets like ImageNet.

Summary updated

BibTeX
@inproceedings{putra2022softsnn,
  author = {Rachmad Vidya Wicaksana Putra and Muhammad Abdullah Hanif and Muhammad Shafique},
  title = {{SoftSNN: Low-Cost Fault Tolerance for Spiking Neural Network Accelerators under Soft Errors}},
  booktitle = {DAC},
  year = {2022},
  doi = {10.1145/3489517.3530657},
}
Figure