#127 · Primary category: Cybersecurity & Decryption Tools

adversarial-attacks-pytorch

adversarial-attacks deep-learning pytorch

PyTorch implementation of adversarial attacks [torchattacks]

Project last updated:06/29/24

GitHub Stars

2.2K

Forks

368

Contributors

19

License

MIT

Why we included this project

Security engineers and ML teams who need to know whether a model breaks under hostile input will get more practical use out of this than a research paper's reference implementation. It wraps the classic attack algorithms, FGSM, PGD, CW, BIM and others, in a single PyTorch-style API, so switching perturbation methods means changing one class instantiation instead of rewriting the attack loop. That is handy when you are stress-testing a deployed classifier or checking how a model behaves under a specific attack budget. Attacks can run targeted or untargeted, multiple methods can be combined into an ensemble, and you can force the model into training or eval mode for edge cases like RNNs. The ability to save and reload generated adversarial examples also makes it easy to keep reproducible test sets for robustness reporting.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category