Abstract
As Deep Neural Networks (DNNs) are increasingly integrated into safety-critical systems like autonomous vehicles, ensuring their reliability against Silent Data Corruptions (SDCs) is paramount. SDCs, which can be triggered by hardware bit-flips or environmental noise, often lead to incorrect model outputs without any internal error signals. This paper presents a lightweight, interpretable runtime monitor that detects these corruptions by tracking statistical "quantile markers" of layer activations. By feeding these markers into a simple decision tree, the proposed system achieves approximately 96% precision with a negligible computational overhead of as little as 0.3%. The approach offers a scalable and transparent alternative to existing high-overhead or black-box error detection methods.
Introduction
The transition of DNNs from research environments to safety-critical real-world applications has highlighted a significant vulnerability: Silent Data Corruption (SDC). A single bit-flip in hardware memory or subtle environmental noise can cause a network to confidently misidentify objects, posing a major liability. Existing error detection methods often fall into two categories: those that are computationally prohibitive (e.g., monitoring every neuron) and those that are opaque "black boxes" themselves (e.g., using a secondary DNN as a monitor). This research seeks a "Goldilocks" solution—a monitor that is fast enough for real-time deployment, accurate enough to catch subtle faults, and transparent enough for human engineers to interpret.
Methodology
The core of the proposed approach is a monitoring architecture based on Quantile Shift Detection. This process distills complex internal network states into manageable statistical summaries through four primary steps:
- Feature Compression: Raw 4D activation tensors are summed across feature maps to create a more manageable 2D representation.
- Quantile Extraction: The system calculates 10-percentile markers (from the 0th to the 100th percentile) for selected layers, creating a statistical "fingerprint" of the activation distribution.
- Anomaly Scoring: During a fault-free training phase, reference bounds (min/max) for these quantiles are established. At runtime, an "anomaly feature vector" is generated based on the deviation of current quantiles from these bounds.
- Interpretable Classification: These vectors are processed by a Decision Tree, providing clear "if-then" logic for every detection alarm.
Experimental Setup
The researchers evaluated their approach across several standard benchmarks to ensure broad applicability. For object detection, they utilized YOLOv3, SSD, and RetinaNet trained on the COCO and Kitti datasets. For image classification, ResNet50 and AlexNet were tested on ImageNet. Faults were simulated using PytorchAlfi for hardware bit-flips and standard torchvision transforms for input corruptions such as Gaussian noise, blur, and contrast changes.
Key Insights
A pivotal finding of this work is the distinct way different faults manifest within the network. Hardware faults typically cause "activation peak shifts," where a small number of neurons explode in value, primarily affecting the top quantiles. Conversely, input faults cause "activation bulk shifts," where many neurons shift slightly, moving the lower and middle quantiles.
Strategic placement of monitors is also crucial. The authors found that monitoring just two layers—one early in the network to catch input noise and one near the end to catch propagated hardware faults—is often sufficient for high-performance detection. This compression of millions of activation values into just a handful of features preserves the statistical "signal" of an error while drastically reducing compute requirements.
Results and Discussion
The "full" monitoring model achieved up to 97.5% precision and 99.1% recall. Even a "minimal" version using only 2-4 features maintained over 95% of its original performance. Crucially, the compute overhead for object detection models remained between 0.3% and 1.6%, saving up to 10ms of inference time compared to state-of-the-art competitors—a vital margin for high-speed autonomous systems.
Conclusion
This quantile-based monitoring approach provides an efficient and interpretable solution for DNN error detection. While the current manual search for optimal monitoring layers and the focus on CNN architectures present areas for future work, the results demonstrate a significant step toward safer and more transparent AI deployments in critical infrastructure.
Summary updated