[Paper Review] Detection and Recovery Against Deep Neural Network Fault Injection Attacks Based on Contrastive Learning
The paper introduces CFDR, a contrastive-learning based framework for real-time FIA detection using a single unlabeled batch, plus a recovery mechanism that boosts accuracy with limited data.
Deep Neural Network (DNN) models when implemented on executing devices as the inference engines are susceptible to Fault Injection Attacks (FIAs) that manipulate model parameters to disrupt inference execution with disastrous performance. This work introduces Contrastive Learning (CL) of visual representations i.e., a self-supervised learning approach into the deep learning training and inference pipeline to implement DNN inference engines with self-resilience under FIAs. Our proposed CL based FIA Detection and Recovery (CFDR) framework features (i) real-time detection with only a single batch of testing data and (ii) fast recovery effective even with only a small amount of unlabeled testing data. Evaluated with the CIFAR-10 dataset on multiple types of FIAs, our CFDR shows promising detection and recovery effectiveness.
Motivation & Objective
- Motivate resilience of DNN inference engines against Fault Injection Attacks (FIAs) that modify model parameters.
- Propose a self-resilience approach using Contrastive Learning (CL) to enable FIA detection without labeled data.
- Develop a recovery mechanism that restores accuracy with limited labeled or unlabeled data.
- Demonstrate effectiveness on CIFAR-10 with ResNet-18 under multiple FIA types.
Proposed method
- Adopt SimCLR-style contrastive learning to train a DNN with a base encoder, projection head, and contrastive loss.
- Use the contrastive loss as a detection signal by comparing it to a reference loss from a clean model, enabling real-time FIA detection with unlabeled data.
- Trigger a recovery procedure when detection flags an FIA, with either labeled data (full two-phase training) or unlabeled data (phase (a) only).
- Apply stopping criteria for recovery based on reference losses, non-decreasing loss, or a max epoch cap to avoid overfitting.
- Evaluate detection and recovery on CIFAR-10 with ResNet-18 under PBS, FSA (l0 and l2), and GDA attacks.
Experimental results
Research questions
- RQ1Can contrastive learning loss serve as a real-time, label-free detector of fault injection attacks on DNNs?
- RQ2Is it possible to recover attacked DNN performance efficiently using only a small amount of labeled or unlabeled data?
- RQ3How does CFDR perform against different FIAs and varying numbers of perturbed parameters?
- RQ4What are the practical limits of recovery when a large portion of parameters are compromised?
Key findings
- CFDR achieves detectable separation between clean and attacked models via contrastive loss on a single batch of unlabeled data.
- Recovery via labeled data can restore accuracy close to pre-attack levels for moderately perturbed models (e.g., around 87% on CIFAR-10 with ResNet-18).
- Recovery with unlabeled data also improves accuracy but is more limited when many parameters are perturbed.
- Attack scenarios with larger parameter perturbations (e.g., 1,180,672 params) show degraded recoverability, especially for GDA and high perturbation cases.
- Detection demonstrates clear indication of FIA across PBS, FSA-l0, FSA-l2, and GDA attacks, with loss separation observed across varying attack scales.
- The framework operates without disrupting normal inference and requires only a small amount of data for effective recovery.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.