Papers › Preference Optimization for Molecule Synthesis with Conditional Residual Energy-based Models

Preference Optimization for Molecule Synthesis with Conditional Residual Energy-based Models

4 Jun 2024arXiv:2406.02066archive 2025-07-28

Songtao Liu, Hanjun Dai, Yue Zhao, Peng Liu

Molecule synthesis through machine learning is one of the fundamental problems in drug discovery. Current data-driven strategies employ one-step retrosynthesis models and search algorithms to predict synthetic routes in a top-bottom manner. Despite their effective performance, these strategies face limitations in the molecule synthetic route generation due to a greedy selection of the next molecule set without any lookahead. Furthermore, existing strategies cannot control the generation of synthetic routes based on possible criteria such as material costs, yields, and step count. In this work, we propose a general and principled framework via conditional residual energy-based models (EBMs), that focus on the quality of the entire synthetic route based on the specific criteria. By incorporating an additional energy-based function into our probabilistic model, our proposed algorithm can enhance the quality of the most probable synthetic routes (with higher probabilities) generated by various strategies in a plug-and-play fashion. Extensive experiments demonstrate that our framework can consistently boost performance across various strategies and outperforms previous state-of-the-art top-1 accuracy by a margin of 2.5%. Code is available at https://github.com/SongtaoLiu0823/CREBM.

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="2406.02066")

Code

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

By repository: official repository: 20 samples from 1 repository, 10 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/crebm officialmentioned in paperpytorchMIT 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

20 samples harvested; 10 ran; 0 honoured the contract we drafted; 10 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.

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

Licence: 0 of the 20 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/CREBM. “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.

get_attention_mask SongtaoLiu0823/CREBM/FusionRetro/modeling.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · aab6b0ababd814f1 · report
get_attention_mask songtaoliu0823/crebm/Energy_function/reward_model.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · eec7bf6cd0c9ce7d · report
get_attention_mask_reward SongtaoLiu0823/CREBM/FusionRetro/reward_model.py official repository ran fingerprinted MIT (permissive) · d9192da44e7497f4 · report
get_dataset SongtaoLiu0823/CREBM/Forward_model/forward_preprocess.py official repository ran MIT (permissive) · eff77b1103611612 · report
get_input_mask_reward SongtaoLiu0823/CREBM/FusionRetro/reward_model.py official repository ran fingerprinted MIT (permissive) · bda04ebfeae378ad · report
get_mem_attention_mask SongtaoLiu0823/CREBM/FusionRetro/modeling.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 63f5e5133356e1ce · report
get_model_dir songtaoliu0823/crebm/GraphRetro/scripts/benchmarks/run_model.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 6ffa7d3b10e36bff · report
get_position_embedding SongtaoLiu0823/CREBM/Energy_function/reward_model.py official repository ran fingerprinted MIT (permissive) · 8a2fd49d7c7f70d1 · report
get_position_embedding SongtaoLiu0823/CREBM/FusionRetro/modeling.py official repository ran fingerprinted MIT (permissive) · 30d746b2a597c06c · report
get_position_embedding_reward SongtaoLiu0823/CREBM/FusionRetro/reward_model.py official repository ran fingerprinted MIT (permissive) · bc7b5841f4ac0765 · report
Decoder songtaoliu0823/crebm/Energy_function/reward_model.py official repository unverified MIT (permissive) · 504a163b8cca9e67 · report
DecoderLayer songtaoliu0823/crebm/Energy_function/reward_model.py official repository unverified MIT (permissive) · d291fa98cd3fd2ba · report
Embeddings songtaoliu0823/crebm/Energy_function/reward_model.py official repository unverified MIT (permissive) · ae58f0fed04a3eba · report
Encoder songtaoliu0823/crebm/Energy_function/reward_model.py official repository unverified MIT (permissive) · 54fe6546395e90b0 · report
EncoderLayer songtaoliu0823/crebm/Energy_function/reward_model.py official repository unverified MIT (permissive) · b4ba32298cce6023 · report
MultiHeadAttention songtaoliu0823/crebm/Energy_function/reward_model.py official repository unverified MIT (permissive) · 35b3f91bfff1f5ce · report
RewardTransformer songtaoliu0823/crebm/Energy_function/reward_model.py official repository unverified MIT (permissive) · c02f128f73e14a42 · report
convert_symbols_to_inputs SongtaoLiu0823/CREBM/Forward_model/forward_preprocess.py official repository unverified MIT (permissive) · 84f89ccafcd7f616 · report
get_input_mask SongtaoLiu0823/CREBM/Energy_function/reward_model.py official repository unverified MIT (permissive) · a241aff115771ddd · report
get_position_embedding songtaoliu0823/crebm/Energy_function/reward_model.py official repository unverified MIT (permissive) · 492feba8c4b1b9ff · report

Tasks

Drug DiscoveryRetrosynthesis

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

FocusSET

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