{"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/gdiffretro-retrosynthesis-prediction-with","title":"GDiffRetro: Retrosynthesis Prediction with Dual Graph Enhanced Molecular Representation and Diffusion Generation","arxiv_id":"2501.08001","date":"2025-01-14","proceeding":null,"authors":["Shengyin Sun","Wenhao Yu","Yuxiang Ren","Weitao Du","Liwei Liu","Xuecang Zhang","Ying Hu","Chen Ma"],"abstract":"Retrosynthesis prediction focuses on identifying reactants capable of synthesizing a target product. Typically, the retrosynthesis prediction involves two phases: Reaction Center Identification and Reactant Generation. However, we argue that most existing methods suffer from two limitations in the two phases: (i) Existing models do not adequately capture the ``face'' information in molecular graphs for the reaction center identification. (ii) Current approaches for the reactant generation predominantly use sequence generation in a 2D space, which lacks versatility in generating reasonable distributions for completed reactive groups and overlooks molecules' inherent 3D properties. To overcome the above limitations, we propose GDiffRetro. For the reaction center identification, GDiffRetro uniquely integrates the original graph with its corresponding dual graph to represent molecular structures, which helps guide the model to focus more on the faces in the graph. For the reactant generation, GDiffRetro employs a conditional diffusion model in 3D to further transform the obtained synthon into a complete reactant. Our experimental findings reveal that GDiffRetro outperforms state-of-the-art semi-template models across various evaluative metrics.","url_abs":"https://arxiv.org/abs/2501.08001v1","url_pdf":"https://arxiv.org/pdf/2501.08001v1.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":"gdiffretro-retrosynthesis-prediction-with","repo_url":"https://github.com/sunshy-1/gdiffretro","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"retrosynthesis","task_name":"Retrosynthesis"},{"task_slug":"molecular-representation","task_name":"molecular representation"}],"methods":[{"method_slug":"diffusion","method_name":"Diffusion"},{"method_slug":"focus","method_name":"Focus"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2501.08001","atlas_url":"https://app.syntology.ai/?focus=2501.08001","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2501.08001"}},"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":"deterministic:regex_extraction","url":"https://github.com/sunshy-1/GDiffRetro","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":6},"by_repo_kind":{"official":{"samples":6,"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":"a6c6a9a4c605eb89","entry":"check_if_generated","repo":"sunshy-1/GDiffRetro","repo_kind":"official","path":"code/known_class/stage2/sample.py","file_url":"https://github.com/sunshy-1/GDiffRetro/blob/HEAD/code/known_class/stage2/sample.py","link_basis":"harvester_set","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":"a6c6a9a4c605eb89"}},{"code_sha256_prefix":"25c33b90e279b288","entry":"coord2diff","repo":"sunshy-1/GDiffRetro","repo_kind":"official","path":"code/known_class/stage2/src/egnn.py","file_url":"https://github.com/sunshy-1/GDiffRetro/blob/HEAD/code/known_class/stage2/src/egnn.py","link_basis":"harvester_set","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":"25c33b90e279b288"}},{"code_sha256_prefix":"f2d97083a5482c00","entry":"find_last_checkpoint","repo":"sunshy-1/GDiffRetro","repo_kind":"official","path":"code/known_class/stage2/train_gdiffretro.py","file_url":"https://github.com/sunshy-1/GDiffRetro/blob/HEAD/code/known_class/stage2/train_gdiffretro.py","link_basis":"harvester_set","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":"f2d97083a5482c00"}},{"code_sha256_prefix":"087751a4b93d7ac4","entry":"get_activation","repo":"sunshy-1/GDiffRetro","repo_kind":"official","path":"code/known_class/stage2/src/lightning.py","file_url":"https://github.com/sunshy-1/GDiffRetro/blob/HEAD/code/known_class/stage2/src/lightning.py","link_basis":"harvester_set","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":"087751a4b93d7ac4"}},{"code_sha256_prefix":"df7905f72eeb0cfa","entry":"get_one_hot","repo":"sunshy-1/GDiffRetro","repo_kind":"official","path":"code/known_class/stage2/src/datasets.py","file_url":"https://github.com/sunshy-1/GDiffRetro/blob/HEAD/code/known_class/stage2/src/datasets.py","link_basis":"harvester_set","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":"df7905f72eeb0cfa"}},{"code_sha256_prefix":"0833f5f54b9e99ed","entry":"unsorted_segment_sum","repo":"sunshy-1/GDiffRetro","repo_kind":"official","path":"code/known_class/stage2/src/egnn.py","file_url":"https://github.com/sunshy-1/GDiffRetro/blob/HEAD/code/known_class/stage2/src/egnn.py","link_basis":"harvester_set","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":"0833f5f54b9e99ed"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}