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

GAUCHE: A Library for Gaussian Processes in Chemistry

Ryan-Rhys Griffiths, Leo Klarner, Henry Moss, Aditya Ravuri, Sang T. Truong, Bojana Rankovic, Yuanqi Du, Arian Rokkum Jamasb, Julius Schwartz, Austin Tripp, Gregory Kell, Anthony Bourached, Alex Chan, Jacob Moss, Chengzhi Guo, Alpha Lee, Philippe Schwaller, Jian Tang · DOI

Introduction

In the early stages of scientific discovery, researchers often face a significant bottleneck: high-quality experimental data is expensive and time-consuming to acquire. While deep learning has transformed fields with abundant data, it frequently struggles in chemistry, where datasets often consist of only tens or hundreds of samples. In these "small data" regimes, Gaussian Processes (GPs) emerge as the mathematical gold standard, offering exact Bayesian inference and reliable uncertainty quantification.

However, a gap has existed between GP theory and chemical practice. Standard GPs are optimized for continuous inputs, whereas chemistry is inherently discrete and structured, involving molecular graphs, SMILES strings, and high-dimensional fingerprints. GAUCHE (GAUssian processes in CHEmistry) bridges this gap by providing a specialized library for chemical machine learning.

The GAUCHE Framework

GAUCHE is an open-source library built upon GPyTorch and BoTorch, inheriting their modularity and GPU acceleration. Its primary contribution is a suite of "bespoke" kernels designed specifically for chemical representations.

Overview of the GAUCHE library architecture and supported chemical representations.

The library supports several key representation-kernel pairs:

  • Fingerprint Kernels: Includes the Tanimoto kernel, a staple in chemoinformatics, now formalized for GP regression.
  • String Kernels: Operates directly on SMILES or SELFIES strings using bag-of-characters approaches to compare sub-strings.
  • Graph Kernels: Interfaces with the GraKel library to utilize topological comparisons like the Weisfeiler-Lehman kernel.
  • Reaction Kernels: Features specialized representations like the Differential Reaction Fingerprint (DRFP) to model chemical transformations.

Experimental Evaluation

The authors validated GAUCHE across a diverse set of benchmarks, including molecular property prediction (Photoswitch, ESOL, FreeSolv, Lipophilicity) and chemical reaction yield prediction (Pd-catalysed Buchwald–Hartwig and Suzuki–Miyaura couplings).

Key Results

The experiments revealed that "shallow" GPs using Tanimoto kernels on fingerprints often match or exceed the performance of complex Bayesian Neural Networks (BNNs) and Graph Neural Networks (GNNs) on small datasets. Crucially, GPs provided superior uncertainty calibration, which is vital for decision-making in experimental loops.

Bayesian Optimization performance across Photoswitch, ESOL, and Buchwald-Hartwig reaction datasets.

In Bayesian Optimization (BO) tasks, GAUCHE-powered models identified optimal molecules and reaction conditions significantly faster than random search. For instance, in the Buchwald-Hartwig reaction yield prediction, the combination of DRFP and the Tanimoto kernel achieved an $R^2$ of 0.94, outperforming standard RBF kernels.

Discussion and Insights

Three major insights emerged from the development of GAUCHE:

  1. Uncertainty is Paramount: In BO, a model's ability to quantify its own ignorance is often more important than its raw predictive accuracy.
  2. Representation is Task-Dependent: No single representation (SMILES, graphs, or fingerprints) is universally superior; GAUCHE allows researchers to empirically determine the best fit for their specific problem.
  3. Occam's Razor: GPs "just work" with fewer hyperparameters than deep ensembles, making them ideal for automated scientific discovery where manual fine-tuning is impractical.

Conclusion and Future Work

GAUCHE establishes Gaussian Processes as a first-class citizen in the chemical machine learning ecosystem. While currently optimized for small-to-mid-sized datasets, future developments will focus on scaling to larger libraries via sparse GPs, implementing multi-objective optimization, and integrating with generative models like Variational Autoencoders.

The GAUCHE library is open-source and available for the community to accelerate molecular discovery and reaction engineering.

Summary updated

BibTeX
@inproceedings{griffiths2023gauche,
  author = {Ryan-Rhys Griffiths and Leo Klarner and Henry Moss and Aditya Ravuri and Sang T. Truong and Bojana Rankovic and Yuanqi Du and Arian Rokkum Jamasb and Julius Schwartz and Austin Tripp and Gregory Kell and Anthony Bourached and Alex Chan and Jacob Moss and Chengzhi Guo and Alpha Lee 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