Scalable Log Determinants for Gaussian Process Kernel Learning

Kun Dong, David Eriksson, Hannes Nickisch, David Bindel, Andrew Gordon WilsonarXiv 2017

Introduction

Gaussian Processes (GPs) are a cornerstone of probabilistic machine learning, offering robust uncertainty quantification. However, their application to large-scale datasets has historically been limited by the "cubic curse": training requires computing the log-determinant of an $n \times n$ covariance matrix $K$, a process costing $O(n^3)$ time and $O(n^2)$ memory. While recent advances like Structured Kernel Interpolation (SKI) have accelerated inference, kernel learning—the optimization of hyperparameters—remained a significant bottleneck. This paper presents a general-purpose framework to scale log-determinant computations to millions of data points using only fast matrix-vector multiplications (MVMs).

Methodology: MVM-Based Log-Determinants

The core innovation lies in avoiding the direct computation of the log-determinant by leveraging the identity $\log |K| = \text{tr}(\log K)$. The authors employ Stochastic Trace Estimation, where the trace is approximated as $\text{tr}(A) \approx \mathbb{E}[z^T Az]$ using random probe vectors $z$. This reduces the problem to calculating the action of the matrix logarithm on a vector, $\log(K)z$.

Two iterative methods for computing $\log(K)z$ were evaluated:

  1. Chebyshev Polynomials: These approximate the logarithm with a high-degree polynomial. While simple, they require prior knowledge of the eigenvalue range and struggle with matrices that are nearly singular.
  2. Lanczos Algorithm: This method constructs a tridiagonal approximation of the matrix. The authors demonstrate that Lanczos is superior because it adaptively fits the specific eigenvalue spectrum of the kernel, leading to faster convergence, particularly for kernels with rapidly decaying eigenvalues like the Radial Basis Function (RBF).

To further enhance efficiency, the framework supports Diagonal Correction for non-smooth kernels (e.g., Matérn) and the use of Surrogate Models to interpolate the log-determinant surface during optimization. Crucially, the MVMs used for the log-determinant can be reused to estimate its derivatives, making gradient-based hyperparameter optimization highly efficient.

Experimental Evaluation

The proposed methods were tested across diverse, large-scale datasets, including a 60,000-point natural sound waveform and a spatio-temporal precipitation dataset with over 528,000 points. The framework was also applied to Chicago crime prediction and Deep Kernel Learning (DKL) tasks.

Performance metrics on sound data modeling, showing recovery time, inference time, and SMAE convergence.

Key Results

The Lanczos-based approach demonstrated significant improvements in both speed and scalability. On the precipitation dataset, hyperparameter learning and prediction were completed in just 14 minutes—a task impossible for exact GPs on standard hardware. In the sound modeling task, the Lanczos method showed superior convergence in terms of Standardized Mean Absolute Error (SMAE) compared to alternatives. Furthermore, the method's flexibility was proven by its successful application to non-Gaussian likelihoods and complex deep architectures.

Spatial intensity map illustrating the model's predictive capabilities on large-scale spatial data.

Discussion and Conclusion

The primary limitation of this framework is its dependence on the availability of fast MVMs. If a kernel lacks structure or a good approximation, the computational cost remains high. Additionally, the stochastic nature of the trace estimator introduces noise into the gradients, though empirical results suggest 5–10 probes are sufficient for most tasks. By breaking the reliance on grid-structured data, this work enables GPs to be applied to a much broader class of massive, complex datasets.

Summary updated

BibTeX
@misc{dong2017scalable,
  author = {Kun Dong and David Eriksson and Hannes Nickisch and David Bindel and Andrew Gordon Wilson},
  title = {{Scalable Log Determinants for Gaussian Process Kernel Learning}},
  year = {2017},
  eprint = {1711.03481},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1711.03481},
}
Figure