The Posterior Predictive Null

Gemma E. Moran, John P. Cunningham, David M. Blei

Abstract

Bayesian model criticism is an important part of the practice of Bayesian statistics. Traditionally, model criticism methods have been based on the predictive check, an adaptation of goodness-of-fit testing to Bayesian modeling and an effective method to understand how well a model captures the distribution of the data. In modern practice, however, researchers iteratively build and develop many models, exploring a space of models to help solve the problem at hand. While classical predictive checks can help assess each one, they cannot help the researcher understand how the models relate to each other. This paper introduces the posterior predictive null check (PPN), a method for Bayesian model criticism that helps characterize the relationships between models. The idea behind the PPN is to check whether data from one model’s predictive distribution can pass a predictive check designed for another model. This form of criticism complements the classical predictive check by providing a comparative tool. A collection of PPNs, which we call a PPN study, can help us understand which models are equivalent and which models provide different perspectives on the data. With mixture models, we demonstrate how a PPN study, along with traditional predictive checks, can help select the number of components by the principle of parsimony. With probabilistic factor models, we demonstrate how a PPN study can help understand relationships between different classes of models, such as linear models and models based on neural networks. Finally, we analyze data from the literature on predictive checks to show how a PPN study can improve the practice of Bayesian model criticism.

Introduction

In the standard Bayesian workflow, researchers often build a suite of models—ranging from simple linear regressions to complex neural networks. To evaluate these models, practitioners typically rely on the Posterior Predictive Check (PPC). A PPC asks a fundamental question: If this model were true, would the observed data look like a typical draw from its predictions?

However, PPCs assess models in isolation. In many scenarios, multiple models—such as mixture models with varying numbers of components—might all pass their individual PPCs. This phenomenon, known as the "Rashomon effect," occurs when several different models describe the data equally well. Traditional checks struggle to identify whether the extra complexity in a more sophisticated model is capturing meaningful structure or is simply redundant. There is a need for a formal, comparative framework to understand the relationships between these "good" models.

Methodology: The Posterior Predictive Null (PPN)

To address this gap, we introduce the Posterior Predictive Null (PPN). The core concept is "fooling": instead of checking observed data against a model, we check simulated data from Model A against the diagnostic criteria of Model B. If Model A's predictions can "fool" Model B's check, then Model B provides no additional modeling benefit over Model A regarding that specific diagnostic.

A PPN Study involves creating a matrix of comparisons. The diagonal contains standard PPCs (goodness-of-fit), while the off-diagonals contain PPNs. These off-diagonals reveal how well simpler models fool more complex ones (and vice-versa), identifying redundancy and functional equivalence.

To ensure statistical rigor and avoid "double-counting" data, we utilize a validation diagnostic. The data is partitioned into three sets:

  1. In-sample: Used for model training.
  2. Out-of-sample: Used to establish the reference distribution for the check.
  3. Validation: Used to calculate the diagnostic function itself.

The distance between predictive distributions is quantified using the symmetrized Kullback-Leibler (KL) divergence, providing a numerical metric for how effectively one model fools another.

Results: Mixture Modeling and Parsimony

We evaluated the PPN using synthetic 2D Gaussian mixtures to demonstrate how it identifies the optimal level of complexity. In this example, models with $K=1$ through $K=4$ components were fitted to data generated from a 3-component mixture.

Observed data compared to posterior predictive samples for mixture models with K=1 to K=4.

As shown in the figure above, while $K=1$ and $K=2$ fail to capture the data's structure, both $K=3$ and $K=4$ produce predictive distributions that visually resemble the observed data. In many practical scenarios, multiple models like these can pass standard PPCs. However, the PPN study revealed that data generated by the $K=3$ model could successfully fool the $K=4$ check. This functional equivalence indicates that the fourth component adds no new information, allowing us to choose the more parsimonious $K=3$ model based on functional criticism rather than just mathematical penalties like AIC or BIC.

This approach was further validated on real-world infant temperament data. The PPN study confirmed that a 2-cluster model belonged to the same "equivalence class" as 3- and 4-cluster models, providing a rigorous justification for the $K=2$ choice previously made through heuristic methods.

Comparing Linear and Non-linear Models

The PPN also provides insights into the relationship between different model classes, such as Probabilistic PCA (PPCA) and Variational Autoencoders (VAEs). PPN is inherently asymmetric:

  • Linear Equivalence: When data is truly linear, PPCA and VAEs are found to be equivalent as they fool each other.
  • Non-linear Insufficiency: When data is non-linear, a VAE can often fool a linear model (as it can represent linear patterns), but the linear model fails to fool the VAE because it cannot replicate non-linear "swings" in the data.

Conclusion

The Posterior Predictive Null offers a functional reason to prefer simpler models: if a complex model doesn't "see" the data differently than a simpler one, its extra parameters are redundant. By grouping models into equivalence classes, researchers can better navigate the space of "good" models and identify which ones provide truly unique perspectives on the data. Future work will explore PPN in "all models are wrong" scenarios to identify which models are "least wrong" or how they fail in distinct ways.

Summary updated

BibTeX
@inproceedings{moran2022posterior,
  author = {Gemma E. Moran and John P. Cunningham and David M. Blei},
  title = {{The Posterior Predictive Null}},
  booktitle = {Bayesian},
  year = {2022},
  doi = {10.1214/22-ba1313},
}
Figure