Abstract
The rapid discovery of new chemical compounds is essential for advancing global health and developing treatments. While generative models show promise in creating novel molecules, challenges remain in ensuring the real-world applicability of these molecules and finding such molecules efficiently. To address this challenge, we introduce Conditional Latent Space Molecular Scaffold Optimization (CLaSMO), which integrates a Conditional Variational Autoencoder (CVAE) with Latent Space Bayesian Optimization (LSBO) to strategically modify molecules while preserving similarity to the original input, effectively framing the task as constrained optimization. Our LSBO setting improves the sample-efficiency of the molecular optimization, and our modification approach helps us to obtain molecules with higher chances of real-world applicability. CLaSMO explores substructures of molecules in a sample-efficient manner by performing BO in the latent space of a CVAE conditioned on the atomic environment of the molecule to be optimized. Our extensive evaluations across diverse optimization tasks—including rediscovery, docking score, and multi‑property optimization—show that CLaSMO efficiently enhances target properties, delivers remarkable sample-efficiency crucial for resource‑limited applications while considering molecular similarity constraints, achieves state of the art performance, and maintains practical synthetic accessibility. We also provide an open-source web application that enables chemical experts to apply CLaSMO in a Human-in-the-Loop setting.
Introduction
The search for novel therapeutic agents is a formidable challenge, often described as finding a "needle in a haystack." While artificial intelligence has significantly advanced de novo molecular generation, two primary obstacles persist. First, many AI-generated molecules lack real-world applicability, often being chemically unstable or synthetically inaccessible. Second, evaluating molecular properties—such as protein-binding affinity—is computationally or experimentally expensive. Most existing methods require thousands of evaluations to identify promising candidates, which is impractical in resource-constrained settings.
To overcome these hurdles, we propose Conditional Latent Space Molecular Scaffold Optimization (CLaSMO). Rather than generating molecules from scratch, CLaSMO focuses on scaffold optimization: starting with a known, stable molecular core and making targeted, statistically sound modifications. This approach ensures that the resulting molecules are more likely to be synthesizable and structurally familiar to medicinal chemists.
Methodology
The CLaSMO framework is built upon three core pillars: a Conditional Variational Autoencoder (CVAE), Latent Space Bayesian Optimization (LSBO), and constrained optimization.
Conditional Variational Autoencoder (CVAE)
The CVAE is trained on molecular fragments obtained through BRICS (Breaking of Retrosynthetically Interesting Chemical Substructures) decomposition, which ensures fragments are broken at points conducive to re-synthesis. A critical innovation in CLaSMO is the conditioning of the CVAE on the local atomic environment of the bonding site, including features such as atom type, valence, and hybridization. This conditioning ensures that the model suggests fragments that are chemically compatible with the existing scaffold.
Latent Space Bayesian Optimization (LSBO)
Instead of searching through a discrete and high-dimensional chemical space, CLaSMO operates within the smooth, low-dimensional latent space of the CVAE. It employs a Gaussian Process surrogate model and an Upper Confidence Bound (UCB) acquisition function to iteratively select the most promising modifications. This approach significantly enhances sample efficiency, allowing for effective optimization even with a limited evaluation budget.
Constrained Optimization
To maintain the biological relevance of the original scaffold, CLaSMO frames the task as a constrained optimization problem. It utilizes Dice Similarity (based on Morgan Fingerprints) to ensure that optimized molecules do not deviate excessively from the starting structure, thereby preserving core activity while enhancing target properties.
Experimental Results
We evaluated CLaSMO using diverse datasets, including QM9 for small organic molecules and ZINC250K for more complex fragments. Performance was benchmarked against a suite of 20 optimization tasks, ranging from drug rediscovery to multi-property optimization.
Performance and Efficiency
CLaSMO demonstrated exceptional performance in "low-budget" scenarios. With a budget of only 100 property evaluations, it outperformed six state-of-the-art baselines, including Graph-GA and MARS, in 13 out of 20 tasks. Furthermore, the model achieved a bonding success rate of over 99% within the first ten iterations, validating the effectiveness of the conditional generation mechanism.
Synthesizability
A key metric for real-world utility is the Retrosynthetic Accessibility (RA) score. Our results indicate that 88% of molecules generated by CLaSMO are classified as synthesizable. This high rate of synthetic feasibility is a significant improvement over de novo methods, which often produce "synthetic nightmares."
Discussion and Future Work
While CLaSMO represents a significant step forward, it currently has limitations. The process is primarily additive, meaning it can add substructures but cannot yet remove or replace them. This can lead to "molecular weight creep," where molecules gradually become heavier, potentially violating drug-likeness rules such as Lipinski’s Rule of Five.
Future research will focus on expanding the framework to allow for fragment replacement and simultaneous multi-scaffold evolution. Additionally, the integration of CLaSMO into a Human-in-the-Loop web application allows experts to guide the optimization process, combining human intuition with algorithmic efficiency to further accelerate drug discovery.
Summary updated