arXiv:2608.25706stat.MLAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.25706

Fast rates in Bayesian online learning with approximate posteriors

Ilsang Ohn

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Exact Bayes prediction enjoys fast predictive regret guarantees, but exact posterior updating or representation may be too costly for online use. We study when these statistical guarantees are preserved by computational approximations. We show that the cumulative price of posterior approximation can be governed by the interaction between the contraction radius of the exact Gibbs posterior and the Wasserstein distance between the approximate and exact posteriors. Our general theorem shows that whenever exact Bayes prediction achieves a fast regret bound, any approximate posterior method that tracks the exact posterior with sufficient accuracy inherits the same fast regret, up to an additive term determined by the approximation error. Three online learning examples are developed. For linear models with strongly convex regularized losses, a projected Langevin algorithm yields an approximate posterior that achieves logarithmic regret. For an infinite-dimensional canonical exponential family sequence model over a Sobolev ellipsoid, a prior-preserving truncation method attains the minimax predictive regret rate with sublinear memory and constant update cost per observation. For random-design Gaussian process (GP) regression, a sparse variational posterior with inducing variables achieves the same predictive regret rate as the exact GP, but at substantially lower computational cost.

Keywords: Bayesian online learning; Gibbs posterior; Langevin algorithm; sparse variational Gaussian processes; exponential families; Sobolev ellipsoids

1 Introduction

Bayesian online prediction maintains a distribution over parameters and uses it as the mixing law for the next prediction: after t observations, the posterior Πt\Pi_t induces the predictive mixture for round t+1t+1. Under logarithmic loss such as negative log-likelihood, this construction has an exceptional cumulative structure: the one-step predictive normalizers telescope into a marginal likelihood, so that cumulative predictive regret can be analyzed through a single integrated likelihood ratio rather than by controlling the prediction error separately at every round. In regular parametric models, this connection leads to the classical logarithmic redundancy and regret behavior of Bayes mixtures. The information-theoretic analysis of Clarke and Barron (1990) establishes the asymptotic redundancy of Bayesian mixtures in regular parametric families, while (Xie and Barron, 2000) develop closely related asymptotic minimax regret results for universal coding, gambling, and sequential prediction.

The same phenomenon has a natural interpretation from online learning. Under log loss, Bayesian updating is an instance of exponential weighting, and logarithmic loss is mixable, so a mixture predictor can compete sharply with a fixed expert or parameter chosen in hindsight (Vovk, 1990; Cesa-Bianchi and Lugosi, 2006). Kakade and Ng (2004) derive online bounds for Bayesian algorithms and show how Bayesian predictors can be analyzed as online learning procedures without stochastic assumptions on the outcome sequence. More generally, exponential-weights methods admit regret guarantees under a variety of mixable and exp-concave losses, with fast rates under suitable curvature or stochastic conditions (Hazan et al., 2007; van Erven et al., 2015; van der Hoeven et al., 2018; Jun and Ohn, 2026). The resulting viewpoint is broader than ordinary Bayes: posterior-like exponential weights can be formed from generic losses, and the same variational structure underlying Bayesian marginal likelihoods can be used to compare a mixture predictor with a fixed parameter or comparator distribution.

The above literature, however, primarily analyzes the statistical regret of the exact updating or weighting rule. The distribution used for prediction is assumed to be available at every round, and the computational error incurred in representing, sampling from, or optimizing that distribution is not priced separately. This distinction is immaterial when the posterior or exponential weights can be computed exactly, but becomes important in modern Bayesian models where each online update is itself approximate. Posterior approximation, which is statistically adequate at a fixed terminal sample size, need not be adequate for online prediction, because the approximation is queried repeatedly along the entire posterior path. Consequently, terminal contraction of an approximate posterior toward the truth does not by itself control the cumulative predictive loss. What is needed is a way to quantify how perturbations of the posterior at each round are translated into perturbations of the predictive mixture, and how this sensitivity changes as the exact posterior concentrates. Because of this challenge, to our knowledge, there is no general result that converts posterior approximation error into a cumulative predictive regret penalty while retaining the fast rates of exact Bayesian prediction. Aside from the specific setting of variational Bayes with a Gaussian variational family (Chérief-Abdellatif et al., 2019), the known results only provide slow regret bounds of the order O(T)O(\sqrt{T}) for horizon T (e.g., Chérief-Abdellatif et al., 2019; Alquier, 2021).

This raises the question addressed in this paper: do the fast rates of Bayesian online prediction survive computation? Concretely, is there an implementable online learner, with explicit per-round operations, whose expected cumulative predictive regret is logarithmic in regular parametric models and minimax optimal in nonparametric ones?

We answer this question affirmatively. We establish a theoretical framework to derive fast predictive regret guarantees for general computational Bayesian online learning methods. Let Πt\Pi_t be the exact Gibbs or standard posterior after tt observations and let QtQ_t be an approximate posterior distribution attained by a computationally feasible algorithm. We derive an upper bound on the expected difference between the predictive regrets of Πt\Pi_t and QtQ_t, in terms of ϵt\epsilon_t, the contraction rate of Πt\Pi_t toward a common stochastic target, and αt\alpha_t, the Wasserstein distance between QtQ_t and Πt\Pi_t. The novelty of our result lies in showing that posterior approximation need not be controlled at a fixed first-order accuracy throughout the online path. We devise a second-order predictive stability condition, under which the effect of approximation error is automatically attenuated by posterior contraction, so the cumulative approximation cost scales with the interaction ϵtαt\epsilon_t\alpha_t, rather than with αt\alpha_t alone.

We instantiate this principle in three regimes. The first is a finite-dimensional generalized Bayesian model with predictable bounded covariates and a globally strongly convex regularized loss. Strong convexity gives O(t−1/2)O(t^{-1/2}) contraction of the exact Gibbs posterior, while local prior mass gives O(log⁡T)O(\log T) expected regret for exact prediction. We approximate each constrained posterior with a projected Moreau–Yosida Langevin construction. We derive a squared Wasserstein tracking error of order t−1t^{-1} on the compact parameter space. This results in an O(log⁡T)O(\log T) cumulative approximation penalty, preserving the logarithmic rate of exact Gibbs prediction.

The second regime is an infinite-dimensional canonical exponential family sequence model. Here the computational constraint is representation rather than finite-dimensional sampling. The exact posterior is a countable product of one-dimensional conjugate posteriors. A streaming implementation may retain the sufficient statistics of every coordinate observed so far, but its memory can grow linearly with the horizon. We instead update only the first m coordinates and preserve the original prior on the unresolved tail. This construction approximates one fixed infinite-dimensional Bayesian model rather than replacing it with a sequence of truncated-prior models. Over a Sobolev ellipsoid, the contraction radius, exact Gibbs regret, and truncation error are all explicit. Choosing m at the effective-dimension scale yields the minimax cumulative predictive regret rate with sublinear memory and constant state-update work per observation.

The third regime is random-design Gaussian process (GP) regression. Here the statistical question is whether a sparse variational representation preserves the predictive performance of the full GP posterior. We fix the first J population covariance operator eigenfunctions as interdomain inducing variables. Under Gaussian noise, the resulting sparse variational posterior is represented by finite-dimensional sufficient statistics and can be updated recursively. When J is greater than a certain sublinear threshold in T, its Wasserstein distance from the exact posterior is of the same order as the exact posterior contraction radius, and its cumulative predictive regret has the same nonparametric order as exact Bayes. This example also shows that vanishing variational KL divergence is not necessary for preserving statistical performance: the relevant discrepancy is its displacement relative to the shrinking posterior geometry.

The three applications make different computational choices. In the finite-dimensional example, approximation arises from incomplete sampling; in the sequence model, it arises from truncating an infinite representation; and in the GP example, it arises from variational sparse compression. Despite these different mechanisms, all three are analyzed through the same pair of quantities: the statistical radius of exact Bayes and the distance of the computational approximation from exact Bayes. The resulting framework makes the required computational accuracy explicit and exposes where model-specific work is unavoidable.

References (42)