A Two-Step Graph Convolutional Decoder for Molecule Generation

Xavier Bresson, Thomas LaurentarXiv 2019

Abstract

We propose a simple auto-encoder framework for molecule generation. The molecular graph is first encoded into a continuous latent representation $z$, which is then decoded back to a molecule. The encoding process is easy, but the decoding process remains challenging. In this work, we introduce a simple two-step decoding process. In a first step, a fully connected neural network uses the latent vector $z$ to produce a molecular formula, for example CO$_2$ (one carbon and two oxygen atoms). In a second step, a graph convolutional neural network uses the same latent vector $z$ to place bonds between the atoms that were produced in the first step. This two-step process, in which a bag of atoms is first generated and then assembled, provides a simple framework that allows us to develop an efficient molecule auto-encoder. Numerical experiments on the 250k ZINC molecules demonstrate the performances of the proposed system, achieving a reconstruction rate of 90.5%, improving the previous state-of-the-art of 76.7%.

1. Introduction

Designing novel drugs and materials is a formidable challenge due to the vast chemical space, estimated between $10^{23}$ and $10^{60}$ potential molecules. Molecules are intrinsically combinatorial; minor structural changes can lead to drastic shifts in chemical properties. While deep learning has successfully addressed the encoding of molecules into continuous latent vectors, decoding these representations back into valid molecular graphs remains a significant bottleneck. Existing decoders are often either auto-regressive, which are computationally slow and complex, or one-shot, which struggle with varying molecule sizes and symmetries. This work addresses these challenges by proposing a novel two-step graph convolutional decoder.

2. Methodology

The proposed framework utilizes a Variational Auto-Encoder (VAE) architecture with a unique two-step decoding strategy to simplify the generation process.

2.1 Two-Step Decoding

The decoding process is split into two distinct tasks:

  1. Atom Generation: A Multi-Layer Perceptron (MLP) predicts the molecular formula (the "bag of atoms") from the latent vector $z$. This step determines the count of each atom type (e.g., Carbon, Oxygen, Nitrogen) without considering their connectivity.
  2. Bond Generation: Given the predicted atoms, a Graph Convolutional Network (GCN) operates on a fully connected graph of these atoms to predict bond types (None, Single, Double, or Triple) between every pair.
The proposed two-step decoding architecture: first predicting the molecular formula (bag-of-atoms) and then assembling the graph using a GCN.

To resolve symmetries between identical atoms, the model incorporates positional features derived from canonical SMILES strings. Furthermore, to ensure chemical validity, a greedy beam search algorithm is employed during the bond generation phase to prevent valency violations, ensuring that every generated molecule adheres to basic chemical laws.

3. Experimental Results

The model was evaluated on the ZINC dataset, comprising 250,000 drug-like molecules.

3.1 Reconstruction and Validity

The two-step decoder achieved a state-of-the-art reconstruction rate of 90.5%, a significant improvement over the previous best of 76.7% (JT-VAE). By separating atom count from connectivity, the model avoids the pitfalls of sequential generation. Additionally, the integration of beam search resulted in 100% chemical validity for all generated samples.

3.2 Novelty and Diversity

Sampling from the latent space produced molecules that were 100% unique and novel relative to the training set, indicating that the model learns a robust representation of chemical space rather than merely memorizing training examples.

A sample of molecules generated by the model, demonstrating its ability to produce diverse and complex drug-like structures from the ZINC dataset.

3.3 Constrained Property Optimization

In tasks aimed at optimizing specific properties like solubility while maintaining structural similarity to a starting molecule, the proposed model outperformed both JT-VAE and reinforcement learning-based approaches (e.g., GCPN), particularly when constrained by molecular distance.

4. Conclusion

We have presented a simple yet effective two-step decoding framework for molecular graph generation. By disentangling the prediction of atom composition from bond assembly, our model achieves superior reconstruction performance and perfect validity. Future work will explore integrating this non-autoregressive approach into reinforcement learning frameworks to further enhance its capability for extrapolative property optimization.

Summary updated

BibTeX
@misc{bresson2019two,
  author = {Xavier Bresson and Thomas Laurent},
  title = {{A Two-Step Graph Convolutional Decoder for Molecule Generation}},
  year = {2019},
  eprint = {1906.03412},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1906.03412},
}
Figure