TL;DR
Current generative models can design drug-like molecules, but ensuring they can be synthesized from specific starting materials or shared intermediates remains a critical, unsolved bottleneck. This paper introduces TANGO (TANimoto Group Overlap), a chemistry-informed dense reward function that enables reinforcement learning (RL) models to directly satisfy constrained synthesizability alongside multi-parameter drug optimization. By balancing substructure overlap and molecular similarity, the authors demonstrate the first generative framework capable of steering synthesis paths through specific building blocks or divergent intermediates.
What Problem Does This Paper Address?
In computational drug discovery, generative models often propose molecules that are either chemically impossible to make or rely on obscure, unavailable precursors. While recent advances integrate retrosynthesis planning into generative pipelines, real-world chemistry frequently requires constrained synthesizability:
- Starting-material constraints: Enforcing inexpensive, readily available starting materials or repurposing chemical waste.
- Intermediate constraints: Ensuring synthetic routes pass through known, scalable intermediates.
- Divergent synthesis: Branching out from a common core intermediate to generate diverse candidate libraries (e.g., for late-stage functionalization).
Enforcing these constraints creates an extraordinarily sparse reward environment. A retrosynthesis engine might evaluate millions of possible routes from a pool of over 17 million commercial building blocks; the chance of randomly hitting one of 10 or 100 pre-specified precursors is near zero, causing standard RL to fail or stagnate.
Methods
Rather than constraining the generative model via rigid handcrafted rules, the authors incentivize an unconstrained, general-purpose language model using RL:
- Generative Backbone: Saturn, an autoregressive Mamba state-space language model operating on SMILES strings, trained via RL using experience replay and SMILES augmentation.
- Retrosynthesis Oracle: The Syntheseus framework running MEGAN (a single-step graph-edit model) coupled with Retro* search, querying against a library of 17.7 million commercial building blocks.
- TANGO Reward Formulation: To convert sparse binary success into a smooth, learnable gradient, TANGO computes the maximum similarity between every non-root node in the proposed retrosynthetic tree and the target enforced building blocks ($B_{\text{enf}}$): $$\text{TANGO}(m, B_{\text{enf}}) = 0.5 \cdot \text{TanSim}(m, B_{\text{enf}}) + 0.5 \cdot \text{FMS}(m, B_{\text{enf}})$$
- Tanimoto Similarity (TanSim): Captures overall fingerprint/sub-graph similarity.
- Fuzzy Matching Substructure (FMS): Measures maximum atom-overlap fraction while respecting hybridization, ring membership, and chirality.
- Controllable Constraints: Toggling whether TANGO evaluates only terminal leaf nodes at maximum depth (starting materials) or intermediate nodes (intermediate/divergent synthesis).
Datasets
- Pre-training: ~88.6 million standardized, drug-like SMILES molecules curated from PubChem (filtered to $\le 80$ tokens, MW between 150–650 Da, $\le 8$ rings).
- Building Block Stock ($B$): The Fragment and Reactive subsets of ZINC15 containing 17,721,980 commercial precursors (via AiZynthFinder).
- Enforced Subsets ($B_{\text{enf}}$): Randomly curated sets of 100, 10, and 5 drug-like building blocks (150 < MW < 200 Da, heteroatom-containing), as well as a curated set of 10 non-commercial intermediates for divergent synthesis.
- Multi-Parameter Optimization (MPO) Target: Docking scores via QuickVina2-GPU against the cancer target ClpP combined with Quantitative Estimate of Drug-likeness (QED).
Key Insights and Ideas
- It Takes Two to Tango: Neither TanSim nor FMS alone is sufficient. TanSim alone exhibits high variance and poor MPO optimization across seeds; FMS alone yields false positives and few valid precursors. Combining them provides the dense gradient needed to guide the policy toward the target precursors.
- Exploration vs. Exploitation Dynamics: Generative models with default hyper-local sampling stagnate quickly on constrained tasks. Increasing exploration (larger batch sizes and fewer augmentation rounds) prevents early collapse.
- Incentivizing Unconstrained Models Shifts Distributions: Once trained with TANGO, the model's underlying distribution shifts fundamentally: 1,000 sampled molecules from a final checkpoint yield high fractions of valid, constrained routes in just 5 seconds, without requiring step-by-step synthesis guidance during inference.
- Automatic Divergent Hubs: When optimized with RL, the model naturally anchors to a single high-value building block per run, acting as a "hub" that branches into diverse, high-affinity lead molecules.
Key Results
- Sample Efficiency: Models solved constrained synthesizability within a strict budget of 10,000 oracle evaluations (~8.5 hours on a single NVIDIA L40S GPU).
- Joint MPO Performance: Across 100 enforced blocks, TANGO reached optimal docking scores ($< -10$) and drug-likeness (QED $\approx 0.78$–$0.82$), generating thousands of confirmed constrained synthesizable molecules.
- Robustness Across Constraints:
- 100 Blocks: Successfully solved across 10/10 seeds for both intermediate and starting-material constraints.
- 10 Blocks: Solved across 6/10 seeds (intermediate) and 9/10 seeds (starting-material).
- Divergent & 5-Block Sets: Successfully enforced non-commercial intermediates (4/10 seeds at 10k budget; 5/10 at 15k budget) and learned challenging chemistries like Suzuki couplings.
- Compact Routes: Produced short, practical synthesis routes (averaging 1.5 to 3.7 reaction steps), aided by the molecular weight regularizing effect of QED.
Limitations and Future Work
- Retrosynthesis Model Fidelity: TANGO relies on computational retrosynthesis oracles (MEGAN/Retro*), which do not guarantee wet-lab feasibility and occasionally overlook stereo- or regioselectivity.
- Exploitation of "Easy" Blocks: The policy tends to converge on specific chemically compatible precursors ("lucky blocks") when given larger sets; enforcing highly dissimilar or chemically demanding 5-block sets required expanded oracle budgets (15,000 calls) and removal of the QED constraint.
- Route Length: Path lengths are indirectly compressed via QED rather than explicitly penalized, leaving room for explicit multi-objective route-length optimization in future work.
Summary updated