Unveiling and Mitigating Backdoor Vulnerabilities based on Unlearning Weight Changes and Backdoor Activeness

Weilin Lin, Li Liu, Shaokui Wei, Jianze Li, Hui Xiong

Introduction

Deep Neural Networks (DNNs) are increasingly integrated into critical infrastructure, yet they remain susceptible to backdoor attacks. In such scenarios, a model performs correctly on standard inputs but is manipulated into specific misclassifications when a "trigger" is present. Defending against these attacks post-training is challenging, particularly when only a small fraction of clean data is available. This paper introduces the Two-Stage Backdoor Defense (TSBD), a framework designed to identify and neutralize backdoors by leveraging unique behavioral signatures of poisoned neurons during "unlearning" processes.

Methodology

The TSBD framework operates in two distinct stages: identification via unlearning and recovery via activeness-aware fine-tuning.

Stage 1: Neuron Weight Change (NWC)-based Reinitialization

The first stage identifies backdoor-related neurons without requiring access to poisoned samples. The researchers observed a significant positive correlation between weight changes during "clean unlearning" (maximizing loss on clean data) and "poison unlearning."

Observation 1 & 2: Correlation of weight changes and comparative neuron activeness across different attack types.

By identifying the neurons that exhibit the most substantial weight changes during clean unlearning, the defense can pinpoint potential backdoor components. TSBD then performs "Zero Reinitialization," resetting the most influential subweights of these identified neurons to zero, effectively disabling the backdoor mechanism.

Stage 2: Activeness-Aware Fine-Tuning (Aa-FT)

After reinitialization, the model's accuracy on clean data typically decreases. Standard fine-tuning to recover this accuracy often inadvertently reactivates the backdoor. To prevent this, the authors introduce a gradient-norm regulation term. This is based on the observation that neurons in backdoored models are significantly more "active"—characterized by higher gradient norms—than those in clean models.

By penalizing high gradient norms during the recovery phase, the defense suppresses the re-learning of malicious patterns while allowing the rest of the network to restore its performance on legitimate data.

Experimental Results

The TSBD method was evaluated against eight state-of-the-art backdoor attacks (e.g., BadNets, Blended, WaNet, Trojan) across three benchmark datasets: CIFAR-10, Tiny ImageNet, and GTSRB.

Key findings include:

  • Effectiveness: On CIFAR-10, TSBD reduced the average Attack Success Rate (ASR) from 97.29% to 2.18%.
  • Clean Accuracy Preservation: The defense maintained or slightly improved clean data accuracy compared to the original infected models.
  • Data Efficiency: The framework remains robust even with as little as 0.5% to 5% clean data, making it highly practical for real-world deployment.
  • Robustness against Stealthy Attacks: TSBD successfully mitigated complex attacks like WaNet and SSBA, which frequently bypass traditional pruning or fine-tuning defenses.

Conclusion

TSBD offers a surgical approach to backdoor mitigation by identifying the "fingerprints" of malicious neurons through clean data unlearning and regulating their activeness during recovery. Future work will explore data-free implementations and the potential for adaptive attacks designed to evade gradient-norm regulation.

Summary updated

BibTeX
@inproceedings{lin2024unveiling,
  author = {Weilin Lin and Li Liu and Shaokui Wei and Jianze Li and Hui Xiong},
  title = {{Unveiling and Mitigating Backdoor Vulnerabilities based on Unlearning Weight Changes and Backdoor Activeness}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=MfGRUVFtn9},
}
Figure