Meta-learning Adaptive Deep Kernel Gaussian Processes for Molecular Property Prediction

Wenlin Chen, Austin Tripp, José Miguel Hernández-Lobato

TL;DR

ADKF-IFT is a new framework for training Deep Kernel Gaussian Processes that strikes a perfect balance between meta-learning and task-specific adaptation. By using the Implicit Function Theorem to solve a bilevel optimization problem, it learns powerful molecular representations while allowing kernel parameters to adapt to the unique "noise" of individual chemical assays, setting a new state-of-the-art for few-shot drug discovery.

What Problem Does This Paper Address?

In drug discovery, researchers often need to predict the properties of molecules (like toxicity or solubility) using very few data points—a classic "few-shot" learning scenario. Standard Deep Learning models are notoriously overconfident and provide poor uncertainty estimates, making them risky for guiding expensive laboratory experiments.

Gaussian Processes (GPs) are the gold standard for uncertainty quantification, but they traditionally rely on hand-engineered features. Deep Kernel Learning (DKL) attempts to fix this by using a neural network to learn features for the GP. However, DKL tends to overfit on small datasets. Conversely, Deep Kernel Transfer (DKT) uses meta-learning to find one set of parameters for all tasks, but it often "underfits" because it assumes every chemical task has the same noise level and scale—an assumption that rarely holds in the messy world of biology.

Methods: The ADKF-IFT Framework

The authors introduce Adaptive Deep Kernel Fitting with Implicit Function Theorem (ADKF-IFT). The core idea is a bilevel optimization strategy:

  1. The Inner Loop (Adaptation): For a specific task, the model adapts the "base kernel" parameters (like noise level and lengthscales) by maximizing the marginal likelihood on a small support set.
  2. The Outer Loop (Meta-Learning): The model updates the neural network feature extractor to ensure that, after the inner loop adaptation, the GP achieves the lowest possible predictive loss on a validation set.

To make this computationally feasible, they use the Implicit Function Theorem (IFT). Usually, meta-learning requires "unrolling" the optimization steps of the inner loop, which is memory-intensive and prone to vanishing gradients. IFT allows the authors to compute the exact "hypergradient" of the meta-loss without storing the intermediate steps of the inner optimization.

Comparison of ADKF-IFT, DKT, and DKL frameworks

Crucially, the authors show that ADKF-IFT is a unifying framework: if you meta-learn nothing, you get DKL; if you meta-learn everything, you get DKT. ADKF-IFT sits in the "Goldilocks zone" by meta-learning the features but adapting the kernel.

Key Insights and Ideas

  • The "Nuisance" Parameter Insight: The authors argue that while the features of molecules are generally useful across tasks, the statistical properties (how much noise is in the assay, how quickly the property changes in chemical space) vary wildly. By adapting only the kernel parameters ($\theta$) and meta-learning the feature extractor ($\phi$), they capture the best of both worlds.
  • Exact Gradients via IFT: Unlike popular meta-learning methods like MAML that often use "first-order" approximations to save memory, ADKF-IFT provides a mathematically exact way to compute gradients for the feature extractor, leading to more stable and effective training.
  • Uncertainty as a Search Tool: Because the model is a GP, it provides a "confidence" score. The authors show this is vital for Bayesian Optimization, where the model doesn't just predict properties but actively chooses which molecules to "test" next to find the best candidate.

Key Results

The model was rigorously evaluated on standard benchmarks (MoleculeNet), large-scale few-shot benchmarks (FS-Mol), and out-of-domain tasks like molecular docking and antiviral design.

  • SOTA Performance: ADKF-IFT significantly outperformed previous state-of-the-art methods (like PAR and DKT) on the FS-Mol benchmark for both classification and regression.
Performance of ADKF-IFT vs baselines on classification and regression tasks
  • Superior Generalization: In out-of-domain tasks, the representations learned by ADKF-IFT enabled faster discovery of top-performing molecules in Bayesian Optimization loops compared to using standard molecular fingerprints or other meta-learned features.
  • Robustness to Scale: The model showed consistent gains across different support set sizes (from 16 to 256 molecules), proving it scales better than pure single-task or pure meta-learning approaches.

Limitations and Future Work

  • Kernel Complexity: The current implementation uses a relatively simple Matérn kernel. The authors suggest that using Automatic Relevance Determination (ARD)—which assigns a different importance weight to every feature—could improve performance, though it risks overfitting on very small datasets.
  • Classification Strategy: Currently, the model treats binary classification as a regression problem (predicting $\pm 1$ labels). Moving to a more principled GP classification likelihood (like using Pólya-Gamma augmentation) is a suggested next step.
  • Domain Expertise: The authors note that injecting specific chemical knowledge directly into the kernel structure (rather than just learning it via the neural network) remains an open and promising direction.

Summary updated

BibTeX
@inproceedings{chen2023meta,
  author = {Wenlin Chen and Austin Tripp and José Miguel Hernández-Lobato},
  title = {{Meta-learning Adaptive Deep Kernel Gaussian Processes for Molecular Property Prediction}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=KXRSh0sdVTP},
}
Figure