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.
Introduction
In modern machine learning, point predictions are often insufficient. We increasingly require full probability distributions, $f(y|x)$, to quantify uncertainty in high-stakes applications. These Conditional Density Estimates (CDEs) are central to Bayesian inference and predictive modeling. However, validating these models—especially when $x$ is high-dimensional, such as an image—remains a significant challenge.
The traditional "gold standard" for validation is the Probability Integral Transform (PIT). If a model is perfectly calibrated, its PIT values should follow a uniform distribution. However, PIT is a global metric that can mask local failures. A model might exhibit bias in one region of the feature space and overdispersion in another, yet these errors can cancel out in a global histogram, leading to a false sense of model reliability. This paper introduces a framework to identify and interpret these localized discrepancies.
Methodology: From Global to Local Diagnostics
The authors propose a diagnostic suite consisting of three main components:
- Global Coverage Test (GCT): A statistical test to detect if a model is misspecified anywhere in the feature space.
- Local Coverage Test (LCT): Identifies specific regions in the feature space where the model fails.
- Amortized Local P-P plots (ALP): Provides a graphical summary of the failure mode (e.g., bias or dispersion) at any specific location $x$.
The Core Insight: Coverage as Regression
The key technical innovation is the realization that "local coverage" can be framed as a conditional probability. By converting PIT values into binary indicators and regressing them against the features $x$, the authors transform a complex density validation problem into a standard regression task. This allows the use of powerful estimators like Random Forests or Neural Networks to pinpoint where a model deviates from the true data-generating process.
For multivariate outputs, the framework utilizes Highest Predictive Density (HPD) values instead of PIT. HPD measures how "plausible" an observation is under the estimated model, providing a scalar metric for complex distributions.
Interpreting Failures with ALP
The Amortized Local P-P plots (ALP) allow researchers to visualize the nature of the discrepancy at any point $x$. By comparing the estimated local CDF to the uniform distribution, one can immediately diagnose whether the model is biased or incorrectly estimating the variance (over/underdispersion).
Key Insights and Results
- PIT is Blind to Covariates: The authors prove that PIT is insensitive to certain covariate transformations. A model can be fundamentally wrong about the relationship between $x$ and $y$ and still pass a global PIT test.
- Detecting Hidden Bias: In synthetic experiments, the Global Coverage Test (GCT) easily rejected models that standard PIT diagnostics called "fine" ($p=0.004$ vs. a passing histogram).
- Mapping Failure in Astronomy: When testing a Convolutional Mixture Density Network on galaxy images, the LCT pinpointed that the model worked well for "round" galaxies but failed significantly for "elongated" ones. The ALP plots then revealed that the model was struggling with bimodality in those specific regions.
- Scalability: The framework successfully handled feature spaces of $\mathbb{R}^{400}$ (images), demonstrating that it scales far better than traditional kernel-based local tests.
Conclusion
This diagnostic framework provides a rigorous way to validate conditional density models in high dimensions. By "amortizing" the diagnostics, the quality of a model can be queried instantly at any point in the feature space. Future work suggests using these diagnostics in an Active Learning loop to identify "hard" regions and iteratively improve model performance.
Summary updated