NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Detection and Recovery Against Deep Neural Network Fault Injection Attacks Based on Contrastive Learning

Chenan Wang, Pu Zhao, Siyue Wang, Xue LinarXiv 2024 · DOI

Introduction

Deep Neural Networks (DNNs) are increasingly deployed in critical applications, making their security a paramount concern. While much research has focused on adversarial examples, hardware-level threats such as Fault Injection Attacks (FIAs) present a more insidious challenge. In an FIA, an attacker uses physical means—like lasers or voltage glitches—to induce bit-flips in a device's memory. These flips can degrade model accuracy or trigger specific misclassifications, often bypassing traditional software-based security measures.

The CFDR Framework

To address this, researchers have proposed the CL-based FIA Detection and Recovery (CFDR) framework. This approach leverages Contrastive Learning (CL), specifically the SimCLR method, to create a robust "digital immune system" for DNNs.

Overview of the CFDR framework using contrastive learning for feature extraction and fine-tuning for recovery.

The framework operates in three main stages:

  1. Contrastive Pre-training: The model is trained to recognize the inherent features of data by comparing augmented versions of the same image. This creates a rich representation space where the "essence" of an object is captured.
  2. Real-Time Detection: During inference, the system monitors the "contrastive loss" of incoming unlabeled data batches. A hardware fault typically causes a significant shift in internal representations, leading to a detectable spike in contrastive loss.
  3. Rapid Recovery: Upon detection, the model can be quickly re-tuned. Because the contrastive representations are highly informative, the model can often be restored to near-original accuracy using only a small amount of data—even without labels.

Experimental Evaluation

The CFDR framework was evaluated using the CIFAR-10 dataset against four sophisticated attack types:

  • Progressive Bit Search (PBS): Targets high-impact bits to maximize accuracy loss.
  • Fault Sneaking Attack (FSA) $\ell_0$ & $\ell_2$: Aims for stealthy misclassification with minimal parameter changes.
  • Gradient Descent Attack (GDA): Uses gradient information to craft parameter perturbations that force specific errors.

Key Results and Discussion

The experimental results demonstrate that CFDR is highly effective at both detecting and mitigating the impact of FIAs. Contrastive loss proved to be a sensitive proxy for model integrity, consistently signaling anomalies across all attack scenarios.

Performance of CFDR across various attack types, showing recovery accuracy and the number of epochs required.

As shown in the table above, the recovery process is remarkably efficient. For instance, in the PBS attack where accuracy dropped to 10%, CFDR restored it to approximately 88% in just a few epochs. Notably, the framework achieves high recovery rates even when using unlabeled data, which is crucial for real-world deployments where ground-truth labels may not be readily available.

Conclusion

CFDR represents a significant step forward in hardware-level DNN security. By utilizing contrastive learning, it provides a label-free detection mechanism and a rapid recovery path that is feasible for edge devices. Future research will explore the scalability of this approach to larger datasets like ImageNet and its applicability to diverse neural architectures beyond ResNet.

Summary updated

BibTeX
@misc{wang2024detection,
  author = {Chenan Wang and Pu Zhao and Siyue Wang and Xue Lin},
  title = {{Detection and Recovery Against Deep Neural Network Fault Injection Attacks Based on Contrastive Learning}},
  year = {2024},
  eprint = {2401.16766},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.16766},
}
Figure