Application of generative autoencoder in de novo molecular design

Thomas Blaschke, Marcus Olivecrona, Ola Engkvist, Jürgen Bajorath, Hongming Chen · DOI

Abstract

A major challenge in computational chemistry is the generation of novel molecular structures with desirable pharmacological and physiochemical properties. In this work, we investigate the potential use of autoencoder, a deep learning methodology, for de novo molecular design. Various generative autoencoders were used to map molecule structures into a continuous latent space and vice versa and their performance as structure generator was assessed. Our results show that the latent space preserves chemical similarity principle and thus can be used for the generation of analogue structures. Furthermore, the latent space created by autoencoders were searched systematically to generate novel compounds with predicted activity against dopamine receptor type 2 and compounds similar to known active compounds not included in the training set were identified.

Introduction

The search for new therapeutic compounds is often described as finding a needle in a vast "chemical wilderness" estimated at $10^{60}$ drug-like molecules. Traditionally, drug discovery relies on Quantitative Structure-Activity Relationship (QSAR) models. However, molecules are discrete entities (represented as SMILES strings or graphs), making them difficult to optimize using gradient-based mathematical tools. Small changes in a discrete representation can lead to chemically invalid structures or drastic shifts in properties. This study explores the use of generative autoencoders to map these discrete structures into a continuous, searchable "latent space," enabling systematic exploration and de novo design.

Methods

The researchers evaluated several autoencoder (AE) architectures to compress molecular data (Encoder) and reconstruct it (Decoder):

  1. Variational Autoencoder (VAE): Incorporates a probabilistic constraint, forcing the latent space to follow a Gaussian distribution.
  2. Adversarial Autoencoder (AAE): Utilizes a discriminator network to ensure the latent space matches a target distribution (e.g., Gaussian or Uniform).
  3. Teacher Forcing: A training technique for Recurrent Neural Network (RNN) decoders where the model is provided with the correct previous character during training to learn SMILES syntax effectively.
Comparison of Training Mode (with Teacher Forcing) and Generation Mode in the RNN decoder.

The models were trained on approximately 1.3 million unique compounds from the ChEMBL (v22) database. For targeted discovery, a separate model for Dopamine Receptor D2 (DRD2) activity was built using ExCAPE-DB data. Once the latent space was established, Bayesian Optimization (BO) was employed to navigate the map and identify regions likely to contain active compounds.

Architecture of the Adversarial Autoencoder (AAE) showing the discriminator used to regularize the latent space.

Results and Insights

The study confirmed that the latent space successfully preserves the chemical similarity principle: molecules that are chemically similar are mapped to nearby points in the latent space.

  • Syntax and Validity: Without Teacher Forcing, models struggled with SMILES syntax, achieving only ~19% validity. Implementing Teacher Forcing increased validity to nearly 80%.
  • Model Performance: The Uniform AAE produced the most continuous latent space, facilitating smoother transitions between molecular structures. The best models achieved over 98% character reconstruction accuracy.
  • Targeted Generation: Using Bayesian Optimization, the authors identified novel compounds with a predicted activity probability ($P_{active}$) exceeding 0.99. Sampling high-scoring regions in the latent space resulted in a 19% success rate for finding active compounds, a significant improvement over the 0.1% baseline from random sampling.
  • Generalization: The model demonstrated the ability to "discover" known drugs (like Celecoxib) and their analogs even when they were excluded from the training set, by searching relevant areas of the latent space.

Discussion and Conclusion

While generative autoencoders show great promise for de novo design, challenges remain. The models occasionally generate "macrocycles" that are synthetically difficult to produce. Future work should focus on integrating synthetic accessibility scores into the optimization process to ensure that generated molecules are practical for laboratory synthesis. Additionally, while the models excel at finding analogs, further research is needed to improve "scaffold hopping"—the discovery of entirely new chemical classes for the same biological target.

In conclusion, generative autoencoders provide a powerful framework for transforming discrete chemical data into a continuous landscape, allowing researchers to "hunt" for new drugs with unprecedented efficiency.

Reference: Blaschke, T., Olivecrona, M., Engkvist, O., Bajorath, J., & Chen, H. (2017). Application of generative autoencoder in de novo molecular design. arXiv:1711.07839v1.

Summary updated

Abstract

A major challenge in computational chemistry is the generation of novel molecular structures with desirable pharmacological and physiochemical properties. In this work, we investigate the potential use of autoencoder, a deep learning methodology, for de novo molecular design. Various generative autoencoders were used to map molecule structures into a continuous latent space and vice versa and their performance as structure generator was assessed. Our results show that the latent space preserves chemical similarity principle and thus can be used for the generation of analogue structures. Furthermore, the latent space created by autoencoders were searched systematically to generate novel compounds with predicted activity against dopamine receptor type 2 and compounds similar to known active compounds not included in the training set were identified.
BibTeX
@inproceedings{blaschke2017application,
  author = {Thomas Blaschke and Marcus Olivecrona and Ola Engkvist and Jürgen Bajorath and Hongming Chen},
  title = {{Application of generative autoencoder in de novo molecular design}},
  booktitle = {Molecular},
  year = {2017},
  doi = {10.1002/minf.201700123},
}
Figure