Papers
Topics
Authors
Recent
Search
2000 character limit reached

Conditional Neural Control Variates in Bayesian Inference

Updated 4 July 2026
  • Conditional neural control variates are observation-conditioned functions that leverage Stein’s identity and amortized neural networks to achieve unbiased variance reduction in Monte Carlo estimations.
  • They employ hierarchical coupling architectures and exact divergence computation to handle high-dimensional, PDE-constrained Bayesian inverse problems efficiently.
  • Empirical results demonstrate significant variance reductions (up to 82%) and enhanced sample efficiency, underscoring their practical utility in posterior expectation estimation.

Conditional neural control variates are observation-conditioned control variates for Monte Carlo estimation of posterior expectations in Bayesian inverse problems. In the formulation reported for posterior quantities such as posterior means, variances, or predictive quantities, the objective is to estimate

I(y)=Ep(θy)[h(θ)]I(y)=E_{p(\theta|y)}[h(\theta)]

under a posterior distribution that may be expensive to sample from and may induce large estimator variance, especially in partial differential equation-constrained settings. The central construction is an amortized function g(θ,y)g(\theta,y) with zero posterior mean, so that

I^NCV=1Ni=1N[h(θ(i))g(θ(i),y)]\hat I_N^{CV} = \frac{1}{N}\sum_{i=1}^N [h(\theta^{(i)})-g(\theta^{(i)},y)]

remains unbiased while reducing variance from Var[h]/N\mathrm{Var}[h]/N to Var[hg]/N\mathrm{Var}[h-g]/N (Siahkoohi et al., 24 Feb 2026).

1. Estimation setting and control-variate formulation

The reported setting is Bayesian inference for inverse problems, where posterior expectations are approximated by Monte Carlo. With samples θ(i)p(θy)\theta^{(i)}\sim p(\theta\mid y), plain Monte Carlo uses

I^N=1Ni=1Nf(θ(i)).\hat I_N = \frac{1}{N}\sum_{i=1}^N f(\theta^{(i)}).

Its variance scales as Var(f)/N\mathrm{Var}(f)/N, and the method becomes costly when the integrand varies strongly under the posterior or when each sample requires expensive forward solves, such as PDE evaluations (Siahkoohi et al., 24 Feb 2026).

The general control-variate construction starts from a function c(θ,y)c(\theta,y) with known posterior expectation μc(y)=E[c(θ,y)y]\mu_c(y)=E[c(\theta,y)\mid y]. The corresponding estimator is

g(θ,y)g(\theta,y)0

with unbiasedness g(θ,y)g(\theta,y)1 and variance

g(θ,y)g(\theta,y)2

Variance is reduced when the control variate is positively correlated with the target and does not introduce excessive variance of its own (Siahkoohi et al., 24 Feb 2026).

Conditional neural control variates specialize this idea by learning an observation-conditioned, amortized zero-mean control variate from joint model-data samples. The conditioning on g(θ,y)g(\theta,y)3 is central: once trained, the same learned module is evaluated for new observations without retraining. This suggests that the method is designed not merely for variance reduction at a single posterior, but for reuse across an observation family drawn from the same inverse-problem model (Siahkoohi et al., 24 Feb 2026).

2. Stein-based zero-mean construction

The zero-mean property is obtained through Stein’s identity. For any sufficiently smooth g(θ,y)g(\theta,y)4 satisfying decay at infinity,

g(θ,y)g(\theta,y)5

Defining the Stein operator as

g(θ,y)g(\theta,y)6

one obtains a posterior control variate

g(θ,y)g(\theta,y)7

with exactly zero posterior mean for all g(θ,y)g(\theta,y)8 (Siahkoohi et al., 24 Feb 2026).

In practice, g(θ,y)g(\theta,y)9 is parameterized by a neural network and learned so that I^NCV=1Ni=1N[h(θ(i))g(θ(i),y)]\hat I_N^{CV} = \frac{1}{N}\sum_{i=1}^N [h(\theta^{(i)})-g(\theta^{(i)},y)]0 is highly correlated with the target quantity I^NCV=1Ni=1N[h(θ(i))g(θ(i),y)]\hat I_N^{CV} = \frac{1}{N}\sum_{i=1}^N [h(\theta^{(i)})-g(\theta^{(i)},y)]1. The method therefore uses Stein structure to guarantee zero mean and neural parameterization to adapt correlation structure to the quantity of interest. A plausible implication is that the variance-reduction problem is shifted from deriving analytic control variates to learning a Stein-admissible vector field whose induced scalar output tracks posterior fluctuations of I^NCV=1Ni=1N[h(θ(i))g(θ(i),y)]\hat I_N^{CV} = \frac{1}{N}\sum_{i=1}^N [h(\theta^{(i)})-g(\theta^{(i)},y)]2 (Siahkoohi et al., 24 Feb 2026).

The dependence on the posterior score

I^NCV=1Ni=1N[h(θ(i))g(θ(i),y)]\hat I_N^{CV} = \frac{1}{N}\sum_{i=1}^N [h(\theta^{(i)})-g(\theta^{(i)},y)]3

is explicit. The reported implementation allows this score to be computed from physics-based likelihood evaluations, neural operator surrogates, or learned generative models such as conditional normalizing flows; the detailed training procedure also allows analytic differentiation of likelihood plus prior, or approximation by a learned conditional normalizing flow or score-based diffusion model trained on the same joint samples (Siahkoohi et al., 24 Feb 2026).

3. Hierarchical coupling architecture and exact divergence computation

A direct neural parameterization of I^NCV=1Ni=1N[h(θ(i))g(θ(i),y)]\hat I_N^{CV} = \frac{1}{N}\sum_{i=1}^N [h(\theta^{(i)})-g(\theta^{(i)},y)]4 would require I^NCV=1Ni=1N[h(θ(i))g(θ(i),y)]\hat I_N^{CV} = \frac{1}{N}\sum_{i=1}^N [h(\theta^{(i)})-g(\theta^{(i)},y)]5 backward passes to compute the divergence I^NCV=1Ni=1N[h(θ(i))g(θ(i),y)]\hat I_N^{CV} = \frac{1}{N}\sum_{i=1}^N [h(\theta^{(i)})-g(\theta^{(i)},y)]6. To avoid that cost in high dimensions, the method uses an ensemble of I^NCV=1Ni=1N[h(θ(i))g(θ(i),y)]\hat I_N^{CV} = \frac{1}{N}\sum_{i=1}^N [h(\theta^{(i)})-g(\theta^{(i)},y)]7 bijective hierarchical coupling layers with random input permutations I^NCV=1Ni=1N[h(θ(i))g(θ(i),y)]\hat I_N^{CV} = \frac{1}{N}\sum_{i=1}^N [h(\theta^{(i)})-g(\theta^{(i)},y)]8 (Siahkoohi et al., 24 Feb 2026).

For an input split as I^NCV=1Ni=1N[h(θ(i))g(θ(i),y)]\hat I_N^{CV} = \frac{1}{N}\sum_{i=1}^N [h(\theta^{(i)})-g(\theta^{(i)},y)]9, one coupling layer is defined by

Var[h]/N\mathrm{Var}[h]/N0

where Var[h]/N\mathrm{Var}[h]/N1 and Var[h]/N\mathrm{Var}[h]/N2 are small neural networks. The Jacobian is lower triangular, with diagonal entries equal to Var[h]/N\mathrm{Var}[h]/N3 for Var[h]/N\mathrm{Var}[h]/N4 and Var[h]/N\mathrm{Var}[h]/N5 for Var[h]/N\mathrm{Var}[h]/N6. The corresponding divergence at one node is

Var[h]/N\mathrm{Var}[h]/N7

By organizing these couplings in a binary tree, every coordinate eventually appears in Var[h]/N\mathrm{Var}[h]/N8 at some level, and the full Jacobian diagonal, hence the divergence, can be computed exactly in one forward pass via a recursive pass-down of diagonal scalings (Siahkoohi et al., 24 Feb 2026).

An Var[h]/N\mathrm{Var}[h]/N9-member ensemble with random permutations is used to cover different cross-dimension interactions. The final control variate is the ensemble average

Var[hg]/N\mathrm{Var}[h-g]/N0

The control variate induced by one layer is summarized as

Var[hg]/N\mathrm{Var}[h-g]/N1

The emphasis on exact divergence in one forward pass is important: it is the architectural mechanism by which the Stein construction is made computationally viable in high-dimensional inverse problems (Siahkoohi et al., 24 Feb 2026).

4. Training objective, data requirements, and amortized deployment

Training is posed as minimizing the mean-squared error between the target quantity and the ensemble control variate:

Var[hg]/N\mathrm{Var}[h-g]/N2

Because Var[hg]/N\mathrm{Var}[h-g]/N3 exactly by Stein’s identity, this objective is equivalent up to a constant to minimizing Var[hg]/N\mathrm{Var}[h-g]/N4 (Siahkoohi et al., 24 Feb 2026).

The reported offline training pipeline has four parts. First, one draws Var[hg]/N\mathrm{Var}[h-g]/N5 joint samples from the prior predictive: Var[hg]/N\mathrm{Var}[h-g]/N6 and Var[hg]/N\mathrm{Var}[h-g]/N7. Second, one computes or approximates the posterior score Var[hg]/N\mathrm{Var}[h-g]/N8 either analytically from likelihood plus prior, or with a learned conditional normalizing flow or score-based diffusion model trained on the same joint samples. Third, one evaluates Var[hg]/N\mathrm{Var}[h-g]/N9 by forward passes through the θ(i)p(θy)\theta^{(i)}\sim p(\theta\mid y)0 coupling networks, using θ(i)p(θy)\theta^{(i)}\sim p(\theta\mid y)1 in the θ(i)p(θy)\theta^{(i)}\sim p(\theta\mid y)2 term. Fourth, one updates the network parameters by gradient descent on the sample average of θ(i)p(θy)\theta^{(i)}\sim p(\theta\mid y)3, with Adam or AdamW (Siahkoohi et al., 24 Feb 2026).

At inference time, the learned module is reused without retraining. For a new observation θ(i)p(θy)\theta^{(i)}\sim p(\theta\mid y)4, one draws posterior samples θ(i)p(θy)\theta^{(i)}\sim p(\theta\mid y)5 using any sampler or a conditional normalizing flow, evaluates θ(i)p(θy)\theta^{(i)}\sim p(\theta\mid y)6, and forms

θ(i)p(θy)\theta^{(i)}\sim p(\theta\mid y)7

The implementation notes further state that joint training samples come “for free” in simulation-based inference, that the coupling-layer architecture computes divergence exactly in one forward pass, and that once trained, θ(i)p(θy)\theta^{(i)}\sim p(\theta\mid y)8 is fixed and new observations require no retraining (Siahkoohi et al., 24 Feb 2026).

A common misconception is that observation-conditioned variance reduction must be fit separately for each posterior. The reported formulation rejects that view explicitly: the control variate is amortized over θ(i)p(θy)\theta^{(i)}\sim p(\theta\mid y)9 and is intended to generalize across observations (Siahkoohi et al., 24 Feb 2026).

5. Empirical performance in stylized and PDE-constrained problems

Empirical results are reported using the variance-reduction factor

I^N=1Ni=1Nf(θ(i)).\hat I_N = \frac{1}{N}\sum_{i=1}^N f(\theta^{(i)}).0

with lower values better, I^N=1Ni=1Nf(θ(i)).\hat I_N = \frac{1}{N}\sum_{i=1}^N f(\theta^{(i)}).1 perfect, and I^N=1Ni=1Nf(θ(i)).\hat I_N = \frac{1}{N}\sum_{i=1}^N f(\theta^{(i)}).2 indicating no gain (Siahkoohi et al., 24 Feb 2026).

Problem setting Quantity Reported VRF or gain
Gaussian inverse, I^N=1Ni=1Nf(θ(i)).\hat I_N = \frac{1}{N}\sum_{i=1}^N f(\theta^{(i)}).3 Posterior mean I^N=1Ni=1Nf(θ(i)).\hat I_N = \frac{1}{N}\sum_{i=1}^N f(\theta^{(i)}).4–I^N=1Ni=1Nf(θ(i)).\hat I_N = \frac{1}{N}\sum_{i=1}^N f(\theta^{(i)}).5
Gaussian inverse, I^N=1Ni=1Nf(θ(i)).\hat I_N = \frac{1}{N}\sum_{i=1}^N f(\theta^{(i)}).6 Posterior variance I^N=1Ni=1Nf(θ(i)).\hat I_N = \frac{1}{N}\sum_{i=1}^N f(\theta^{(i)}).7–I^N=1Ni=1Nf(θ(i)).\hat I_N = \frac{1}{N}\sum_{i=1}^N f(\theta^{(i)}).8
Rosenbrock inverse, I^N=1Ni=1Nf(θ(i)).\hat I_N = \frac{1}{N}\sum_{i=1}^N f(\theta^{(i)}).9 Mean estimation Var(f)/N\mathrm{Var}(f)/N0–Var(f)/N\mathrm{Var}(f)/N1
Nonlinear forward, Var(f)/N\mathrm{Var}(f)/N2 Mean estimation Var(f)/N\mathrm{Var}(f)/N3
Darcy flow, Var(f)/N\mathrm{Var}(f)/N4 KL modes Posterior mean Var(f)/N\mathrm{Var}(f)/N5

In stylized Gaussian inverse problems with ensemble size Var(f)/N\mathrm{Var}(f)/N6, posterior-mean estimation achieved Var(f)/N\mathrm{Var}(f)/N7–Var(f)/N\mathrm{Var}(f)/N8 across Var(f)/N\mathrm{Var}(f)/N9, with correlation between c(θ,y)c(\theta,y)0 and c(θ,y)c(\theta,y)1 greater than c(θ,y)c(\theta,y)2. Posterior-variance estimation yielded c(θ,y)c(\theta,y)3–c(θ,y)c(\theta,y)4. Sample efficiency was reported as stable as c(θ,y)c(\theta,y)5 increases, with about c(θ,y)c(\theta,y)6 effective sample gain at c(θ,y)c(\theta,y)7 (Siahkoohi et al., 24 Feb 2026).

For the Rosenbrock inverse problem in c(θ,y)c(\theta,y)8, described as a non-Gaussian banana shape, mean-estimation VRF across three extreme test observations lay in c(θ,y)c(\theta,y)9. Posterior-variance VRF per dimension was reported as μc(y)=E[c(θ,y)y]\mu_c(y)=E[c(\theta,y)\mid y]0, μc(y)=E[c(θ,y)y]\mu_c(y)=E[c(\theta,y)\mid y]1, with average μc(y)=E[c(θ,y)y]\mu_c(y)=E[c(\theta,y)\mid y]2. In the nonlinear forward problem with μc(y)=E[c(θ,y)y]\mu_c(y)=E[c(\theta,y)\mid y]3 and μc(y)=E[c(θ,y)y]\mu_c(y)=E[c(\theta,y)\mid y]4, mean-estimation VRF was μc(y)=E[c(θ,y)y]\mu_c(y)=E[c(\theta,y)\mid y]5 over ten test observations (Siahkoohi et al., 24 Feb 2026).

The PDE-constrained Darcy flow experiment used μc(y)=E[c(θ,y)y]\mu_c(y)=E[c(\theta,y)\mid y]6 KL modes and μc(y)=E[c(θ,y)y]\mu_c(y)=E[c(\theta,y)\mid y]7 sensors. A μc(y)=E[c(θ,y)y]\mu_c(y)=E[c(\theta,y)\mid y]8M-parameter conditional normalizing flow was trained on μc(y)=E[c(θ,y)y]\mu_c(y)=E[c(\theta,y)\mid y]9k joint g(θ,y)g(\theta,y)00 samples for both sampling and g(θ,y)g(\theta,y)01. The CNCV ensemble used g(θ,y)g(\theta,y)02 and depth g(θ,y)g(\theta,y)03, yielding g(θ,y)g(\theta,y)04, described equivalently as g(θ,y)g(\theta,y)05 variance reduction, and approximately g(θ,y)g(\theta,y)06 effective sample gain for posterior mean estimation. Per-component VRF was heterogeneous: low-frequency well-constrained modes had g(θ,y)g(\theta,y)07, high-frequency modes went as low as g(θ,y)g(\theta,y)08, and the overall average was approximately g(θ,y)g(\theta,y)09. Posterior-mean maps and standard-deviation fields matched ground truth and reflected sensor geometry (Siahkoohi et al., 24 Feb 2026).

These results support two specific interpretations already encoded in the reported numbers. First, the gains can be substantial but are not uniform across quantities or posterior components. Second, the method does not require low-dimensional posteriors to be effective, since performance is reported in a g(θ,y)g(\theta,y)10-dimensional PDE-constrained inverse problem (Siahkoohi et al., 24 Feb 2026).

6. Learned-score sensitivity, scope, and relation to earlier neural control variates

The posterior score is a required input to the Stein control variate, but the reported experiments indicate that exact analytical scores are not mandatory. Replacing analytic g(θ,y)g(\theta,y)11 with conditional-normalizing-flow-learned scores produced nearly identical VRFs: in the Gaussian problem with g(θ,y)g(\theta,y)12, VRF increased from g(θ,y)g(\theta,y)13 to g(θ,y)g(\theta,y)14, and in the nonlinear problem with g(θ,y)g(\theta,y)15, VRF remained stable at g(θ,y)g(\theta,y)16 (Siahkoohi et al., 24 Feb 2026). This addresses a second common misconception, namely that Stein-based posterior control variates are practical only when analytical scores are available.

The stated scope is that the method functions as a plug-in, amortized variance-reduction module for any posterior sampler that yields i.i.d. samples and a source of g(θ,y)g(\theta,y)17. The implementation notes further emphasize physics-based likelihood evaluations, neural operator surrogates, conditional normalizing flows, and diffusion-based score models as admissible score sources (Siahkoohi et al., 24 Feb 2026). A plausible implication is that the method fits naturally within simulation-based inference pipelines in which joint samples and learned posterior surrogates are already present.

In the broader literature on neural control variates, Tucker, Williamson, et al. introduced a general framework for learning low-variance, unbiased gradient estimators for black-box functions of random variables, including an action-conditional extension of advantage actor-critic and the LAX and RELAX estimators (Grathwohl et al., 2017). In that setting, the control variate is a differentiable neural surrogate g(θ,y)g(\theta,y)18 optimized directly to reduce gradient-estimator variance, rather than a Stein control variate for posterior expectation estimation. The earlier framework therefore belongs to gradient estimation for stochastic optimization, whereas the posterior CNCV construction is targeted at variance reduction of Monte Carlo estimators in Bayesian inverse problems. The shared terminology reflects a common idea—learning conditional neural control variates—but the estimands, unbiasedness arguments, and computational bottlenecks differ (Grathwohl et al., 2017).

Within the reported Bayesian inverse-problem setting, the defining characteristics are thus modularity, amortization over observations, exact zero mean through Stein’s identity, and a coupling-layer architecture that makes divergence evaluation tractable in high dimension (Siahkoohi et al., 24 Feb 2026).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Conditional Neural Control Variates.