Controlled molecule generator for optimizing multiple chemical properties

Bonggun Shin, Sungsoo Park, JinYeong Bak, Joyce C. Ho

TL;DR

The Controlled Molecule Generator (CMG) treats drug discovery as a "controlled paraphrase" problem, using a Transformer-based architecture to translate an existing molecule into a new one that satisfies multiple chemical constraints simultaneously. By integrating property-prediction and similarity-prediction networks directly into the training loss and the inference beam search, CMG nearly doubles the success rate of previous state-of-the-art models in multi-objective optimization tasks.

What Problem Does This Paper Address?

Finding a new drug is like searching for a needle in a haystack—if the haystack contained $10^{60}$ different molecules. Traditionally, researchers take a "lead" molecule and try to optimize it. However, chemical properties are often interconnected: increasing a molecule's solubility might accidentally make it toxic or harder for the body to absorb.

Most existing deep learning models focus on Single-Objective Optimization (SOO)—improving one property at a time. In the real world, drug discovery is a Multi-Objective Optimization (MOO) problem. We need molecules that are similar to the starting point (to maintain known benefits) but improved across several metrics like lipophilicity (PlogP), drug-likeness (QED), and target affinity (e.g., DRD2).

Methods

The authors propose the Controlled Molecule Generator (CMG), which views molecule optimization as a sequence-to-sequence translation task (similar to translating English to French, but "Molecule A" to "Improved Molecule B").

Key Innovations:

  1. Transformer Backbone: Unlike previous graph-based models, CMG uses the Transformer architecture, representing molecules as SMILES strings (text-based chemical notation).
  2. Property Awareness: The model doesn't just look at the structure; it concatenates the current and desired property vectors directly into the encoder’s hidden layers.
  3. Constraint Networks:
    • PropNet: A BiLSTM that predicts the chemical properties of a generated sequence.
  4. SimNet: A BiLSTM that predicts how similar the new molecule is to the original.
  5. Multi-Part Loss Function: The model is trained on a combined loss: the standard translation error plus "penalties" from PropNet and SimNet if the generated molecule misses the target properties or drifts too far from the original structure.
  6. Modified Beam Search: During inference, the model doesn't just pick the most "likely" next character. It uses PropNet and SimNet to score candidates, steering the generation toward molecules that actually meet the multi-objective criteria.

Datasets

The researchers used the ZINC dataset (249,455 molecules) and the DRD2D dataset (25,695 molecules).

  • Curation: They generated over 10.8 million molecule pairs that met a minimum similarity threshold (Tanimoto similarity $\ge 0.4$).
  • Benchmarks: They evaluated against three specific properties: Penalized logP (solubility/lipophilicity), QED (drug-likeness), and DRD2 (activity against the dopamine type 2 receptor).

Key Insights and Ideas

  • Optimization as Paraphrase: The most powerful idea here is treating molecular design as "controlled translation." By telling the model "Here is Molecule X, and I want it to have Property Y," the Transformer learns the underlying "grammar" of how structural changes affect chemical outcomes.
  • The "Judge" in the Loop: Standard beam search is "blind" to chemical properties—it only cares about sequence probability. By using the pre-trained PropNet and SimNet as "judges" during the search process, the model can rescue high-quality molecules that might have had a lower raw probability score.
  • Training Once, Evaluating Everywhere: Unlike Reinforcement Learning models (like MolDQN) that often require retraining for every new target, CMG is trained once on a large variety of property shifts, making it more generalizable and faster to deploy for new tasks.

Key Results

  • Multi-Objective Success: In the MOO task (simultaneously optimizing similarity, PlogP, QED, and DRD2), CMG achieved a 6.98% success rate, nearly doubling the 3.56% achieved by the previous state-of-the-art, VJTNN.
  • Single-Objective Improvement: For PlogP optimization, CMG showed an average improvement of 3.92, outperforming VJTNN (3.55) and MolDQN (3.37).
  • Ablation Study: The authors proved that the SimNet (similarity constraint) provided the biggest boost to performance, highlighting that staying "chemically relevant" to the starting molecule is crucial for successful optimization.

Limitations and Future Work

  • Data Imbalance: CMG underperformed on QED and DRD2 in single-objective tasks. The authors attribute this to the training data: only 5.9% of pairs showed improved QED, and a tiny 0.08% showed improved DRD2. The model struggled to learn patterns for properties that were rarely improved in the dataset.
  • SMILES vs. Graphs: While SMILES strings are efficient for Transformers, they can sometimes represent invalid chemical structures. Though the loss function penalizes invalidity, graph-based models are inherently better at maintaining chemical validity.
  • Future Direction: The authors suggest that better data balancing or incorporating more diverse chemical properties could further strengthen the model's utility in real-world drug pipelines.

Summary updated

BibTeX
@inproceedings{shin2021controlled,
  author = {Bonggun Shin and Sungsoo Park and JinYeong Bak and Joyce C. Ho},
  title = {{Controlled molecule generator for optimizing multiple chemical properties}},
  booktitle = {CHIL},
  year = {2021},
  doi = {10.1145/3450439.3451879},
}
Figure