Cross-Fitting for Neural Posterior Estimation
Jeffrey Regier
NeurIPS page · Open on the map
Category: Time Series, PDEs & Probabilistic ML › Bayesian Inference and Posterior Estimation · Type: new method · Keywords: neural posterior estimation, cross-fitting, variance estimation, simulation-based inference, uncertainty quantification
Summary
Cross-Fitting NPE (CF-NPE) improves neural posterior estimation by separating mean and variance estimation via cross-fitting, yielding higher held-out log-likelihood on synthetic and cosmological benchmarks.
Explained to a 5-year-old
In science, we sometimes want to guess hidden things based on what we see. A computer program learns to make these guesses from many examples. However, sometimes the guesses are too confident and not accurate. The new idea splits the work: first it learns the average guess, then it learns how uncertain those guesses are. By using a special way of splitting the data, the uncertainty is better estimated, leading to more reliable guesses.
Explained to a 5-year-old, longer
When scientists study things they cannot see directly, they need to guess what is happening. They use computers to learn from many examples of what they see and what the hidden things are. The computer makes a guess for each new situation, but sometimes it guesses too confidently. If the guess is too confident, it might be wrong, which is not good for making decisions. The researchers noticed that the usual way of training the computer could make the guesses too narrow. They decided to split the work into two parts: one part learns the average answer, and the other part learns how unsure that answer is. By using a special method of splitting the data into parts, each part can be tested on data it has never seen before. This way, the part that learns the average answer does not see the data it will later predict on. The leftover differences between the predictions and the real answers are used to measure uncertainty. Because the differences are calculated on unseen data, they cannot be too small, giving a better estimate of how uncertain we should be. This improved method leads to guesses that are both more accurate and more honest about their confidence. As a result, scientists can trust the computer’s predictions more when they study complex problems like the universe.
For a technical reader
CF-NPE addresses the issue of underestimated posterior variance in neural posterior estimation by separating mean and variance estimation using K-fold cross-fitting. It first builds a conditional-mean ensemble via cross-fitting, then models the out-of-fold residuals to obtain a variance estimate that is provably bounded below by the true posterior variance. This yields higher log-likelihood on held-out data, especially as the latent dimension grows. The method is straightforward to implement on top of existing amortized NPE pipelines and requires only minor modifications to the training loop. It has been validated on synthetic benchmarks and a cosmological inference task, showing consistent improvements over standard NPE.
Problem
Neural posterior estimation methods can suffer from unbounded training objectives that lead to underestimated posterior variance, making it difficult to reliably estimate uncertainty in simulation-based inference.
Method
The approach splits data into K folds, uses cross-fitting to estimate a conditional mean ensemble, then fits a conditional density to the out-of-fold residuals, ensuring the residual variance is bounded below by the true posterior variance.
Results
The approach yields higher held-out log-likelihood than standard NPE, with improvements that increase as latent dimension grows.
Contributions
It introduces a cross-fitting scheme that separates mean and variance estimation, providing a well-defined population-level target for posterior variance and improving uncertainty quantification.
Practical relevance
Provides more reliable uncertainty estimates for simulation-based inference tasks such as cosmological parameter estimation.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction