OODRobustBench: a Benchmark and Large-Scale Analysis of Adversarial Robustness under Distribution Shift

Lin Li, Yifei Wang, Chawin Sitawarin, Michael W. Spratling
2/12/2026

Official code: TreeLLi/APT (60 stars, MIT, last commit 2026-04-25). 1 more implementation below.

Abstract

Existing works have made great progress in improving adversarial robustness, but typically test their method only on data from the same distribution as the training data, i.e. in-distribution (ID) testing. As a result, it is unclear how such robustness generalizes under input distribution shifts, i.e. out-of-distribution (OOD) testing. This omission is concerning as such distribution shifts are unavoidable when methods are deployed in the wild. To address this issue we propose a benchmark named OODRobustBench to comprehensively assess OOD adversarial robustness using 23 dataset-wise shifts (i.e. naturalistic shifts in input distribution) and 6 threat-wise shifts (i.e., unforeseen adversarial threat models). OODRobustBench is used to assess 706 robust models using 60.7K adversarial evaluations. This large-scale analysis shows that: 1) adversarial robustness suffers from a severe OOD generalization issue; 2) ID robustness correlates strongly with OOD robustness in a positive linear way. The latter enables the prediction of OOD robustness from ID robustness. We then predict and verify that existing methods are unlikely to achieve high OOD robustness. Novel methods are therefore required to achieve OOD robustness beyond our prediction. To facilitate the development of these methods, we investigate a wide range of techniques and identify several promising directions. Code and models are available at: https://github.com/OODRobustBench/OODRobustBench.

View on arXivView PDF

Code Implementations(2)

MIT

OODRobustBench: a Benchmark and Large-Scale Analysis of Adversarial Robustness under Distribution Shift. ICML 2024 and ICLRW-DMLR 2024

232PythonMay 9, 20242 years agoMIT
adversarial-examplesadversarial-machine-learningout-of-distributionrobustness
TreeLLi/APTOfficial56%
MIT

One Prompt Word is Enough to Boost Adversarial Robustness for Pre-trained Vision-Language Models

605Shell, PythonFeb 27, 20245 months agoMIT

Similar Papers

Cite this paper

@article{li2026oodrobustbench,
  title  = {OODRobustBench: a Benchmark and Large-Scale Analysis of Adversarial Robustness under Distribution Shift},
  author = {Lin Li and Yifei Wang and Chawin Sitawarin and Michael W. Spratling},
  year   = {2026},
  eprint = {2310.12793},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2310.12793},
  journal = {ICML 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.12793.svg)](https://codeofpaper.com/paper/2310.12793)

Discussion