Generative Models for Automatic Chemical Design

Daniel Schwalbe-Koda, Rafael Gómez-BombarelliarXiv 2019 · DOI

Abstract

Materials discovery is decisive for tackling urgent challenges related to energy, the environment, health care and many others. In chemistry, conventional methodologies for innovation usually rely on expensive and incremental strategies to optimize properties from molecular structures. On the other hand, inverse approaches map properties to structures, thus expediting the design of novel useful compounds. In this chapter, we examine the way in which current deep generative models are addressing the inverse chemical discovery paradigm. We begin by revisiting early inverse design algorithms. Then, we introduce generative models for molecular systems and categorize them according to their architecture and molecular representation. Using this classification, we review the evolution and performance of important molecular generation schemes reported in the literature. Finally, we conclude highlighting the prospects and challenges of generative models as cutting edge tools in materials discovery.

The Inverse Design Paradigm

The "chemical space" of potential drug-like molecules is estimated to be around $10^{60}$—a scale so vast it dwarfs the number of stars in the observable universe. Traditional discovery follows a "forward" process: scientists select a structure, synthesize it, and test its properties. This trial-and-error approach is inherently slow, expensive, and often dependent on serendipity.

The "inverse design" problem flips this script, asking: “Given a specific set of desired properties, what structure should I build?” Historically, this was a discrete, combinatorial challenge. Modern deep generative models address this by mapping molecules into continuous, differentiable latent spaces, transforming the search for new materials into a solvable optimization problem.

Molecular Representations

The evolution of generative chemistry is largely defined by how molecules are represented for computational processing. Two main branches have emerged:

  1. SMILES-based Models (Strings): These treat chemistry as a language. Using the Simplified Molecular Input Line Entry System (SMILES), molecules are represented as text strings. This allows the application of standard Natural Language Processing (NLP) tools like Recurrent Neural Networks (RNNs) and LSTMs to "write" new molecular sequences.
  2. Graph-based Models: These represent molecules as mathematical graphs where atoms are nodes and bonds are edges. While more chemically intuitive, this approach is computationally intensive due to complexities like graph isomorphism.
Molecular representations: SMILES-based strings with one-hot encoding versus graph-based labeled structures.

Generative Architectures

Several core architectures drive the generation of novel chemical structures, each with distinct advantages in navigating the latent space:

  • Variational Auto-Encoders (VAEs): These models compress molecules into a continuous "latent space." Researchers can then navigate this space to discover new molecules or interpolate between known compounds.
  • Generative Adversarial Networks (GANs): A generator creates candidate molecules while a discriminator (or critic) attempts to distinguish them from real data, iteratively improving the generator's output quality.
  • Auto-regressive Models: These generate molecules sequentially, often character-by-character or atom-by-atom, predicting the next component based on previous ones.
  • Junction Tree VAE (JT-VAE): A specialized method that decomposes molecules into valid chemical sub-units (like rings and functional groups) to ensure that the generated structures are chemically plausible.
Comparison of generative architectures: VAE, GAN, and Auto-regressive models.

Benchmarks and Performance

Models are typically trained on gold-standard datasets such as QM9 (~134k small organic molecules) and ZINC (millions of drug-like compounds). Performance is evaluated based on three key metrics:

  • Validity: Does the model produce chemically "legal" structures?
  • Novelty: Are the generated molecules new, or just copies of the training data?
  • Uniqueness: Is the model producing a diverse range of outputs?

A significant milestone was reached with the Junction Tree VAE (JT-VAE), which achieved 100% validity and novelty, effectively solving the "legal structure" problem that plagued earlier string-based models.

The most transformative idea in this field is the transition from discrete search (flipping atoms like switches) to continuous optimization. By embedding molecules in a continuous latent space, gradient-based methods can be used to "slide" toward regions of the space associated with superior properties, such as high drug-likeness (QED) or synthetic accessibility (SA). Furthermore, Reinforcement Learning (RL) can be used to "nudge" pre-trained models toward specific targets, rewarding the generation of molecules with desired biological or physical profiles.

Challenges and Future Directions

While generative models represent a major leap forward, several frontier challenges remain:

  • Synthesizability: Models may design "perfect" molecules that are impossible to synthesize in a laboratory. Integrating "reaction-aware" constraints is a critical next step.
  • 3D Conformations: Most current models focus on 2D topology. However, biological activity often depends on 3D folding and how a molecule fits into a protein pocket.
  • Data Bias: Models are constrained by their training data. If the dataset is narrow, the model will struggle to discover entirely new chemical families.

Addressing these limitations will be essential for generative models to become truly cutting-edge tools in the future of materials and drug discovery.

Summary updated

BibTeX
@misc{schwalbekoda2019generative,
  author = {Daniel Schwalbe-Koda and Rafael Gómez-Bombarelli},
  title = {{Generative Models for Automatic Chemical Design}},
  year = {2019},
  eprint = {1907.01632},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1907.01632},
}
Figure