Exploring Chemical Space with Score-based Out-of-distribution Generation

Seul Lee, Jaehyeong Jo, Sung Ju Hwang

This paper introduces MOOD (Molecular Out-Of-distribution Diffusion), a framework designed to push molecular generative models beyond the "safe" confines of their training data to discover truly novel drug candidates. By combining controlled exploration with property-based gradients, MOOD discovers molecules that are structurally unique yet highly effective, outperforming existing methods and even the top 0.01% of molecules in the original training set.

The Distributional Trap in Drug Discovery

The "chemical space"—the set of all possible small molecules—is estimated to contain $10^{60}$ candidates. However, most deep learning models for drug discovery suffer from a "distributional trap": they are too good at mimicking their training data. If a model is trained on a database of known drugs, it tends to generate "new" molecules that look strikingly similar to those known drugs.

While this ensures the generated molecules are chemically sensible, it severely limits de novo discovery. To find a breakthrough drug, researchers must explore low-density regions of chemical space where training data is sparse. The core challenge is navigating this unknown space without generating "trivial" or "garbage" molecules (like endlessly long carbon chains) that might satisfy a single mathematical score but fail as viable real-world drugs.

Conceptual illustration of MOOD's guided out-of-distribution exploration compared to naive diffusion.

Methods: The "Novelty Dial" and Conditional Guidance

MOOD builds upon Score-based Diffusion Models, specifically the Graph Diffusion via System of SDEs (GDSS) framework. To overcome the distributional trap, the authors introduce two key innovations:

  1. OOD Control ($\lambda$): The authors derive a novel reverse-time Stochastic Differential Equation (SDE) that incorporates a hyperparameter $\lambda$. By increasing $\lambda$, the model is mathematically encouraged to move away from the high-density regions of the training distribution. This acts as a "novelty dial," allowing researchers to continuously tune how far "outside the box" the model should explore.
  2. Conditional Guidance: Exploring out-of-distribution (OOD) space is inherently risky; unguided exploration often yields chemically impossible or useless structures. To prevent this, MOOD uses a property predictor (a Graph Neural Network). During the diffusion process, the model follows the gradients of this predictor. This steers the exploration toward regions that satisfy multiple critical constraints: high protein-ligand binding affinity (docking scores), drug-likeness (QED), and synthetic accessibility (SA).

Crucially, this OOD control requires no additional computational cost compared to standard diffusion. This is a significant advantage over Reinforcement Learning (RL) approaches, which often require expensive, iterative "online" simulations and heavy oracle calls during the search process.

Datasets and Evaluation

The authors evaluated MOOD using several standard and specialized benchmarks:

  • ZINC250k: A standard dataset of ~250,000 commercially available chemical compounds used for general training.
  • QM9: A dataset of small molecules used primarily for unconstrained novelty generation experiments.
  • CrossDocked2020: Used to compare MOOD against 3D-aware molecular generative models.
  • Protein Targets: Evaluation was performed against five specific protein targets (parp1, fa7, 5ht1b, braf, and jak2) to simulate real-world drug discovery tasks.

Key Results

MOOD successfully demonstrates that standard models "exploit" the training distribution, while MOOD "explores" beyond it. Without property guidance, OOD exploration produces junk; with it, it produces meaningful novelty.

  • Novel Hit Ratio: MOOD significantly outperformed baselines across all tested protein targets. For the 5ht1b target, MOOD achieved an 18.67% novel hit ratio, compared to just 4.66% for the standard GDSS model and 16.76% for the best RL-based baseline (FREED-QS).
  • Docking Scores: In the "Novel top 5% docking score" metric—which measures the binding affinity of the best unique, novel molecules—MOOD consistently found the strongest binders, often reaching scores below -11.0 kcal/mol. Strikingly, MOOD generated molecules with better docking scores than the absolute best molecules (the top 0.01%) found in the original ZINC250k training pool.
  • Structural Diversity: UMAP visualizations confirm that MOOD's generated molecules occupy entirely different clusters of chemical space compared to the training set. As the $\lambda$ parameter increases, the generated molecules visibly shift into novel structural territories, whereas baseline models tend to stay tightly clustered around known molecules.
UMAP visualizations and metrics demonstrating how increasing the OOD control parameter ($\lambda$) pushes generated molecules into novel regions of chemical space.

Limitations and Future Work

While MOOD represents a significant step forward in de novo molecular generation, the authors note a few limitations:

  • Chemical Realism: Although MOOD uses Synthesizability (SA) scores as a guide, OOD generation can still produce a small portion of unrealistic molecules. Post-generation filtering remains a necessary stopgap.
  • Property Scope: The current model focuses on docking, QED, and SA. Real-world drug discovery requires balancing many more factors, such as toxicity, metabolic stability, and yield, which are slated for future iterations.
  • Dual-Use Concerns: As with any powerful generative tool in chemistry, there is a risk that such models could be used to design harmful substances. The authors advocate for incorporating toxicity constraints to prevent the generation of malicious chemicals.

Summary updated

BibTeX
@inproceedings{lee2023exploring,
  author = {Seul Lee and Jaehyeong Jo and Sung Ju Hwang},
  title = {{Exploring Chemical Space with Score-based Out-of-distribution Generation}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=WP07wAWxty},
}
Figure