Abstract
Neural Posterior Estimation (NPE) is a cornerstone of simulation-based inference, yet validating these high-dimensional, often geometrically complex estimates remains a significant challenge. We present the Conditional Localization Test (CoLT), a high-power validation method that identifies local discrepancies between predicted and true distributions. By learning adaptive localization and embedding functions, CoLT outperforms existing benchmarks like C2ST and SBC, particularly in scenarios involving manifold constraints and high-dimensional parameter spaces.
Introduction
Simulation-Based Inference (SBI) is essential in fields like astrophysics and systems biology where likelihoods are intractable. Researchers often employ neural networks, such as normalizing flows or diffusion models, to produce Neural Posterior Estimates (NPE). However, ensuring the accuracy of these estimates is difficult. Existing methods like Simulation-Based Calibration (SBC) or Classifier Two-Sample Tests (C2ST) often fail in high dimensions or require impractical amounts of data. CoLT addresses these limitations by leveraging the "localization principle" to detect exactly where model predictions deviate from the truth.
The Localization Principle and Methodology
CoLT is based on the idea that if two distributions differ, there must exist a local neighborhood (a "ball") where their probability masses diverge. Rather than searching exhaustively, CoLT employs two neural networks to find these "witnesses" of discrepancy:
- A Localization Function ($\theta_l(x)$) that adaptively identifies regions of maximum discrepancy.
- An Embedding Function ($\phi$) that maps parameters into a latent space, allowing the test to handle data residing on complex manifolds where standard Euclidean metrics fail.
By comparing a single true sample against multiple model samples using these learned balls, CoLT constructs a ball probability rank statistic. For a perfectly calibrated model, this statistic follows a Uniform(0, 1) distribution. Discrepancies are quantified using Sinkhorn divergence during training and a Kolmogorov-Smirnov (KS) test at inference time to provide a rigorous p-value.
Experimental Benchmarks
The authors evaluated CoLT across several challenging scenarios, including a complex Toy Tree Manifold and the NPTBench suite, which applies various perturbations (e.g., mean shift, mode collapse) to Gaussian posteriors. These tests demonstrate the method's ability to handle both simple and highly non-linear geometries.
Key Results and Insights
CoLT demonstrates significantly higher statistical power than existing methods. In the Tree Manifold test, CoLT achieved a power of 0.877 in detecting subtle noise, whereas C2ST failed entirely (power of 0.000). Furthermore, CoLT maintains its sensitivity in high dimensions (up to 100D) where other methods' performance degrades significantly.
A key advantage of CoLT is its ability to provide actionable insights. By identifying the specific regions in parameter space where the model fails, researchers can better understand and refine their neural architectures rather than receiving a simple binary pass/fail result.
Conclusion and Future Work
CoLT offers a robust, geometrically-aware framework for validating neural posteriors in the "one real sample" regime common in scientific discovery. While its sensitivity depends on the training of its internal networks, it represents a major step forward for reliable SBI. Future work includes exploring more diverse localization map architectures and applying the test to large-scale scientific simulators.
Summary updated