Large-scale Pretraining Improves Sample Efficiency of Active Learning based Molecule Virtual Screening

Zhonglin Cao, Simone Sciabola, Ye Wang

Introduction

In the early stages of drug discovery, identifying potential therapeutic candidates involves "virtual screening"—a process where researchers computationally predict how well molecules from a library bind to a specific target protein. Traditionally, this relies on molecular docking, a simulation-heavy method that calculates the binding affinity and orientation of a molecule within a protein's pocket.

However, as chemical libraries like the Enamine REAL database expand into the billions, docking every single compound has become computationally prohibitive. To navigate this vast chemical space, researchers have turned to Active Learning (AL). In an AL framework, a "surrogate" machine learning model is trained on a small subset of docked molecules to predict the scores of the remaining library. The most promising candidates are then selected for the next round of docking, creating an iterative feedback loop. The primary bottleneck in this process is the sample efficiency of the surrogate model: if the model requires too much data to become accurate, the efficiency gains of AL are lost. This paper investigates whether large-scale pretrained models can overcome this bottleneck by providing a "warm start" to the active learning process.

Methodology: Pretraining Meets MolPAL

Researchers from Biogen integrated two distinct types of pretrained models into the MolPAL (Molecular Pool-based Active Learning) framework. MolPAL utilizes Bayesian Optimization to iteratively explore chemical libraries through a three-step cycle:

  1. Acquire: Select molecules using an acquisition function, such as Greedy (highest predicted scores) or Upper Confidence Bound (UCB), which balances high scores with model uncertainty.
  2. Score: Obtain ground-truth data via simulated docking or 3D shape similarity (ROCS).
  3. Train: Update the surrogate model with the newly acquired data.

To improve the surrogate's performance, the authors tested two pretrained architectures:

  • MoLFormer: A Transformer-based language model pretrained on 1.1 billion SMILES strings. It treats molecular structures as a language, learning the underlying "grammar" of chemical representations.
  • MolCLR: A Graph Isomorphism Network (GIN) pretrained on 10 million molecules using contrastive learning. This model focuses on the structural essence of molecular graphs by comparing augmented versions of the same molecule.

These models were benchmarked against standard baselines, including Directed Message-Passing Neural Networks (D-MPNN), LightGBM, and Random Forest.

Experimental Results

The framework was evaluated across libraries of varying scales, ranging from the Enamine 50k diversity set to the ultra-large AmpC library containing 99.5 million compounds.

State-of-the-Art Efficiency

The most significant results were observed on the 99.5-million-compound AmpC library. By docking only 0.6% of the total library, the MolCLR-based framework successfully recovered 58.97% of the top 50,000 hits. This represents an 8% improvement over the previous state-of-the-art baseline (D-MPNN), demonstrating that pretrained models can identify high-affinity molecules with significantly less data.

Enrichment and Stability

On the medium-sized Enamine HTS set (2.1 million compounds), MoLFormer achieved an Enrichment Factor (EF) of 140.2, meaning it was over 140 times more effective at finding hits than random sampling. Furthermore, pretrained models exhibited much lower variance across different experimental runs compared to standard models, suggesting that pretraining provides a more stable and reliable foundation for virtual screening.

Discussion and Insights

The "Warm Start" Advantage

Standard surrogate models start "cold," possessing no inherent knowledge of chemistry until they receive their first batch of docking data. In contrast, pretrained models arrive with a sophisticated understanding of molecular features. This allows them to recognize patterns and generalize from limited docking results much faster than models trained from scratch.

Graphs vs. Language

The study revealed a nuance in model performance: while MoLFormer (the Transformer) was highly robust for ligand-based similarity and smaller datasets, MolCLR (the GNN) showed superior scaling capabilities on the largest 99.5-million-compound docking tasks. This suggests that the choice of architecture may depend on the specific scale and nature of the screening task.

The Uncertainty Trade-off

The researchers also explored the role of exploration in active learning. Using the UCB acquisition function, they found that while some exploration of uncertain chemical space is beneficial, weighing uncertainty too heavily (e.g., a weight parameter $\beta > 2$) caused the hit recovery rate to drop. There is a critical "sweet spot" where the model remains curious enough to find diverse hits without wandering too far from high-probability candidates.

Conclusion and Future Work

By leveraging models pretrained on massive chemical datasets, the researchers have significantly improved the sample efficiency of active learning in virtual screening. This approach allows for the exploration of billion-molecule libraries in a fraction of the time required by traditional methods.

While pretrained models introduce higher computational overhead during training compared to simpler methods like LightGBM, their ability to find "needles in the haystack" more accurately makes them a powerful tool for modern drug discovery. Future research may extend this framework to multi-objective optimization—searching for molecules that are not only high-binding but also possess favorable safety and toxicity profiles.

Summary updated

BibTeX
@inproceedings{cao2023large,
  author = {Zhonglin Cao and Simone Sciabola and Ye Wang},
  title = {{Large-scale Pretraining Improves Sample Efficiency of Active Learning based Molecule Virtual Screening}},
  booktitle = {AI4D3 @ NeurIPS},
  year = {2023},
  url = {https://openreview.net/forum?id=9DxJQpzZTn},
}
Figure