{"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/metropolis-hastings-generative-adversarial","title":"Metropolis-Hastings Generative Adversarial Networks","arxiv_id":"1811.11357","date":"2018-11-28","proceeding":null,"authors":["Ryan Turner","Jane Hung","Eric Frank","Yunus Saatci","Jason Yosinski"],"abstract":"We introduce the Metropolis-Hastings generative adversarial network (MH-GAN), which combines aspects of Markov chain Monte Carlo and GANs. The MH-GAN draws samples from the distribution implicitly defined by a GAN's discriminator-generator pair, as opposed to standard GANs which draw samples from the distribution defined only by the generator. It uses the discriminator from GAN training to build a wrapper around the generator for improved sampling. With a perfect discriminator, this wrapped generator samples from the true distribution on the data exactly even when the generator is imperfect. We demonstrate the benefits of the improved generator on multiple benchmark datasets, including CIFAR-10 and CelebA, using the DCGAN, WGAN, and progressive GAN.","url_abs":"https://arxiv.org/abs/1811.11357v2","url_pdf":"https://arxiv.org/pdf/1811.11357v2.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":"metropolis-hastings-generative-adversarial","repo_url":"https://github.com/uber-research/metropolis-hastings-gans","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"metropolis-hastings-generative-adversarial","repo_url":"https://github.com/fyumoto/MHGAN","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"metropolis-hastings-generative-adversarial","repo_url":"https://github.com/nardeas/MHGAN","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":null},{"paper_slug":"metropolis-hastings-generative-adversarial","repo_url":"https://github.com/obryniarski/mh-gan-experiments","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":null,"task_name":"Generative Adversarial Network"}],"methods":[{"method_slug":"1x1-convolution","method_name":"1x1 Convolution"},{"method_slug":"batch-normalization","method_name":"Batch Normalization"},{"method_slug":"convolution","method_name":"Convolution"},{"method_slug":"dcgan","method_name":"DCGAN"},{"method_slug":"dense-connections","method_name":"Dense Connections"},{"method_slug":"local-response-normalization","method_name":"Local Response Normalization"},{"method_slug":"progan","method_name":"ProGAN"},{"method_slug":"relu","method_name":"ReLU"},{"method_slug":"wgan","method_name":"WGAN"},{"method_slug":"wgan-gp-loss","method_name":"WGAN-GP Loss"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1811.11357","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1811.11357"}},"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/uber-research/metropolis-hastings-gans","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/fyumoto/MHGAN","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/nardeas/MHGAN","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/obryniarski/mh-gan-experiments","reach":null}],"summary":{"ran_violates":1,"ran_honours":2,"ran_draft_wrong":1,"ran_fixture":1,"unverified":5},"by_repo_kind":{"official":{"samples":2,"ran":2,"repositories":1},"listed":{"samples":8,"ran":3,"repositories":2}},"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":"d08e96add8d61822","entry":"accept","repo":"obryniarski/mh-gan-experiments","repo_kind":"listed","path":"mh.py","file_url":"https://github.com/obryniarski/mh-gan-experiments/blob/HEAD/mh.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d08e96add8d61822"}},{"code_sha256_prefix":"58a53c24abcdac6c","entry":"base","repo":"uber-research/metropolis-hastings-gans","repo_kind":"official","path":"mhgan/demo_mhgan.py","file_url":"https://github.com/uber-research/metropolis-hastings-gans/blob/HEAD/mhgan/demo_mhgan.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"58a53c24abcdac6c"}},{"code_sha256_prefix":"abdcdecb75d17be4","entry":"const_dict","repo":"uber-research/metropolis-hastings-gans","repo_kind":"official","path":"mhgan/demo_mhgan.py","file_url":"https://github.com/uber-research/metropolis-hastings-gans/blob/HEAD/mhgan/demo_mhgan.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"abdcdecb75d17be4"}},{"code_sha256_prefix":"f34536b4c0da6083","entry":"gelu","repo":"fyumoto/MHGAN","repo_kind":"listed","path":"mhgan/ops.py","file_url":"https://github.com/fyumoto/MHGAN/blob/HEAD/mhgan/ops.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f34536b4c0da6083"}},{"code_sha256_prefix":"c4bd765ec147caa3","entry":"torch_accept","repo":"obryniarski/mh-gan-experiments","repo_kind":"listed","path":"mh.py","file_url":"https://github.com/obryniarski/mh-gan-experiments/blob/HEAD/mh.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c4bd765ec147caa3"}},{"code_sha256_prefix":"146fd5ba2efda0f1","entry":"create_metropolis_hastings_sampler","repo":"fyumoto/MHGAN","repo_kind":"listed","path":"mhgan/mhgraph.py","file_url":"https://github.com/fyumoto/MHGAN/blob/HEAD/mhgan/mhgraph.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":"146fd5ba2efda0f1"}},{"code_sha256_prefix":"4779d176b966d262","entry":"create_summary_helper","repo":"fyumoto/MHGAN","repo_kind":"listed","path":"helpers.py","file_url":"https://github.com/fyumoto/MHGAN/blob/HEAD/helpers.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":"4779d176b966d262"}},{"code_sha256_prefix":"cf96afe033cf5772","entry":"create_train_helper","repo":"fyumoto/MHGAN","repo_kind":"listed","path":"helpers.py","file_url":"https://github.com/fyumoto/MHGAN/blob/HEAD/helpers.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":"cf96afe033cf5772"}},{"code_sha256_prefix":"a9d6f3268215f9b4","entry":"gelu2","repo":"fyumoto/MHGAN","repo_kind":"listed","path":"mhgan/ops.py","file_url":"https://github.com/fyumoto/MHGAN/blob/HEAD/mhgan/ops.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":"a9d6f3268215f9b4"}},{"code_sha256_prefix":"b029ee84d73a4c5a","entry":"metropolis_hastings","repo":"obryniarski/mh-gan-experiments","repo_kind":"listed","path":"mh.py","file_url":"https://github.com/obryniarski/mh-gan-experiments/blob/HEAD/mh.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b029ee84d73a4c5a"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}