[Paper Review] Retrieval-Augmented Foundation Models for Matched Molecular Pair Transformations to Recapitulate Medicinal Chemistry Intuition
The paper introduces MMPT-FM, a foundation model for variable-to-variable matched molecular pair transformations, and MMPT-RAG, a retrieval-augmented approach that improves controllability, novelty, and recall in MMPT-based analog design.
Matched molecular pairs (MMPs) capture the local chemical edits that medicinal chemists routinely use to design analogs, but existing ML approaches either operate at the whole-molecule level with limited edit controllability or learn MMP-style edits from restricted settings and small models. We propose a variable-to-variable formulation of analog generation and train a foundation model on large-scale MMP transformations (MMPTs) to generate diverse variables conditioned on an input variable. To enable practical control, we develop prompting mechanisms that let the users specify preferred transformation patterns during generation. We further introduce MMPT-RAG, a retrieval-augmented framework that uses external reference analogs as contextual guidance to steer generation and generalize from project-specific series. Experiments on general chemical corpora and patent-specific datasets demonstrate improved diversity, novelty, and controllability, and show that our method recovers realistic analog structures in practical discovery scenarios.
Motivation & Objective
- Formalize analog design as context-independent local edits using MMPTs (vA -> vB).
- Train a large-scale MMPT foundation model to learn transformation priors from drug-like chemistry data.
- Enable user-controlled generation through structural templating prompts.
- Introduce MMPT-RAG to steer generation with retrieved reference analogs and cluster-guided templates.
- Demonstrate improved recall, novelty, and plausibility across in-distribution and patent-based analog-generation tasks.
Proposed method
- Represent MMPTs as SMARTS-based variable-to-variable sequences and train a sequence-to-sequence encoder-decoder on ~0.8M MMPTs extracted from ChEMBL via MMPDB.
- Initialize from a chemistry-focused pretrained model (T5Chem) to preserve chemical semantics.
- Implement prompted generation with masked infilling where users provide partial structural constraints T to obtain vB.
- Develop MMPT-RAG: retrieve similar vA from a reference MMPT dataset, cluster corresponding vB, extract MCS-based templates Tk, and generate conditioned on multiple cluster templates.
- Theoretical analysis showing MMPT-RAG performs a convex distribution shift between the base model and a reference distribution, governed by an adaptive alpha parameter.
- Provide three evaluation tasks (in-distribution, within-patent, cross-patent) to assess recall, novelty, and validity across diverse settings.

Experimental results
Research questions
- RQ1Can MMPTs capture transferable, context-independent local edits in medicinal chemistry?
- RQ2How well can a foundation model learn MMPT priors from large-scale data and generate valid, novel, and transferable substitutions?
- RQ3Does prompting enable controllable, structure-guided MMPT generation without retraining?
- RQ4Can retrieval augmentation steer MMPT generation toward project-specific patterns and rare but meaningful transformations?
- RQ5How does MMPT-RAG perform in in-distribution, within-patent, and cross-patent analog-generation tasks compared to baselines?
Key findings
- MMPT-FM achieves substantially higher recall of ground-truth transformations than baselines in all tasks.
- MMPT-RAG further improves recall and achieves the highest novelty among methods on Task 1 (ChEMBL).
- In patent-based tasks, MMPT-FM and MMPT-RAG show strong in-training-set recall and meaningful out-of-training-set recall, indicating generalization to unseen transformations.
- Retrieval augmentation steers generation toward underrepresented but chemically meaningful transformations, improving coverage of chemical space.
- Prompted generation with structural templates enables near-perfect GT recovery at higher candidate counts and maintains high validity.
- Visualization indicates MMPT-RAG expands chemical space coverage beyond the base model in PMV17, aligning generations with reference distributions.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.