Detecting Model Misspecification in Bayesian Inverse Problems via Variational Gradient Descent

Qingyang Liu, Matthew A. Fisher, Zheyang Shen, Katherine M. M. Tant, Xuebin Zhao, Andrew Curtis, Chris J. OatesarXiv 2025 · DOI

Abstract

Bayesian inference is optimal when the statistical model is well-specified, while outside this setting Bayesian inference can catastrophically fail; accordingly a wealth of post-Bayesian methodologies have been proposed. Predictively oriented (PrO) approaches lift the statistical model $P_θ$ to an (infinite) mixture model $\int P_θ\; \mathrm{d}Q(θ)$ and fit this predictive distribution via minimising an entropy-regularised objective functional. In the well-specified setting one expects the mixing distribution $Q$ to concentrate around the true data-generating parameter in the large data limit, while such singular concentration will typically not be observed if the model is misspecified. Our contribution is to demonstrate that one can empirically detect model misspecification by comparing the standard Bayesian posterior to the PrO 'posterior' $Q$. To operationalise this, we present an efficient numerical algorithm based on variational gradient descent. A simulation study, and a more detailed case study involving a Bayesian inverse problem in seismology, confirm that model misspecification can be automatically detected using this framework.

Introduction

Bayesian inference provides a rigorous framework for updating beliefs in the face of new data. However, its optimality is contingent on the assumption that the underlying statistical model is "well-specified"—meaning the true data-generating process lies within the chosen model family. In many real-world applications, particularly complex inverse problems, this assumption is violated. When models are misspecified, Bayesian inference often fails catastrophically, yielding highly confident but fundamentally incorrect predictions.

Detecting such misspecification is notoriously difficult in fields like seismic tomography, where evaluating the model requires solving computationally expensive partial differential equations (PDEs). Traditional diagnostics, such as cross-validation or comparing against manually constructed alternative models, are often computationally prohibitive or require significant domain expertise. This paper introduces a computationally efficient, automated diagnostic tool to flag model misspecification by comparing standard Bayesian results with a "Predictively Oriented" (PrO) alternative.

Methodology

The PrO Posterior vs. Standard Bayes

The core of the proposed method lies in the comparison of two distinct posterior distributions:

  1. Standard Bayesian Posterior ($Q_{\text{Bayes}}$): The traditional approach that seeks the most likely parameter $\theta$ given the data.
  2. Predictively Oriented Posterior ($Q_{\text{PrO}}$): A "lifted" approach that treats the model as an infinite mixture $\int P_θ\; \mathrm{d}Q(θ)$. Rather than forcing the model to select a single parameter, $Q_{\text{PrO}}$ optimizes the mixing distribution to maximize predictive performance.

In a well-specified scenario, both $Q_{\text{Bayes}}$ and $Q_{\text{PrO}}$ should converge to the same distribution as data increases. However, under misspecification, $Q_{\text{Bayes}}$ typically collapses onto a single "least-bad" parameter, while $Q_{\text{PrO}}$ remains more diffuse, adapting to the model's inability to perfectly match the data. By measuring the divergence between these two distributions—specifically using Maximum Mean Discrepancy (MMD)—researchers can identify when a model is fundamentally mismatched to the observed data.

Variational Gradient Descent (VGD)

To make this comparison computationally feasible for high-dimensional problems, the authors utilize Variational Gradient Descent. Specifically, they demonstrate that $Q_{\text{PrO}}$ can be computed using a modified version of Stein Variational Gradient Descent (SVGD). This approach is highly efficient; computing the PrO posterior requires only a minor modification to the standard SVGD code, allowing both posteriors to be computed in parallel. This makes the diagnostic only roughly twice as expensive as a single standard Bayesian inference pass.

Experimental Results

Synthetic Regression

The framework was first tested on 1D and 2D toy regression tasks (e.g., fitting a quadratic model to data generated by a trigonometric function). In these controlled settings, the MMD test statistic clearly distinguished between well-specified and misspecified cases. When the model was misspecified, the observed MMD value fell significantly outside the null distribution, providing a clear signal of model failure.

Seismic Travel Time Tomography

The method was further validated on a simulated seismic tomography problem, where the goal is to reconstruct the Earth's subsurface velocity map from earthquake wave timings.

  • Well-Specified Case: When sensor locations were known perfectly, $Q_{\text{Bayes}}$ and $Q_{\text{PrO}}$ produced nearly identical velocity maps.
  • Misspecified Case: When the model assumed slightly incorrect sensor locations, $Q_{\text{Bayes}}$ produced a map with significant artifacts but high confidence. In contrast, $Q_{\text{PrO}}$ remained uncertain, and the resulting MMD discrepancy successfully flagged the misspecification.

Discussion and Limitations

While the proposed framework offers a powerful diagnostic tool, it is intended as a practical check rather than a formal statistical hypothesis test. It identifies that a model is misspecified but does not inherently provide the physical correction needed to fix the model. Furthermore, the convergence of the VGD algorithm relies on certain regularity conditions, such as bounded Fisher scores, which are generally satisfied in physics-constrained inverse problems but may not hold for all statistical models (e.g., unbounded linear regression).

Conclusion

By leveraging the divergence between standard Bayesian and Predictively Oriented posteriors, this framework provides an automated, data-efficient way to detect model misspecification. Its computational efficiency makes it particularly suited for complex inverse problems where traditional validation methods fail, offering a vital internal consistency check for Bayesian practitioners.

Summary updated

BibTeX
@misc{liu2025detecting,
  author = {Qingyang Liu and Matthew A. Fisher and Zheyang Shen and Katherine M. M. Tant and Xuebin Zhao and Andrew Curtis and Chris J. Oates},
  title = {{Detecting Model Misspecification in Bayesian Inverse Problems via Variational Gradient Descent}},
  year = {2025},
  eprint = {2512.01667},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.01667},
  howpublished = {arXiv},
}
Figure