TL;DR
Generative models are revolutionizing drug discovery, but how we evaluate their output can drastically skew results, leading to misleading comparisons. This paper systematically investigates common evaluation pitfalls, particularly the "size trap" of library size, and proposes more robust metrics and strategies for reliable model assessment and molecule selection.
What Problem Does This Paper Address?
The promise of generative AI in drug discovery is immense, offering the potential to explore vast chemical spaces and design novel molecules. However, a critical bottleneck is the evaluation of these generated molecules. Unlike model training and generation, the evaluation stage lacks standardized guidelines. This ambiguity makes it difficult to reliably benchmark different generative approaches and select the most promising candidates for experimental validation. Without clear, consistent evaluation methods, the field risks overestimating model performance and pursuing suboptimal molecules, hindering the progress of drug discovery.
Methods
The authors employ chemical language models (CLMs), specifically LSTM, S4, and GPT architectures, trained on large datasets of molecules. They systematically analyze the impact of the size of the generated molecular library on various evaluation metrics. Key techniques include:
- Fréchet Distances (FCD and FDD): Measuring the distributional similarity between generated molecules and known bioactive sets using pre-trained neural networks (ChemNet) and molecular descriptors.
- Internal Diversity Metrics: Assessing uniqueness (fraction of distinct molecules), number of clusters (structurally distant molecules), and number of substructures (unique Morgan keys).
- Likelihood-based Evaluation: Using model-generated probabilities to rank molecules and explore trade-offs between exploration and exploitation.
- Sampling Strategy Analysis: Investigating the impact of temperature, top-k, and top-p sampling on generated molecule properties.
Datasets
- Pre-training Dataset: Approximately 2.3 million SMILES strings from ChEMBL v33.
- Fine-tuning Datasets: Curated from ExCAPE-DB for three protein targets: Dopamine Receptor D3 (DRD3), Peptidyl-prolyl cis/trans Isomerase NIMA-interacting 1 (PIN1), and Vitamin D Receptor (VDR).
Key Insights and Ideas
- The "Size Trap": The number of generated molecules significantly impacts evaluation metrics like FCD and FDD. Metrics often plateau or converge only after considering a large number of designs (e.g., >10,000 for FCD), making comparisons based on small libraries misleading.
- Uniqueness is a "Sanity Check," Not a Diversity Metric: While commonly reported, uniqueness decreases with library size and can lead to different model rankings. The number of clusters and substructures are more reliable indicators of internal diversity.
- Likelihood as a Double-Edged Sword: Higher likelihood bins favor exploitation (similarity to known actives) but reduce novelty and diversity. Lower likelihood bins favor exploration but can lead to invalid or low-quality molecules.
- Frequency Can Be Deceptive: Frequently generated molecules are not necessarily high-quality; they can be simple, repetitive substructures ("hallucinations") that are unsuitable for further study.
- Molecule Generation is Fundamentally Different from Natural Language: The limited "chemical vocabulary" (elements, valid structures) constrains diversity in molecule generation more than in natural language, requiring different sampling strategies. Temperature sampling is crucial for controlling diversity in molecules, unlike in NLP where top-k/top-p are often preferred.
Key Results
- FCD values converge when more than 10,000 designs are considered, highlighting the need for large libraries for reliable similarity assessment.
- Internal diversity metrics (clusters, substructures) provide more consistent rankings across different library sizes compared to uniqueness.
- Likelihood analysis reveals an exploration-exploitation trade-off, with higher likelihoods showing more similarity but less novelty.
- Analysis of sampling strategies shows that temperature sampling is the most effective for controlling molecular diversity, while top-k and top-p sampling can lead to mode collapse.
- The number of substructures is a computationally efficient and size-invariant measure of internal diversity, making it suitable for large-scale evaluations.
Limitations and Future Work
- Computational Cost: Evaluating large libraries (e.g., >10^5 designs) is computationally intensive, necessitating the development of more efficient metrics.
- Correlation of Likelihood with Bioactivity: While model likelihood is a useful intrinsic metric, its correlation with actual bioactivity and toxicity beyond simple molecular similarity remains an open question.
- Fragment-Based Representations: Exploring fragment-based molecular representations could potentially increase the chemical vocabulary and improve diversity.
- Standardization: The authors call for the community to adopt more standardized evaluation practices, including reporting metrics for large libraries and considering the impact of library size. They suggest systematically reporting model likelihoods to better understand what they capture.
Summary updated