FT-ClipAct: Resilience Analysis of Deep Neural Networks and Improving their Fault Tolerance using Clipped Activation

Le Ha Hoang, Muhammad Abdullah Hanif, Muhammad Shafique

Abstract

As Deep Neural Networks (DNNs) are increasingly integrated into safety-critical systems, ensuring their reliability against hardware-level faults is paramount. This paper presents FT-ClipAct, a software-based technique designed to enhance DNN fault tolerance. By replacing standard activation functions with optimized clipped versions, FT-ClipAct effectively mitigates the impact of "exploding" activations caused by bit-flips in memory. Experimental results on CIFAR-10 with AlexNet and VGG-16 architectures demonstrate significant accuracy recovery in high-fault scenarios without requiring hardware redundancy or model retraining.

Introduction

The deployment of DNNs in autonomous driving and healthcare necessitates high hardware reliability. However, modern AI accelerators are susceptible to "soft errors" (radiation-induced bit-flips) and permanent manufacturing defects. While DNNs were previously considered inherently robust, recent analysis reveals a critical vulnerability: a single bit-flip in the Most Significant Bit (MSB) of a weight can transform a small parameter into an astronomical value. This leads to high-intensity faulty activations that propagate through the network, causing catastrophic accuracy loss.

Impact of hardware faults on DNN classification accuracy and the mechanism of bit-level errors in memory.

Traditional mitigation strategies, such as Triple Modular Redundancy (TMR) or Error Correction Codes (ECC), often impose prohibitive power and area overheads, particularly for edge devices. FT-ClipAct addresses this by providing a lightweight software alternative.

Methodology

The FT-ClipAct framework employs a three-stage process to bolster network resilience:

  1. Statistical Profiling: A small validation subset is processed through the fault-free network to establish the baseline maximum activation value ($ACT_{max}$) for each layer.
  2. Activation Replacement: Standard unbounded activation functions, such as ReLU, are replaced with a clipped variant: $f(x) = x$ for $0 \le x \le T$, and $f(x) = 0$ otherwise, where $T$ is the clipping threshold.

  3. Threshold Optimization: An efficient search algorithm fine-tunes the threshold $T$ for every layer to maximize the Area Under the Curve (AUC) of accuracy versus fault rate. This ensures robustness across varying levels of hardware unreliability.

Notably, this approach bypasses the need for the full training dataset or computationally expensive retraining cycles.

Key Insights and Results

The core of the vulnerability lies in the "MSB" effect, where specific bit-flips create "loud" errors that overwhelm correct signals. FT-ClipAct functions as a signal filter, "muting" neurons that exhibit activations significantly outside the profiled normal range.

Correlation between hardware fault rates, classification accuracy degradation, and the emergence of extreme activation magnitudes.

Experimental evaluations highlight the effectiveness of this approach:

  • VGG-16 Resilience: At a fault rate of $1 \times 10^{-5}$, the optimized model achieved a 68.92% improvement in accuracy over the unprotected baseline.
  • AlexNet AUC: The proposed method increased the overall fault resilience AUC by 173.32%.
  • Stability: The clipped networks maintain baseline accuracy in clean conditions and exhibit graceful degradation as fault rates increase, unlike unprotected models which often experience total failure.

Conclusion

FT-ClipAct provides a highly effective, low-overhead solution for protecting DNNs against hardware faults. By leveraging the statistical properties of activations, it provides a "safety net" that discards erroneous spikes. Future research will explore the application of this technique to diverse activation functions like Leaky-ReLU and investigate its interaction with various data quantization formats.

Summary updated

BibTeX
@inproceedings{hoang2019ft,
  author = {Le Ha Hoang and Muhammad Abdullah Hanif and Muhammad Shafique},
  title = {{FT-ClipAct: Resilience Analysis of Deep Neural Networks and Improving their Fault Tolerance using Clipped Activation}},
  booktitle = {DATE},
  year = {2019},
  doi = {10.23919/date48585.2020.9116571},
}
Figure