Analyzing and mitigating the impact of permanent faults on a systolic array based neural network accelerator

Jeff Jun Zhang, Tianyu Gu, Kanad Basu, Siddharth GargVTS 2018 · DOI

Introduction

As semiconductor manufacturing pushes toward smaller process nodes, the prevalence of permanent hardware faults—defects arising from fabrication issues or operational wear-and-tear—increases significantly. While Deep Neural Networks (DNNs) are frequently characterized as inherently resilient to noise, this research demonstrates that hardware accelerators, specifically those based on systolic arrays like Google’s Tensor Processing Unit (TPU), are highly vulnerable to even a minuscule number of "stuck-at" faults. This paper explores the nature of these vulnerabilities and proposes a robust mitigation strategy: Fault-Aware Pruning (FAP) and Retraining (FAP+T).

Hardware Vulnerability in Systolic Arrays

Modern DNN accelerators rely on systolic arrays to achieve high throughput. These arrays consist of a dense grid of Multiply-Accumulate (MAC) units that process data in a synchronized, wave-like fashion. In a typical systolic array, weights are loaded into the MAC units, and activations flow through them.

The architecture of a TPU-like systolic array and the internal structure of a MAC unit, highlighting the potential for bit-level faults.

The vulnerability arises because a single "stuck-at" fault in a high-order bit of a MAC unit's multiplier or adder can introduce massive numerical errors. Because the mapping between DNN weights and specific MAC units is static in these architectures, a single defect can consistently corrupt specific calculations, leading to error propagation throughout the network layers.

The Impact of Permanent Faults

The common assumption of DNN fault tolerance is challenged by the authors' findings. Even a tiny fraction of defective components can lead to a catastrophic loss in classification accuracy. For instance, in a model trained on the TIMIT dataset, just four faulty MAC units out of 64,000 (a failure rate of approximately 0.006%) caused accuracy to drop from 74% to 39%.

Classification accuracy degradation for MNIST and TIMIT datasets as the number of faulty MAC units increases.

The severity of the impact depends on the numerical significance of the fault. A "stuck-at-1" fault in a most significant bit (MSB) creates a much larger deviation than a fault in a least significant bit (LSB), effectively "poisoning" the activations that serve as inputs for subsequent layers.

Proposed Mitigation: Fault-Aware Pruning and Retraining

To address this, the researchers propose a two-stage "application-aware" approach:

  1. Fault-Aware Pruning (FAP): After fabrication, a chip is tested to create a "fault map." Since weights are statically mapped to MAC units, the system identifies weights that would be processed by faulty hardware. FAP sets these weights to zero and utilizes a hardware bypass (with ~9% area overhead) to skip the defective units.
  2. Fault-Aware Pruning + Retraining (FAP+T): To recover accuracy lost during pruning, the model undergoes a brief retraining or "calibration" phase. This allows the remaining functional weights to compensate for the pruned connections. The authors optimized this process to take only minutes (e.g., under 12 minutes for AlexNet), making it a viable one-time step during post-fabrication testing.

Key Results and Discussion

The evaluation across MNIST, TIMIT, and AlexNet benchmarks demonstrates the effectiveness of FAP+T. The technique allows chips with up to 50% defective MAC units to maintain near-baseline accuracy. For the complex AlexNet model on the PASCAL VOC2007 dataset, FAP+T limited the accuracy drop to just 8% even at a 50% fault rate, whereas FAP alone failed significantly at such high defect levels.

Crucially, this method introduces zero run-time overhead once the chip is deployed, as the "fault-awareness" is baked into the model weights and the static hardware bypass. This approach significantly improves manufacturing yield by allowing "defective" chips to be used effectively in production.

Conclusion

Permanent hardware faults pose a significant threat to the reliability of DNN accelerators. By treating hardware defects as a sparsity problem, Fault-Aware Pruning and Retraining provides a powerful, low-overhead solution to maintain high performance on faulty hardware. Future work will focus on refining scheduling policies for convolutional layers and addressing aging-related faults that develop over a chip's operational lifespan.

Summary updated

BibTeX
@inproceedings{zhang2018analyzing,
  author = {Jeff Jun Zhang and Tianyu Gu and Kanad Basu and Siddharth Garg},
  title = {{Analyzing and mitigating the impact of permanent faults on a systolic array based neural network accelerator}},
  booktitle = {VTS},
  year = {2018},
  doi = {10.1109/vts.2018.8368656},
}
Figure