Introduction
Deep Learning models are increasingly computationally intensive, driving the demand for specialized hardware accelerators like Google’s Tensor Processing Unit (TPU). These systems typically utilize systolic arrays of Multiply-Accumulate (MAC) units to handle massive parallel workloads. To improve energy efficiency, Voltage Underscaling (VUS) is often employed, as power consumption scales quadratically with supply voltage.
However, aggressive VUS introduces significant risks. When voltage is reduced beyond a critical threshold, signals may fail to reach their destination within the required clock cycle, resulting in timing errors. Traditional Timing Error Detection and Recovery (TED) methods often stall the entire array to re-execute operations, leading to severe performance penalties. Conversely, simply ignoring errors (Timing Error Propagation or TEP) often results in catastrophic accuracy loss because timing errors frequently flip the most significant bits (MSBs). ThUnderVolt addresses these challenges by introducing a resilient architectural framework that maintains throughput while maximizing energy savings.
The ThUnderVolt Framework
ThUnderVolt introduces two primary innovations: the TE-Drop mechanism and a per-layer voltage scaling strategy.
TE-Drop: Resilience through Strategic Skipping
TE-Drop (Timing Error-Drop) is the core architectural innovation of the framework. Instead of stalling the system to recover from a timing error, TE-Drop utilizes a "shadow" latch (based on Razor flip-flop designs) to capture the correct result using a slightly delayed clock signal. To compensate for this extra time, the system "steals" the next clock cycle from the successor MAC unit in the systolic array.
As shown in the figure above, the successor operation is simply dropped. This approach is mathematically analogous to "Dropout" or "DropConnect"—regularization techniques used during training. Because DNN weights are often sparse or biased toward small values, skipping a single connection typically has a negligible impact on the final output, allowing the system to maintain a constant data flow (the "beat") without performance overhead.
Per-layer Voltage Underscaling
Recognizing that different layers in a DNN exhibit varying sensitivities to timing errors, ThUnderVolt employs a profiling algorithm to distribute a global "error budget." By identifying which layers are more robust, the framework can apply more aggressive voltage scaling to those layers, maximizing total energy reduction without crossing the threshold of accuracy collapse.
Experimental Evaluation and Results
The framework was evaluated using post-synthesis timing simulations across diverse benchmarks, including MNIST, Reuters, TIMIT, and ImageNet (AlexNet).
Key Findings:
- Energy Efficiency: ThUnderVolt achieved energy savings ranging from 34% to 57% compared to a baseline TPU-like accelerator.
- Accuracy and Resilience: These savings were achieved with less than 1% accuracy loss. While standard TEP causes models to fail at error rates as low as 0.1%, TE-Drop remains effective even at error rates exceeding 10%.
- Performance: Unlike traditional recovery methods that incur stalls, ThUnderVolt maintains full-speed operation regardless of the error rate.
- Synergy with Pruning: The framework works effectively alongside techniques like Zero-Skip, which saves energy on zero-valued inputs, while ThUnderVolt aggressively reduces energy for the remaining computations.
Conclusion and Future Work
ThUnderVolt demonstrates that hardware-level timing errors can be treated as a form of manageable noise rather than fatal system failures. By leveraging the inherent resilience of neural networks, the framework enables significant energy savings with zero performance loss. Future research may explore integrating TE-Drop logic directly into the training phase to develop models that are natively optimized for hardware-induced timing errors, as well as evaluating the framework's performance on already-compressed or pruned models.
Summary updated