{"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/simple-black-box-adversarial-attacks-1","title":"Simple Black-box Adversarial Attacks","arxiv_id":"1905.07121","date":"2019-05-17","proceeding":"ICLR 2019 5","authors":["Chuan Guo","Jacob R. Gardner","Yurong You","Andrew Gordon Wilson","Kilian Q. Weinberger"],"abstract":"We propose an intriguingly simple method for the construction of adversarial images in the black-box setting. In constrast to the white-box scenario, constructing black-box adversarial images has the additional constraint on query budget, and efficient attacks remain an open problem to date. With only the mild assumption of continuous-valued confidence scores, our highly query-efficient algorithm utilizes the following simple iterative principle: we randomly sample a vector from a predefined orthonormal basis and either add or subtract it to the target image. Despite its simplicity, the proposed method can be used for both untargeted and targeted attacks -- resulting in previously unprecedented query efficiency in both settings. We demonstrate the efficacy and efficiency of our algorithm on several real world settings including the Google Cloud Vision API. We argue that our proposed algorithm should serve as a strong baseline for future black-box attacks, in particular because it is extremely fast and its implementation requires less than 20 lines of PyTorch code.","url_abs":"https://arxiv.org/abs/1905.07121v2","url_pdf":"https://arxiv.org/pdf/1905.07121v2.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":"simple-black-box-adversarial-attacks-1","repo_url":"https://github.com/cg563/simple-blackbox-attack","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"simple-black-box-adversarial-attacks-1","repo_url":"https://github.com/SCLBD/BlackboxBench","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"NOASSERTION"}},{"paper_slug":"simple-black-box-adversarial-attacks-1","repo_url":"https://github.com/ermongroup/ODI","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}},{"paper_slug":"simple-black-box-adversarial-attacks-1","repo_url":"https://github.com/ermongroup/ODS","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"simple-black-box-adversarial-attacks-1","repo_url":"https://github.com/timroith/adversarialcbo","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/1905.07121","atlas_url":"https://app.syntology.ai/?focus=1905.07121","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1905.07121"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/timroith/adversarialcbo","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/ermongroup/ODS","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/cg563/simple-blackbox-attack","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/SCLBD/BlackboxBench","reach":{"status":"ok","spdx":"NOASSERTION"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/ermongroup/ODI","reach":{"status":"ok"}}],"summary":{"ran_honours":1,"ran_draft_wrong":2,"unverified":3},"by_repo_kind":{"official":{"samples":3,"ran":0,"repositories":1},"listed":{"samples":1,"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":3,"samples":[{"code_sha256_prefix":"f38ffc7add02cff2","entry":"block_order","repo":"timroith/adversarialcbo","repo_kind":"listed","path":"advcbx/attackspace/dct.py","file_url":"https://github.com/timroith/adversarialcbo/blob/HEAD/advcbx/attackspace/dct.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f38ffc7add02cff2"}},{"code_sha256_prefix":"e7def3ce17dd2577","entry":"margin_loss","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"e7def3ce17dd2577"}},{"code_sha256_prefix":"20c10282e0a610a7","entry":"margin_loss","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"20c10282e0a610a7"}},{"code_sha256_prefix":"1866726b987d144a","entry":"apply_normalization","repo":"cg563/simple-blackbox-attack","repo_kind":"official","path":"utils.py","file_url":"https://github.com/cg563/simple-blackbox-attack/blob/HEAD/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":"1866726b987d144a"}},{"code_sha256_prefix":"f802a7445e7bd99a","entry":"get_preds","repo":"cg563/simple-blackbox-attack","repo_kind":"official","path":"utils.py","file_url":"https://github.com/cg563/simple-blackbox-attack/blob/HEAD/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":"f802a7445e7bd99a"}},{"code_sha256_prefix":"2e252eb88a4f0af4","entry":"invert_normalization","repo":"cg563/simple-blackbox-attack","repo_kind":"official","path":"utils.py","file_url":"https://github.com/cg563/simple-blackbox-attack/blob/HEAD/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":"2e252eb88a4f0af4"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}