Utilizing Reinforcement Learning for de novo Drug Design

Hampus Gummesson Svensson, Christian Tyrchan, Ola Engkvist, Morteza Haghir Chehreghani · DOI

TL;DR

This paper presents a unified framework for the systematic evaluation of reinforcement learning (RL) algorithms in de novo drug design. By comparing five major RL algorithms and seven types of replay buffers, the researchers demonstrate that incorporating both high- and low-scoring molecules into the training loop is essential for maintaining structural diversity and preventing the model from getting stuck on a single molecular "template."

Introduction

Designing a new drug is like searching for a needle in a hyper-dimensional haystack. In de novo drug design, the goal is to generate entirely new molecules that satisfy specific biological constraints—such as binding to a target receptor like Dopamine D2 (DRD2).

While deep learning has made strides in generating molecular strings (SMILES), the challenge lies in optimization and diversity. Most current methods use a "Hill-climb" approach, where the model only learns from the very best molecules it has generated so far. This often leads to "mode collapse," where the model generates thousands of nearly identical molecules, failing to explore the vast "chemical space" where better, more diverse drug candidates might hide. The authors set out to find which RL algorithms and memory mechanisms (replay buffers) best balance the need to find high-scoring molecules with the need to keep those molecules structurally diverse.

Methods

The authors developed a framework to test five policy optimization algorithms, categorized by their learning approach and architecture.

Taxonomy of policy optimization algorithms evaluated in the study, including on-policy and off-policy variants.

The tested algorithms include:

  1. Regularized MLE (Reg. MLE): The current industry standard, which keeps the model close to its pre-trained "chemical common sense."
  2. On-policy algorithms (PPO, A2C): These learn only from the molecules generated in the most recent iteration.
  3. Off-policy algorithms (SAC, ACER): These use a "replay buffer" to learn from a history of past successes and failures.
The reinforcement learning workflow for de novo drug design, showing the cycle of sampling, scoring, and policy updating.

They combined these with seven different replay buffer strategies, ranging from "Top Current" to "Bin History" (sorting molecules into reward-based bins to ensure the model sees a balanced diet of high, medium, and low-scoring examples). The molecules were represented as SMILES strings, and the "reward" was determined by a Random Forest model trained to predict activity against the DRD2 receptor. To further encourage variety, they used a Diversity Filter that penalizes the model for repeatedly generating the same molecular scaffolds.

Datasets

  • ChEMBL: Used to pre-train the Recurrent Neural Network (RNN) so it understands the basic "grammar" of chemistry and can generate valid SMILES strings.
  • ExCAPE-DB: Used to train the reward function (the "black box" scorer). This dataset contains activity data for the Dopamine receptor D2 (DRD2), providing the ground truth for what a "good" molecule looks like for this specific target.

Key Insights and Ideas

  • The Value of "Failure": One of the most surprising findings is that including low-scoring molecules in the update step is advantageous. By seeing what doesn't work, the model maintains a better "map" of the chemical landscape, which prevents it from collapsing into a single structural niche.
  • Reg. MLE is Hard to Beat: Despite being simpler, Regularized MLE remains highly effective because its regularization acts as a tether to "valid" chemistry, allowing it to jump between different molecular scaffolds more easily than more complex RL agents.
  • Stability via Batching: For on-policy algorithms like PPO and A2C, using the entire batch of generated molecules (rather than just the top performers) significantly enhanced performance stability.
  • Off-policy Potential: While off-policy algorithms like SAC and ACER converged more slowly, they showed a higher potential for discovering a larger number of unique, active topological scaffolds when given enough time to explore.

Key Results

  • With Diversity Filters: A2C and PPO generated a higher total number of active molecules, but Regularized MLE produced a significantly higher number of unique topological scaffolds (the core "skeletons" of the molecules).
  • Without Diversity Filters: PPO and A2C suffered from severe mode collapse, quickly narrowing down to a few repetitive structures. In contrast, SAC using "Top History" generated the largest number of unique active molecules and scaffolds, proving its strength as an explorer.
  • Convergence: Most on-policy models converged within roughly 125 episodes, whereas off-policy models like SAC required a much longer exploration phase to reach similar reward levels.

Limitations and Future Work

The authors acknowledge that their study was limited to a budget of 2000 episodes, which may not have been enough for the complex off-policy algorithms (SAC/ACER) to fully mature. Additionally, the study focused on a single target (DRD2); different biological targets might have different reward landscapes that favor different algorithms. Future work could involve testing these frameworks on "multi-objective" problems and exploring more sophisticated diversity filters.

Summary updated

BibTeX
@article{svensson2024utilizing,
  author = {Hampus Gummesson Svensson and Christian Tyrchan and Ola Engkvist and Morteza Haghir Chehreghani},
  title = {{Utilizing Reinforcement Learning for de novo Drug Design}},
  journal = {Machine Learning},
  year = {2024},
  doi = {10.1007/s10994-024-06519-w},
}
Figure