Introduction
As deep neural networks (DNNs) are increasingly deployed in safety-critical environments—ranging from autonomous vehicles to aerospace systems—their resilience to hardware-level disturbances becomes paramount. A significant threat in these environments is the occurrence of "soft errors" or transient faults, often caused by high-energy particles like neutrons from cosmic radiation. These events can trigger bit-flips in GPU hardware, leading to Silent Data Corruptions (SDCs) where the network produces an incorrect output without any system crash or error warning.
Traditional mitigation strategies, such as triple-modular redundancy (TMR) or hardware-level Error Correction Code (ECC), often impose significant penalties in terms of power consumption, latency, or hardware cost. This paper introduces DieHardNet, a software-centric approach that achieves up to 100x greater resilience to transient faults with zero inference overhead.
The DieHardNet Architecture
DieHardNet is built upon four non-intrusive modifications to standard DNN architectures and training protocols. These changes are designed to dampen error propagation and teach the network to ignore hardware-induced noise.
1. Clipped Activations (ReLU6)
Standard ReLU activation functions allow feature values to grow unbounded. A single bit-flip can transform a small value into a massive outlier, which then dominates the subsequent layers. By employing ReLU6, the network clips any value above 6.0, effectively dampening the magnitude of potential faults at the source.
2. Layer Order Inversion
In standard architectures, Batch Normalization (BN) typically follows the convolution but precedes the activation. However, BN calculates statistics across a batch, meaning a single corrupted value can "pollute" the entire feature map. DieHardNet flips this order (Conv → ReLU6 → BN), allowing the activation function to "clean" the data before it reaches the normalization layer.
3. NaN Filtering
Hardware faults frequently result in "Not a Number" (NaN) values. If left unchecked, these values propagate through the network, destroying the final prediction. DieHardNet implements a lightweight software check to zero out NaNs during the inference process.
4. Fault-Aware Training
Rather than treating faults as rare accidents, DieHardNet incorporates them into the training regime. By injecting realistic fault models (single bit-flips, corrupted rows, or block corruptions) into feature maps during training, the network learns to develop weights that are inherently robust to such noise, treating hardware glitches as a form of data augmentation.
Experimental Evaluation
The researchers evaluated DieHardNet using ResNet-44 and ResNet-56 architectures across three major benchmarks: CIFAR-10, CIFAR-100, and TinyImageNet. To validate the model under real-world conditions, the team conducted experiments at the ChipIR facility in the UK, exposing GPUs to an accelerated neutron beam equivalent to over 500,000 years of natural radiation.
Key Results
- Massive Reliability Gains: DieHardNet reduced the critical SDC rate by two orders of magnitude compared to baseline models.
- Zero Latency Penalty: Because the modifications involve reordering or replacing existing operations (like ReLU with ReLU6), there is no increase in inference time.
- Accuracy Preservation: The hardening process does not compromise performance on clean data; DieHardNet maintains accuracy levels comparable to standard models (e.g., ~92% on CIFAR-10).
- Superior to Hardware ECC: In specific high-radiation scenarios, DieHardNet's software-level robustness outperformed standard hardware-level ECC protections.
Conclusion and Future Work
DieHardNet demonstrates that deep learning models can be made "inherently robust" to hardware failures through intelligent software design. By treating the hardware-software interface as a holistic system, researchers can build AI that is capable of operating in the harshest environments on Earth and beyond. Future research will explore the applicability of these techniques to Transformer-based architectures and Large Language Models (LLMs), as well as methods for fine-tuning existing pre-trained models without requiring training from scratch.
Summary updated