NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Sample efficient reinforcement learning with active learning for molecular design

Michael Dodds, Jeff Guo, Thomas Löhr, Alessandro Tibo, Ola Engkvist, Jon Paul Janet

Abstract

Active learning accelerates the design of molecules during generative reinforcement learning by creating surrogate models of expensive reward functions, obtaining a 4- to 64-fold reduction in computational effort per hit.

Introduction

The search for novel therapeutic agents requires navigating a chemical space estimated at $10^{60}$ molecules. Generative Artificial Intelligence, particularly Reinforcement Learning (RL), has emerged as a powerful tool for this task. In a typical RL workflow, an agent (often a Recurrent Neural Network) generates molecular structures, which are then scored by an "oracle"—a computational model that predicts properties like binding affinity through protein-ligand docking.

However, a significant bottleneck exists: sample efficiency. High-fidelity simulations are computationally intensive, often requiring minutes or hours per molecule. Standard RL agents are "data-hungry," requiring tens of thousands of evaluations to converge. This high cost often precludes the use of the most accurate physics-based methods, such as Free Energy Perturbation (FEP), directly within the design loop. Researchers from AstraZeneca have addressed this challenge by developing RL–AL, a framework that integrates Active Learning (AL) into the generative process.

The RL–AL Framework

The RL–AL approach introduces an "inner loop" of Active Learning within the established REINVENT RL architecture. The process follows a structured cycle:

  1. Generation: The RL agent generates a batch of molecules represented as SMILES strings.
  2. Surrogate Modeling: Instead of immediately invoking the expensive oracle for the entire batch, a fast surrogate model (a Random Forest) predicts the scores and associated uncertainties for all generated molecules.
  3. Acquisition: An acquisition function, specifically the Upper Confidence Bound (UCB), selects a small, high-potential subset of the batch for evaluation by the actual oracle.
  4. Policy Update: The RL agent is updated based on the results.

A critical innovation in this workflow is the "Zero-Weight" Strategy. The researchers discovered that updating the RL agent using noisy surrogate-predicted scores often led to performance degradation due to error propagation. To solve this, they implemented a weighted loss function where molecules with only surrogate-predicted scores are assigned a weight of zero. Consequently, the RL agent learns exclusively from high-quality, ground-truth labels curated by the AL loop.

Key Insights: Surrogates as Curators

The surrogate model in RL–AL acts less like a teacher and more like a "bouncer" or curator. It does not need to be perfectly accurate across the entire chemical landscape. Its primary function is to filter the agent's output, ensuring that the expensive oracle's resources are spent only on the most promising candidates.

Furthermore, the framework addresses the non-stationary nature of RL. As the agent learns, the distribution of molecules it generates shifts. To keep the surrogate model relevant, the authors utilized a "sliding window" training set, maintaining only the 1,000 most recent oracle evaluations. This ensures the surrogate remains specialized in the region of chemical space currently being explored by the agent.

Performance and Results

The RL–AL framework was tested against standard RL baselines using targets such as Cyclooxygenase-2 (COX2) and the Retinoic Acid Receptor Alpha (RAR$\alpha$), employing ROCS (shape/pharmacophore) and AutoDock Vina (docking) as oracles.

  • Hit Generation: For a fixed computational budget, RL–AL generated between 5 and 66 times more unique hits than the baseline RL.
  • Computational Efficiency: To reach a target number of hits, RL–AL achieved a 4- to 64-fold reduction in CPU time. In docking tasks, for instance, RL–AL identified 10 hits in approximately 3,000 oracle calls, whereas the baseline required over 13,000.
  • Multi-Parameter Optimization (MPO): By employing a probabilistic acquisition strategy, the framework successfully balanced binding affinity with drug-likeness and safety. This approach nearly doubled the average MPO score of generated hits compared to the baseline without sacrificing molecular diversity.

Conclusion and Future Directions

The RL–AL framework demonstrates that integrating active learning can dramatically improve the feasibility of using expensive computational oracles in molecular design. While the method is sensitive to certain hyperparameters, such as the batch-to-acquisition ratio, it provides a robust path forward for high-fidelity generative design.

The authors suggest that this "oracle-agnostic" framework could be extended to even more demanding workflows, including FEP or automated experimental "lab-on-a-chip" systems. By reducing the number of physical or simulated evaluations required, RL–AL brings us closer to a future where the most accurate scientific models can be used directly to drive the discovery of new medicines.

Summary updated

BibTeX
@inproceedings{dodds2024sample,
  author = {Michael Dodds and Jeff Guo and Thomas Löhr and Alessandro Tibo and Ola Engkvist and Jon Paul Janet},
  title = {{Sample efficient reinforcement learning with active learning for molecular design}},
  booktitle = {Chemical},
  year = {2024},
  doi = {10.1039/d3sc04653b},
}
Figure