Defending Against Transfer Attacks From Public Models

Chawin Sitawarin, Jaewon Chang, David Huang, Wesson Altoyan, David A. Wagner
2/12/2026

Official code: wagner-group/pubdef (8 stars, MIT, last commit 2024-03-17).

Abstract

Adversarial attacks have been a looming and unaddressed threat in the industry. However, through a decade-long history of the robustness evaluation literature, we have learned that mounting a strong or optimal attack is challenging. It requires both machine learning and domain expertise. In other words, the white-box threat model, religiously assumed by a large majority of the past literature, is unrealistic. In this paper, we propose a new practical threat model where the adversary relies on transfer attacks through publicly available surrogate models. We argue that this setting will become the most prevalent for security-sensitive applications in the future. We evaluate the transfer attacks in this setting and propose a specialized defense method based on a game-theoretic perspective. The defenses are evaluated under 24 public models and 11 attack algorithms across three datasets (CIFAR-10, CIFAR-100, and ImageNet). Under this threat model, our defense, PubDef, outperforms the state-of-the-art white-box adversarial training by a large margin with almost no loss in the normal accuracy. For instance, on ImageNet, our defense achieves 62% accuracy under the strongest transfer attack vs only 36% of the best adversarially trained model. Its accuracy when not under attack is only 2% lower than that of an undefended model (78% vs 80%). We release our code at https://github.com/wagner-group/pubdef.

View on arXivView PDF

Code Implementations(1)

MIT

Official code for "PubDef: Defending Against Transfer Attacks From Public Models" (ICLR 2024)

83Shell, PythonOct 10, 20232 years agoMIT
adversarial-attacksadversarial-defensesadversarial-examplescifar-10cifar-100+2 more

Cite this paper

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

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

Discussion