How Much Space Has Been Explored? Measuring the Chemical Space Covered by Databases and Machine-Generated Molecules

Yutong Xie, Ziqiao Xu, Jiaqi Ma, Qiaozhu Mei

In the high-stakes world of drug discovery, finding a new medicine is like searching for a needle in a galaxy-sized haystack. To increase their odds, researchers use machine learning (ML) to generate millions of candidate molecules. But how do we know if these models are actually exploring new territory or just circling the same familiar neighborhoods?

A paper from ICLR 2023, "How Much Space Has Been Explored?", tackles this fundamental question by introducing a formally grounded metric for "chemical space coverage" and revealing some uncomfortable truths about our current generative models.

The Problem: Measuring the Unknown

To find successful drugs, we need "candidate libraries" that are diverse and representative of the nearly infinite "chemical space." While we have many ways to predict if a molecule is toxic or effective (in silico scores), we lack a rigorous way to measure coverage—the physical "area" of chemical possibilities explored by a library.

Existing metrics are mostly heuristic. For example, "richness" just counts unique molecules, while "internal diversity" averages the distances between them. The problem is that these metrics lack a "ground truth" to compare against, often leading to misleading conclusions about how well a model is exploring. Surprisingly, the widely used "internal diversity" metric fails basic logic: adding a molecule that is "too close" to others can actually decrease the average internal diversity, even though you've technically explored more of the space.

A New Framework: Axioms and #Circles

To solve this, the authors approach the problem from two angles: an axiomatic analysis and empirical validation.

1. Axiomatic Analysis

They define three "common sense" rules (axioms) that any good coverage measure should follow:

  • Monotonicity: Adding more molecules should never decrease your coverage.
  • Subadditivity: The coverage of two combined sets shouldn't be more than the sum of their individual coverages (no "magic" extra coverage).
  • Dissimilarity: The measure should prefer molecules that look different from each other.
Venn diagram of metrics satisfying the three axioms

2. The #Circles Metric

Inspired by the mathematical concept of the "packing number," the authors introduce #Circles. It counts the maximum number of "neighborhoods" (circles of radius t) that can fit into a set of molecules without overlapping. If molecules are too similar, they fall into the same circle and don't increase the count. As shown in the axiomatic analysis, #Circles is the only metric that satisfies all three fundamental rules.

3. Empirical Validation

To prove #Circles works in practice, they tested how well various metrics correlate with a "proxy gold standard": the number of unique biological functionalities (like "kinase inhibitor" or "GPCR ligand") a set of molecules can perform, using 10,000 compounds from the ChEMBL database. In a "growing-size" experiment, #Circles had the lowest Dynamic Time Warping (DTW) distance to the biological gold standard, meaning its "growth curve" most closely matches the discovery of new biological functions.

The Exploration Gap: Models vs. Databases

Armed with a reliable metric, the authors evaluated the coverage of five major molecular databases (like ZINC-250k and ChEMBL) and state-of-the-art AI generative models (including RationaleRL, DST, JANUS, and MARS).

The results revealed a significant Exploration Gap. Most current generative models are "exploiters," not "explorers." They tend to find a small area with high predicted property scores and stay there.

Table comparing chemical space coverage of databases vs generative models

When evaluated using #Circles (at a threshold of $t=0.75$), the best generative model only covered about half the space of the combined molecular databases (30.2 vs 55.7). A simple virtual screening of existing databases often provides better chemical space coverage than the most advanced generative models currently available.

However, there is a silver lining. By incorporating #Circles directly into the reward function of a generative model (MARS+#Circles), the authors were able to significantly increase the number of unique, high-quality molecules discovered without sacrificing the predicted property scores.

Limitations and Future Work

The primary limitation of #Circles is computational: calculating the exact value is an NP-hard combinatorial problem. To solve this, the authors developed fast approximation algorithms, but there is still room for more efficient implementations.

Future work includes applying this framework to other domains like materials science or natural language processing, and developing new optimization techniques that can handle the combinatorial nature of the #Circles objective more effectively. Ultimately, better metrics will lead to better models, helping us map the vast chemical universe more efficiently.

Summary updated

BibTeX
@inproceedings{xie2023how,
  author = {Yutong Xie and Ziqiao Xu and Jiaqi Ma and Qiaozhu Mei},
  title = {{How Much Space Has Been Explored? Measuring the Chemical Space Covered by Databases and Machine-Generated Molecules}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=Yo06F8kfMa1},
}
Figure