{"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/compositional-flows-for-3d-molecule-and","title":"Compositional Flows for 3D Molecule and Synthesis Pathway Co-design","arxiv_id":"2504.08051","date":"2025-04-10","proceeding":null,"authors":["Tony Shen","Seonghwan Seo","Ross Irwin","Kieran Didi","Simon Olsson","Woo Youn Kim","Martin Ester"],"abstract":"Many generative applications, such as synthesis-based 3D molecular design, involve constructing compositional objects with continuous features. Here, we introduce Compositional Generative Flows (CGFlow), a novel framework that extends flow matching to generate objects in compositional steps while modeling continuous states. Our key insight is that modeling compositional state transitions can be formulated as a straightforward extension of the flow matching interpolation process. We further build upon the theoretical foundations of generative flow networks (GFlowNets), enabling reward-guided sampling of compositional structures. We apply CGFlow to synthesizable drug design by jointly designing the molecule's synthetic pathway with its 3D binding pose. Our approach achieves state-of-the-art binding affinity on all 15 targets from the LIT-PCBA benchmark, and 5.8$\\times$ improvement in sampling efficiency compared to 2D synthesis-based baseline. To our best knowledge, our method is also the first to achieve state of-art-performance in both Vina Dock (-9.38) and AiZynth success rate (62.2\\%) on the CrossDocked benchmark.","url_abs":"https://arxiv.org/abs/2504.08051v1","url_pdf":"https://arxiv.org/pdf/2504.08051v1.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":"compositional-flows-for-3d-molecule-and","repo_url":"https://github.com/tsa87/cgflow","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"compositional-flows-for-3d-molecule-and","repo_url":"https://github.com/seonghwanseo/pharmaconet","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"drug-design","task_name":"Drug Design"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2504.08051","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2504.08051"}},"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/tsa87/cgflow","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/seonghwanseo/pharmaconet","reach":null}],"summary":{"unverified":7},"by_repo_kind":{"official":{"samples":7,"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":"45f0b9717247169e","entry":"build_trainer","repo":"tsa87/cgflow","repo_kind":"official","path":"src/cgflow/buildutil/build_trainer.py","file_url":"https://github.com/tsa87/cgflow/blob/HEAD/src/cgflow/buildutil/build_trainer.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":"45f0b9717247169e"}},{"code_sha256_prefix":"731974548566274d","entry":"calc_train_steps","repo":"tsa87/cgflow","repo_kind":"official","path":"src/cgflow/scriptutil.py","file_url":"https://github.com/tsa87/cgflow/blob/HEAD/src/cgflow/scriptutil.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":"731974548566274d"}},{"code_sha256_prefix":"491add0372343e0a","entry":"construct_protein_data_from_graph_gvp","repo":"tsa87/cgflow","repo_kind":"official","path":"src/cgflow/gvp/pocket.py","file_url":"https://github.com/tsa87/cgflow/blob/HEAD/src/cgflow/gvp/pocket.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":"491add0372343e0a"}},{"code_sha256_prefix":"bc2c4d4cb0741fd4","entry":"generate_molecules","repo":"tsa87/cgflow","repo_kind":"official","path":"src/cgflow/scriptutil.py","file_url":"https://github.com/tsa87/cgflow/blob/HEAD/src/cgflow/scriptutil.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":"bc2c4d4cb0741fd4"}},{"code_sha256_prefix":"87534a3436646b52","entry":"get_protein_edge_features_and_index","repo":"tsa87/cgflow","repo_kind":"official","path":"src/cgflow/gvp/pocket.py","file_url":"https://github.com/tsa87/cgflow/blob/HEAD/src/cgflow/gvp/pocket.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":"87534a3436646b52"}},{"code_sha256_prefix":"7b2b8e02037c1205","entry":"get_protein_feature","repo":"tsa87/cgflow","repo_kind":"official","path":"src/cgflow/gvp/pocket.py","file_url":"https://github.com/tsa87/cgflow/blob/HEAD/src/cgflow/gvp/pocket.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":"7b2b8e02037c1205"}},{"code_sha256_prefix":"1599187289b700d2","entry":"load_config","repo":"tsa87/cgflow","repo_kind":"official","path":"src/cgflow/scriptutil.py","file_url":"https://github.com/tsa87/cgflow/blob/HEAD/src/cgflow/scriptutil.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":"1599187289b700d2"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}