PURE

Generate novel, synthesizable molecules that stay close to a target structure while optimising a property, using reinforcement learning that never sees the scoring metric.

PURE: policy-guided molecular generation without metric bias overview

What it does

Drug designers often want a molecule that keeps the overall shape of a known compound but improves one property, such as potency or drug-likeness. This is structure-constrained molecular generation: produce new molecules similar to a starting structure, with a target property pushed higher.

Most deep-learning methods for this task are trained with the very metric they are later judged on baked into the loss. The model then learns to chase that one number, a problem the authors call metric leakage, and the molecules it invents can be narrow and hard to actually synthesise.

PURE (Policy-guided Unbiased REpresentations) avoids this. It treats molecule design as a sequence of chemical steps and trains a reinforcement-learning agent whose only reward is whether it reaches the target, never the property score. Each step applies a reaction rule mined from a large database of real reactions (USPTO-MIT), so the molecules it builds come with a plausible synthesis route attached. Property optimisation happens afterwards, by selecting from the diverse set the agent generates. PURE’s rule-mining builds directly on the lab’s earlier ReactionMiner, reusing its idea of reaction signatures (a reaction centre plus its neighbourhood) to define the moves the agent can make.

Why it matters

  • One model for every task. A single trained PURE model handles all four standard benchmarks (QED, DRD2, pLogP04, pLogP06), where earlier methods needed a separate model for each similarity-property setting.
  • Competitive without cheating. Despite never seeing the scoring metric during training, PURE matches or beats previous state-of-the-art methods across most benchmarks, and on the pLogP04 benchmark comes close to the best on every metric.
  • Built-in synthesizability. Because molecules are assembled from mined reaction rules, PURE also returns candidate synthesis routes, something pure property-optimisers do not provide.
  • A worked drug-resistance case study. Applied to sorafenib (a kinase inhibitor whose use is limited by resistance), PURE generated 214 lead candidates that bind BRAF like sorafenib; 30 of them had fewer lead-likeness violations than sorafenib itself, and 9 had none.

Key features

  • Policy-based (actor-critic) offline reinforcement learning over molecular graphs
  • Graph Isomorphism Network (GIN) encodings of molecules and reaction signatures
  • Reaction action space mined from USPTO-MIT (84,968 rules)
  • Beam-search generation returning molecules and their synthesis paths
  • Evaluation scripts for the COMA (QED, DRD2, pLogP) benchmarks

Quick start

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
git clone https://github.com/WSAI-IITM/ReactionRL.git
cd ReactionRL
conda env create -f environment.yml && conda activate reactionrl

# 1. Build the reaction action space from USPTO-MIT (one-time)
bash reactionrl/scripts/preprocess.sh
# 2. Roll out a random policy to collect training trajectories
python -m reactionrl.scripts.generate_data --steps 5 --train-samples 100000
# 3. Train the offline RL model
python -m reactionrl.scripts.train --steps 5 --model-type actor-critic --actor-loss PG
# 4. Generate molecules similar to a target
python -m reactionrl.scripts.generate_molecules --model-path <checkpoint> \
    --source-smiles "c1ccc(-c2ccccc2)cc1" --target-smiles "c1ccc(O)cc1" --steps 5

A conference version of this work appears at KDD 2026.

How others use PURE

PURE is recent, and the groups that cite it so far mostly place it among the field’s reference methods. Where a paper has actually run it, we list it below.

  1. Janisiów et al. · arXiv (2026)

    PURE is one of the baselines PhAME trains and evaluates on its logP editing task (MOSES test set). The paper reports that PURE preserves similarity to the target while underperforming on the optimisation objective, and singles out PURE’s similarity score as one of the specialised strengths its own method tries to match.

How to cite

If PURE helps your research, please cite:

Abhor Gupta, Barathi Lenin, Sean Current, Rohit Batra, Balaraman Ravindran, Karthik Raman, Srinivasan Parthasarathy (2025). PURE: Policy-guided Unbiased REpresentations for structure-constrained molecular generation. Journal of Cheminformatics 17:156. doi:10.1186/s13321-025-01090-5

BibTeX
@article{Gupta2025PURE,
  author  = {Abhor Gupta and Barathi Lenin and Sean Current and Rohit Batra and Balaraman Ravindran and Karthik Raman and Srinivasan Parthasarathy},
  title   = {PURE: Policy-guided Unbiased REpresentations for structure-constrained molecular generation},
  journal = {Journal of Cheminformatics},
  year    = {2025},
  volume  = {17},
  pages   = {156},
  doi     = {10.1186/s13321-025-01090-5}
}