Neural Attention Distillation: Erasing Backdoor Triggers from Deep Neural Networks

Yige Li, Xixiang Lyu, Nodens Koren, Lingjuan Lyu, Bo Li +1 more
1/15/2021
cs.LGcs.AI
distillation

Official code: bboylyg/NAD (129 stars, Python, PyTorch, last commit 2022-01-18).

Abstract

Deep neural networks (DNNs) are known vulnerable to backdoor attacks, a training time attack that injects a trigger pattern into a small proportion of training data so as to control the model's prediction at the test time. Backdoor attacks are notably dangerous since they do not affect the model's performance on clean examples, yet can fool the model to make incorrect prediction whenever the trigger pattern appears during testing.

Show full abstract

In this paper, we propose a novel defense framework Neural Attention Distillation (NAD) to erase backdoor triggers from backdoored DNNs. NAD utilizes a teacher network to guide the finetuning of the backdoored student network on a small clean subset of data such that the intermediate-layer attention of the student network aligns with that of the teacher network. The teacher network can be obtained by an independent finetuning process on the same clean subset. We empirically show, against 6 state-of-the-art backdoor attacks, NAD can effectively erase the backdoor triggers using only 5\% clean training data without causing obvious performance degradation on clean examples. Code is available in https://github.com/bboylyg/NAD.

View on arXivView PDF

Code Implementations(1)

bboylyg/NADOfficial100%
PyTorch

This is an implementation demo of the ICLR 2021 paper [Neural Attention Distillation: Erasing Backdoor Triggers from Deep Neural Networks](https://openreview.net/pdf?id=9l0K4OM-oXE) in PyTorch.

12913PythonJan 21, 20214 years ago
backdoor-attacksbackdoor-defensedeep-neural-networkserasing-backdoor-triggerspytorch

Similar Papers

Cite this paper

@article{li2021neural,
  title  = {Neural Attention Distillation: Erasing Backdoor Triggers from Deep Neural Networks},
  author = {Yige Li and Xixiang Lyu and Nodens Koren and Lingjuan Lyu and Bo Li and Xingjun Ma},
  year   = {2021},
  eprint = {2101.05930},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2101.05930}
}

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/2101.05930.svg)](https://codeofpaper.com/paper/2101.05930)

Discussion