Defending Against Transfer Attacks From Public Models

Chawin Sitawarin, Jaewon Chang, David Huang, Wesson Altoyan, David A. WagnerarXiv 2023 · DOI

TL;DR

This paper introduces a more realistic threat model for adversarial attacks, focusing on transfer attacks from publicly available models. They propose PUBDEF, a novel defense that achieves significantly higher adversarial accuracy than state-of-the-art methods with minimal impact on clean accuracy, making it practical for real-world deployment.

What Problem Does This Paper Address?

The field of adversarial machine learning has long been concerned with defending against adversarial examples – subtly modified inputs that fool machine learning models. A dominant threat model in research assumes "white-box" access, where attackers know everything about the target model, including its weights. However, this is often unrealistic for deployed systems. The authors argue that a more practical and prevalent threat in the future will involve adversaries leveraging publicly available "surrogate" models to craft attacks that transfer to a target model. This "Transfer Attack from Public Models" (TAPM) threat model is less studied but crucial for real-world security. Current defenses often suffer from a significant drop in clean accuracy (performance on normal inputs) when improving robustness, making them impractical.

Methods

The core of the paper is the PUBDEF defense method. It's built upon a game-theoretic perspective, framing the interaction between attacker and defender as a game. PUBDEF trains a single model to be robust against a diverse set of transfer attacks originating from a curated set of public source models. The key novelty lies in:

  • TAPM Threat Model: Explicitly defining and focusing on attacks that use publicly available models as surrogates, assuming the attacker has no knowledge of the target model's weights or training data.
  • Game-Theoretic Approach: Formulating the defense as finding an optimal strategy in a game against an adversary who chooses source models and attack algorithms.
  • Heuristic Source Model Selection: Instead of training against all possible public models (computationally prohibitive), PUBDEF uses a heuristic to select a diverse subset of source models, categorized by their training methodology (normal, $l_\infty$-robust, $l_2$-robust, corruption-robust).
  • Efficient Training: PUBDEF's training is more efficient than traditional white-box adversarial training because transfer attacks can be pre-generated.

Datasets

The authors evaluate their method on three standard image classification datasets:

  • CIFAR-10
  • CIFAR-100
  • ImageNet

They also utilize a large collection of 24 public pre-trained models for each dataset, categorized into "normal" and "robust" training groups, to simulate the adversary's available resources.

Key Insights and Ideas

  • Realism Matters: The white-box threat model, while extensively studied, is less relevant than the TAPM model for many practical scenarios.
  • Diversity is Key: Training against a diverse set of source models, representing different training paradigms, is crucial for effective defense. Simply using random models is less effective.
  • Generalization is Surprising: PUBDEF shows remarkable generalization to unseen source models and attack algorithms, suggesting that transfer attacks might occupy a low-dimensional "adversarial subspace."
  • Robustness Can Be "Free": PUBDEF achieves significant adversarial robustness with a minimal drop in clean accuracy, a stark contrast to traditional adversarial training.

Key Results

  • ImageNet Performance: PUBDEF achieves 62% accuracy against the strongest transfer attack, significantly outperforming the best adversarially trained model (36%). Its clean accuracy is only 2% lower than an undefended model (78% vs. 80%).
  • CIFAR-10/100 Performance: PUBDEF provides substantial improvements in adversarial accuracy (e.g., 19.8% higher on CIFAR-10) with comparable clean accuracy to undefended models.
  • Generalization: PUBDEF loses only a small amount of robustness (1.7-7.6%) against attacks from unseen source models and algorithms, demonstrating strong generalization.
  • Training Efficiency: PUBDEF training is faster than white-box adversarial training due to pre-generated attacks.

Limitations and Future Work

  • White-Box Vulnerability: PUBDEF is not robust to white-box attacks, meaning model weights must remain secret.
  • Sophisticated Adversaries: Highly resourced adversaries might still be able to bypass the defense by training their own private surrogate models.
  • $l_p$-Norm Bounded Attacks: The defense is currently limited to $l_p$-norm bounded attacks, and broader attack strategies are not covered.
  • Future Work: The authors suggest exploring more sophisticated ensemble-based attacks and investigating the interplay between gradient regularization techniques (like those in TRS) and PUBDEF. They also highlight the need to consider broader attack strategies beyond $l_p$-norms.

Summary updated

BibTeX
@misc{sitawarin2023defending,
  author = {Chawin Sitawarin and Jaewon Chang and David Huang and Wesson Altoyan and David A. Wagner},
  title = {{Defending Against Transfer Attacks From Public Models}},
  year = {2023},
  eprint = {2310.17645},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.17645},
}
Figure