Skip to main content

constrained-attacks is a framework to generate adversarial examples under domain specific constraints.

Project description

Constrained attacks

License: MIT arXiv

Description

Constrained attacks is a framework for constraints adversarial examples unified across multiple constraints' domain. It currently supports a large diversity of constraints (linear and non-linear). We instantiated our framework with two attacks:

  • MoEvA2: a multi-objective genetic based approach
  • C-PGD: a gradient based approach extended from PGD (cite) to support domain constraints.

To learn more, check out our paper A Unified Framework for Adversarial Attack and Defense in Constrained Feature Space.

Installation

Using pip

pip install constrained-attacks

Dependencies

constrained-attacks requires:

  • python = "~3.8"
  • numpy = "^1.22.3"
  • joblib = "^1.1.0"
  • pymoo = "^0.5.0"
  • tqdm = "^4.63.1"
  • pandas = "^1.4.1"

Additional optional requirements for C-PGD are:

  • tensorflow = "2.8"
  • adversarial-robustness-toolbox[tensorflow] = "1.10"

Examples

You can find a usage example

Citation

If you have used our framework for research purposes, you can cite our publication by:

BibTex:

@article{simonetto2021unified,
  title={A unified framework for adversarial attack and defense in constrained feature space},
  author={Simonetto, Thibault and Dyrmishi, Salijona and Ghamizi, Salah and Cordy, Maxime and Traon, Yves Le},
  journal={arXiv preprint arXiv:2112.01156},
  year={2021}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

constrained-attacks-0.1.1.tar.gz (17.5 kB view hashes)

Uploaded Source

Built Distribution

constrained_attacks-0.1.1-py3-none-any.whl (24.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page