BAARD: Blocking Adversarial Examples by Testing for Applicability, Reliability and Decidability

Xinglong Chang, Katharina Dost, Kaiqi Zhao, Ambra Demontis, Fabio Roli +2 more
5/2/2021
cs.LGq-bio.BM

Official code: changx03/baard (4 stars, Jupyter Notebook, PyTorch, last commit 2023-12-05).

Abstract

Adversarial defenses protect machine learning models from adversarial attacks, but are often tailored to one type of model or attack. The lack of information on unknown potential attacks makes detecting adversarial examples challenging.

Show full abstract

Additionally, attackers do not need to follow the rules made by the defender. To address this problem, we take inspiration from the concept of Applicability Domain in cheminformatics. Cheminformatics models struggle to make accurate predictions because only a limited number of compounds are known and available for training. Applicability Domain defines a domain based on the known compounds and rejects any unknown compound that falls outside the domain. Similarly, adversarial examples start as harmless inputs, but can be manipulated to evade reliable classification by moving outside the domain of the classifier. We are the first to identify the similarity between Applicability Domain and adversarial detection. Instead of focusing on unknown attacks, we focus on what is known, the training data. We propose a simple yet robust triple-stage data-driven framework that checks the input globally and locally, and confirms that they are coherent with the model's output. This framework can be applied to any classification model and is not limited to specific attacks. We demonstrate these three stages work as one unit, effectively detecting various attacks, even for a white-box scenario.

View on arXivView PDF

Code Implementations(1)

changx03/baardOfficial100%
PyTorch

A Python package for detecting adversarial evasion attacks

41Jupyter Notebook, PythonOct 19, 20222 years ago
adversarial-attacksadversarial-defensesanomaly-detectionmachine-learningpytorch

Similar Papers

Cite this paper

@article{chang2021baard,
  title  = {BAARD: Blocking Adversarial Examples by Testing for Applicability, Reliability and Decidability},
  author = {Xinglong Chang and Katharina Dost and Kaiqi Zhao and Ambra Demontis and Fabio Roli and Gill Dobbie and Jörg Wicker},
  year   = {2021},
  eprint = {2105.00495},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.00495}
}

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

Discussion