Papers › FusionRetro: Molecule Representation Fusion via In-Context Learning for Retrosynthetic Planning

FusionRetro: Molecule Representation Fusion via In-Context Learning for Retrosynthetic Planning

30 Sep 2022arXiv:2209.15315archive 2025-07-28

Songtao Liu, Zhengkai Tu, Minkai Xu, Zuobai Zhang, Lu Lin, Rex Ying, Jian Tang, Peilin Zhao, Dinghao Wu

Retrosynthetic planning aims to devise a complete multi-step synthetic route from starting materials to a target molecule. Current strategies use a decoupled approach of single-step retrosynthesis models and search algorithms, taking only the product as the input to predict the reactants for each planning step and ignoring valuable context information along the synthetic route. In this work, we propose a novel framework that utilizes context information for improved retrosynthetic planning. We view synthetic routes as reaction graphs and propose to incorporate context through three principled steps: encode molecules into embeddings, aggregate information over routes, and readout to predict reactants. Our approach is the first attempt to utilize in-context learning for retrosynthesis prediction in retrosynthetic planning. The entire framework can be efficiently optimized in an end-to-end fashion and produce more practical and accurate predictions. Comprehensive experiments demonstrate that by fusing in the context information over routes, our model significantly improves the performance of retrosynthetic planning over baselines that are not context-aware, especially for long synthetic routes. Code is available at https://github.com/SongtaoLiu0823/FusionRetro.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2209.15315")

Code

Syntology Ran 5 of 16 code samples harvested from 1 repository linked to this paper; 11 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 1 ran · fixture could not drive it; 3 ran with no contract checked.

By repository: official repository: 16 samples from 1 repository, 5 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

songtaoliu0823/fusionretro officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

16 samples harvested; 5 ran; 0 honoured the contract we drafted; 11 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · our draft was wrong
1ran · fixture could not drive it
3ran
11unverified

Licence: 16 of the 16 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from songtaoliu0823/fusionretro. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: 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. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

Embeddings songtaoliu0823/fusionretro/FusionRetro/modeling.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · 2db11c865eb4def6 · report
MemoryMechanismMultiHeadAttention songtaoliu0823/fusionretro/FusionRetro/modeling.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · 49bbbcad6b3ba9e2 · report
MutualMultiHeadAttention songtaoliu0823/fusionretro/FusionRetro/modeling.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · ce740963c248e166 · report
get_attention_mask songtaoliu0823/fusionretro/FusionRetro/modeling.py official repository ran · fixture could not drive it fingerprinted no licence file found · pointer only · aab6b0ababd814f1 · report
get_mem_attention_mask songtaoliu0823/fusionretro/FusionRetro/modeling.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 63f5e5133356e1ce · report
Decoder songtaoliu0823/fusionretro/FusionRetro/modeling.py official repository unverified no licence file found · pointer only · 7ccea8dbabb872e4 · report
DecoderLayer songtaoliu0823/fusionretro/FusionRetro/modeling.py official repository unverified no licence file found · pointer only · f1b165a65087e010 · report
Encoder songtaoliu0823/fusionretro/FusionRetro/modeling.py official repository unverified no licence file found · pointer only · d14f4d8502957748 · report
EncoderLayer songtaoliu0823/fusionretro/FusionRetro/modeling.py official repository unverified no licence file found · pointer only · e9ff2eccea780216 · report
LayerNorm songtaoliu0823/fusionretro/FusionRetro/modeling.py official repository unverified no licence file found · pointer only · d39a5451ad73ca2a · report
MemoryMechanism songtaoliu0823/fusionretro/FusionRetro/modeling.py official repository unverified no licence file found · pointer only · 206006247acc1466 · report
MemoryMechanismLayer songtaoliu0823/fusionretro/FusionRetro/modeling.py official repository unverified no licence file found · pointer only · 6edfab863d4594ff · report
SelfMultiHeadAttention songtaoliu0823/fusionretro/FusionRetro/modeling.py official repository unverified no licence file found · pointer only · bbc83c6266642359 · report
Transformer songtaoliu0823/fusionretro/FusionRetro/modeling.py official repository unverified no licence file found · pointer only · 0d9bc0ad0e3b7f14 · report
convert_symbols_to_inputs SongtaoLiu0823/FusionRetro/FusionRetro/retro_star.py official repository unverified no licence file found · pointer only · 11f013c9f6798201 · report
get_position_embedding songtaoliu0823/fusionretro/FusionRetro/modeling.py official repository unverified no licence file found · pointer only · 30837b65f41ab124 · report

Tasks

Drug DiscoveryIn-Context LearningMulti-step retrosynthesisRetrosynthesisSingle-step retrosynthesis

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections