Gaussian Processes (GPs) are the gold standard for uncertainty-aware modeling, offering robust Bayesian inference and principled uncertainty estimates. However, they are notoriously slow on large datasets. This paper introduces Stochastic Dual Descent (SDD), demonstrating that a carefully designed Stochastic Gradient Descent (SGD) approach can outperform traditional solvers like Conjugate Gradients and even match state-of-the-art Graph Neural Networks on complex molecular discovery tasks.
The Scaling Problem of GPs
Gaussian Process regression is a powerful tool, but it suffers from a well-known "cubic scaling" problem: fitting a model to $n$ data points traditionally requires $O(n^3)$ operations. To make GPs viable for big data, researchers typically turn to approximations (like variational GPs) or iterative solvers (like Conjugate Gradients, or CG).
While SGD is the undisputed engine of deep learning, it has historically been treated as a "second-class citizen" for GPs. Previous attempts to apply SGD to GPs often struggled with instability, slow convergence, or high error floors. The authors of this paper argue that SGD simply hasn't been "done right" in this context. They set out to prove that with the right optimization insights, SGD is not just a viable alternative to CG, but a superior one for large-scale Bayesian inference.
Stochastic Dual Descent (SDD): Doing SGD Right
The authors propose SDD, a method whose effectiveness stems from three specific, mathematically grounded design choices.
The first major shift is optimizing the dual objective instead of the standard "primal" loss (kernel ridge regression). The "aha" moment here is conditioning. The Hessian (the curvature) of the dual objective is much better behaved than the primal one. Because the optimization landscape becomes "rounder" and easier to navigate, the algorithm can take step sizes up to 500x larger without diverging.
Multiplicative Noise and Averaging
The second crucial design choice involves how stochasticity is introduced. Instead of using "Random Features" (a common GP approximation that adds constant noise), SDD subsamples the data points using random coordinates.
This creates multiplicative noise. Unlike additive noise, which stays constant and creates an artificial "error floor" even as you get close to the answer, multiplicative noise naturally shrinks as the algorithm approaches the true solution. The closer you get to the truth, the more precise your updates become, leading to vastly superior asymptotic accuracy.
Finally, the algorithm incorporates Nesterov’s momentum for acceleration and uses geometric iterate averaging (rather than standard arithmetic averaging) to stabilize the path toward the solution. This combination ensures that the optimizer doesn't just move quickly, but also smoothly converges to the optimal weights.
Key Results and Benchmarks
The researchers evaluated SDD across a diverse range of benchmarks, yielding impressive results:
- Performance and Speed: On 9 standard UCI regression datasets (ranging from 15k to 2 million observations), SDD matched or outperformed Conjugate Gradients across the board. On the largest datasets, SDD was significantly more accurate than CG within the same compute budget. Furthermore, SDD is roughly 30% faster per iteration than previous state-of-the-art SGD methods for GPs because it requires only one matrix-vector multiplication per step instead of two.
- Bayesian Optimization: In a synthetic large-scale Thompson Sampling task designed to find the maximum of a complex function, SDD found better global maxima faster in wall-clock time than all other baselines, including Variational GPs (SVGP).
- Molecular Discovery: One of the most striking insights is that a "simple" GP, when solved efficiently with SDD, can match the performance of specialized Graph Neural Networks. On the DOCKSTRING benchmark (featuring ~250,000 candidate molecules), GP regression with SDD achieved $R^2$ scores on par with state-of-the-art GNNs like Attentive FP, outperforming popular baselines like XGBoost and MPNNs.
Limitations and Future Work
While SDD represents a major leap forward for scalable GPs, there are areas for future exploration. The current paper focuses on solving the linear system for a fixed set of hyperparameters. Integrating SDD directly into the hyperparameter learning loop (e.g., learning the kernel's lengthscale dynamically) is a logical next step. Additionally, while the paper provides solid guidelines, the optimal balance between batch size and step size still requires some case-by-case tuning for new datasets. Finally, the authors note that further theoretical analysis of geometric averaging under multiplicative noise would help solidify exactly why it outperforms arithmetic averaging so drastically in this specific context.
Summary updated