{"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/molgan-an-implicit-generative-model-for-small","title":"MolGAN: An implicit generative model for small molecular graphs","arxiv_id":"1805.11973","date":"2018-05-30","proceeding":null,"authors":["Nicola De Cao","Thomas Kipf"],"abstract":"Deep generative models for graph-structured data offer a new angle on the problem of chemical synthesis: by optimizing differentiable models that directly generate molecular graphs, it is possible to side-step expensive search procedures in the discrete and vast space of chemical structures. We introduce MolGAN, an implicit, likelihood-free generative model for small molecular graphs that circumvents the need for expensive graph matching procedures or node ordering heuristics of previous likelihood-based methods. Our method adapts generative adversarial networks (GANs) to operate directly on graph-structured data. We combine our approach with a reinforcement learning objective to encourage the generation of molecules with specific desired chemical properties. In experiments on the QM9 chemical database, we demonstrate that our model is capable of generating close to 100% valid compounds. MolGAN compares favorably both to recent proposals that use string-based (SMILES) representations of molecules and to a likelihood-based method that directly generates graphs, albeit being susceptible to mode collapse. Code at https://github.com/nicola-decao/MolGAN","url_abs":"https://arxiv.org/abs/1805.11973v2","url_pdf":"https://arxiv.org/pdf/1805.11973v2.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":"molgan-an-implicit-generative-model-for-small","repo_url":"https://github.com/nicola-decao/MolGAN","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"molgan-an-implicit-generative-model-for-small","repo_url":"https://github.com/CAVED123/MolGAN","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"molgan-an-implicit-generative-model-for-small","repo_url":"https://github.com/Hitoshi-Nakanishi/MolG","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"molgan-an-implicit-generative-model-for-small","repo_url":"https://github.com/MiloszGrabski/DeepChem_MolGAN","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"molgan-an-implicit-generative-model-for-small","repo_url":"https://github.com/MiloszGrabski/MolGAN-TF2-","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"molgan-an-implicit-generative-model-for-small","repo_url":"https://github.com/YilongJu/MolGAN","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"molgan-an-implicit-generative-model-for-small","repo_url":"https://github.com/ZhenyueQin/Implementation-MolGAN-PyTorch","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}},{"paper_slug":"molgan-an-implicit-generative-model-for-small","repo_url":"https://github.com/jundeli/quantum-gan","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"unanswered"}},{"paper_slug":"molgan-an-implicit-generative-model-for-small","repo_url":"https://github.com/susanzhang233/mollykill","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"molgan-an-implicit-generative-model-for-small","repo_url":"https://github.com/yongqyu/MolGAN-pytorch","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}},{"paper_slug":"molgan-an-implicit-generative-model-for-small","repo_url":"https://github.com/ziyaoli/molgan-without-mode-collapse","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":null}],"tasks":[{"task_slug":"graph-matching","task_name":"Graph Matching"},{"task_slug":"reinforcement-learning","task_name":"Reinforcement Learning"},{"task_slug":null,"task_name":"valid"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/1805.11973","atlas_url":"https://app.syntology.ai/?focus=1805.11973","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1805.11973"}},"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/susanzhang233/mollykill","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/jundeli/quantum-gan","reach":{"status":"unanswered"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/MiloszGrabski/MolGAN-TF2-","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/CAVED123/MolGAN","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/yongqyu/MolGAN-pytorch","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/MiloszGrabski/DeepChem_MolGAN","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/ziyaoli/molgan-without-mode-collapse","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/YilongJu/MolGAN","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/nicola-decao/MolGAN","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/ZhenyueQin/Implementation-MolGAN-PyTorch","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/Hitoshi-Nakanishi/MolG","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_draft_wrong":2,"ran_violates":1,"unverified":14},"by_repo_kind":{"official":{"samples":4,"ran":0,"repositories":1},"listed":{"samples":12,"ran":2,"repositories":3}},"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":1,"samples":[{"code_sha256_prefix":"4751e79194e42ab7","entry":"eval_fetch_dict","repo":"ziyaoli/molgan-without-mode-collapse","repo_kind":"listed","path":"conditional_train.py","file_url":"https://github.com/ziyaoli/molgan-without-mode-collapse/blob/HEAD/conditional_train.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4751e79194e42ab7"}},{"code_sha256_prefix":"e5b1aff86a339d0e","entry":"str2bool","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"e5b1aff86a339d0e"}},{"code_sha256_prefix":"6c4a4ee278fb09b6","entry":"train_fetch_dict","repo":"ziyaoli/molgan-without-mode-collapse","repo_kind":"listed","path":"conditional_train.py","file_url":"https://github.com/ziyaoli/molgan-without-mode-collapse/blob/HEAD/conditional_train.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6c4a4ee278fb09b6"}},{"code_sha256_prefix":"91155fd4be90c032","entry":"featurizer","repo":"susanzhang233/mollykill","repo_kind":"listed","path":".ipynb_checkpoints/Model-checkpoint.py","file_url":"https://github.com/susanzhang233/mollykill/blob/HEAD/.ipynb_checkpoints/Model-checkpoint.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":"91155fd4be90c032"}},{"code_sha256_prefix":"089421926148ece7","entry":"get_discriminator_loss","repo":"susanzhang233/mollykill","repo_kind":"listed","path":".ipynb_checkpoints/Model-checkpoint.py","file_url":"https://github.com/susanzhang233/mollykill/blob/HEAD/.ipynb_checkpoints/Model-checkpoint.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":"089421926148ece7"}},{"code_sha256_prefix":"cba32455d553155e","entry":"graph_aggregation_layer","repo":"nicola-decao/MolGAN","repo_kind":"official","path":"utils/layers.py","file_url":"https://github.com/nicola-decao/MolGAN/blob/HEAD/utils/layers.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":"cba32455d553155e"}},{"code_sha256_prefix":"198708a9785288c8","entry":"graph_aggregation_layer","repo":"Hitoshi-Nakanishi/MolG","repo_kind":"listed","path":"utils/layers.py","file_url":"https://github.com/Hitoshi-Nakanishi/MolG/blob/HEAD/utils/layers.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":"198708a9785288c8"}},{"code_sha256_prefix":"339c34af2538c4aa","entry":"graph_convolution_layer","repo":"nicola-decao/MolGAN","repo_kind":"official","path":"utils/layers.py","file_url":"https://github.com/nicola-decao/MolGAN/blob/HEAD/utils/layers.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":"339c34af2538c4aa"}},{"code_sha256_prefix":"3a46aafb81747431","entry":"graph_convolution_layer","repo":"Hitoshi-Nakanishi/MolG","repo_kind":"listed","path":"utils/layers.py","file_url":"https://github.com/Hitoshi-Nakanishi/MolG/blob/HEAD/utils/layers.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":"3a46aafb81747431"}},{"code_sha256_prefix":"fa7fc00af67fb111","entry":"make_discriminator","repo":"susanzhang233/mollykill","repo_kind":"listed","path":"model.py","file_url":"https://github.com/susanzhang233/mollykill/blob/HEAD/model.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":"fa7fc00af67fb111"}},{"code_sha256_prefix":"28456bcdecee57be","entry":"make_discriminator","repo":"susanzhang233/mollykill","repo_kind":"listed","path":".ipynb_checkpoints/Model-checkpoint.py","file_url":"https://github.com/susanzhang233/mollykill/blob/HEAD/.ipynb_checkpoints/Model-checkpoint.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":"28456bcdecee57be"}},{"code_sha256_prefix":"85331fc06ba0199f","entry":"make_discriminator","repo":"susanzhang233/mollykill","repo_kind":"listed","path":".ipynb_checkpoints/model_v1-checkpoint.py","file_url":"https://github.com/susanzhang233/mollykill/blob/HEAD/.ipynb_checkpoints/model_v1-checkpoint.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":"85331fc06ba0199f"}},{"code_sha256_prefix":"8e964e3d882c3bb9","entry":"multi_dense_layers","repo":"nicola-decao/MolGAN","repo_kind":"official","path":"utils/layers.py","file_url":"https://github.com/nicola-decao/MolGAN/blob/HEAD/utils/layers.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":"8e964e3d882c3bb9"}},{"code_sha256_prefix":"7f7503e7167ce718","entry":"multi_dense_layers","repo":"Hitoshi-Nakanishi/MolG","repo_kind":"listed","path":"utils/layers.py","file_url":"https://github.com/Hitoshi-Nakanishi/MolG/blob/HEAD/utils/layers.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":"7f7503e7167ce718"}},{"code_sha256_prefix":"e457edf9de530e0b","entry":"samples","repo":"nicola-decao/MolGAN","repo_kind":"official","path":"utils/utils.py","file_url":"https://github.com/nicola-decao/MolGAN/blob/HEAD/utils/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":"e457edf9de530e0b"}},{"code_sha256_prefix":"c5f9c6243cb40a93","entry":"train_feed_dict","repo":"ziyaoli/molgan-without-mode-collapse","repo_kind":"listed","path":"conditional_train.py","file_url":"https://github.com/ziyaoli/molgan-without-mode-collapse/blob/HEAD/conditional_train.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":"c5f9c6243cb40a93"}},{"code_sha256_prefix":"4993344be5da8236","entry":"train_feed_dict","repo":"ziyaoli/molgan-without-mode-collapse","repo_kind":"listed","path":"molgan_train.py","file_url":"https://github.com/ziyaoli/molgan-without-mode-collapse/blob/HEAD/molgan_train.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":"4993344be5da8236"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}