Matrix square roots and their inverses arise frequently in machine learning, e.g., when sampling from high-dimensional Gaussians $(\mathbf 0, \mathbf K)\mathbf b\mathbf KO(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). Our method combines Krylov subspace methods with a rational approximation and typically achieves decimal places of accuracy with fewer than MVMs. Moreover, the backward pass requires little additional computation. We demonstrate our method’s applicability on matrices as large as - 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.

生成讲解博客的中文版本

生成AI智能校验的中文版本