{"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/a-direct-approach-to-robust-deep-learning-1","title":"A Direct Approach to Robust Deep Learning Using Adversarial Networks","arxiv_id":"1905.09591","date":"2019-05-23","proceeding":"ICLR 2019 5","authors":["Huaxia Wang","Chun-Nam Yu"],"abstract":"Deep neural networks have been shown to perform well in many classical machine learning problems, especially in image classification tasks. However, researchers have found that neural networks can be easily fooled, and they are surprisingly sensitive to small perturbations imperceptible to humans. Carefully crafted input images (adversarial examples) can force a well-trained neural network to provide arbitrary outputs. Including adversarial examples during training is a popular defense mechanism against adversarial attacks. In this paper we propose a new defensive mechanism under the generative adversarial network (GAN) framework. We model the adversarial noise using a generative network, trained jointly with a classification discriminative network as a minimax game. We show empirically that our adversarial network approach works well against black box attacks, with performance on par with state-of-art methods such as ensemble adversarial training and adversarial training with projected gradient descent.","url_abs":"https://arxiv.org/abs/1905.09591v1","url_pdf":"https://arxiv.org/pdf/1905.09591v1.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":"a-direct-approach-to-robust-deep-learning-1","repo_url":"https://github.com/whxbergkamp/RobustDL_GAN","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"tf","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"deep-learning","task_name":"Deep Learning"},{"task_slug":"classification","task_name":"General Classification"},{"task_slug":null,"task_name":"Generative Adversarial Network"},{"task_slug":"image-classification","task_name":"Image Classification"},{"task_slug":"image-classification","task_name":"image-classification"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1905.09591","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1905.09591"}},"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/whxbergkamp/RobustDL_GAN","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":15},"by_repo_kind":{"official":{"samples":15,"ran":0,"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":"766b5797d0bafbcf","entry":"build_test","repo":"whxbergkamp/RobustDL_GAN","repo_kind":"official","path":"cifar10/adversarial_networks/train_gan_cifar10.py","file_url":"https://github.com/whxbergkamp/RobustDL_GAN/blob/HEAD/cifar10/adversarial_networks/train_gan_cifar10.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":"766b5797d0bafbcf"}},{"code_sha256_prefix":"5dfa4b0bde710c19","entry":"build_test","repo":"whxbergkamp/RobustDL_GAN","repo_kind":"official","path":"svhn/adversarial_networks/train_gan_svhn.py","file_url":"https://github.com/whxbergkamp/RobustDL_GAN/blob/HEAD/svhn/adversarial_networks/train_gan_svhn.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":"5dfa4b0bde710c19"}},{"code_sha256_prefix":"86463d67d8e936de","entry":"build_test_G","repo":"whxbergkamp/RobustDL_GAN","repo_kind":"official","path":"cifar10/adversarial_networks/train_gan_cifar10.py","file_url":"https://github.com/whxbergkamp/RobustDL_GAN/blob/HEAD/cifar10/adversarial_networks/train_gan_cifar10.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":"86463d67d8e936de"}},{"code_sha256_prefix":"594775fbb367d5fd","entry":"build_test_G","repo":"whxbergkamp/RobustDL_GAN","repo_kind":"official","path":"svhn/adversarial_networks/train_gan_svhn.py","file_url":"https://github.com/whxbergkamp/RobustDL_GAN/blob/HEAD/svhn/adversarial_networks/train_gan_svhn.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":"594775fbb367d5fd"}},{"code_sha256_prefix":"3c85910e4305517f","entry":"build_test_fgs","repo":"whxbergkamp/RobustDL_GAN","repo_kind":"official","path":"cifar10/adversarial_networks/run_attacks_black_box_cifar10.py","file_url":"https://github.com/whxbergkamp/RobustDL_GAN/blob/HEAD/cifar10/adversarial_networks/run_attacks_black_box_cifar10.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":"3c85910e4305517f"}},{"code_sha256_prefix":"bb84d2ff0c2fca50","entry":"build_test_fgs","repo":"whxbergkamp/RobustDL_GAN","repo_kind":"official","path":"cifar10/adversarial_networks/train_eat_standard_cifar10.py","file_url":"https://github.com/whxbergkamp/RobustDL_GAN/blob/HEAD/cifar10/adversarial_networks/train_eat_standard_cifar10.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":"bb84d2ff0c2fca50"}},{"code_sha256_prefix":"b4148b33916fd982","entry":"build_test_fgs","repo":"whxbergkamp/RobustDL_GAN","repo_kind":"official","path":"cifar10/adversarial_networks/train_pgd_cifar10.py","file_url":"https://github.com/whxbergkamp/RobustDL_GAN/blob/HEAD/cifar10/adversarial_networks/train_pgd_cifar10.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":"b4148b33916fd982"}},{"code_sha256_prefix":"aba11452314b3900","entry":"create_batch","repo":"whxbergkamp/RobustDL_GAN","repo_kind":"official","path":"cifar10/adversarial_networks/inputs.py","file_url":"https://github.com/whxbergkamp/RobustDL_GAN/blob/HEAD/cifar10/adversarial_networks/inputs.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":"aba11452314b3900"}},{"code_sha256_prefix":"6424b3d06b575ff1","entry":"gen_examples_fgs","repo":"whxbergkamp/RobustDL_GAN","repo_kind":"official","path":"cifar10/adversarial_networks/gen_static_adversarial_examples.py","file_url":"https://github.com/whxbergkamp/RobustDL_GAN/blob/HEAD/cifar10/adversarial_networks/gen_static_adversarial_examples.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":"6424b3d06b575ff1"}},{"code_sha256_prefix":"0068794d5c938949","entry":"gen_examples_ll","repo":"whxbergkamp/RobustDL_GAN","repo_kind":"official","path":"cifar10/adversarial_networks/gen_static_adversarial_examples.py","file_url":"https://github.com/whxbergkamp/RobustDL_GAN/blob/HEAD/cifar10/adversarial_networks/gen_static_adversarial_examples.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":"0068794d5c938949"}},{"code_sha256_prefix":"35465850ceccfb82","entry":"gen_examples_pgd","repo":"whxbergkamp/RobustDL_GAN","repo_kind":"official","path":"cifar10/adversarial_networks/gen_static_adversarial_examples.py","file_url":"https://github.com/whxbergkamp/RobustDL_GAN/blob/HEAD/cifar10/adversarial_networks/gen_static_adversarial_examples.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":"35465850ceccfb82"}},{"code_sha256_prefix":"cbed6007d1eb22af","entry":"get_filename_queue","repo":"whxbergkamp/RobustDL_GAN","repo_kind":"official","path":"cifar10/adversarial_networks/inputs.py","file_url":"https://github.com/whxbergkamp/RobustDL_GAN/blob/HEAD/cifar10/adversarial_networks/inputs.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":"cbed6007d1eb22af"}},{"code_sha256_prefix":"2cb5908799753a36","entry":"get_input_image","repo":"whxbergkamp/RobustDL_GAN","repo_kind":"official","path":"cifar10/adversarial_networks/inputs.py","file_url":"https://github.com/whxbergkamp/RobustDL_GAN/blob/HEAD/cifar10/adversarial_networks/inputs.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":"2cb5908799753a36"}},{"code_sha256_prefix":"afb91a2794a82aa9","entry":"run_test","repo":"whxbergkamp/RobustDL_GAN","repo_kind":"official","path":"cifar10/adversarial_networks/train_gan_cifar10.py","file_url":"https://github.com/whxbergkamp/RobustDL_GAN/blob/HEAD/cifar10/adversarial_networks/train_gan_cifar10.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":"afb91a2794a82aa9"}},{"code_sha256_prefix":"e45c8e8b0a36a79e","entry":"run_test","repo":"whxbergkamp/RobustDL_GAN","repo_kind":"official","path":"svhn/adversarial_networks/train_gan_svhn.py","file_url":"https://github.com/whxbergkamp/RobustDL_GAN/blob/HEAD/svhn/adversarial_networks/train_gan_svhn.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":"e45c8e8b0a36a79e"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}