Conditional Neural Processes for Molecules

Miguel Garcia Ortegon, Andreas Bender, Sergio Bacallado · DOI

TL;DR

This paper introduces Conditional Neural Processes (CNPs) for molecular property prediction, demonstrating their effectiveness in few-shot learning scenarios with sparse chemical data. CNPs show competitive performance against traditional methods, offering a promising approach for accelerating drug discovery by efficiently learning from limited observations.

What Problem Does This Paper Address?

The field of drug discovery is awash with data, but much of it is "sparse" – meaning many potential molecular properties or functions have only a few observed data points. Traditional machine learning models often require vast amounts of labeled data, which is a bottleneck in this domain. This paper addresses the challenge of building predictive models that can effectively learn from these limited observations, a problem known as meta-learning. Specifically, it aims to develop models that can transfer knowledge across different molecular functions, even when those functions have few observed labels, to accelerate tasks like virtual screening and quantitative structure-activity relationships (QSAR).

Methods

The core of this work is the application of Conditional Neural Processes (CNPs) to molecular data. CNPs are a type of neural network model that, like Gaussian Processes (GPs), can handle uncertainty and learn from few data points. However, CNPs are computationally more efficient than GPs, especially during training. The paper details a specific CNP architecture involving an encoder network, an aggregation function, and a decoder network. The encoder processes context points (input features and their known values), the aggregator combines this information into a global representation, and the decoder predicts the distribution of target values for new input points. The CNP is trained by minimizing a variational objective. The paper also compares the CNP against several benchmark models: a standard feed-forward neural network (NN), k-nearest neighbors (KNN), fingerprint similarity search (FSS), and a random forest regressor (RF). A transfer learning variant, a fine-tuned NN, is also included.

Datasets

The primary dataset used is DOCKSTRING, a large-scale molecular dataset containing over 15 million docking scores for 58 protein targets and 260,000 molecules. The authors created specific splits of this dataset for their experiments:

  • dtrain/dtest: Subsets of molecules from the original DOCKSTRING training and test sets, split by cluster similarity to prevent data leakage.
  • ftrain/ftest: Function splits derived from the DOCKSTRING regression task, where 5 specific targets (ESR2, KIT, PARP1, PGR, F2) were designated as ftest and the remaining 53 as ftrain.

The paper also introduces a QED-modified score by combining docking scores with the quantitative estimate of drug-likeness (QED) to create a new, potentially more challenging, artificial score for evaluation.

Key Insights and Ideas

  • CNPs excel at few-shot learning for molecules: The paper demonstrates that CNPs significantly outperform traditional supervised learning baselines and even a fine-tuned neural network in low-data regimes for molecular property prediction. This highlights their strong meta-learning capabilities.
  • Uncertainty quantification is a challenge: While CNPs provide probabilistic predictions, the paper identifies a risk of overfitting and unreliable uncertainty estimates, particularly on test data. This suggests that calibrating CNP uncertainty is an important area for future research.
  • Generalization to diverse function classes is limited: CNPs struggled to generalize to entirely new types of molecular functions (e.g., QED-modified scores) if they were not included during training. However, performance could be recovered by incorporating these new function types into the training set.
  • CNPs show promise for Bayesian Optimization: The CNP's predictive distribution was evaluated for Bayesian optimization tasks. While greedy and LCB acquisition functions (which use the mean and uncertainty, respectively) both outperformed random selection, the uncertainty estimates of the CNP did not provide a significant advantage over using just the mean.

Key Results

  • In few-shot learning scenarios, the CNP consistently outperformed all benchmark models, including a fine-tuned neural network, on both easy and challenging protein targets.
  • The CNP showed competitive performance on the DOCKSTRING dataset, achieving R² values around 0.57 for plain scores and 0.34 for QED-modified scores when trained on both types of data.
  • During probabilistic regression, performance on training data improved monotonically, but performance on test data degraded after a certain number of training epochs, indicating overfitting. Uncertainty estimates also worsened for test data.
  • For Bayesian optimization, greedy and LCB acquisition functions performed similarly and significantly better than random selection, quickly finding good molecules.

Limitations and Future Work

  • Uncertainty Calibration: The paper acknowledges that the correct way to calibrate uncertainty estimates in CNPs requires further study. They hypothesize that Latent Neural Processes (LNPs), which include a KL regularization term in their objective, might be more robust to overfitting and uncertainty degradation.
  • Generalization to Diverse Function Classes: The CNP's inability to generalize to entirely new classes of molecular functions without retraining is a limitation.
  • Bayesian Optimization with Uncertainty: The current study did not show a clear advantage of using CNP uncertainty estimates over just the mean for molecular optimization.
  • Future Work: The authors suggest exploring LNPs for improved uncertainty handling, investigating more complex imputation and molecular optimization tasks, and applying similar models to more diverse function classes. A more challenging optimization task within a larger molecular library is also proposed for future work.

Summary updated

BibTeX
@inproceedings{ortegon2022conditional,
  author = {Miguel Garcia Ortegon and Andreas Bender and Sergio Bacallado},
  title = {{Conditional Neural Processes for Molecules}},
  booktitle = {LMRL @ NeurIPS},
  year = {2022},
  doi = {10.48550/arxiv.2210.09211},
}
Figure