Log-Linear-Time Gaussian Processes Using Binary Tree Kernels

Michael K. Cohen, Samuel Daulton, Michael A. Osborne
10/4/2022
cs.LG
bayesian

Official code: mkc1000/btgp (6 stars, Jupyter Notebook, last commit 2022-10-03).

Abstract

Gaussian processes (GPs) produce good probabilistic models of functions, but most GP kernels require $O((n+m)n^2)$ time, where $n$ is the number of data points and $m$ the number of predictive locations. We present a new kernel that allows for Gaussian process regression in $O((n+m)\log(n+m))$ time.

Show full abstract

Our "binary tree" kernel places all data points on the leaves of a binary tree, with the kernel depending only on the depth of the deepest common ancestor. We can store the resulting kernel matrix in $O(n)$ space in $O(n \log n)$ time, as a sum of sparse rank-one matrices, and approximately invert the kernel matrix in $O(n)$ time. Sparse GP methods also offer linear run time, but they predict less well than higher dimensional kernels. On a classic suite of regression tasks, we compare our kernel against Matérn, sparse, and sparse variational kernels. The binary tree GP assigns the highest likelihood to the test data on a plurality of datasets, usually achieves lower mean squared error than the sparse methods, and often ties or beats the Matérn GP. On large datasets, the binary tree GP is fastest, and much faster than a Matérn GP.

View on arXivView PDF

Code Implementations(1)

mkc1000/btgpOfficial100%
60Jupyter Notebook, PythonOct 3, 20224 years ago

Similar Papers

Cite this paper

@article{cohen2022loglineartime,
  title  = {Log-Linear-Time Gaussian Processes Using Binary Tree Kernels},
  author = {Michael K. Cohen and Samuel Daulton and Michael A. Osborne},
  year   = {2022},
  eprint = {2210.01633},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.01633}
}

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/2210.01633.svg)](https://codeofpaper.com/paper/2210.01633)

Discussion