NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

GAUCHE: A Library for Gaussian Processes in Chemistry

Ryan-Rhys Griffiths, Leo Klarner, Henry B. Moss, Aditya Ravuri, Sang Truong, Samuel Stanton, Gary Tom, Bojana Rankovic, Yuanqi Du, Arian Jamasb, Aryan Deshwal, Julius Schwartz, Austin Tripp, Gregory Kell, Simon Frieder, Anthony Bourached, Alex Chan, Jacob Moss, Chengzhi Guo, Johannes Durholt, Saudamini Chaurasia, Felix Strieth-Kalthoff, Alpha A. Lee, Bingqing Cheng, Alán Aspuru-Guzik, Philippe Schwaller, Jian Tang

TL;DR

GAUCHE is an open-source library that brings the power of Gaussian Processes (GPs) to the world of chemistry. By providing specialized kernels for molecular graphs, strings, and fingerprints, it enables researchers to perform robust uncertainty quantification and efficient Bayesian optimization in the "small data" regimes typical of experimental laboratories.

What Problem Does This Paper Address?

In experimental chemistry, high-quality data is often expensive and time-consuming to acquire. While deep learning has revolutionized many fields, it typically requires massive datasets and often struggles to provide reliable uncertainty estimates—a critical requirement for Bayesian Optimization (BO) and Active Learning (AL).

Gaussian Processes are the "gold standard" for probabilistic modeling in small-data settings because they admit exact Bayesian inference and require minimal hand-tuning. However, standard GPs are designed for continuous, fixed-dimensional input spaces. Chemistry, by contrast, relies on structured representations like SMILES strings, molecular graphs, and bit-vector fingerprints. Bridging this gap requires specialized mathematical "kernels" that can measure similarity between these complex structures. GAUCHE provides these missing pieces in a modern, GPU-accelerated framework.

Methods

GAUCHE is built on top of industry-standard libraries: GPyTorch for Gaussian Processes, BoTorch for Bayesian Optimization, and RDKit for chemical featurization.

The core contribution is a suite of molecular kernels designed for different representations:

  • Fingerprint Kernels: Includes the Tanimoto kernel, a staple in chemoinformatics, and Scalar Product kernels for bit vectors.
  • String Kernels: Implements kernels that operate directly on SMILES or SELFIES strings by examining common contiguous sub-sequences.
  • Graph Kernels: Interfaces with the GraKel library to provide kernels like Weisfeiler-Lehman, which compare molecular graphs based on atom neighborhoods.
Figure 1: An overview of the applications and representations available in GAUCHE.

Datasets

The authors benchmarked GAUCHE across several standard chemical datasets:

  • Molecular Properties: Photoswitch (transition wavelengths), ESOL (solubility), FreeSolv (hydration energy), and Lipophilicity.
  • Chemical Reactions: Yield prediction for Buchwald-Hartwig and Suzuki-Miyaura cross-coupling reactions.
  • Proteins: Structural data processed via an interface with the Graphein library.

Key Insights and Ideas

  • Shallow Beats Deep (Sometimes): For small-to-mid-sized chemical datasets, "shallow" GPs using hand-crafted features (like fingerprints) often outperform complex Bayesian Neural Networks and deep ensembles.
  • Representation is Task-Dependent: There is no "one size fits all" representation. For example, the Tanimoto kernel paired with "fragprints" (a combination of fingerprints and functional group counts) showed particularly strong performance across multiple benchmarks.
  • Exact Inference Matters: The ability of GPs to provide exact uncertainty estimates makes them superior surrogates for BO compared to approximate methods like Variational Inference in BNNs, leading to more efficient discovery cycles.

Key Results

  • Regression Accuracy: In molecular property prediction, GAUCHE models frequently achieved lower Root Mean Square Error (RMSE) than deep probabilistic models. For instance, on the ESOL solubility dataset, a Tanimoto-fragprint GP achieved an RMSE of 0.71, compared to 0.88 for a standard Bayesian Neural Network.
  • Optimization Efficiency: In BO tasks, GAUCHE models significantly outperformed random search. In the ultra-low data setting of the Photoswitch dataset (starting with just 19 molecules), the library successfully identified high-performing candidates within 20 iterations.
BO performance on the Photoswitch dataset.

Limitations and Future Work

  • Scalability: Standard GPs scale cubically ($O(N^3)$) with the number of data points. While GAUCHE uses GPU acceleration, the authors plan to incorporate Approximate Gaussian Processes (such as inducing point methods) to handle larger datasets.
  • Graph Kernel Stability: Some graph kernels exhibited numerical instability or poor performance on larger datasets like Lipophilicity and were eventually discontinued or left as future work.
  • Advanced BO: The team aims to expand the library to support more complex optimization scenarios, including batch, multi-objective, and multi-fidelity optimization.

Summary updated

BibTeX
@inproceedings{griffiths2023gauche,
  author = {Ryan-Rhys Griffiths and Leo Klarner and Henry B. Moss and Aditya Ravuri and Sang Truong and Samuel Stanton and Gary Tom and Bojana Rankovic and Yuanqi Du and Arian Jamasb and Aryan Deshwal and Julius Schwartz and Austin Tripp and Gregory Kell and Simon Frieder and Anthony Bourached and Alex Chan and Jacob Moss and Chengzhi Guo and Johannes Durholt and Saudamini Chaurasia and Felix Strieth-Kalthoff and Alpha A. Lee and Bingqing Cheng and Alán Aspuru-Guzik and Philippe Schwaller and Jian Tang},
  title = {{GAUCHE: A Library for Gaussian Processes in Chemistry}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=vzrA6uqOis},
}
Figure