{"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/moldiff-addressing-the-atom-bond","title":"MolDiff: Addressing the Atom-Bond Inconsistency Problem in 3D Molecule Diffusion Generation","arxiv_id":"2305.07508","date":"2023-05-11","proceeding":null,"authors":["Xingang Peng","Jiaqi Guan","Qiang Liu","Jianzhu Ma"],"abstract":"Deep generative models have recently achieved superior performance in 3D molecule generation. Most of them first generate atoms and then add chemical bonds based on the generated atoms in a post-processing manner. However, there might be no corresponding bond solution for the temporally generated atoms as their locations are generated without considering potential bonds. We define this problem as the atom-bond inconsistency problem and claim it is the main reason for current approaches to generating unrealistic 3D molecules. To overcome this problem, we propose a new diffusion model called MolDiff which can generate atoms and bonds simultaneously while still maintaining their consistency by explicitly modeling the dependence between their relationships. We evaluated the generation ability of our proposed model and the quality of the generated molecules using criteria related to both geometry and chemical properties. The empirical studies showed that our model outperforms previous approaches, achieving a three-fold improvement in success rate and generating molecules with significantly better quality.","url_abs":"https://arxiv.org/abs/2305.07508v1","url_pdf":"https://arxiv.org/pdf/2305.07508v1.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":"moldiff-addressing-the-atom-bond","repo_url":"https://github.com/pengxingang/moldiff","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"3d-molecule-generation","task_name":"3D Molecule Generation"}],"methods":[{"method_slug":"diffusion","method_name":"Diffusion"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2305.07508","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2305.07508"}},"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/pengxingang/moldiff","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_draft_wrong":2,"ran":3,"unverified":10},"by_repo_kind":{"official":{"samples":15,"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":"b45191024f7c9733","entry":"concat_tensors_to_batch","repo":"pengxingang/moldiff","repo_kind":"official","path":"models/common.py","file_url":"https://github.com/pengxingang/moldiff/blob/HEAD/models/common.py","link_basis":"plan_row","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":"b45191024f7c9733"}},{"code_sha256_prefix":"18603a28414ef5ca","entry":"index_to_log_onehot","repo":"pengxingang/moldiff","repo_kind":"official","path":"models/diffusion.py","file_url":"https://github.com/pengxingang/moldiff/blob/HEAD/models/diffusion.py","link_basis":"plan_row","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":"18603a28414ef5ca"}},{"code_sha256_prefix":"3273bb34dd3b46b9","entry":"load_config","repo":"pengxingang/moldiff","repo_kind":"official","path":"utils/misc.py","file_url":"https://github.com/pengxingang/moldiff/blob/HEAD/utils/misc.py","link_basis":"plan_row","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":"3273bb34dd3b46b9"}},{"code_sha256_prefix":"c8e6ed243dd0c66b","entry":"split_tensor_by_batch","repo":"pengxingang/moldiff","repo_kind":"official","path":"models/common.py","file_url":"https://github.com/pengxingang/moldiff/blob/HEAD/models/common.py","link_basis":"plan_row","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":"c8e6ed243dd0c66b"}},{"code_sha256_prefix":"7c93fe70a4d7126a","entry":"split_tensor_to_segments","repo":"pengxingang/moldiff","repo_kind":"official","path":"models/common.py","file_url":"https://github.com/pengxingang/moldiff/blob/HEAD/models/common.py","link_basis":"plan_row","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":"7c93fe70a4d7126a"}},{"code_sha256_prefix":"ab8617fd28b92b3c","entry":"geom_predictor","repo":"pengxingang/moldiff","repo_kind":"official","path":"utils/edm_bond.py","file_url":"https://github.com/pengxingang/moldiff/blob/HEAD/utils/edm_bond.py","link_basis":"plan_row","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":"ab8617fd28b92b3c"}},{"code_sha256_prefix":"8472ecb13cf2144c","entry":"get_bond_order","repo":"pengxingang/moldiff","repo_kind":"official","path":"utils/edm_bond.py","file_url":"https://github.com/pengxingang/moldiff/blob/HEAD/utils/edm_bond.py","link_basis":"plan_row","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":"8472ecb13cf2144c"}},{"code_sha256_prefix":"96ba074cd96541f4","entry":"get_drug_chem","repo":"pengxingang/moldiff","repo_kind":"official","path":"utils/evaluation.py","file_url":"https://github.com/pengxingang/moldiff/blob/HEAD/utils/evaluation.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":"96ba074cd96541f4"}},{"code_sha256_prefix":"3b01835f6b41568e","entry":"get_global_3d","repo":"pengxingang/moldiff","repo_kind":"official","path":"utils/evaluation.py","file_url":"https://github.com/pengxingang/moldiff/blob/HEAD/utils/evaluation.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":"3b01835f6b41568e"}},{"code_sha256_prefix":"faa72a1daab22e92","entry":"get_logger","repo":"pengxingang/moldiff","repo_kind":"official","path":"utils/misc.py","file_url":"https://github.com/pengxingang/moldiff/blob/HEAD/utils/misc.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":"faa72a1daab22e92"}},{"code_sha256_prefix":"c715e104f5767155","entry":"load_train_config_from_ckpt","repo":"pengxingang/moldiff","repo_kind":"official","path":"utils/misc.py","file_url":"https://github.com/pengxingang/moldiff/blob/HEAD/utils/misc.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":"c715e104f5767155"}},{"code_sha256_prefix":"30f3953afd523b99","entry":"log_1_min_a","repo":"pengxingang/moldiff","repo_kind":"official","path":"models/diffusion.py","file_url":"https://github.com/pengxingang/moldiff/blob/HEAD/models/diffusion.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":"30f3953afd523b99"}},{"code_sha256_prefix":"6f1c22e4e8037949","entry":"single_bond_only","repo":"pengxingang/moldiff","repo_kind":"official","path":"utils/edm_bond.py","file_url":"https://github.com/pengxingang/moldiff/blob/HEAD/utils/edm_bond.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":"6f1c22e4e8037949"}},{"code_sha256_prefix":"0a49094d58d6a447","entry":"to_torch_const","repo":"pengxingang/moldiff","repo_kind":"official","path":"models/diffusion.py","file_url":"https://github.com/pengxingang/moldiff/blob/HEAD/models/diffusion.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":"0a49094d58d6a447"}},{"code_sha256_prefix":"5f7183207256b0a3","entry":"torchify_dict","repo":"pengxingang/moldiff","repo_kind":"official","path":"utils/data.py","file_url":"https://github.com/pengxingang/moldiff/blob/HEAD/utils/data.py","link_basis":"plan_row","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":"5f7183207256b0a3"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}