Skip to main content
QUICK REVIEW

[Paper Review] Molecular Generation with Recurrent Neural Networks (RNNs)

Esben Jannik Bjerrum, Richard Threlfall|arXiv (Cornell University)|May 12, 2017
Computational Drug Discovery MethodsComputer Science7 references48 citations
TL;DR

This paper proposes using recurrent neural networks with long short-term memory (LSTM) units to generate novel, chemically plausible molecules by training on SMILES-encoded compounds. The model successfully generates molecules with property distributions closely matching the training data, and over 80% of generated drug-like molecules are novel and synthesizable, as confirmed by synthetic accessibility scores and retrosynthetic analysis.

ABSTRACT

The potential number of drug like small molecules is estimated to be between 10^23 and 10^60 while current databases of known compounds are orders of magnitude smaller with approximately 10^8 compounds. This discrepancy has led to an interest in generating virtual libraries using hand crafted chemical rules and fragment based methods to cover a larger area of chemical space and generate chemical libraries for use in in silico drug discovery endeavors. Here it is explored to what extent a recurrent neural network with long short term memory cells can figure out sensible chemical rules and generate synthesizable molecules by being trained on existing compounds encoded as SMILES. The networks can to a high extent generate novel, but chemically sensible molecules. The properties of the molecules are tuned by training on two different datasets consisting of fragment like molecules and drug like molecules. The produced molecules and the training databases have very similar distributions of molar weight, predicted logP, number of hydrogen bond acceptors and donors, number of rotatable bonds and topological polar surface area when compared to their respective training sets. The compounds are for the most cases synthesizable as assessed with SA score and Wiley ChemPlanner.

Motivation & Objective

  • To investigate whether RNNs with LSTM cells can learn chemical rules and generate novel, synthesizable molecules from SMILES strings.
  • To evaluate if molecular property distributions (e.g., molecular weight, logP, rotatable bonds) in generated molecules mirror those in the training data.
  • To assess the synthetic feasibility of generated molecules using synthetic accessibility (SA) scores and retrosynthetic planning tools like Wiley ChemPlanner.
  • To determine the extent of novelty in generated molecules relative to the training set and identify potential overfitting.

Proposed method

  • SMILES strings from the Zinc12 database (clean fragments and drug-like subsets) were preprocessed by adding start (!) and end (E) tokens and vectorized via one-hot encoding.
  • A deep RNN architecture was implemented using Keras with Theano backend, consisting of two 256-unit LSTM layers followed by a two-layer feedforward network with ReLU activation.
  • The model used input dropout (0.1) for regularization and was trained in mini-batches of 512 on chunks of 100,000 SMILES, with early stopping based on validation loss.
  • A stateful sampling model was used to generate new sequences iteratively by feeding predicted characters back into the network.
  • Molecular properties (e.g., molecular weight, logP, H-bond donors/acceptors, topological polar surface area) were compared between generated and training sets.
  • Synthetic accessibility (SA) scores and retrosynthetic analysis via Wiley ChemPlanner were used to evaluate feasibility of generated compounds.

Experimental results

Research questions

  • RQ1Can an RNN with LSTM cells learn to generate chemically valid and novel molecules from SMILES strings without explicit rule-based constraints?
  • RQ2To what extent do the molecular property distributions of generated molecules match those of the training data?
  • RQ3How synthetically feasible are the generated molecules, as assessed by SA scores and retrosynthetic planning?
  • RQ4To what extent do the generated molecules represent true novelty, and is there evidence of overfitting to the training set?
  • RQ5Can the model be tuned to generate molecules with specific property profiles by filtering training data?

Key findings

  • The model generated 63% and 83% novel molecules not present in the training set for the fragment-like and drug-like datasets, respectively, indicating significant novelty despite potential overfitting.
  • The distributions of molecular properties—molecular weight, logP, H-bond donors/acceptors, rotatable bonds, and topological polar surface area—of generated molecules closely matched those of the training sets.
  • Synthetic accessibility (SA) scores of generated molecules were in the medium to low range, comparable to catalog compounds, indicating high synthetic feasibility.
  • Retrosynthetic analysis with Wiley ChemPlanner successfully identified viable routes for the majority of generated compounds, though two molecules failed to yield any routes.
  • The model exhibited signs of overfitting, as a high proportion of generated molecules were found in the training set, suggesting that training and test sets may be too similar in chemical space.
  • The model’s ability to generate molecules with desired property profiles suggests potential for iterative optimization in in silico drug discovery by retraining on top-performing compounds.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.