PACm-Bayes: Narrowing the Empirical Risk Gap in the Misspecified Bayesian Regime

Warren R. Morningstar, Alexander A. Alemi, Joshua V. DillonarXiv 2020

Introduction: The Misspecification Problem

In ideal Bayesian inference, we assume the true data-generating process belongs to our model family. In this "well-specified" regime, Bayesian methods are optimal. However, real-world models are almost always misspecified. When we apply standard Variational Inference (VI) via the Evidence Lower Bound (ELBO) to misspecified models, the results are often disappointing.

The ELBO minimizes inferential risk, aiming to find the "true" parameters of the model. Yet, in modern machine learning, we typically prioritize predictive risk—the accuracy of forecasts on unseen data. The authors identify a fundamental gap: while Jensen's Inequality ensures that minimizing inferential risk bounds predictive risk, this bound becomes extremely loose under misspecification. Consequently, models trained with ELBO often become overconfident in the wrong places.

Methodology: The $PAC^m$-Bayes Objective

The core contribution of this work is $PAC^m$-Bayes, a simple modification to the training objective that shifts the focus from parameter inference to predictive performance.

Technically, while the standard ELBO minimizes the average of log-likelihoods across posterior samples: $$\text{ELBO} \propto \mathbb{E}_{q}[\log p(x|\theta)]$$

$PAC^m$-Bayes minimizes the log of the average likelihoods: $$\mathcal{L}_{PAC^m} \propto \log \mathbb{E}_{q}[p(x|\theta)]$$

By moving the expectation inside the logarithm, the objective directly targets the posterior predictive distribution. This allows the model to utilize its uncertainty to better "cover" the observed data. Implementation is straightforward, often requiring only a logsumexp operation over $m$ samples. The authors prove this objective is a valid PAC (Probably Approximately Correct) bound on true predictive risk.

Experimental Evaluation

The authors tested $PAC^m$-Bayes against standard ELBO across various regression and classification tasks. The qualitative differences are most apparent in toy regression regimes where the model is intentionally misspecified (e.g., using a unimodal Gaussian to fit multimodal or heteroskedastic data).

Qualitative comparison of predictive distributions across toy tasks.

As shown in the figure above, ELBO-trained models often collapse to the mean of the data, failing to capture the underlying variance or multiple modes. In contrast, $PAC^m$-Bayes "wraps" the predictive distribution around the data points, successfully capturing complex noise patterns and heteroskedasticity.

Key Results

Quantitatively, $PAC^m$-Bayes shows a dramatic improvement in empirical risk across all tested scenarios. In a mixture-of-Gaussians task, it achieved a KL divergence of 0.15 compared to the true distribution, whereas the ELBO lagged significantly at 14.21.

Quantitative comparison of empirical risk across regression experiments.

Beyond toy tasks, the method was evaluated on Bayesian Neural Networks (BNNs) for image completion (MNIST, CIFAR-10) and classification. In these high-dimensional settings, $PAC^m$-Bayes consistently provided a superior trade-off between model complexity (Rate) and prediction error (Distortion), achieving higher accuracy with fewer "bits" of information learned from the data compared to ELBO.

Discussion: Insights and Limitations

A key insight of the paper is the distinction between "Moral Truth" and prediction. If neural network weights do not represent a physical truth, forcing the math to treat them as such (as in standard Bayes) is counterproductive. A striking result is that $PAC^m$-Bayes can produce a multimodal predictive distribution even when using a simple unimodal Gaussian posterior. By spreading the posterior mean, the aggregate of samples captures multiple data modes that a standard ELBO would ignore.

However, the method has limitations. It requires $m$ samples during training, which increases computational cost. Additionally, for very large $m$, gradient variance can increase, potentially requiring more sophisticated gradient estimators. Despite these challenges, $PAC^m$-Bayes offers a robust path forward for Bayesian deep learning in the face of inevitable model misspecification.

Summary updated

BibTeX
@misc{morningstar2020pacm,
  author = {Warren R. Morningstar and Alexander A. Alemi and Joshua V. Dillon},
  title = {{PACm-Bayes: Narrowing the Empirical Risk Gap in the Misspecified Bayesian Regime}},
  year = {2020},
  eprint = {2010.09629},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.09629},
}
Figure