Calibrated Generalized Bayesian Inference

David T. Frazier, Christopher Drovandi, Robert KohnarXiv 2023 · DOI

Abstract

We propose a simple approach that provides accurate uncertainty quantification for Bayesian inference in misspecified or approximate models, and for generalized (Gibbs) posteriors. While existing solutions in this context are based on explicit Gaussian approximations or post-processing procedures, we demonstrate that correct uncertainty quantification can be achieved by substituting the usual posterior with an intuitively appealing alternative that conveys the same information. This solution applies to both likelihood-based and loss-based posteriors, and is formally demonstrated to reliably quantify uncertainty. This new approach is demonstrated through a range of examples, including generalized linear models, and doubly intractable models.

Introduction

Bayesian inference is often considered the gold standard for uncertainty quantification, providing a principled framework for updating beliefs in light of new data. However, the validity of Bayesian credible intervals depends heavily on the assumption that the underlying model is correctly specified. As the adage goes, "all models are wrong," and when a model is misspecified—such as assuming constant variance in a heteroskedastic system—standard Bayesian intervals become uncalibrated. In these scenarios, a 95% credible interval may only contain the true parameter 70% of the time, leading to overconfident and potentially misleading scientific conclusions.

To address this, researchers often turn to Generalized Bayesian Inference (Gibbs posteriors). However, these methods typically require the manual tuning of a "learning rate" parameter ($\omega$), which is notoriously difficult to calibrate. Other frequentist-inspired fixes, like "sandwich" covariance corrections or "BayesBag" (bootstrapping the posterior), are either computationally prohibitive or rely on strict Gaussian assumptions that fail when dealing with multi-modal distributions or parameters with restricted support.

The Q-Posterior Framework

This paper introduces the Q-posterior, a "plug-and-play" solution designed to provide asymptotically calibrated uncertainty estimates without the need for manual tuning or expensive post-processing. The core innovation involves moving away from the original likelihood or loss function and instead basing the posterior on the score equations (the gradients of the loss).

The Q-Loss Mechanism

The method replaces the standard loss $D_n(\theta)$ with a new objective function, the Q-loss ($Q_n(\theta)$). This objective is constructed as a weighted quadratic form of the average scores $m_n(\theta)$ and their covariance $W_n(\theta)$. By construction, this approach forces the posterior variability to match the variability of the posterior mean.

This effectively embeds the logic of the "sandwich covariance" estimator—a staple of robust frequentist statistics—directly into the Bayesian update. Unlike standard Gibbs posteriors, the Q-posterior is "self-scaling." It uses the internal geometry of the score equations to determine the correct amount of information the data provides, eliminating the need for a learning rate $\omega$.

Preserving Posterior Shape

While the Q-loss utilizes a quadratic form, the resulting Q-posterior is not a simple Gaussian approximation. It remains a full posterior distribution capable of capturing complex features of the parameter space. The authors demonstrate (Theorem 2) that the Q-posterior remains valid even if the score equations have multiple roots, allowing it to represent multi-modal distributions rather than forcing a single bell curve.

Empirical Validation

The Q-posterior was evaluated across several scenarios designed to challenge standard Bayesian inference:

  • Linear and Poisson Regression: In misspecified heteroskedastic regimes where exact Bayes coverage dropped to 87%, the Q-posterior maintained a near-nominal 95-96% coverage. In Poisson models with over-dispersion, the Q-posterior automatically sensed the extra noise through the variance of the scores, correcting the uncertainty without requiring an explicit dispersion parameter.
  • Time Series (ARFIMA): Using the Whittle likelihood—a computationally efficient but approximate likelihood—standard methods showed coverage as low as 72%. The Q-posterior restored this to 88-93% while remaining significantly faster than using the exact likelihood.
  • Doubly Intractable Models: For complex models like the Conway-Maxwell-Poisson, the Q-posterior avoids the need for calculating intractable normalizing constants, offering a viable alternative to complex sampling schemes.

Discussion and Future Work

The Q-posterior offers a bridge between the intuitive framework of Bayesian belief updating and the rigorous requirements of frequentist calibration. By using the scores to define the metric of the parameter space, it fixes the mismatch between loss function curvature and actual data variability.

However, some limitations remain. The current theoretical proofs assume a fixed number of parameters ($d_\theta$); extending this to high-dimensional settings where the number of parameters grows with sample size is a priority for future research. Additionally, the method requires the loss function to be sufficiently smooth, and the computational cost of inverting the score covariance matrix $W_n(\theta)$ may be high for very large parameter sets. Despite these challenges, the Q-posterior represents a significant step toward robust, automated uncertainty quantification in modern statistical modeling.

Summary updated

BibTeX
@misc{frazier2023calibrated,
  author = {David T. Frazier and Christopher Drovandi and Robert Kohn},
  title = {{Calibrated Generalized Bayesian Inference}},
  year = {2023},
  eprint = {2311.15485},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.15485},
}
Figure