Gaussian Processes (GPs) are the gold standard for uncertainty quantification, but they are famously limited by a "cubic wall." To perform exact inference, one must typically invert a covariance matrix $K$ or compute its Cholesky decomposition, an operation that scales at $O(N^3)$ for $N$ data points. For a million points, this is computationally impossible.
A growing body of research suggests that we don't actually need to invert the matrix. Instead, we can solve the underlying linear systems using iterative solvers paired with structured matrix representations. By exploiting the inherent geometry of the data—whether it is grid-like, additive, or locally correlated—we can reduce the cost of inference from cubic to near-linear.
The Shift to Iterative Inference
The core realization across this field is that GP inference only requires solving the linear system $(K + \sigma^2 I)x = y$. Rather than decomposing $K$ directly, researchers like Xubo Yue and RK utilize the Conjugate Gradient (CG) algorithm.
CG is an iterative method that only requires one operation: the Matrix-Vector Multiplication (MVM). If you can compute $Kv$ efficiently without ever "forming" the full $N \times N$ matrix in memory, you can bypass both the $O(N^2)$ storage and $O(N^3)$ time bottlenecks. This "matrix-free" approach is the engine behind modern scalable GPs.
Exploiting Kronecker Structure
When data has a multi-dimensional or grid-like structure, the covariance matrix $K$ often possesses a Kronecker structure. A massive $N \times N$ matrix can be represented as the product of much smaller matrices (e.g., $K = A \otimes B$).
Jihao Andreas Lin and Maximilian Balandat demonstrate in Scaling Gaussian Processes for Learning Curve Prediction via Latent Kronecker Structure that this structure allows MVMs to be computed in near-linear time. This is particularly powerful in high-dimensional settings. For instance, Filip de Roos and Philipp Hennig show that even when dealing with derivative observations—which usually inflate the matrix size by a factor of the dimension $D$—a hidden Kronecker-plus-low-rank structure can keep the complexity linear in $D$.
Sparsity through Compact Support
Another way to accelerate MVMs is to ensure the matrix $K$ is mostly zeros. Traditional kernels like the RBF never truly reach zero, resulting in dense matrices. However, by designing compactly-supported kernels, Jarred Barber shows that we can force the covariance to drop to zero beyond a certain distance.
This sparsity allows the use of sparse linear algebra, where the cost of an MVM scales only with the number of non-zero entries. In Representing Additive Gaussian Processes by Sparse Matrices, LU ZOU and Haoyuan Chen take this further by using banded matrix representations for additive Matérn GPs, achieving $O(N \log N)$ complexity. This makes it possible to compute gradients for Bayesian Optimization in near-constant time.
Beyond Regression: Multi-Label and Graphs
The benefits of structured MVMs extend beyond simple regression. In multi-label classification, the challenge is accounting for correlations between $T$ different labels. Hyun Ha Nam and Masashi Sugiyama reformulated this problem as a continuous Sylvester equation. By exploiting the Kronecker structure of the system, they reduced the complexity from $O(N^3 T^3)$ to $O(N^3 + T^3)$, effectively decoupling the number of samples from the number of labels.
Similarly, for data living on graphs, Matthew Zhang and Isaac Reid use Graph Random Features to maintain efficient inference. By combining iterative solvers with sparse kernel approximations, they ensure that the time to compute uncertainty on a million-node graph scales sub-quadratically, avoiding the "computational death sentence" of standard GP methods.
Summary of Intuition
The transition from $O(N^3)$ to $O(N)$ is not achieved by a single trick, but by a shared philosophy:
- Don't Invert: Use iterative solvers (CG, Gauss-Seidel) that only need matrix-vector products.
- Don't Store: Use implicit representations (Kronecker, Additive, Sparse) so the full matrix never exists in memory.
- Exploit Geometry: Match the matrix structure to the data's natural properties (grid structure, local influence, or label correlations).
By treating the covariance matrix as an operator rather than a static block of memory, these methods allow Gaussian Processes to scale to the massive datasets of modern machine learning.