{"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/syntax-guided-procedural-synthesis-of","title":"Procedural Synthesis of Synthesizable Molecules","arxiv_id":"2409.05873","date":"2024-08-24","proceeding":null,"authors":["Michael Sun","Alston Lo","Minghao Guo","Jie Chen","Connor Coley","Wojciech Matusik"],"abstract":"Designing synthetically accessible molecules and recommending analogs to unsynthesizable molecules are important problems for accelerating molecular discovery. We reconceptualize both problems using ideas from program synthesis. Drawing inspiration from syntax-guided synthesis approaches, we decouple the syntactic skeleton from the semantics of a synthetic tree to create a bilevel framework for reasoning about the combinatorial space of synthesis pathways. Given a molecule we aim to generate analogs for, we iteratively refine its skeletal characteristics via Markov Chain Monte Carlo simulations over the space of syntactic skeletons. Given a black-box oracle to optimize, we formulate a joint design space over syntactic templates and molecular descriptors and introduce evolutionary algorithms that optimize both syntactic and semantic dimensions synergistically. Our key insight is that once the syntactic skeleton is set, we can amortize over the search complexity of deriving the program's semantics by training policies to fully utilize the fixed horizon Markov Decision Process imposed by the syntactic template. We demonstrate performance advantages of our bilevel framework for synthesizable analog generation and synthesizable molecule design. Notably, our approach offers the user explicit control over the resources required to perform synthesis and biases the design space towards simpler solutions, making it particularly promising for autonomous synthesis platforms. Code is at https://github.com/shiningsunnyday/SynthesisNet.","url_abs":"https://arxiv.org/abs/2409.05873v2","url_pdf":"https://arxiv.org/pdf/2409.05873v2.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":"syntax-guided-procedural-synthesis-of","repo_url":"https://github.com/shiningsunnyday/synthesisnet","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"evolutionary-algorithms","task_name":"Evolutionary Algorithms"},{"task_slug":"program-synthesis","task_name":"Program Synthesis"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2409.05873","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2409.05873"}},"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":"deterministic:regex_extraction","url":"https://github.com/shiningsunnyday/SynthesisNet","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/shiningsunnyday/synthesisnet","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":6,"unverified":3},"by_repo_kind":{"official":{"samples":9,"ran":6,"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":"51ec194eb1ff5206","entry":"DummyNode","repo":"shiningsunnyday/synthesisnet","repo_kind":"official","path":"src/synnet/policy/mcts.py","file_url":"https://github.com/shiningsunnyday/synthesisnet/blob/HEAD/src/synnet/policy/mcts.py","link_basis":"first_harvest_node","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":"51ec194eb1ff5206"}},{"code_sha256_prefix":"54795f57f72823c2","entry":"ce_distance","repo":"shiningsunnyday/SynthesisNet","repo_kind":"official","path":"src/synnet/encoding/distances.py","file_url":"https://github.com/shiningsunnyday/SynthesisNet/blob/HEAD/src/synnet/encoding/distances.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"54795f57f72823c2"}},{"code_sha256_prefix":"c58727efada94825","entry":"cosine_distance","repo":"shiningsunnyday/SynthesisNet","repo_kind":"official","path":"src/synnet/encoding/distances.py","file_url":"https://github.com/shiningsunnyday/SynthesisNet/blob/HEAD/src/synnet/encoding/distances.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c58727efada94825"}},{"code_sha256_prefix":"336d985166662f14","entry":"random_bitmask","repo":"shiningsunnyday/SynthesisNet","repo_kind":"official","path":"src/ga/utils.py","file_url":"https://github.com/shiningsunnyday/SynthesisNet/blob/HEAD/src/ga/utils.py","link_basis":"first_harvest_node","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":"336d985166662f14"}},{"code_sha256_prefix":"a5c50e60d2086c2b","entry":"random_boolean","repo":"shiningsunnyday/SynthesisNet","repo_kind":"official","path":"src/ga/utils.py","file_url":"https://github.com/shiningsunnyday/SynthesisNet/blob/HEAD/src/ga/utils.py","link_basis":"first_harvest_node","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":"a5c50e60d2086c2b"}},{"code_sha256_prefix":"d194a084e2ff0f5b","entry":"random_parentheses_string","repo":"shiningsunnyday/SynthesisNet","repo_kind":"official","path":"src/ga/utils.py","file_url":"https://github.com/shiningsunnyday/SynthesisNet/blob/HEAD/src/ga/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d194a084e2ff0f5b"}},{"code_sha256_prefix":"0306a6d410a9cd1a","entry":"MCTS","repo":"shiningsunnyday/synthesisnet","repo_kind":"official","path":"src/synnet/policy/mcts.py","file_url":"https://github.com/shiningsunnyday/synthesisnet/blob/HEAD/src/synnet/policy/mcts.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":"0306a6d410a9cd1a"}},{"code_sha256_prefix":"a039ae2104694a7e","entry":"MCTSNode","repo":"shiningsunnyday/synthesisnet","repo_kind":"official","path":"src/synnet/policy/mcts.py","file_url":"https://github.com/shiningsunnyday/synthesisnet/blob/HEAD/src/synnet/policy/mcts.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":"a039ae2104694a7e"}},{"code_sha256_prefix":"e812963fb7b7a8c8","entry":"gather_ptrs","repo":"shiningsunnyday/synthesisnet","repo_kind":"official","path":"src/synnet/models/gnn.py","file_url":"https://github.com/shiningsunnyday/synthesisnet/blob/HEAD/src/synnet/models/gnn.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":"e812963fb7b7a8c8"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}