Friendly Noise against Adversarial Noise: A Powerful Defense against Data Poisoning Attacks

Tian Yu Liu, Yu Yang, Baharan Mirzasoleiman
8/14/2022
cs.CRcs.LG

Official code: tianyu139/friendly-noise (9 stars, Python, MIT, last commit 2023-07-20).

Abstract

A powerful category of (invisible) data poisoning attacks modify a subset of training examples by small adversarial perturbations to change the prediction of certain test-time data. Existing defense mechanisms are not desirable to deploy in practice, as they often either drastically harm the generalization performance, or are attack-specific, and prohibitively slow to apply.

Show full abstract

Here, we propose a simple but highly effective approach that unlike existing methods breaks various types of invisible poisoning attacks with the slightest drop in the generalization performance. We make the key observation that attacks introduce local sharp regions of high training loss, which when minimized, results in learning the adversarial perturbations and makes the attack successful. To break poisoning attacks, our key idea is to alleviate the sharp loss regions introduced by poisons. To do so, our approach comprises two components: an optimized friendly noise that is generated to maximally perturb examples without degrading the performance, and a randomly varying noise component. The combination of both components builds a very light-weight but extremely effective defense against the most powerful triggerless targeted and hidden-trigger backdoor poisoning attacks, including Gradient Matching, Bulls-eye Polytope, and Sleeper Agent. We show that our friendly noise is transferable to other architectures, and adaptive attacks cannot break our defense due to its random noise component. Our code is available at: https://github.com/tianyu139/friendly-noise

View on arXivView PDF

Code Implementations(1)

MIT

Code for Friendly Noise against Adversarial Noise: A Powerful Defense against Data Poisoning Attacks (NeurIPS 2022)

91PythonOct 11, 20223 years agoMIT

Similar Papers

Cite this paper

@article{liu2022friendly,
  title  = {Friendly Noise against Adversarial Noise: A Powerful Defense against Data Poisoning Attacks},
  author = {Tian Yu Liu and Yu Yang and Baharan Mirzasoleiman},
  year   = {2022},
  eprint = {2208.10224},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2208.10224}
}

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

Discussion