Conditional neural control variates for variance reduction in Bayesian inverse problems
Organizations: Department of Computer Science, University of Central Florida, Orlando, Florida, USA · Department of Physics and Maryland Center for Fundamental Physics, University of Maryland, College Park, Maryland, USA
Abstract
Bayesian inference for inverse problems involves computing expectations under posterior distributions--e.g., posterior means, variances, or predictive quantities--typically via Monte Carlo (MC) estimation. When the quantity of interest varies significantly under the posterior, accurate estimates demand many samples--a cost often prohibitive for partial differential equation-constrained problems. To address this challenge, we introduce conditional neural control variates, a modular method that learns amortized control variates from joint model-data samples to reduce the variance of MC estimators. To scale to high-dimensional problems, we leverage Stein's identity to design an architecture based on an ensemble of hierarchical coupling layers with tractable Jacobian trace computation. Training requires: (i) samples from the joint distribution of unknown parameters and observed data; and (ii) the posterior score function, which can be computed from physics-based likelihood evaluations, neural operator surrogates, or learned generative models such as conditional normalizing flows. Once trained, the control variates generalize across observations without retraining. We validate our approach on stylized and partial differential equation-constrained Darcy flow inverse problems, outperforming classical Stein control variates and achieving substantial variance reduction, even when the analytical score is replaced by a learned surrogate.
Figures & tables
| Mean Est. VRF | Var. Est. VRF | |
|---|---|---|
| Problem | Score | VRF | Red. (%) | |
|---|---|---|---|---|
| Gauss. | Analyt. | 96 | ||
| Gauss. | CNF | 94 | ||
| Rosenb. | Analyt. | – | 77–92 | — |
| Rosenb. | CNF | 99 | ||
| Nonlin. | Analyt. | 43 | — | |
| Nonlin. | CNF | 43 | — |
Appendix figures & tables18 assets
Supplementary material from the paper’s appendix.
Appendix
| Gauss. | Rosenb. | Nonlin. | Darcy | |
| 2–16 | 2 | 4 | 100 | |
| (ensemble) | 16 | 16 | 16 | 16 |
| Tree depth | 1–3 | 2 | 2 | 3 |
| MLP layers | 5 | 3 | 3 | 5 |
| Hidden units | 128 | 64 | 64 | 128 |
| Batch size | 2048 | 2048 | 2048 | 4096 |
| Gauss. | Rosenb. | Nonlin. | Darcy | |
| Flow layers | 12 | 12 | 8 | 12 |
| Tree depth | 2 | 2 | 2 | 6 |
| MLP layers | 3 | 3 | 3 | 3 |
| Hidden units | 128 | 128 | 64 | 128 |
| Batch size | 8192 | 4096 | 8192 | 4096 |
| Train samples | 262,144 | 262,144 | 262,144 | 120,000 |
Variance Reduction
Variance reduction develops methods that make Monte Carlo estimates, gradients, and experimental comparisons more precise with limited data or computation.
See all 107 papers