Amortized Molecular Optimization via Group Relative Policy Optimization

Muhammad bin Javaid, Hasham Hussain, Ashima Khanna, Berke Kisin, Jonathan Pirnay, Alexander Mitsos, Dominik G. Grimm, Martin GroheNeurIPS 2026

TL;DR

Designing drugs rarely starts from a blank slate; chemists usually tweak an existing core molecule, yet today’s AI tools run a costly search from scratch for every single starting structure. AMORTIX flips this script by learning a generalizable policy once, allowing it to optimize unseen molecular scaffolds in a single forward pass with zero test-time evaluations. The secret sauce is adapting Group Relative Policy Optimization (GRPO) to grade candidate molecules strictly against peers grown from the exact same starting block.

What Problem Does This Paper Address?

In drug discovery, tasks like "scaffold decoration" require keeping a core molecular fragment intact while attaching new chemical groups to optimize properties like biological binding or drug-likeness. Evaluating these properties requires an oracle—a scoring function ranging from fast heuristic proxies to physics simulations that take hours per molecule.

Currently, the dominant paradigm is instance optimization (like genetic algorithms or guided diffusion). Hand one of these models a new starting scaffold, and it behaves like an amnesia patient: it forgets everything it did yesterday and queries the oracle thousands of times to find a good derivative. Scale that up to a library of thousands of scaffolds, and your compute budget evaporates.

Figure 1: Comparison of optimization paradigms. (A) Instance Optimization: Requires an expensive iterative search with hundreds to thousands of oracle calls for every new input structure Si, resulting in high cost that scales linearly with library size. (B) Amortized Optimization: Front-loads computation into offline training. The learned policy πθ generates optimized molecules for new, unseen inputs Si in a single rollout without inference-time oracle calls, enabling scalable, high- throughput design.

Amortized optimization promises a better way: pay the oracle cost once during an offline training phase to learn a universal modification policy, then generate optimized molecules for any new scaffold instantly. Historically, however, amortized Reinforcement Learning (RL) models have fallen flat here. Why? Because starting structures aren't created equal. Some scaffolds easily yield high-scoring drugs, while others sit in chemically tricky neighborhoods where even brilliant modifications score poorly. Standard RL baselines use a global average to judge success, causing easy scaffolds to dominate the learning signal while smart moves on hard scaffolds get penalized.

Methods

AMORTIX pairs a constrained graph-generation architecture with a specialized RL training loop:

  • Policy Backbone (Standard): A decoder-only Graph Transformer builds molecules step-by-step on top of an initial subgraph. At each step, it makes a three-level hierarchical choice: what operation to do (add atom, modify, or stop), where to connect, and what bond order to use. A strict valence mask blocks illegal moves, guaranteeing 100% chemically valid molecules by construction. Before RL, the model is pretrained via teacher forcing to learn basic "chemical plausibility."
  • Adapted GRPO Training (Novel): To solve the cross-scaffold difficulty problem, the authors adapt Group Relative Policy Optimization (specifically the Dr. GRPO formulation) to molecular graphs. For every starting scaffold in a batch, the policy samples a group of $G$ completed molecules and centers each reward by subtracting only that specific group's mean reward.
Figure 2: Overview of AMORTIX. (A) The policy decodes a composite action in three levels (operation, target atom, bond order) under a validity mask. (B) For each starting scaffold, G completions are sampled independently from the policy. (C) Rewards are centered by the group mean, and the resulting advantages weight the policy-gradient update.

Crucially, the authors deliberately omit two standard GRPO tricks: they skip dividing by the group standard deviation (which would blow up gradients on trivially easy or impossible scaffolds where all completions score identically) and skip trajectory-length normalization (which biases molecule sizes).

Datasets

  • ChEMBL 35: Used for supervised pretraining so the model starts with a prior of realistic, stable drug-like molecules.
  • ZINC-250k: Decomposed into Murcko scaffolds and clustered by structural similarity so that test scaffolds (500 reserved) are topologically distinct from training scaffolds.
  • PMO & TDC Oracles: 23 optimization objectives (including GSK3$\beta$, JNK3, and multi-parameter kinase inhibition) from the Practical Molecular Optimization benchmark and Therapeutics Data Commons.
  • BBB_Martins & Exemplar Drugs: Used to fine-tune a blood-brain-barrier predictor (MiniMol) and test few-shot prodrug rule transfer from 4 training drugs to 52 unseen parent drugs.

Key Insights and Ideas

  • Grading on a local curve fixes amortized RL: In late training, differences between scaffolds account for 71% to 95% of total reward variance! Standard PPO's learned value critic fails to filter this out (sometimes actively adding variance). Group-relative centering cleanly strips away scaffold-level variance without needing a critic network at all.
  • Unmatched training consistency: Across 23 diverse objectives, GRPO yields 17× lower variance across data splits than REINFORCE and 3× lower than PPO. When deploying a zero-shot model without test-time oracle checks, knowing your training run didn't silently flop is paramount.
  • Instance optimizers take lazy shortcuts on hard combos: In multi-parameter kinase optimization, search-based baselines (Mol GA, GenMol) game the easy heuristic metrics (drug-likeness and synthetic accessibility) while failing to crack the sparse biological activity targets. AMORTIX successfully penetrates those difficult biological manifolds.

Key Results

  • Kinase Scaffold Decoration: With zero test-time oracle calls, AMORTIX beats all amortized and search-based baselines across GSK3$\beta$ (0.775), JNK3 (0.796), and Kinase MPO (0.619, vs. 0.479 for GenMol and 0.453 for LibINVENT).
  • Rapid Amortization Payoff: AMORTIX’s entire one-time training budget ($\approx$50,000 oracle calls) breaks even against per-instance search after just 7 to 150 test scaffolds, depending on the task and baseline. By 500 scaffolds on Kinase MPO, Mol GA consumes 5× AMORTIX's total budget while scoring significantly worse.
  • Few-Shot Prodrug Design: Fine-tuned on just 4 exemplar drugs, AMORTIX learned generalizable chemical rules (like esterifying carboxylic acids) and transferred them zero-shot to 52 unseen drugs. It attached valid cleavable handles to 63% of unseen parents (31% pure prodrugs), boosting predicted blood-brain-barrier penetration by an average of +0.26.

Limitations and Future Work

  • 2D and Additive Only: AMORTIX operates strictly on 2D graphs (ignoring 3D protein-binding conformations) and can only add atoms and bonds. Tasks like scaffold hopping or fragment linking will require new action spaces supporting atom deletion and substitution.
  • Cheap Proxy Oracles: All experiments relied on fast ML classifiers and heuristics. When oracles are milliseconds fast, AMORTIX's 4–5 hour GPU training time actually equals the wall-clock time GenMol needs for 10–15 scaffolds; true real-world validation awaits expensive 3D docking or free-energy simulations.
  • Hybrid Horizons: The authors envision pairing both paradigms—using an amortized policy like AMORTIX to instantly drop candidate molecules into high-value chemical neighborhoods, then handing them off to an instance optimizer for cheap, local fine-tuning.

Summary updated

Abstract

In structurally constrained molecular optimization, state-of-the-art methods treat every new input structure as a separate instance, restarting an expensive oracle-driven search from scratch and scaling poorly to settings with many starting structures or expensive oracles. While amortized approaches that learn a transferable policy could in principle remove this bottleneck, existing methods struggle to generalize to diverse structural constraints at inference time. We present AMORTIX, a Graph Transformer model that natively supports such constraints, optimizing molecular structures in a single rollout with zero inference-time oracle calls. A central challenge for amortized training in this domain is that optimization difficulty varies drastically across starting structures. We address this by centering rewards within groups of completions that share the same starting structure. We evaluate on goal-directed scaffold decoration, including single- and multi-target kinase inhibitor design, and on a few-shot prodrug case study. AMORTIX outperforms both amortized baselines and search-based instance optimizers on kinase scaffold decoration, and ablations across 23 objectives show that group-relative centering improves over REINFORCE and PPO and is substantially more consistent across scaffold splits. The prodrug case study further demonstrates transfer of learned modification rules to unseen drug structures. Our code is available at https://github.com/mbinjavaid/AMORTIX.
BibTeX
@inproceedings{javaid2026amortized,
  author = {Muhammad bin Javaid and Hasham Hussain and Ashima Khanna and Berke Kisin and Jonathan Pirnay and Alexander Mitsos and Dominik G. Grimm and Martin Grohe},
  title = {{Amortized Molecular Optimization via Group Relative Policy Optimization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=BueyrCFsnx},
}
Figure