Introduction
As Deep Neural Networks (DNNs) are increasingly deployed in safety-critical domains such as autonomous driving and medical diagnostics, their resilience to hardware-level transient errors becomes paramount. High-energy particles can induce random bit-flips in hardware flip-flops (FFs), leading to potential system failures. Traditionally, researchers have relied on metrics like Resiliency Accuracy (RA)—the measure of accuracy degradation given a fault—to evaluate robustness. However, existing software-level tools often assume a uniform distribution of faults across all weights and activations, creating a significant gap between theoretical estimates and actual hardware behavior.
The Thales Framework
Thales addresses this discrepancy by bridging the gap between software variables and hardware reality. The framework introduces three core innovations to accurately estimate RA without requiring billions of slow RTL-level simulations.
1. Probability Transfer and Residency
Unlike software-only tools that treat every variable as an equal target, Thales analytically maps software variables to hardware FFs over time. It calculates the probability of a variable being hit based on its "residency"—the number of clock cycles it occupies a hardware register. Variables that are reused frequently or stay in registers longer are naturally larger targets for radiation.
2. Modeling Control Flip-Flops
Thales explicitly accounts for "control variables," which manage data flow within the hardware. While these FFs represent a small fraction of the total hardware, they are disproportionately critical. Corrupting a control bit often leads to immediate system crashes, a factor typically ignored by software-level fault injection tools.
3. Importance Sampling (IS-B)
Calculating RA exactly is computationally prohibitive. Thales reformulates the problem using Monte Carlo integration and introduces a Bit Position (BP) heuristic. This method samples "important" bits—such as the sign or exponent bits in floating-point representations—more frequently, achieving convergence orders of magnitude faster than uniform random sampling.
Experimental Validation and Key Insights
The authors validated Thales against a "gold standard" of over 2.6 billion RTL-level fault simulations on a systolic array accelerator. The analytical model achieved a near-perfect Pearson correlation of 0.9998 with ground-truth hardware behavior.
Several critical insights emerged from this analysis:
- The Optimism Bias: Software-level tools are often dangerously optimistic. For AlexNet, traditional tools predicted a 0.7% accuracy loss, while Thales correctly identified a much more severe 11.4% drop.
- Layer-Specific Vulnerability: Vulnerability varies by orders of magnitude across layers. Early layers often exhibit higher residency for certain variables, making them more susceptible to transient faults.
- RA-Aware Design: By integrating Thales into a Network Architecture Search (NAS) framework, the researchers successfully identified "fusion" architectures that are inherently more robust, achieving a 9.0% higher RA on average without sacrificing baseline accuracy.
Conclusion
Thales provides a rigorous and efficient methodology for evaluating the hardware-level resilience of DNNs. By accounting for hardware residency and the critical nature of control logic, it exposes the limitations of current software-level metrics. This framework paves the way for "resiliency-by-design," allowing architects to harden specific hardware components or optimize network structures to withstand the inevitable glitches of real-world hardware.
Summary updated