Confidence Estimation via Sequential Likelihood Mixing

Johannes Kirschner, Andreas Krause, Michele Meziu, Mojmir MutnyarXiv 2025 · DOI

Abstract

Modern machine learning frequently encounters data that arrives sequentially, necessitating uncertainty quantification methods that remain valid over time. This paper introduces a universal framework for constructing "anytime-valid" confidence sequences—mathematical boundaries guaranteed to contain true model parameters at every time step. By bridging Bayesian inference and frequentist martingales through sequential likelihood mixing, the authors provide a robust recipe for uncertainty quantification that handles non-i.i.d. data and model misspecification while yielding tighter bounds for classic regression problems.

Introduction

In many real-world applications, such as robotics, online advertising, and clinical trials, data is collected and analyzed sequentially. Traditional frequentist uncertainty quantification often relies on asymptotic theory—assuming an infinite sample size—or fixed-time analysis, where the sample size $T$ must be determined in advance. If a researcher stops an experiment early based on the data (a practice known as "p-hacking"), standard confidence intervals lose their validity.

To address this, the authors focus on Confidence Sequences: a sequence of sets $(C_t)_{t=1}^\infty$ such that the probability that the true parameter $\theta^*$ is contained in $C_t$ for all $t$ simultaneously is at least $1 - \alpha$. This paper seeks to unify the "subjective" flexibility of Bayesian methods with the rigorous "anytime-valid" guarantees required by frequentist statistics.

Methodology: The Universal Recipe

The core of the proposed framework is Sequential Likelihood Mixing. This approach transforms the problem of confidence estimation into the study of non-negative martingales. The framework relies on three primary pillars:

1. Likelihood Ratio Martingales

The authors utilize the ratio of the likelihood of the observed data under a hypothesized parameter versus the true parameter. In a well-specified model, these ratios form a martingale—a stochastic process where the expected future value, given the past, is equal to the current value.

2. Ville’s Inequality

Ville’s inequality serves as the foundational tool for anytime validity. Unlike the standard Markov inequality, which provides a bound at a single point in time, Ville’s inequality bounds the probability that a non-negative martingale ever exceeds a threshold at any point in its history. This allows for the construction of sets that remain valid even under continuous monitoring.

3. Mixing and the Regret-to-Confidence Bridge

Instead of relying on a single point estimate, the framework "mixes" (integrates) the likelihood over a sequence of distributions. A significant contribution of this work is the "Regret-to-Confidence" bridge. The authors demonstrate that any online learning algorithm with a known regret bound—measuring how much the algorithm's performance lags behind the best possible predictor in hindsight—can be directly converted into a valid confidence sequence. This connects the fields of sequential decision-making and statistical inference.

Theoretical Insights

The Bayesian-Frequentist Unity

The paper clarifies a common misconception that Bayesian inference cannot provide frequentist guarantees. The authors prove that for any realizable Bayesian model, a frequentist confidence sequence can be constructed simply by thresholding the ratio of the posterior distribution to the prior distribution. They further show that "Prior Mixing" (averaging over a fixed prior) and "Sequential Mixing" (updating the distribution as data arrives) are mathematically equivalent when using Bayes' rule.

Variational Confidence Sets

For complex models where exact Bayesian integration is intractable, the authors propose using Variational Inference (VI). They demonstrate that even when using an approximate distribution to calculate the mixed likelihood, the resulting confidence set remains valid. While the approximation might result in a slightly larger (more conservative) set, it ensures that the framework is computationally applicable to a wider range of problems.

Results and Applications

The framework was evaluated through rigorous mathematical proofs and synthetic experiments in several key settings:

  • Sequential Linear Regression: The framework derives confidence sequences that are approximately twice as tight as the previous gold standard in the literature (the 2011 Abbasi-Yadkori bound). It effectively removes lower-order terms that previously led to overly conservative estimates.
  • Sparse Estimation: For $k$-sparse vectors in high-dimensional spaces, the authors derived a confidence sequence that scales with the sparsity $k$ and $\log(t)$, offering a simpler and more elegant proof than existing specialized methods in compressed sensing.
  • Robustness to Misspecification: The authors proved that the framework maintains validity even if the model is "wrong." For instance, if the noise is sub-Gaussian rather than perfectly Gaussian, or if the true parameter lies outside the assumed model class, the confidence sets remain statistically sound through the use of reverse information projection.

Discussion and Future Work

While the framework provides a powerful and universal recipe, certain challenges remain. The calculation of the "marginal likelihood" (the evidence) remains computationally expensive for high-dimensional models like deep neural networks. Furthermore, while the confidence sets are always valid regardless of the chosen prior, the efficiency (the size of the set) is highly sensitive to the prior's quality. A poorly chosen prior results in unnecessarily large confidence sets.

Future research directions include the exploration of "tempered" likelihoods to improve robustness against outliers and the development of methods to "learn" optimal priors from historical data, further tightening the resulting confidence sequences.

Summary updated

BibTeX
@misc{kirschner2025confidence,
  author = {Johannes Kirschner and Andreas Krause and Michele Meziu and Mojmir Mutny},
  title = {{Confidence Estimation via Sequential Likelihood Mixing}},
  year = {2025},
  eprint = {2502.14689},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.14689},
}
Figure