Conditional Latent Space Molecular Scaffold Optimization for Accelerated Molecular Design

Onur Boyar, Hiroyuki Hanada, Ichiro Takeuchi

The quest for new medicines is often a race against time and budget. While AI has promised to revolutionize drug discovery by dreaming up novel molecules, many of these "AI-generated" compounds share a common flaw: they are nearly impossible to synthesize in a real-world laboratory. Furthermore, finding a truly effective molecule often requires thousands of expensive simulations or experiments.

A new paper published in Transactions on Machine Learning Research introduces CLaSMO (Conditional Latent Space Molecular Scaffold Optimization), a framework designed to bridge the gap between AI creativity and practical chemistry.

TL;DR

CLaSMO accelerates molecular design by strategically adding small, synthetically feasible substructures to existing molecular "scaffolds." By combining conditional generative modeling with sample-efficient Bayesian optimization, it discovers property-enhanced molecules that chemists can actually build, outperforming existing methods in resource-constrained scenarios.

What Problem Does This Paper Address?

Molecular design faces two major hurdles: real-world applicability and sample efficiency.

Many generative models design molecules "from scratch." While innovative, these structures often lack a clear synthetic path. A more practical approach is scaffold optimization, where researchers start with a known, stable core (a scaffold) and modify it. However, even with a scaffold, the search space for modifications is vast. Evaluating a single modification—such as its "docking score" against a disease protein—is computationally or experimentally expensive. Most current methods require thousands of these evaluations to find a winner, a luxury few researchers have.

Methods

CLaSMO tackles these challenges through a three-part strategy:

  1. Conditional Generation: The authors use a Conditional Variational Autoencoder (CVAE) to generate new molecular fragments. Crucially, this generation is conditioned on the specific atomic environment of the bonding point on the scaffold. This ensures that the generated fragment "fits" chemically and is likely to form a stable bond.
  2. BRICS Decomposition: To train the CVAE, the team used the BRICS algorithm to break down known molecules into fragments based on retrosynthetic rules. This ensures the model learns to propose modifications that are synthetically realistic.
  3. Latent Space Bayesian Optimization (LSBO): Instead of searching through every possible chemical modification, CLaSMO searches a compressed, continuous "latent space" created by the CVAE. It uses a Gaussian Process surrogate to predict which modifications will improve target properties, allowing it to find optimal molecules in as few as 100 evaluations.
The CLaSMO framework identifies optimal regions in the CVAE latent space and selects bonding points on the scaffold to improve molecular properties like QED.

The optimization process is framed as a constrained task: maximize a property (like drug-likeness) while keeping the new molecule structurally similar to the original scaffold, measured by Dice similarity.

Datasets

The authors primarily used the QM9 dataset (approx. 130,000 small organic molecules) to train their CVAE, as its small fragments align with the goal of making targeted, local edits. They also evaluated the model's scalability using the ZINC250K dataset.

For benchmarking, they utilized a suite of 20 diverse optimization tasks (ranging from rediscovering known drugs to multi-property optimization) and compared CLaSMO against six established baselines, including Graph-GA and MARS.

Key Insights and Ideas

  • Context is King: By conditioning the fragment generation on the bonding atom's features (type, hybridization, valence, etc.), CLaSMO achieves a bonding success rate of over 98% in early iterations.
  • Efficiency via Compression: Reducing the complex world of chemistry into a 2D latent space makes Bayesian Optimization incredibly efficient. The authors found that a 2D space was sufficient to capture the structural information needed for these targeted edits.
  • Human-in-the-Loop: Recognizing that AI shouldn't work in a vacuum, the authors developed a web application. This allows expert chemists to manually select which regions of a molecule to modify, combining human intuition with AI-driven optimization.
Figure 2: Examples of scaffold extraction from whole molecules. In both the upper and lower rows, side chains are removed, leaving the core structure of the molecule. These resulting scaffolds act as starting points for novel chemical design.

Key Results

  • State-of-the-Art Performance: Under strict similarity constraints (keeping the molecule close to the original), CLaSMO was the top performer in 13 out of 20 optimization tasks.
  • High Synthesizability: The generated molecules consistently achieved high Synthetic Accessibility (SA) and Retrosynthetic Accessibility (RA) scores. For example, in high-constraint settings, 88% of CLaSMO-optimized molecules were classified as synthesizable by retrosynthesis models.
  • Superior Sample Efficiency: While reinforcement learning methods often require thousands of oracle calls, CLaSMO achieved its results with a fixed budget of only 100 evaluations, making it ideal for real-world lab settings.

Limitations and Future Work

While powerful, CLaSMO is currently an additive-only framework. It can add new pieces to a scaffold, but it cannot yet remove or replace existing parts of the core structure. The authors also note that while it excels at local edits, it is not designed for de novo (from-scratch) generation. Future iterations could expand the framework to support more flexible transformations like fragment replacement, further broadening its utility in the complex landscape of drug discovery.

Summary updated

BibTeX
@article{boyar2025conditional,
  author = {Onur Boyar and Hiroyuki Hanada and Ichiro Takeuchi},
  title = {{Conditional Latent Space Molecular Scaffold Optimization for Accelerated Molecular Design}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=KhxVc9RBJv},
}
Figure