GPyTorch: Blackbox Matrix-Matrix Gaussian Process Inference with GPU Acceleration

Jacob R. Gardner, Geoff Pleiss, David Bindel, Kilian Q. Weinberger, Andrew Gordon Wilson
9/28/2018
cs.LGstat.ML

Official code: cornellius-gp/gpytorch (3,928 stars, MIT, PyTorch, last commit 2026-10-02).

Abstract

Despite advances in scalable models, the inference tools used for Gaussian processes (GPs) have yet to fully capitalize on developments in computing hardware. We present an efficient and general approach to GP inference based on Blackbox Matrix-Matrix multiplication (BBMM). BBMM inference uses a modified batched version of the conjugate gradients algorithm to derive all terms for training and inference in a single call. BBMM reduces the asymptotic complexity of exact GP inference from $O(n^3)$ to $O(n^2)$. Adapting this algorithm to scalable approximations and complex GP models simply requires a routine for efficient matrix-matrix multiplication with the kernel and its derivative. In addition, BBMM uses a specialized preconditioner to substantially speed up convergence. In experiments we show that BBMM effectively uses GPU hardware to dramatically accelerate both exact GP inference and scalable approximations. Additionally, we provide GPyTorch, a software platform for scalable GP inference via BBMM, built on PyTorch.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

A highly efficient implementation of Gaussian Processes in PyTorch

3,928613PythonJun 9, 20172 weeks agoMIT
gaussian-processesgpu-accelerationpytorch

Similar Papers

Cite this paper

@article{gardner2018gpytorch,
  title  = {GPyTorch: Blackbox Matrix-Matrix Gaussian Process Inference with GPU Acceleration},
  author = {Jacob R. Gardner and Geoff Pleiss and David Bindel and Kilian Q. Weinberger and Andrew Gordon Wilson},
  year   = {2018},
  eprint = {1809.11165},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1809.11165}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1809.11165.svg)](https://codeofpaper.com/paper/1809.11165)

Discussion