Population Predictive Checks

Rajesh Ranganath, David M. Blei

Abstract Bayesian model criticism often relies on Posterior Predictive Checks (PPC), which suffer from the "double use of data" problem. This leads to over-optimistic assessments and low power in detecting model misspecification. We present Population Predictive Checks (POP-PC), a new framework for Bayesian model checking that utilizes held-out data to ensure proper calibration and significantly higher power for detecting flaws such as overfitting.

Introduction: The "Double Use" Problem

In the standard Bayesian workflow, model evaluation is a critical step. The Posterior Predictive Check (PPC) has been the primary tool for this purpose. The core idea is that if a model is a good fit, data replicated from the model's posterior predictive distribution should resemble the observed data.

However, PPCs have a fundamental flaw: they use the observed data twice—once to estimate the posterior and again to evaluate the model's fit. This circularity often results in "conservative" p-values that fail to signal when a model is overfitting or fundamentally incorrect. In practice, PPCs often lack the power to sound the alarm when a model is wrong.

Methods: Population Predictive Checks

To address the limitations of PPCs, we introduce Population Predictive Checks (POP-PC). The fundamental shift is moving from checking if the model can recreate the training data to checking if it can recreate a new draw from the population.

Comparison of Prior, Posterior, and Population Predictive Checks.

As illustrated in the comparison above, POP-PC differs from Prior and Posterior checks in its data flow:

  1. Prior PC (Box, 1980): Compares observed data $y_{obs}$ to the prior predictive distribution $p(y)$.
  2. Posterior PC (Rubin, 1984): Compares observed data $y_{obs}$ to the posterior predictive distribution $p(y|y_{obs})$.
  3. Population PC (Proposed): Compares a held-out "new" data point $y_{new}$ (drawn from the same population $F$ as $y_{obs}$) to the posterior predictive distribution $p(y|y_{obs})$.

By using held-out data, POP-PC avoids the "double use" trap. We provide a formal proof showing that for a broad class of diagnostic functions, POP-PC is asymptotically calibrated, meaning its p-values are uniformly distributed when the model is correctly specified.

Experimental Evaluation

We evaluated POP-PC across synthetic and real-world scenarios to test its diagnostic power.

Synthetic Ridge Regression

In a high-dimensional setting ($p=100, n=50$), we tested the detection of overfitting. As the prior variance increased—leading to weaker regularization and more overfitting—standard PPC p-values remained stubbornly near 0.5, failing to detect the issue. In contrast, POP-PC p-values dropped toward zero, correctly identifying the model's failure to generalize.

Topic Modeling on the NYT Corpus

We applied POP-PC to a Latent Dirichlet Allocation (LDA) model trained on the New York Times corpus (100,000 documents). POP-PC successfully detected overfitting as the number of topics ($K$) increased beyond 200. Standard PPCs remained uninformative even at $K=1000$, where the model was essentially "memorizing" the training set by assigning every word its own topic.

Key Insights and Discussion

A critical finding of this work is that while previous researchers attempted to "fix" PPCs by calibrating their p-values after the fact, such adjustments do not increase the power of the test. A calibrated PPC remains "blind" to overfitting; POP-PC is not.

Furthermore, POP-PC offers simplicity over complexity. Unlike "Partial Predictive Checks," which require different mathematical derivations for every new diagnostic function, POP-PC is a "plug-and-play" method. It only requires a held-out set and a standard posterior sampler.

Conclusion

POP-PC provides a theoretically grounded and practically powerful alternative to standard predictive checks. By leveraging data splitting, it offers a diagnostic that is sensitive to overfitting and misspecification where traditional methods are blind. While it requires more data than a standard PPC, its superior power and guaranteed calibration make it a robust choice for modern Bayesian workflows.

Summary updated

BibTeX
@article{ranganath2023population,
  author = {Rajesh Ranganath and David M. Blei},
  title = {{Population Predictive Checks}},
  journal = {Journal of the Royal Statistical Society Series B (Statistical Methodology)},
  year = {2023},
  doi = {10.1093/jrsssb/qkad105},
}
Figure