{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/augmax-adversarial-composition-of-random","title":"AugMax: Adversarial Composition of Random Augmentations for Robust Training","arxiv_id":"2110.13771","date":"2021-10-26","proceeding":"NeurIPS 2021 12","authors":["Haotao Wang","Chaowei Xiao","Jean Kossaifi","Zhiding Yu","Anima Anandkumar","Zhangyang Wang"],"abstract":"Data augmentation is a simple yet effective way to improve the robustness of deep neural networks (DNNs). Diversity and hardness are two complementary dimensions of data augmentation to achieve robustness. For example, AugMix explores random compositions of a diverse set of augmentations to enhance broader coverage, while adversarial training generates adversarially hard samples to spot the weakness. Motivated by this, we propose a data augmentation framework, termed AugMax, to unify the two aspects of diversity and hardness. AugMax first randomly samples multiple augmentation operators and then learns an adversarial mixture of the selected operators. Being a stronger form of data augmentation, AugMax leads to a significantly augmented input distribution which makes model training more challenging. To solve this problem, we further design a disentangled normalization module, termed DuBIN (Dual-Batch-and-Instance Normalization), that disentangles the instance-wise feature heterogeneity arising from AugMax. Experiments show that AugMax-DuBIN leads to significantly improved out-of-distribution robustness, outperforming prior arts by 3.03%, 3.49%, 1.82% and 0.71% on CIFAR10-C, CIFAR100-C, Tiny ImageNet-C and ImageNet-C. Codes and pretrained models are available: https://github.com/VITA-Group/AugMax.","url_abs":"https://arxiv.org/abs/2110.13771v3","url_pdf":"https://arxiv.org/pdf/2110.13771v3.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"augmax-adversarial-composition-of-random","repo_url":"https://github.com/vita-group/augmax","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"data-augmentation","task_name":"Data Augmentation"},{"task_slug":"diversity","task_name":"Diversity"}],"methods":[{"method_slug":"augmix","method_name":"AugMix"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2110.13771","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2110.13771"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"deterministic:regex_extraction","url":"https://github.com/VITA-Group/AugMax","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/vita-group/augmax","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_violates":2,"ran_draft_wrong":1,"ran":1,"ran_honours":2,"unverified":13},"by_repo_kind":{"official":{"samples":19,"ran":6,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"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"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"7a93b4bf9b9553b9","entry":"auc","repo":"VITA-Group/AugMax","repo_kind":"official","path":"augmax_modules/corruptions_IN.py","file_url":"https://github.com/VITA-Group/AugMax/blob/HEAD/augmax_modules/corruptions_IN.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7a93b4bf9b9553b9"}},{"code_sha256_prefix":"466ca3cdf4524d82","entry":"clipped_zoom","repo":"VITA-Group/AugMax","repo_kind":"official","path":"augmax_modules/corruptions_cifar.py","file_url":"https://github.com/VITA-Group/AugMax/blob/HEAD/augmax_modules/corruptions_cifar.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"466ca3cdf4524d82"}},{"code_sha256_prefix":"bc8b7f1d3348c560","entry":"disk","repo":"VITA-Group/AugMax","repo_kind":"official","path":"augmax_modules/corruptions_IN.py","file_url":"https://github.com/VITA-Group/AugMax/blob/HEAD/augmax_modules/corruptions_IN.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"bc8b7f1d3348c560"}},{"code_sha256_prefix":"9f75cd937e9f1824","entry":"float_parameter","repo":"VITA-Group/AugMax","repo_kind":"official","path":"augmax_modules/augmentations.py","file_url":"https://github.com/VITA-Group/AugMax/blob/HEAD/augmax_modules/augmentations.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9f75cd937e9f1824"}},{"code_sha256_prefix":"fa762f2f1e10f2e4","entry":"int_parameter","repo":"VITA-Group/AugMax","repo_kind":"official","path":"augmax_modules/augmentations.py","file_url":"https://github.com/VITA-Group/AugMax/blob/HEAD/augmax_modules/augmentations.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fa762f2f1e10f2e4"}},{"code_sha256_prefix":"5cc8d4764ac07a35","entry":"sample_level","repo":"VITA-Group/AugMax","repo_kind":"official","path":"augmax_modules/augmentations.py","file_url":"https://github.com/VITA-Group/AugMax/blob/HEAD/augmax_modules/augmentations.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5cc8d4764ac07a35"}},{"code_sha256_prefix":"a6ab141be8091f9d","entry":"DenseNet40","repo":"VITA-Group/AugMax","repo_kind":"official","path":"models/cifar10/densenet.py","file_url":"https://github.com/VITA-Group/AugMax/blob/HEAD/models/cifar10/densenet.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a6ab141be8091f9d"}},{"code_sha256_prefix":"4bc93a5404534689","entry":"ResNet18_DuBN","repo":"VITA-Group/AugMax","repo_kind":"official","path":"models/cifar10/resnet_DuBN.py","file_url":"https://github.com/VITA-Group/AugMax/blob/HEAD/models/cifar10/resnet_DuBN.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4bc93a5404534689"}},{"code_sha256_prefix":"399deecc128b30ff","entry":"cifar_dataloaders","repo":"VITA-Group/AugMax","repo_kind":"official","path":"dataloaders/cifar10.py","file_url":"https://github.com/VITA-Group/AugMax/blob/HEAD/dataloaders/cifar10.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"399deecc128b30ff"}},{"code_sha256_prefix":"1ce701e597f22f94","entry":"cifar_random_affine_test_set","repo":"VITA-Group/AugMax","repo_kind":"official","path":"dataloaders/cifar10.py","file_url":"https://github.com/VITA-Group/AugMax/blob/HEAD/dataloaders/cifar10.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1ce701e597f22f94"}},{"code_sha256_prefix":"a71db864f98a67d9","entry":"cifar_test_augmax_loader","repo":"VITA-Group/AugMax","repo_kind":"official","path":"dataloaders/cifar10.py","file_url":"https://github.com/VITA-Group/AugMax/blob/HEAD/dataloaders/cifar10.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a71db864f98a67d9"}},{"code_sha256_prefix":"6c8d4ce53435cc7b","entry":"imagenet_c_testloader","repo":"VITA-Group/AugMax","repo_kind":"official","path":"dataloaders/imagenet.py","file_url":"https://github.com/VITA-Group/AugMax/blob/HEAD/dataloaders/imagenet.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6c8d4ce53435cc7b"}},{"code_sha256_prefix":"279e9c37b5286629","entry":"imagenet_dataloaders","repo":"VITA-Group/AugMax","repo_kind":"official","path":"dataloaders/imagenet.py","file_url":"https://github.com/VITA-Group/AugMax/blob/HEAD/dataloaders/imagenet.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"279e9c37b5286629"}},{"code_sha256_prefix":"093c4ac2177bd44a","entry":"imagenet_deepaug_dataloaders","repo":"VITA-Group/AugMax","repo_kind":"official","path":"dataloaders/imagenet.py","file_url":"https://github.com/VITA-Group/AugMax/blob/HEAD/dataloaders/imagenet.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"093c4ac2177bd44a"}},{"code_sha256_prefix":"3fe212e00cbe6fb3","entry":"plasma_fractal","repo":"VITA-Group/AugMax","repo_kind":"official","path":"augmax_modules/corruptions_IN.py","file_url":"https://github.com/VITA-Group/AugMax/blob/HEAD/augmax_modules/corruptions_IN.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3fe212e00cbe6fb3"}},{"code_sha256_prefix":"cb4092b5e3cb3af3","entry":"plasma_fractal","repo":"VITA-Group/AugMax","repo_kind":"official","path":"augmax_modules/corruptions_cifar.py","file_url":"https://github.com/VITA-Group/AugMax/blob/HEAD/augmax_modules/corruptions_cifar.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"cb4092b5e3cb3af3"}},{"code_sha256_prefix":"d1f6b22ba4d6a4c9","entry":"tiny_imagenet_c_testloader","repo":"VITA-Group/AugMax","repo_kind":"official","path":"dataloaders/tiny_imagenet.py","file_url":"https://github.com/VITA-Group/AugMax/blob/HEAD/dataloaders/tiny_imagenet.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d1f6b22ba4d6a4c9"}},{"code_sha256_prefix":"4a9f8ffb92cfb8e7","entry":"tiny_imagenet_dataloaders","repo":"VITA-Group/AugMax","repo_kind":"official","path":"dataloaders/tiny_imagenet.py","file_url":"https://github.com/VITA-Group/AugMax/blob/HEAD/dataloaders/tiny_imagenet.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4a9f8ffb92cfb8e7"}},{"code_sha256_prefix":"0678039e3a50ca28","entry":"tiny_imagenet_deepaug_dataloaders","repo":"VITA-Group/AugMax","repo_kind":"official","path":"dataloaders/tiny_imagenet.py","file_url":"https://github.com/VITA-Group/AugMax/blob/HEAD/dataloaders/tiny_imagenet.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0678039e3a50ca28"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}