Abstract
As hardware transistors continue to shrink, Deep Neural Networks (DNNs) deployed in safety-critical environments face increasing risks from hardware transient faults, such as bit-flips. These faults can lead to Silent Data Corruption (SDC), where a model produces wildly incorrect outputs without triggering system alerts. This paper presents Ranger, an automated, low-cost tool designed to enhance DNN error resilience by selectively restricting value ranges within the network's layers. By "muffling" large, error-inducing numerical deviations through clipping operations derived from training data distributions, Ranger transforms catastrophic failures into minor noise. Experimental results across eight DNN models and five datasets demonstrate that Ranger reduces SDC rates by 3x to 50x with near-zero performance overhead and no impact on baseline accuracy.
Introduction
In safety-critical applications like Autonomous Vehicles (AVs), the reliability of underlying hardware is paramount. However, modern processors are increasingly susceptible to transient faults—temporary glitches often caused by cosmic rays or thermal cycling that manifest as single bit-flips in the data path. In a DNN, a single bit-flip can cause a massive numerical spike, leading to catastrophic output errors. For instance, a steering model might suddenly predict a -46° angle instead of the correct 156°, potentially causing a collision.
Traditional fault-tolerance methods are often unsuitable for real-time AV systems. Hardware redundancy (e.g., Triple-Modular Redundancy) is power-intensive and expensive, while re-execution introduces unacceptable latency. Ranger offers a "third way": rectifying faulty outputs directly within the network's computational graph without the need for re-computation.
Methodology
Ranger operates on the principle that while DNNs are naturally resilient to small "benign" errors, they are vulnerable to "critical" faults that cause massive numerical deviations. The tool acts as a numerical filter through a four-step process:
- Profiling: A subset of training data is passed through the model to record the maximum and minimum activation values at each layer.
- Deriving Bounds: These recorded values establish "restriction bounds" that reflect the model's normal operating range, ensuring no interference with standard accuracy.
- Automated Transformation: Ranger automatically modifies the TensorFlow computational graph, inserting clipping operations (
tf.clip_by_value) after activation layers and dependent layers like MaxPool or Reshape. - Selective Restriction: By focusing on layers where errors are most likely to be amplified, Ranger clips corrupted values back into a "normal" range. This dampens the error enough for subsequent layers to process it effectively as minor noise.
Key Results
Ranger was evaluated across classification tasks (MNIST, CIFAR-10, GTSRB, ImageNet) and regression tasks for AV steering (Nvidia "Dave" and Comma.ai models).
- Significant Resilience Gains: Ranger reduced SDC rates from an average of 14.92% to 0.44% for classifiers, and from 23.76% to 2.49% for AV steering models.
- Minimal Overhead: The performance cost is negligible, averaging just 0.53% overhead in terms of floating-point operations (FLOPs).
- Zero Accuracy Trade-off: Because bounds are derived from the training distribution, the model's baseline accuracy remains unchanged when no faults are present.
- Superiority over Alternatives: Ranger outperformed prior methods, such as replacing ReLU with Tanh, by providing broader protection across the entire network graph rather than just at activation functions.
Conclusion
Ranger provides a practical and efficient solution for protecting DNNs against hardware transient faults. By leveraging the inherent monotonicity of many DNN operations and the statistical distributions of training data, it effectively prevents "error explosions" at the source. Future work includes extending Ranger to other frameworks like PyTorch and addressing the "last mile" problem by protecting final output layers through targeted hardware duplication.
Summary updated