{"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/scaleable-input-gradient-regularization-for","title":"Scaleable input gradient regularization for adversarial robustness","arxiv_id":"1905.11468","date":"2019-05-27","proceeding":null,"authors":["Chris Finlay","Adam M. Oberman"],"abstract":"In this work we revisit gradient regularization for adversarial robustness with some new ingredients. First, we derive new per-image theoretical robustness bounds based on local gradient information. These bounds strongly motivate input gradient regularization. Second, we implement a scaleable version of input gradient regularization which avoids double backpropagation: adversarially robust ImageNet models are trained in 33 hours on four consumer grade GPUs. Finally, we show experimentally and through theoretical certification that input gradient regularization is competitive with adversarial training. Moreover we demonstrate that gradient regularization does not lead to gradient obfuscation or gradient masking.","url_abs":"https://arxiv.org/abs/1905.11468v2","url_pdf":"https://arxiv.org/pdf/1905.11468v2.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":"scaleable-input-gradient-regularization-for","repo_url":"https://github.com/cfinlay/tulip","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"adversarial-attack","task_name":"Adversarial Attack"},{"task_slug":"adversarial-defense","task_name":"Adversarial Defense"},{"task_slug":"adversarial-robustness","task_name":"Adversarial Robustness"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1905.11468","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1905.11468"}},"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":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/cfinlay/tulip","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_draft_wrong":1,"unverified":10},"by_repo_kind":{"official":{"samples":11,"ran":1,"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":"fac5364e2f53c6db","entry":"conv3x3","repo":"cfinlay/tulip","repo_kind":"official","path":"imagenet/resnet.py","file_url":"https://github.com/cfinlay/tulip/blob/HEAD/imagenet/resnet.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fac5364e2f53c6db"}},{"code_sha256_prefix":"e32f66a732e8d9f8","entry":"batch_symeigs","repo":"cfinlay/tulip","repo_kind":"official","path":"eigen.py","file_url":"https://github.com/cfinlay/tulip/blob/HEAD/eigen.py","link_basis":"first_harvest_node","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":"e32f66a732e8d9f8"}},{"code_sha256_prefix":"45cd84d58fae0ace","entry":"bnwd_optim_params","repo":"cfinlay/tulip","repo_kind":"official","path":"imagenet/experimental_utils.py","file_url":"https://github.com/cfinlay/tulip/blob/HEAD/imagenet/experimental_utils.py","link_basis":"first_harvest_node","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":"45cd84d58fae0ace"}},{"code_sha256_prefix":"27af56f88823ce93","entry":"cutout","repo":"cfinlay/tulip","repo_kind":"official","path":"cifar10/dataloader.py","file_url":"https://github.com/cfinlay/tulip/blob/HEAD/cifar10/dataloader.py","link_basis":"first_harvest_node","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":"27af56f88823ce93"}},{"code_sha256_prefix":"a3fe58841acefe94","entry":"dominant_hessian_eigs","repo":"cfinlay/tulip","repo_kind":"official","path":"eigen.py","file_url":"https://github.com/cfinlay/tulip/blob/HEAD/eigen.py","link_basis":"first_harvest_node","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":"a3fe58841acefe94"}},{"code_sha256_prefix":"008a18d16322d064","entry":"fast_collate","repo":"cfinlay/tulip","repo_kind":"official","path":"imagenet/dataloader.py","file_url":"https://github.com/cfinlay/tulip/blob/HEAD/imagenet/dataloader.py","link_basis":"first_harvest_node","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":"008a18d16322d064"}},{"code_sha256_prefix":"c3f576afeebe9300","entry":"reduce_tensor","repo":"cfinlay/tulip","repo_kind":"official","path":"imagenet/dist_utils.py","file_url":"https://github.com/cfinlay/tulip/blob/HEAD/imagenet/dist_utils.py","link_basis":"first_harvest_node","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":"c3f576afeebe9300"}},{"code_sha256_prefix":"4ccaf48d6f5f4794","entry":"resnet50","repo":"cfinlay/tulip","repo_kind":"official","path":"imagenet/resnet.py","file_url":"https://github.com/cfinlay/tulip/blob/HEAD/imagenet/resnet.py","link_basis":"first_harvest_node","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":"4ccaf48d6f5f4794"}},{"code_sha256_prefix":"6bf2a5e72258d104","entry":"smoothresnet50","repo":"cfinlay/tulip","repo_kind":"official","path":"imagenet/resnet.py","file_url":"https://github.com/cfinlay/tulip/blob/HEAD/imagenet/resnet.py","link_basis":"first_harvest_node","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":"6bf2a5e72258d104"}},{"code_sha256_prefix":"4b004ec2e72d1c3e","entry":"split_bn_params","repo":"cfinlay/tulip","repo_kind":"official","path":"imagenet/experimental_utils.py","file_url":"https://github.com/cfinlay/tulip/blob/HEAD/imagenet/experimental_utils.py","link_basis":"first_harvest_node","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":"4b004ec2e72d1c3e"}},{"code_sha256_prefix":"d06b0fe58ebe8681","entry":"sum_tensor","repo":"cfinlay/tulip","repo_kind":"official","path":"imagenet/dist_utils.py","file_url":"https://github.com/cfinlay/tulip/blob/HEAD/imagenet/dist_utils.py","link_basis":"first_harvest_node","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":"d06b0fe58ebe8681"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}