Curiosity in exploring chemical space: Intrinsic rewards for deep molecular reinforcement learning

Luca A. Thiede, Mario Krenn, AkshatKumar Nigam, Alán Aspuru-GuzikarXiv 2020 · DOI

Abstract

Computer-aided design of molecules has the potential to disrupt the field of drug and material discovery. Machine learning, and deep learning, in particular, have been topics where the field has been developing at a rapid pace. Reinforcement learning is a particularly promising approach since it allows for molecular design without prior knowledge. However, the search space is vast and efficient exploration is desirable when using reinforcement learning agents. In this study, we propose an algorithm to aid efficient exploration. The algorithm is inspired by a concept known in the literature as curiosity. We show on three benchmarks that a curious agent finds better performing molecules. This indicates an exciting new research direction for reinforcement learning agents that can explore the chemical space out of their own motivation. This has the potential to eventually lead to unexpected new molecules that no human has thought about so far.

Introduction

Designing new drugs and materials is a "needle-in-a-haystack" problem, with the chemical space of potential molecules estimated at $10^{60}$ candidates. While deep learning models like VAEs and GANs show promise, they are often biased toward known chemistry in their training data. Reinforcement Learning (RL) offers a powerful alternative by exploring without prior data, guided by a reward function. However, RL agents often suffer from poor exploration, settling for "good enough" local optima. For instance, in solubility optimization, agents frequently get trapped generating simple carbon chains, missing more complex, effective structures.

Methodology: Curiosity-Driven Exploration

To address the exploration bottleneck, we adapt "curiosity" from video-game RL to molecular design.

The curiosity-driven RL framework uses a prediction network to generate intrinsic rewards based on uncertainty.

The framework consists of several key components:

  1. Molecular Representation: We utilize SELFIES, a string-based representation that ensures 100% chemical validity for every generated string, avoiding the "invalid string" issues of SMILES.
  2. The Curiosity Mechanism: Alongside the primary RL agent (trained via PPO), we introduce a Prediction Network. This network attempts to predict the target property of the generated molecule.
  3. Intrinsic Reward: Curiosity is defined as the prediction error of this secondary network. High error indicates a region of chemical space the agent has not yet "understood" or explored thoroughly.
  4. Total Reward: The agent optimizes a combined reward: $r_{total} = r_{extrinsic} + \alpha \cdot r_{intrinsic}$, where $\alpha$ scales the curiosity drive.

Benchmarks and Evaluation

The method was evaluated on three standard molecular optimization tasks:

  • QED (Quantitative Estimate of Druglikeness): Measuring how closely a molecule resembles approved oral drugs.
  • Penalized logP: A metric combining solubility with synthetic accessibility and ring count penalties.
  • Celecoxib Similarity: Generating molecules similar to the drug Celecoxib.

Key Results and Insights

Curious agents consistently outperformed standard RL baselines across all benchmarks. A critical finding was the ability of curious agents to escape "traps" in the reward landscape. In the penalized logP task, standard agents typically stall on long carbon chains. Curious agents, driven by the uncertainty of their prediction models, were the only ones to "break out" and discover superior sulfur-chain structures.

Molecules generated with curiosity exhibit greater complexity and higher scores compared to those from non-curious agents.
  • QED: Curious agents achieved a top score of 0.918, vs. 0.889 for the baseline.
  • Penalized logP: Curious agents reached 10.364, significantly higher than the baseline's 9.580.
  • Similarity: The curious agent achieved a similarity score of 0.239, while the baseline stalled at 0.186.

The results suggest that treating a model's ignorance as a signal for exploration allows the agent to implicitly map the chemical space. Aggressive exploration ($\alpha = 1$) generally yielded the best performance, highlighting the benefits of curiosity in vast search spaces.

Limitations and Future Work

While promising, the "curiously discovered" molecules can sometimes appear unstable or "strange" to chemists because the reward functions (QED, logP) are mathematical abstractions. Future work should integrate realistic constraints, such as synthesizability filters. Additionally, combining curiosity with other exploration techniques like "Go-Explore" could further enhance the agent's ability to navigate the immense complexity of chemical space.

Summary updated

BibTeX
@misc{thiede2020curiosity,
  author = {Luca A. Thiede and Mario Krenn and AkshatKumar Nigam and Alán Aspuru-Guzik},
  title = {{Curiosity in exploring chemical space: Intrinsic rewards for deep molecular reinforcement learning}},
  year = {2020},
  eprint = {2012.11293},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.11293},
}
Figure