Skip to main content
QUICK REVIEW

[Paper Review] Diagnostics for Conditional Density Models and Bayesian Inference Algorithms

David Zhao, Niccolò Dalmasso|arXiv (Cornell University)|Feb 20, 2021
Statistical Methods and InferenceMathematics27 references8 citations
TL;DR

This paper introduces two novel diagnostics—Local Coverage Test (LCT) and Amortized Local P-P Plots (ALP)—to detect, locate, and interpret local failures in conditional density models and Bayesian inference algorithms. The methods enable rigorous, interpretable assessment of model fit across high-dimensional feature spaces, identifying regions of poor coverage, bias, and multimodality, with demonstrated success in image-based prediction and posterior estimation tasks.

ABSTRACT

There has been growing interest in the AI community for precise uncertainty quantification. Conditional density models f(y|x), where x represents potentially high-dimensional features, are an integral part of uncertainty quantification in prediction and Bayesian inference. However, it is challenging to assess conditional density estimates and gain insight into modes of failure. While existing diagnostic tools can determine whether an approximated conditional density is compatible overall with a data sample, they lack a principled framework for identifying, locating, and interpreting the nature of statistically significant discrepancies over the entire feature space. In this paper, we present rigorous and easy-to-interpret diagnostics such as (i) the "Local Coverage Test" (LCT), which distinguishes an arbitrarily misspecified model from the true conditional density of the sample, and (ii) "Amortized Local P-P plots" (ALP) which can quickly provide interpretable graphical summaries of distributional differences at any location x in the feature space. Our validation procedures scale to high dimensions and can potentially adapt to any type of data at hand. We demonstrate the effectiveness of LCT and ALP through a simulated experiment and applications to prediction and parameter inference for image data.

Motivation & Objective

  • To address the lack of principled, interpretable diagnostics for conditional density models that can identify local model failures across high-dimensional feature spaces.
  • To develop tools that go beyond global goodness-of-fit tests by providing location-specific insights into distributional discrepancies between estimated and true conditional densities.
  • To enable practitioners to assess whether a model is 'close enough' or requires improvement, especially in complex settings like image data and simulation-based inference.
  • To support model selection and active learning by identifying hard-to-train regions in the feature space where model performance is inadequate.
  • To overcome limitations of existing diagnostics like PIT plots, which fail to detect misspecification when models ignore covariate dependence.

Proposed method

  • Proposes the Local Coverage Test (LCT), a statistical test that evaluates whether the estimated conditional density achieves nominal coverage at any given input x, detecting arbitrarily misspecified models.
  • Introduces Amortized Local P-P Plots (ALP), which provide fast, interpretable graphical summaries of distributional differences between estimated and true conditional densities at any x in the feature space.
  • Leverages the probability integral transform (PIT) locally at each x to compute empirical coverage, enabling detection of under/over-coverage, bias, and dispersion errors.
  • Employs a two-stage procedure: first, a global coverage test (GCT) to assess overall model fit; second, LCT and ALP to localize and interpret failures.
  • Adapts diagnostics to high-dimensional data by using principal component projections for visualization and efficient computation.
  • Applies the framework to both predictive modeling and Bayesian posterior inference, using deep generative models like ConvMDN for image data.

Experimental results

Research questions

  • RQ1Can we detect local failures in conditional density models that are missed by global goodness-of-fit tests?
  • RQ2How can we identify and interpret the nature of discrepancies between estimated and true conditional densities across different regions of the feature space?
  • RQ3Can diagnostics distinguish between models that are globally acceptable but locally misspecified, especially in high-dimensional settings?
  • RQ4To what extent do existing diagnostics like PIT fail to detect models that ignore covariate dependence?
  • RQ5Can the proposed diagnostics guide model improvement and active learning by identifying hard-to-train regions in the feature space?

Key findings

  • The Global Coverage Test (GCT) rejected the fitted model in both simulation and image examples (p < 0.001), indicating global lack of fit despite low KL divergence in some cases.
  • LCT identified that a unimodal Gaussian model failed to capture the true conditional density for populations with bimodal or skewed distributions, even when the model appeared globally acceptable.
  • ALP plots revealed significant distributional deviations—particularly bias and incorrect dispersion—specifically in the 10% subpopulation of elongated galaxies (λ=0.1), where the ConvMDN model underperformed.
  • For the galaxy image example, the ConvMDN with K=7 components achieved the lowest KL loss but still failed the GCT, highlighting the need for diagnostics beyond loss minimization.
  • LCT p-values and ALP plots localized model failure to specific regions of the feature space, such as the elongated galaxy population, suggesting targeted data collection or model reparameterization.
  • The diagnostics successfully exposed that PIT-based methods fail to detect models that ignore covariate dependence, as shown in Theorem 1 of the paper.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.