Abstract
Scaling Gaussian Processes and Bayesian inference to massive datasets requires efficient solutions for linear systems and log-determinants. While Krylov subspace methods offer a path forward, they typically force a trade-off between the systematic bias of deterministic truncation and the extreme variance of stochastic estimators. This paper introduces the Preconditioned Truncated Single-Sample (PTSS) estimator, a framework that leverages spectral preconditioning and a randomized stopping rule to provide unbiased, low-variance estimates. We demonstrate that PTSS maintains numerical stability and achieves mean-equivalence to deep deterministic solvers at a fraction of the computational cost.
Introduction
In modern machine learning, particularly within Gaussian Process (GP) regression and Bayesian optimization, the computational bottleneck is often the manipulation of large covariance matrices. Operations such as solving $Ax = b$ and computing the log-determinant $\log |A|$ scale cubically ($O(n^3)$) with the number of data points $n$. As datasets grow into the millions, exact methods become intractable.
To address this, researchers frequently turn to Krylov subspace methods, such as Conjugate Gradient (CG) or Lanczos iterations. However, these methods present a difficult choice: stopping the solver early (deterministic truncation) introduces a systematic bias that can lead to poor hyperparameter optimization, while existing unbiased stochastic estimators (e.g., "Russian Roulette" estimators) often suffer from catastrophic variance and numerical instability. This work proposes the Preconditioned Truncated Single-Sample (PTSS) estimator to bridge this gap, providing a stable, unbiased, and computationally efficient alternative.
The PTSS Framework
The PTSS estimator is built on four primary pillars designed to balance accuracy, speed, and stability:
1. Truncated Single-Sample (TSS) Estimation
Standard randomized estimators often sample from the very first iteration of a solver, where the approximation is poorest and variance is highest. The TSS approach introduces a "windowing" mechanism. It samples a random iteration count $Q$ from a user-defined range $[i_{min}, i_{max}]$. By enforcing a minimum number of iterations ($i_{min}$), the estimator avoids the noisy "burn-in" phase of the Krylov solver, ensuring the subspace has captured sufficient information before the randomization occurs.
2. Preconditioning as Variance Control
A central theoretical contribution of this work is the proof that preconditioning is the primary mechanism for variance reduction in stochastic estimators. By utilizing spectral preconditioning—specifically the Adaptive Factorized Nyström (AFN) method—the condition number of the system is significantly reduced. The authors demonstrate that the variance of the PTSS estimator is explicitly bounded by the condition number of the preconditioned matrix; thus, a better preconditioner directly "squeezes" the uncertainty out of the estimate.
3. $\Gamma$-Optimal Sampling
To further minimize variance, the paper derives an optimal probability distribution for selecting the stopping point $Q$. This $\Gamma$-optimal distribution is tuned to the spectral properties of the matrix. While the estimator is robust to different distributions once preconditioned, this optimal sampling ensures the lowest possible variance for a fixed computational budget.
4. Numerical Stability via Lanczos
While Conjugate Gradient is a standard choice for linear systems, it can exhibit numerical fragility in stochastic settings. The PTSS framework utilizes a Lanczos framework with full reorthogonalization. This ensures that the basis vectors remain orthogonal even in the presence of floating-point errors, maintaining the mathematical integrity of the estimator throughout the optimization process.
Empirical Evaluation
The authors evaluated the PTSS estimator across synthetic benchmarks and real-world datasets, including the UCI Bike Sharing dataset ($n=4,096$).
Stability and Accuracy
In Gaussian Process training, optimization trajectories using PTSS were compared against "Exact GP" paths. While naive truncated methods often stalled at sub-optimal hyperparameters due to the accumulation of bias, PTSS-based optimization closely tracked the exact ground truth. This confirms that the "mean-equivalence" of the estimator effectively eliminates the negative impacts of truncation bias.
Computational Efficiency
PTSS demonstrated significant efficiency gains. It achieved mean errors comparable to expensive deterministic solvers running for a full $i_{max}$ iterations, but did so at an average cost equivalent to only approximately 8 iterations. Furthermore, the integration of preconditioning reduced the standard deviation of estimates by several orders of magnitude compared to unpreconditioned stochastic methods.
Discussion and Future Work
The PTSS estimator provides a robust middle ground for large-scale stochastic optimization. By treating preconditioning not just as an acceleration tool but as a variance reduction technique, it allows for the use of unbiased estimators in practical, high-stakes optimization loops.
Currently, the method requires an estimate of the matrix's condition number to optimize the sampling distribution, which the authors suggest can be derived from Ritz values during the Lanczos process. Future research directions include the development of block variants to handle multiple right-hand sides simultaneously and adaptive strategies to dynamically adjust the truncation window $[i_{min}, i_{max}]$ as the optimizer converges. These advancements will further solidify PTSS as a cornerstone for scalable Bayesian machine learning.
Summary updated