Papers › AROID: Improving Adversarial Robustness Through Online Instance-Wise Data Augmentation

AROID: Improving Adversarial Robustness Through Online Instance-Wise Data Augmentation

12 Jun 2023arXiv:2306.07197archive 2025-07-28

Lin Li, Jianing Qiu, Michael Spratling

Deep neural networks are vulnerable to adversarial examples. Adversarial training (AT) is an effective defense against adversarial examples. However, AT is prone to overfitting which degrades robustness substantially. Recently, data augmentation (DA) was shown to be effective in mitigating robust overfitting if appropriately designed and optimized for AT. This work proposes a new method to automatically learn online, instance-wise, DA policies to improve robust generalization for AT. This is the first automated DA method specific for robustness. A novel policy learning objective, consisting of Vulnerability, Affinity and Diversity, is proposed and shown to be sufficiently effective and efficient to be practical for automatic DA generation during AT. Importantly, our method dramatically reduces the cost of policy search from the 5000 hours of AutoAugment and the 412 hours of IDBH to 9 hours, making automated DA more practical to use for adversarial robustness. This allows our method to efficiently explore a large search space for a more effective DA policy and evolve the policy as training progresses. Empirically, our method is shown to outperform all competitive DA methods across various model architectures and datasets. Our DA policy reinforced vanilla AT to surpass several state-of-the-art AT methods regarding both accuracy and robustness. It can also be combined with those advanced AT methods to further boost robustness. Code and pre-trained models are available at https://github.com/TreeLLi/AROID.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2306.07197")

Code

Syntology Ran 5 of 13 code samples harvested from 1 repository linked to this paper; 8 have no recorded run. Of those that ran: 2 ran · our draft was wrong; 1 ran · fixture could not drive it; 2 ran with no contract checked.

By repository: official repository: 13 samples from 1 repository, 5 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

treelli/aroid officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 5 ran; 0 honoured the contract we drafted; 8 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · our draft was wrong
1ran · fixture could not drive it
2ran
8unverified

Licence: 0 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from treelli/aroid. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

diff_in_weights treelli/aroid/src/utils/awp.py official repository ran · our draft was wrong MIT (permissive) · 4170809219439d13 · report
input_grad treelli/aroid/src/utils/adversary.py official repository ran MIT (permissive) · b2c121009a4b58c4 · report
resize_pos_embed treelli/aroid/src/model/vit.py official repository ran MIT (permissive) · 109c74bc1997c975 · report
window_partition treelli/aroid/src/model/swin.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · 80c66c535be6f491 · report
window_reverse treelli/aroid/src/model/swin.py official repository ran · our draft was wrong MIT (permissive) · b83f31fb8b7c976a · report
checkpoint_filter_fn treelli/aroid/src/model/vit.py official repository unverified MIT (permissive) · e8dd07fc6d086c08 · report
parse_log_id_from_ck_url treelli/aroid/src/model/factory.py official repository unverified MIT (permissive) · 200044920f544f26 · report
perturb treelli/aroid/src/utils/adversary.py official repository unverified MIT (permissive) · 2ed1c4f9595c38a6 · report
pgd treelli/aroid/src/utils/adversary.py official repository unverified MIT (permissive) · 2fc76dc36847c6db · report
pixel_2_real treelli/aroid/src/config/config.py official repository unverified MIT (permissive) · 5d1ae0c45e71f173 · report
real_2_pixel treelli/aroid/src/config/config.py official repository unverified MIT (permissive) · f33bd487ae731b24 · report
upper treelli/aroid/src/config/config.py official repository unverified MIT (permissive) · c4a5928bd44f924c · report
vit_base_patch16_224 treelli/aroid/src/model/vit.py official repository unverified MIT (permissive) · 8291f5e949c143e7 · report

Tasks

Adversarial RobustnessData AugmentationDiversity

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections