Fast Matrix Square Roots with Applications to Gaussian Processes and Bayesian Optimization

Geoff Pleiss, Martin Jankowiak, David Eriksson, Anil Damle, Jacob R. Gardner
6/19/2020
cs.LGstat.ML
bayesian

Official code: gpleiss/ciq_experiments (2 stars, Jupyter Notebook, Apache-2.0, last commit 2023-08-22).

Abstract

Matrix square roots and their inverses arise frequently in machine learning, e.g., when sampling from high-dimensional Gaussians $\mathcal{N}(\mathbf 0, \mathbf K)$ or whitening a vector $\mathbf b$ against covariance matrix $\mathbf K$. While existing methods typically require $O(N^3)$ computation, we introduce a highly-efficient quadratic-time algorithm for computing $\mathbf K^{1/2} \mathbf b$, $\mathbf K^{-1/2} \mathbf b$, and their derivatives through matrix-vector multiplication (MVMs).

Show full abstract

Our method combines Krylov subspace methods with a rational approximation and typically achieves $4$ decimal places of accuracy with fewer than $100$ MVMs. Moreover, the backward pass requires little additional computation. We demonstrate our method's applicability on matrices as large as $50,\!000 \times 50,\!000$ - well beyond traditional methods - with little approximation error. Applying this increased scalability to variational Gaussian processes, Bayesian optimization, and Gibbs sampling results in more powerful models with higher accuracy.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Code to reproduce the experiments in "Fast Matrix Square Roots with Applications to Gaussian Processes and Bayesian Optimization"

20Jupyter Notebook, PythonOct 18, 20203 years agoApache-2.0

Similar Papers

Cite this paper

@article{pleiss2020fast,
  title  = {Fast Matrix Square Roots with Applications to Gaussian Processes and Bayesian Optimization},
  author = {Geoff Pleiss and Martin Jankowiak and David Eriksson and Anil Damle and Jacob R. Gardner},
  year   = {2020},
  eprint = {2006.11267},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2006.11267}
}

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

Discussion