Unlearn to Relearn Backdoors: Deferred Backdoor Functionality Attacks on Deep Learning Models

Jeongjin Shin, Sangdon ParkarXiv 2024 · DOI

Abstract

This paper introduces a novel class of backdoor attack termed Deferred Activated Backdoor Functionality (DABF). Unlike traditional backdoors that are active upon deployment, DABF remains dormant and undetectable during initial security sweeps, even when the trigger is present. The attack is only activated after the end-user fine-tunes the model on benign, local data—a common practice in industry. We present DeferBad, a two-stage training scheme that creates a fragile "unstable equilibrium" within the model. Experimental results show that DeferBad achieves near-perfect stealth during dormancy and high attack success rates (up to 94.07%) after fine-tuning, successfully bypassing state-of-the-art backdoor defenses.

Introduction: The "Sleeper Agent" Threat

Backdoor attacks typically involve injecting a malicious trigger during training that causes a model to misclassify specific inputs. However, as defense mechanisms have evolved to reverse-engineer triggers and detect anomalous output patterns, these "always-on" backdoors have become easier to spot.

Comparison of Deferred Backdoor Attacks vs. Conventional Attacks and Defenses.

The fundamental shift proposed in this work is the deferred backdoor. As shown in Figure 1, while a conventional backdoor is active and detectable during inspection, a deferred backdoor appears completely benign. It only "reawakens" once the model is deployed and updated by the user, exploiting the trust placed in fine-tuning on clean, local datasets.

Methodology: The DeferBad Attack

The authors propose DeferBad, which utilizes a two-stage training process to embed this sleeper functionality:

  1. Backdoor Injection: The model is initially trained to include a standard backdoor functionality.
  2. Backdoor Concealment (The "Unlearn" Phase): The attacker performs a localized update to "hide" the backdoor. Instead of updating the entire model, they target specific layers to create a cancellation effect. For models without Batch Normalization (BN), they update the final $k$ layers to suppress backdoor signals. For models with BN, they update the initial $k$ layers while freezing BN statistics, making the concealment highly sensitive to distribution shifts.

When a user fine-tunes this model on their own clean data, the optimization process naturally disrupts this delicate cancellation balance. The model "relearns" the suppressed backdoor functionality stored in the untouched layers, effectively activating the attack.

Comparison with Existing Attacks

DeferBad represents a significant advancement over prior "latent" or "unlearning" based attacks.

Feature comparison between DeferBad and existing backdoor methodologies.

As detailed in Table 1, DeferBad is unique in its ability to maintain normal behavior even when the trigger is present during the dormancy phase, while requiring no further intervention from the attacker to trigger activation. This makes it significantly more stealthy than conventional or latent backdoors which may still exhibit anomalous behavior under inspection.

Key Results and Defense Evasion

The effectiveness of DeferBad was evaluated on CIFAR-10 and Tiny ImageNet datasets. Key findings include:

  • Near-Perfect Stealth: During the dormancy phase, the Attack Success Rate (ASR) was negligible (0.07% – 0.60%), rendering the trigger ineffective against initial inspections.
  • High Reactivation: Post-fine-tuning, the ASR reached 94.07% on ResNet18 (CIFAR-10), proving the robustness of the "relearning" mechanism.
  • Defense Evasion: DeferBad successfully bypassed seven state-of-the-art defenses, including Neural Cleanse and STRIP. In many cases, the backdoored model's anomaly index was indistinguishable from a clean model.
  • Robustness to Shifts: The attack remained effective even when fine-tuning occurred on corrupted datasets (CIFAR10-C), suggesting the activation mechanism is tied to the optimization process itself rather than specific data distributions.

Conclusion and Limitations

DeferBad demonstrates that "unlearning" a behavior in a neural network does not necessarily delete it; it can instead be suppressed into a fragile state. While currently focused on computer vision, this research highlights a critical vulnerability in the machine learning supply chain. The primary limitation is the dependency on the user performing a model update; if the model is used strictly "as-is," the backdoor remains dormant. Future work will explore the applicability of these deferred attacks in NLP and audio domains.

Summary updated

BibTeX
@misc{shin2024unlearn,
  author = {Jeongjin Shin and Sangdon Park},
  title = {{Unlearn to Relearn Backdoors: Deferred Backdoor Functionality Attacks on Deep Learning Models}},
  year = {2024},
  eprint = {2411.14449},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.14449},
}
Figure