{"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/learning-black-box-attackers-with","title":"Learning Black-Box Attackers with Transferable Priors and Query Feedback","arxiv_id":"2010.11742","date":"2020-10-21","proceeding":"NeurIPS 2020 12","authors":["Jiancheng Yang","Yangzhou Jiang","Xiaoyang Huang","Bingbing Ni","Chenglong Zhao"],"abstract":"This paper addresses the challenging black-box adversarial attack problem, where only classification confidence of a victim model is available. Inspired by consistency of visual saliency between different vision models, a surrogate model is expected to improve the attack performance via transferability. By combining transferability-based and query-based black-box attack, we propose a surprisingly simple baseline approach (named SimBA++) using the surrogate model, which significantly outperforms several state-of-the-art methods. Moreover, to efficiently utilize the query feedback, we update the surrogate model in a novel learning scheme, named High-Order Gradient Approximation (HOGA). By constructing a high-order gradient computation graph, we update the surrogate model to approximate the victim model in both forward and backward pass. The SimBA++ and HOGA result in Learnable Black-Box Attack (LeBA), which surpasses previous state of the art by considerable margins: the proposed LeBA significantly reduces queries, while keeping higher attack success rates close to 100% in extensive ImageNet experiments, including attacking vision benchmarks and defensive models. Code is open source at https://github.com/TrustworthyDL/LeBA.","url_abs":"https://arxiv.org/abs/2010.11742v1","url_pdf":"https://arxiv.org/pdf/2010.11742v1.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":"learning-black-box-attackers-with","repo_url":"https://github.com/TrustworthyDL/LeBA","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"adversarial-attack","task_name":"Adversarial Attack"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2010.11742","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2010.11742"}},"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/TrustworthyDL/LeBA","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran_draft_wrong":3,"unverified":16},"by_repo_kind":{"official":{"samples":19,"ran":3,"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":"d9def42110729a85","entry":"conv1x1","repo":"TrustworthyDL/LeBA","repo_kind":"official","path":"imagenet/models/resnet.py","file_url":"https://github.com/TrustworthyDL/LeBA/blob/HEAD/imagenet/models/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":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d9def42110729a85"}},{"code_sha256_prefix":"160bb14bd76201b4","entry":"conv3x3","repo":"TrustworthyDL/LeBA","repo_kind":"official","path":"imagenet/models/resnet.py","file_url":"https://github.com/TrustworthyDL/LeBA/blob/HEAD/imagenet/models/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":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"160bb14bd76201b4"}},{"code_sha256_prefix":"eba3f5bcc6a06d36","entry":"make_layers","repo":"TrustworthyDL/LeBA","repo_kind":"official","path":"imagenet/models/vgg.py","file_url":"https://github.com/TrustworthyDL/LeBA/blob/HEAD/imagenet/models/vgg.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":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"eba3f5bcc6a06d36"}},{"code_sha256_prefix":"f930d6c782c63d61","entry":"densenet121","repo":"TrustworthyDL/LeBA","repo_kind":"official","path":"imagenet/models/densenet.py","file_url":"https://github.com/TrustworthyDL/LeBA/blob/HEAD/imagenet/models/densenet.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"f930d6c782c63d61"}},{"code_sha256_prefix":"fadea15ec7227c0d","entry":"densenet161","repo":"TrustworthyDL/LeBA","repo_kind":"official","path":"imagenet/models/densenet.py","file_url":"https://github.com/TrustworthyDL/LeBA/blob/HEAD/imagenet/models/densenet.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"fadea15ec7227c0d"}},{"code_sha256_prefix":"87e74274277809ca","entry":"densenet169","repo":"TrustworthyDL/LeBA","repo_kind":"official","path":"imagenet/models/densenet.py","file_url":"https://github.com/TrustworthyDL/LeBA/blob/HEAD/imagenet/models/densenet.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"87e74274277809ca"}},{"code_sha256_prefix":"312dffd937510c4d","entry":"distance","repo":"TrustworthyDL/LeBA","repo_kind":"official","path":"LeBA10.py","file_url":"https://github.com/TrustworthyDL/LeBA/blob/HEAD/LeBA10.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"312dffd937510c4d"}},{"code_sha256_prefix":"82c759b04549c3fd","entry":"gauss_conv","repo":"TrustworthyDL/LeBA","repo_kind":"official","path":"LeBA10.py","file_url":"https://github.com/TrustworthyDL/LeBA/blob/HEAD/LeBA10.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"82c759b04549c3fd"}},{"code_sha256_prefix":"47c30b32ece499c8","entry":"gauss_filter","repo":"TrustworthyDL/LeBA","repo_kind":"official","path":"defense/defense.py","file_url":"https://github.com/TrustworthyDL/LeBA/blob/HEAD/defense/defense.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"47c30b32ece499c8"}},{"code_sha256_prefix":"cb1ea29b5c079739","entry":"get_model","repo":"TrustworthyDL/LeBA","repo_kind":"official","path":"imagenet/get_model.py","file_url":"https://github.com/TrustworthyDL/LeBA/blob/HEAD/imagenet/get_model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"cb1ea29b5c079739"}},{"code_sha256_prefix":"5bccfafd65101cc6","entry":"gkern","repo":"TrustworthyDL/LeBA","repo_kind":"official","path":"LeBA10.py","file_url":"https://github.com/TrustworthyDL/LeBA/blob/HEAD/LeBA10.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5bccfafd65101cc6"}},{"code_sha256_prefix":"73c651617bcab7ae","entry":"inception_v3","repo":"TrustworthyDL/LeBA","repo_kind":"official","path":"imagenet/models/inception.py","file_url":"https://github.com/TrustworthyDL/LeBA/blob/HEAD/imagenet/models/inception.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"73c651617bcab7ae"}},{"code_sha256_prefix":"5619a363090f64e7","entry":"jpeg_compression_batch","repo":"TrustworthyDL/LeBA","repo_kind":"official","path":"defense/defense.py","file_url":"https://github.com/TrustworthyDL/LeBA/blob/HEAD/defense/defense.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5619a363090f64e7"}},{"code_sha256_prefix":"b741e78d5646dc5b","entry":"load_images_data","repo":"TrustworthyDL/LeBA","repo_kind":"official","path":"data_utils.py","file_url":"https://github.com/TrustworthyDL/LeBA/blob/HEAD/data_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"b741e78d5646dc5b"}},{"code_sha256_prefix":"88c8b61c9b4ccf9c","entry":"normalize","repo":"TrustworthyDL/LeBA","repo_kind":"official","path":"data_utils.py","file_url":"https://github.com/TrustworthyDL/LeBA/blob/HEAD/data_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"88c8b61c9b4ccf9c"}},{"code_sha256_prefix":"edaf98a038f23e33","entry":"padding_layer_iyswim","repo":"TrustworthyDL/LeBA","repo_kind":"official","path":"defense/defense.py","file_url":"https://github.com/TrustworthyDL/LeBA/blob/HEAD/defense/defense.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"edaf98a038f23e33"}},{"code_sha256_prefix":"8e33cb9411232a96","entry":"resnet18","repo":"TrustworthyDL/LeBA","repo_kind":"official","path":"imagenet/models/resnet.py","file_url":"https://github.com/TrustworthyDL/LeBA/blob/HEAD/imagenet/models/resnet.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"8e33cb9411232a96"}},{"code_sha256_prefix":"4e473b974953d3d3","entry":"vgg11","repo":"TrustworthyDL/LeBA","repo_kind":"official","path":"imagenet/models/vgg.py","file_url":"https://github.com/TrustworthyDL/LeBA/blob/HEAD/imagenet/models/vgg.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"4e473b974953d3d3"}},{"code_sha256_prefix":"4bafe38c1d715c07","entry":"vgg11_bn","repo":"TrustworthyDL/LeBA","repo_kind":"official","path":"imagenet/models/vgg.py","file_url":"https://github.com/TrustworthyDL/LeBA/blob/HEAD/imagenet/models/vgg.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"4bafe38c1d715c07"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}