arXiv:2610.28256stat.MLOct 2026

Manuscript Offprint

arXiv:2610.28256

Geometry-Aware Block Selection for Sparse Variational Gaussian Processes

Matteo Hoxha

Abstract

Sparse variational Gaussian processes (SVGPs) are a widely used, principled approach to scalable Gaussian process modelling. Their success stems from their theoretically interpretable structure: they provide a lower bound on the marginal likelihood of the full GP while allowing scalable stochastic optimization. Recent work has explored modifications of the posterior conditional distribution and has shown that such extensions can improve upon this well-established framework. In particular, introducing a block-diagonal structured scaling matrix leads to a tighter lower bound on the GP marginal likelihood. We investigate whether selecting blocks that tighten the variational objective improves test RMSE and NLL at a fixed inducing-point budget. Since the scaling matrix contributes to the variational lower bound through an upper bound on the log-determinant of the full residual covariance matrix, our work makes the following contributions. First, we introduce a simple, scalable, geometry-aware algorithm, with explicit computational complexity and low computational overhead, that recovers a large fraction of this log-determinant contribution by selecting an appropriate partition of the data. Second, we show how to train these models using a doubly stochastic optimization framework. Finally, we investigate how sparse GP methods based on alternative conditional posterior structures can be used to learn better hyperparameters and inducing points for SVGP.

1 INTRODUCTION

Gaussian processes (GPs) are a widely used framework for modelling functions in machine learning and statistical learning. Given training inputs X={xi}i=1N\mathbf{X} = \{x_i\}_{i=1}^N and observed responses y=(y1,…,yN)⊤\mathbf{y} = (y_1, \ldots, y_N)^\top, they provide a Bayesian treatment of uncertainty and control model complexity through the prior (Rasmussen and Williams, 2006). However, exact GP regression requires computations involving a dense N×NN \times N covariance matrix, and predictions also depend on the training data. This cost has motivated a large body of work on scalable approximations that reduce the computational requirements of training and prediction while retaining the benefits of GPs (Quinonero-Candela and Rasmussen, 2005; Liu et al., 2020). One of the most widely used approaches is sparse variational inference, introduced by Titsias (2009) and extended to stochastic optimization by Hensman et al. (2013). Its central idea is to represent the information in NN observations through M≪NM \ll N inducing variables. These are function values at auxiliary inputs, which need not coincide with observed inputs and can be optimized during training. The resulting training cost is O(NM2)O(NM^2), or O(∣B∣M2+M3)O(|\mathcal{B}|M^2 + M^3) per stochastic update with a likelihood minibatch B\mathcal{B}. Standard SVGP assumes that the variational conditional over function values given the inducing variables matches the prior conditional. This construction yields a lower bound on the GP log marginal likelihood. Recent work by Titsias (2025) and Bui et al. (2025) shows that relaxing this assumption can produce tighter bounds by enriching the variational family.

In particular, Bui and Titsias (2025) introduce a block-diagonal scaling of the conditional posterior covariance. For blocks of size bb, that is B=⌈N/b⌉B = \lceil N/b \rceil blocks, the block factorizations cost O(Nb2)O(Nb^2) over the full dataset, in addition to the inducing-point computations. The resulting sum of block log-determinants provides an upper bound on the dense residual log-determinant and hence a lower bound on its negative contribution to the objective. Since the dense determinant is invariant under simultaneous row and column permutations, the question we address is: how can we efficiently partition the residual matrix into informative blocks? Orderings and groupings play a similar role in Vecchia approximations (Guinness, 2018). We present a simple geometry-aware algorithm with an explicit search cost of O(NM+M2+Nlog⁡N)O(NM + M^2 + N \log N) kernel-distance work per refresh. Rather than forming equal-size blocks at random, as in the stochastic experiments of Bui and Titsias (2025), we select blocks of the same size using the inducing-point geometry. Our experiments show how this selection can tighten the bound further at the same block budget. We also show that, when the data form compact groups between consecutive inducing points, the algorithm returns these groups, which under a separation condition form the ELBO-optimal partition into blocks of size bb (Theorem 1). We also describe a doubly stochastic implementation that samples likelihood minibatches and residual blocks separately, addressing the localized likelihood updates that would otherwise result from using selected blocks for both terms.

Changing the conditional posterior also changes the cost of prediction. The predictive mean keeps its sparse form, but the predictive variance acquires a correction involving the dense N×NN \times N residual covariance DffD_{ff} of the training inputs. At test time we approximate this correction blockwise, in the manner of the partially independent conditional (PIC) approximation (Snelson and Ghahramani, 2007): each test input keeps its residual cross-covariance with a single block of training points (Section 2). This is a prediction-time approximation, not the exact variational covariance. Previous work avoids the correction by replacing the variational conditional with the prior conditional at test time, q(f∣u)≈p(f∣u)q(f \mid \mathbf{u}) \approx p(f \mid \mathbf{u}) (Bui et al., 2025; Bui and Titsias, 2025). We interpret this approximation as transferring the learned state from BT-SVGP to a standard SVGP predictor, and study which benefits of block-structured training survive subsequent sparse refinement.

Our code reproducing all experiments in the paper is available at https://github.com/Jollikop/geometry-aware-block-selection.

References (31)