Adversarial Robustness Toolbox v0.2.2

Maria-Irina Nicolae, Mathieu Sinn, Tran Ngoc Minh, Ambrish Rawat, Martin Wistuba, Valentina Zantedeschi, Ian M. Molloy, Benjamin EdwardsarXiv 2018

Introduction

Machine learning (ML) models are notoriously vulnerable to adversarial threats. Attackers can subtly modify inputs to force misclassifications (evasion attacks) or inject malicious data during training to create hidden backdoors (poisoning attacks). While the research community has produced a massive volume of novel attacks and defenses, implementations are often siloed in framework-specific codebases. This fragmentation makes it difficult for researchers to benchmark new methods and for developers to secure production systems. The Adversarial Robustness Toolbox (ART) addresses this gap by providing a standardized, framework-agnostic Python library for adversarial ML.

Modular Architecture and Methods

ART is built on a highly modular architecture designed to decouple attack and defense logic from specific ML frameworks. This is achieved through wrapper classes that standardize how models ingest data and output predictions or gradients.

The directory structure of the ART library illustrates its modular design, categorizing components into attacks, classifiers, defenses, detection, and metrics.

The library's core components include:

  • Framework-Agnostic Classifiers: ART supports nine major frameworks, including TensorFlow, Keras, PyTorch, MXNet, Scikit-learn, XGBoost, LightGBM, CatBoost, and GPy.
  • Attacks: The suite includes over 17 evasion attacks, ranging from white-box gradient methods (FGSM, PGD, Carlini & Wagner) to black-box methods (ZOO, HopSkipJump) and attacks for decision trees.
  • Defenses: Strategies are categorized into model hardening (e.g., adversarial training), data preprocessing (e.g., feature squeezing, spatial smoothing), and runtime detection.
  • Poisoning Detection: Methods like Activation Clustering analyze latent representations to identify and filter backdoor triggers in training data.
  • Metrics: ART provides tools to quantify robustness, such as Empirical Robustness, Loss Sensitivity, and the CLEVER score for estimating robustness bounds.

Key Insights

A central innovation of ART is the decoupling of attack logic from frameworks. By creating a standard Classifier base class, an attack written once can be executed against a PyTorch CNN, a Scikit-learn Random Forest, or an XGBoost pipeline seamlessly.

Furthermore, ART extends adversarial ML beyond deep learning and image classification. It supports decision trees, Gaussian processes, and tabular data, reflecting a mature view of enterprise AI security. This enables a "defense-in-depth" approach, allowing developers to compose protections across the entire ML lifecycle: filtering poisoned data at training, hardening the model during development, and deploying runtime detectors.

Conclusion

The primary achievement of ART is the unification of the adversarial ML landscape into a single, comprehensive API. By integrating numerous frameworks, attacks, and defense strategies, it provides a gold standard for robustness benchmarking. As an open-source project, ART continues to evolve through community contributions, ensuring it remains a vital tool for securing the next generation of AI systems.

Summary updated

BibTeX
@misc{nicolae2018adversarial,
  author = {Maria-Irina Nicolae and Mathieu Sinn and Tran Ngoc Minh and Ambrish Rawat and Martin Wistuba and Valentina Zantedeschi and Ian M. Molloy and Benjamin Edwards},
  title = {{Adversarial Robustness Toolbox v0.2.2}},
  year = {2018},
  eprint = {1807.01069},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1807.01069},
}
Figure