{"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/deeprobust-a-pytorch-library-for-adversarial","title":"DeepRobust: A PyTorch Library for Adversarial Attacks and Defenses","arxiv_id":"2005.06149","date":"2020-05-13","proceeding":null,"authors":["Ya-Xin Li","Wei Jin","Han Xu","Jiliang Tang"],"abstract":"DeepRobust is a PyTorch adversarial learning library which aims to build a comprehensive and easy-to-use platform to foster this research field. It currently contains more than 10 attack algorithms and 8 defense algorithms in image domain and 9 attack algorithms and 4 defense algorithms in graph domain, under a variety of deep learning architectures. In this manual, we introduce the main contents of DeepRobust with detailed instructions. The library is kept updated and can be found at https://github.com/DSE-MSU/DeepRobust.","url_abs":"https://arxiv.org/abs/2005.06149v1","url_pdf":"https://arxiv.org/pdf/2005.06149v1.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":"deeprobust-a-pytorch-library-for-adversarial","repo_url":"https://github.com/DSE-MSU/DeepRobust","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"deeprobust-a-pytorch-library-for-adversarial","repo_url":"https://github.com/I-am-Bot/DeepRobust","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"deeprobust-a-pytorch-library-for-adversarial","repo_url":"https://github.com/I-am-Bot/RobustTorch","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2005.06149","atlas_url":"https://app.syntology.ai/?focus=2005.06149","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2005.06149"}},"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/DSE-MSU/DeepRobust","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/I-am-Bot/DeepRobust","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/I-am-Bot/RobustTorch","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":4,"ran_fixture":1,"ran_draft_wrong":1,"unverified":4},"by_repo_kind":{"official":{"samples":1,"ran":1,"repositories":1},"listed":{"samples":9,"ran":5,"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":"e76a55dd6370c052","entry":"connected_after","repo":"I-am-Bot/DeepRobust","repo_kind":"listed","path":"deeprobust/graph/targeted_attack/nettack.py","file_url":"https://github.com/I-am-Bot/DeepRobust/blob/HEAD/deeprobust/graph/targeted_attack/nettack.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":"e76a55dd6370c052"}},{"code_sha256_prefix":"834ca5c476a3f197","entry":"encode_onehot","repo":"I-am-Bot/DeepRobust","repo_kind":"listed","path":"deeprobust/graph/utils.py","file_url":"https://github.com/I-am-Bot/DeepRobust/blob/HEAD/deeprobust/graph/utils.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":"834ca5c476a3f197"}},{"code_sha256_prefix":"584a4ebd7ec447c3","entry":"filter_singletons","repo":"I-am-Bot/DeepRobust","repo_kind":"listed","path":"deeprobust/graph/targeted_attack/nettack.py","file_url":"https://github.com/I-am-Bot/DeepRobust/blob/HEAD/deeprobust/graph/targeted_attack/nettack.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":"584a4ebd7ec447c3"}},{"code_sha256_prefix":"1007eb388147d7c5","entry":"preprocess","repo":"I-am-Bot/DeepRobust","repo_kind":"listed","path":"deeprobust/graph/utils.py","file_url":"https://github.com/I-am-Bot/DeepRobust/blob/HEAD/deeprobust/graph/utils.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":"1007eb388147d7c5"}},{"code_sha256_prefix":"f800c8aa4f28200b","entry":"proj_lp","repo":"DSE-MSU/DeepRobust","repo_kind":"official","path":"deeprobust/image/attack/Universal.py","file_url":"https://github.com/DSE-MSU/DeepRobust/blob/HEAD/deeprobust/image/attack/Universal.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f800c8aa4f28200b"}},{"code_sha256_prefix":"edde8b8b03e59989","entry":"tensor2onehot","repo":"I-am-Bot/DeepRobust","repo_kind":"listed","path":"deeprobust/graph/utils.py","file_url":"https://github.com/I-am-Bot/DeepRobust/blob/HEAD/deeprobust/graph/utils.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"edde8b8b03e59989"}},{"code_sha256_prefix":"301bb3fd39ebe688","entry":"compute_new_a_hat_uv","repo":"I-am-Bot/DeepRobust","repo_kind":"listed","path":"deeprobust/graph/targeted_attack/nettack.py","file_url":"https://github.com/I-am-Bot/DeepRobust/blob/HEAD/deeprobust/graph/targeted_attack/nettack.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":"301bb3fd39ebe688"}},{"code_sha256_prefix":"3a260a14cb5e6796","entry":"generate_dataloader","repo":"I-am-Bot/DeepRobust","repo_kind":"listed","path":"deeprobust/image/evaluation_attack.py","file_url":"https://github.com/I-am-Bot/DeepRobust/blob/HEAD/deeprobust/image/evaluation_attack.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":"3a260a14cb5e6796"}},{"code_sha256_prefix":"055d12d90bb8de9b","entry":"load_net","repo":"I-am-Bot/DeepRobust","repo_kind":"listed","path":"deeprobust/image/evaluation_attack.py","file_url":"https://github.com/I-am-Bot/DeepRobust/blob/HEAD/deeprobust/image/evaluation_attack.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":"055d12d90bb8de9b"}},{"code_sha256_prefix":"b206a8df7d4cb8c5","entry":"node_greedy_actions","repo":"I-am-Bot/DeepRobust","repo_kind":"listed","path":"deeprobust/graph/rl/nipa_q_net_node.py","file_url":"https://github.com/I-am-Bot/DeepRobust/blob/HEAD/deeprobust/graph/rl/nipa_q_net_node.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":"b206a8df7d4cb8c5"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}