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

Weilin Lin, Li Liu, Shaokui Wei, Jianze Li, Hui Xiong
5/30/2024
cs.CRcs.CVcs.LG

No official code found. Best implementation: linweiii/TSBD (6 stars, last commit 2024-10-26).

Abstract

The security threat of backdoor attacks is a central concern for deep neural networks (DNNs). Recently, without poisoned data, unlearning models with clean data and then learning a pruning mask have contributed to backdoor defense. Additionally, vanilla fine-tuning with those clean data can help recover the lost clean accuracy. However, the behavior of clean unlearning is still under-explored, and vanilla fine-tuning unintentionally induces back the backdoor effect. In this work, we first investigate model unlearning from the perspective of weight changes and gradient norms, and find two interesting observations in the backdoored model: 1) the weight changes between poison and clean unlearning are positively correlated, making it possible for us to identify the backdoored-related neurons without using poisoned data; 2) the neurons of the backdoored model are more active (i.e., larger changes in gradient norm) than those in the clean model, suggesting the need to suppress the gradient norm during fine-tuning. Then, we propose an effective two-stage defense method. In the first stage, an efficient Neuron Weight Change (NWC)-based Backdoor Reinitialization is proposed based on observation 1). In the second stage, based on observation 2), we design an Activeness-Aware Fine-Tuning to replace the vanilla fine-tuning. Extensive experiments, involving eight backdoor attacks on three benchmark datasets, demonstrate the superior performance of our proposed method compared to recent state-of-the-art backdoor defense approaches.

View on arXivView PDF

Code Implementations(1)

linweiii/TSBDCommunity59%

[NeurIPS 2024] Unveiling and Mitigating Backdoor Vulnerabilities based on Unlearning Weight Changes and Backdoor Activeness

60PythonOct 26, 20241 years ago

Similar Papers

Cite this paper

@article{lin2024unveiling,
  title  = {Unveiling and Mitigating Backdoor Vulnerabilities based on Unlearning Weight Changes and Backdoor Activeness},
  author = {Weilin Lin and Li Liu and Shaokui Wei and Jianze Li and Hui Xiong},
  year   = {2024},
  eprint = {2405.20291},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2405.20291},
  url    = {http://arxiv.org/abs/2405.20291v1},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.20291.svg)](https://codeofpaper.com/paper/2405.20291)

Discussion