betaFeedback

WorksMathematics

Density Ratio Estimation with Stein Displacement Fields

Abstract

Density ratios quantify distribution shift from a probability-mass point of view, whereas displacement fields describe, from a dynamical point of view, how one distribution is transported onto another. Although both offer complementary insights, they are usually estimated separately, and converting one into the other requires post-processing. In this paper, we estimate the density ratio between a target and a base distribution by parametrizing it through a displacement field acting on the base: the log-ratio is modeled as minus the Stein operator of the base applied to the field, up to a normalizing constant. This gives both statistical and dynamical descriptions of the distribution shift through a single convex optimization problem. Iterating this estimate-and-move step gives two inference algorithms: push-forward moves the model and corrects a pretrained sampler without retraining it, whereas pull-back moves the data closer to the base and fits a transformation model one layer at a time. Applications to distribution shift in simulation-based inference and to nonlinear independent component analysis illustrate the benefits and limitations of the approach.

Introduction

Many machine learning problems come down to comparing two distributions. Broadly speaking, there are two different ways to do so. The first is information-theoretic: a divergence, such as the Kullback–Leibler (KL) divergence or another ff-divergence, measures how two distributions spread their probability mass differently. These divergences serve as training objectives for generative adversarial networks [25, 58], and their gradient flows move one distribution towards the other [39, 47, 53, 55]. An ff-divergence is an expectation of a function of the density ratio r=p/qr = p/q [57, 78, 50]. Density ratio estimation (DRE) has therefore become a building block of this approach, as well as a tool in its own right for importance weighting, two-sample testing and likelihood-free inference [72, 18, 30]. However, ratio estimation is often fragile. When pp and qq are far apart, samples from one say little about the other, a problem known as the “density chasm” [64], and adversarial training is notoriously unstable [5].

The second approach compares distributions through transport. Rather than comparing densities, it learns how to move one distribution onto the other with a displacement field or a flow map. This view underlies optimal-transport domain adaptation [17] and flow-based generative modeling, where flow matching, rectified flows and stochastic interpolants fit the velocity of a prescribed path by least-squares regression [46, 51, 1]. These methods fit the velocity by regression, avoiding adversarial ratio estimation. Their prescribed paths, however, need not follow the gradient flow of a specified divergence.

Can we learn a divergence and, at the same time, a displacement field along which moving one distribution decreases that divergence? We show that this is feasible when the score of the base distribution qq can be evaluated and the target distribution pp is observed through samples. Stein’s method connects the two views [70, 4]. The Langevin–Stein operator Aq\mathcal{A}_q of the base maps a vector field v:Rd→Rdv:\mathbb{R}^d \to\mathbb{R}^d to a scalar function Aqv\mathcal{A}_q v that has zero mean under qq and depends on qq only through its score sq=∇log⁡qs_q = \nabla\log q (Section 2.2). We model the log-ratio as −Aqv-\mathcal{A}_q v, up to a constant. This modelling choice has two consequences. First, a convex optimization problem derived from the Donsker–Varadhan (DV) lower bound estimates both p/qp/q and a lower bound on KL⁡(q∥p)\operatorname{KL}(q\mathbin\Vert p) using only samples of pp and the score of qq. Similar Stein-parametrized ratio models have been used to fit intractable statistical models [49]. Second, moving qq along the same field, x↦x+ηv(x)x \mapsto x+\eta v(x) with a small step size η>0\eta> 0, changes its log-density by −ηAqv-\eta\mathcal{A}_q v to first order. At a population optimum attaining the DV bound, this is equivalent, up to normalization and to first order, to multiplying qq by rηr^\eta. The field that exactly represents the log-ratio therefore also gives a displacement towards pp. Its infinitesimal density change agrees with the Fisher–Rao gradient flow of KL⁡(q∥p)\operatorname{KL}(q \mathbin\Vert p), realized through transport.

This infinitesimal interpretation motivates repeating the refinement step, and there are two natural approaches. If qq is a pretrained generative model with a tractable density (e.g., flow models), we can move the model by appending displacement layers to the model, which correct the model without retraining it. If instead qq belongs to a simple parametric family that we want to fit, we can move the data, pulling them back towards the family through each displacement. We call the two algorithms push-forward and pull-back and show that they are naturally suited to model updating and latent independent source recovery tasks respectively.

In this paper, we first propose Stein displacement ratio estimation (SDRE), a convex density ratio estimator that estimates not only the ratio p/qp/q but also a displacement field. When the population DV bound is attained, this field induces, to first order, a density update along the Fisher–Rao gradient flow of KL⁡(q∥p)\operatorname{KL}(q \mathbin\Vert p) (§ 3). This result motivates the two inference algorithms of § 4. Push-forward appends displacement layers to a pretrained sampler to fit the data while keeping its model frozen, and pull-back transforms the data through an invertible flow towards a prior from a simple parametric family. Finally, we apply both algorithms to two problems (§ 5). Push-forward adapts a pretrained diffusion posterior sampler to a new posterior target, performing on par with discriminator guidance while keeping an exact density. Pull-back refines pretrained ICA models and gives strong signal identification in synthetic and speech settings. We also discuss the limitations of the approach (§ 6).

Background

Our estimator combines two ingredients: density ratio estimation from samples (§ 2.1) and Stein’s method (§ 2.2).

Density ratio estimation

We first recall how a density ratio is estimated when samples of both distributions are available; our estimator in § 3 modifies this construction. Suppose we have samples from two distributions,

{xi}i=1n∼p,{x~j}j=1n~∼q.\{x_i\}_{i=1}^{n} \sim p, \qquad\{\tilde{x}_j\}_{j=1}^{\tilde{n}} \sim q.

The KL importance estimation procedure [KLIEP; [71]] models the ratio p/qp/q by rα(x)=α⊤ϕ(x)r_\alpha(x) = \alpha^\top\phi(x) with non-negative basis functions and solves the constrained convex problem

max⁡α 1n∑ilog⁡rα(xi),s.t.α≥0, 1n~∑jrα(x~j)=1.(1)\max_{\alpha}\ \frac{1}{n}\sum_i \log r_\alpha(x_i), \quad\text{s.t.}\quad\alpha\ge0,\ \frac{1}{\tilde{n}}\sum_j r_\alpha(\tilde{x}_j)=1. \tag*{(1)}

The log-linear variant rα=exp⁡(α⊤ϕ)1n~∑jexp⁡(α⊤ϕ(x~j))r_\alpha= \frac{\exp(\alpha^\top\phi)}{\frac{1}{\tilde{n}}\sum_j\exp(\alpha^\top\phi(\tilde{x}_j))} removes the constraints and gives the unconstrained convex problem [[76]]

max⁡α 1n∑i=1nα⊤ϕ(xi)−log⁡1n~∑j=1n~eα⊤ϕ(x~j).(2)\max_{\alpha}\ \frac{1}{n}\sum_{i=1}^{n}\alpha^\top\phi(x_i)-\log\frac{1}{\tilde{n}}\sum_{j=1}^{\tilde{n}}e^{\alpha^\top\phi(\tilde{x}_j)}. \tag*{(2)}

This log-linear KLIEP closely resembles the Donsker–Varadhan (DV) representation of the KL divergence [[20]],

KL⁡(p∥q)=sup⁡fEp[f]−log⁡Eq[ef].(3)\operatorname{KL}(p\mathbin\Vert q)=\sup_f\mathbb{E}_p[f]-\log\mathbb{E}_q[e^f]. \tag*{(3)}

Restricting ff to a log-ratio model that is linear in its parameters and replacing expectations with sample averages gives the log-linear KLIEP above.

When pp and qq are far apart, the samples of one say little about the other [the “density chasm”; [64]]; recent methods bridge the gap with classifiers over intermediate or auxiliary distributions [[64, 69], time score matching along a continuous path [[14, 79], or a shared invertible feature map [[13]]. All of these methods, like (2) and (3), need samples from both distributions.

Stein's method

Stein’s method characterizes a distribution by an operator whose expectation under that distribution vanishes [[70, 4]]. For a smooth, positive density qq on Rd\mathbb{R}^d with score sq=∇log⁡qs_q=\nabla\log q, the Langevin–Stein operator acts on a vector field v:Rd→Rdv:\mathbb{R}^d\to\mathbb{R}^d as

Aqv=sq⊤v+∇⋅v=∇⋅(qv)q.(4)\mathcal{A}_qv=s_q^\top v+\nabla\cdot v=\frac{\nabla\cdot(qv)}{q}. \tag*{(4)}

By the second form and the divergence theorem,

Eq[Aqv]=∫∇⋅(qv) dx=0(5)\mathbb{E}_q[\mathcal{A}_qv]=\int\nabla\cdot(qv)\,dx=0 \tag*{(5)}

whenever qvqv vanishes sufficiently fast at infinity and Aqv\mathcal{A}_qv is integrable; such fields form the Stein class of qq, and (5) is Stein’s identity. The operator depends on qq only through its score, so it can be evaluated when the normalizing constant of qq is unknown.

Optimizing the expectation of Aqv\mathcal{A}_qv under a data distribution over a class of fields gives Stein discrepancies [26], used for goodness-of-fit tests through the closed-form kernelized Stein discrepancy (KSD) [48, 15]. Stein variational gradient descent [SVGD; [47]] moves particles from a distribution ρ\rho towards a target with known score sqs_q: under the map x↦x+ϵv(x)x \mapsto x+\epsilon v(x), the derivative of KL⁡(ρ∥q)\operatorname{KL}(\rho\mathbin\Vert q) at ϵ=0\epsilon=0 is −Eρ[Aqv]-\mathbb{E}_{\rho}[A_qv], so maximizing Eρ[Aqv]\mathbb{E}_{\rho}[A_qv] over the kernel ball gives the steepest descent direction within that class.

In these uses, the scalar function AqvA_qv measures a discrepancy through its expectation or enters the directional derivative of the KL divergence. The vector field vv, selected by maximizing Eρ[Aqv]\mathbb{E}_{\rho}[A_qv] over the kernel ball, provides the particle descent direction in SVGD.

Stein density ratio estimation

Estimating the ratio between a data distribution and an unnormalized model is useful in statistical inference, and the Stein operator can help in this setting. Liu et al. [49] estimate r=p/qr=p/q where qq is an unnormalized model with a known score and pp is observed through samples. They take bb stacked scalar feature functions f:Rd→Rbf:\mathbb{R}^{d}\to\mathbb{R}^{b}, apply the Stein operator to their gradient fields, and use the linear ratio model rδ=1+δTAq∇fr_{\delta}=1+\delta^{\mathsf{T}}A_q\nabla f, where Aq∇fA_q\nabla f collects Aq∇fkA_q\nabla f_k for k=1,…,bk=1,\ldots,b. By Stein’s identity, Eq[rδ]=1\mathbb{E}_{q}[r_{\delta}]=1 for every δ\delta, so the normalization constraint of KLIEP holds automatically at the population level. The normalization constraint no longer requires samples from qq, leaving the objective

max⁡δ 1n∑i=1nlog⁡(1+δT(Aq∇f)(xi)).(6)\max_{\delta}\ \frac{1}{n}\sum_{i=1}^{n}\log\left(1+\delta^{\mathsf{T}}(A_q\nabla f)(x_i)\right). \tag*{(6)}

The logarithms restrict the domain to positive fitted ratios at the samples. The optimized value serves as an estimate of KL⁡(p∥q)\operatorname{KL}(p\mathbin\Vert q). Liu et al. [49] minimize this estimate over the parameters of qq to fit intractable models. The linear model is not guaranteed to be positive away from the samples, which limits its use for out-of-sample ratio evaluation.

Stein Displacement Ratio Estimation

Let qq be a base distribution on Rd\mathbb{R}^{d}, for example a prior or a pretrained generative model, and let pp be a target. We can evaluate the score of the base, sq=∇log⁡qs_q=\nabla\log q, which does not require its normalizing constant, and we observe the target only through samples x1,…,xnx_1,\ldots,x_n. Our goal is to estimate the density ratio r=p/qr=p/q. Like the density ratio estimator in § 2.3, our estimator uses no samples from qq. Throughout, qq is smooth and positive, and every vector field v:Rd→Rdv:\mathbb{R}^{d}\to\mathbb{R}^{d} below belongs to the Stein class of qq (§ 2.2), so that Stein’s identity (5) holds.

Consider the population objective of the log-linear KLIEP for the reciprocal ratio q/pq/p, i.e., (3) with pp and qq exchanged

KL⁡(q∥p)=sup⁡fEq[f]−log⁡Ep[ef].\operatorname{KL}(q\mathbin\Vert p)=\sup_f\mathbb{E}_{q}[f]-\log\mathbb{E}_{p}[e^f].

The density qq now enters through a plain expectation. Choosing f=Aqvf=A_qv makes this expectation vanish by (5), and we obtain the lower bound

KL⁡(q∥p)≥L(v):=−log⁡Ep[e(Aqv)(x)].(7)\operatorname{KL}(q\mathbin\Vert p)\geq\mathcal{L}(v):=-\log\mathbb{E}_{p}\left[e^{(A_qv)(x)}\right]. \tag*{(7)}

The right-hand side depends on an expectation under pp and the score of qq. The inequality (7) is tight when −Aqv-A_qv equals log⁡r\log r up to a constant.

Maximizing the right-hand side of (7) over vv gives an estimate log⁡r≈−Aqv^+C\log r\approx-A_q\hat{v}+C, where CC is a constant. We next define a finite-sample estimator and explain its statistical and dynamical interpretations.

The regularized estimator

Let V\mathcal{V} be a class of vector fields with a norm ∥⋅∥V\|\cdot\|_{\mathcal{V}}. We estimate the field by minimizing the empirical version of −L(v)-\mathcal{L}(v) with a ridge penalty,

v^∈arg⁡min⁡v∈V log⁡1n∑i=1ne(Aqv)(xi)+λ2∥v∥V2.(8)\hat{v}\in\mathop{\arg\min}_{v\in\mathcal{V}}\ \log\frac{1}{n}\sum_{i=1}^{n}e^{(A_qv)(x_i)}+\frac{\lambda}{2}\|v\|_{\mathcal{V}}^{2}. \tag*{(8)}

The ridge level λ>0\lambda>0 is a hyperparameter and is chosen using validation samples. Since (Aqv)(xi)(A_qv)(x_i) is linear in vv, the objective is a log-sum-exp of linear functions of vv plus a convex squared-norm penalty. It is therefore convex whenever V\mathcal{V} is a linear space, e.g., the span of finitely many fields or a reproducing kernel Hilbert space. For the finite basis and quadratic coefficient penalty used in our experiments, we solve this convex problem with Newton or quasi-Newton methods (Appendix § 13).

The lower bound (7) at v^\hat{v}, approximated using validation samples x1va,…,xnvava∼px_1^{\mathrm{va}},\ldots,x_{n_{\mathrm{va}}}^{\mathrm{va}}\sim p held out from (8),

J^:=−log⁡1nva∑i=1nvae(Aqv^)(xiva)≈L(v^)≤KL⁡(q∥p),(9)\hat{J}:=-\log\frac{1}{n_{\mathrm{va}}}\sum_{i=1}^{n_{\mathrm{va}}}e^{(A_q\hat{v})(x_i^{\mathrm{va}})}\approx\mathcal{L}(\hat{v})\leq\operatorname{KL}(q\mathbin\Vert p), \tag*{(9)}

can be used as a validation diagnostic: a J^\hat{J} well above its standard error suggests that qq and pp differ. The empirical J^\hat{J} is not itself a guaranteed lower bound. Finally, the log ratio estimate is

log⁡r^(x)=−(Aqv^)(x)−J^,(10)\log\hat{r}(x)=-(A_q\hat{v})(x)-\hat{J}, \tag*{(10)}

where subtracting J^\hat{J} normalizes the estimate so that 1nva∑i1/r^(xiva)=1\frac{1}{n_{\mathrm{va}}}\sum_i1/\hat{r}(x_i^{\mathrm{va}})=1.

Compared with Stein-parametrized linear ratio models used by Liu et al. [49], in SDRE, the Stein operator models a log ratio, not the ratio itself, and the field also defines a displacement of qq, as we show next.

One estimate, two perspectives on distribution shift

We now show how the field connects ratio estimation with sample transport. The first result identifies the log ratio when the population bound is tight; the second describes how moving qq along the field changes its log-density.

Proposition 1. Let KL⁡(q∥p)<∞\operatorname{KL}(q \mathbin{\|} p) < \infty. Then L(v)≤KL⁡(q∥p)\mathcal{L}(v) \le\operatorname{KL}(q \mathbin{\|} p), with equality if and only if −(Aqv)(x)=log⁡r(x)+KL⁡(q∥p)-(\mathcal{A}_qv)(x) = \log r(x) + \operatorname{KL}(q \mathbin{\|} p) for pp-almost every xx.

When the population bound is attained, −Aqv-\mathcal{A}_qv is the log-ratio shifted by the divergence KL⁡(q∥p)\operatorname{KL}(q \mathbin{\|} p). This also justifies subtracting J^\hat{J} in (10). The proof is in Appendix A.

The field vv also has a dynamical reading. Move every point of qq along the field, Tη(x)=x+ηv(x)T_\eta(x) = x + \eta v(x), where η>0\eta> 0 is a step size, and write (Tη)#q(T_\eta)_{\#}q for the distribution of Tη(x)T_\eta(x) with x∼qx \sim q. The next result says how this displacement changes qq.

Proposition 2. Let v∈C2v \in C^2 with bounded first and second derivatives. For η\eta small enough, TηT_\eta is a diffeomorphism and, for every x′x',

log⁡(Tη)#q(x′)=log⁡q(x′)−η(Aqv)(x′)+O(η2).(11)\log(T_\eta)_{\#}q(x') = \log q(x') - \eta(\mathcal{A}_qv)(x') + O(\eta^2). \tag*{(11)}

See Appendix A for the proof. In words, moving qq by vv changes its log-density by −ηAqv-\eta\mathcal{A}_qv, the same quantity that models log⁡r\log r in (10). This change-of-variables argument also underlies the KL derivative used in SVGD [47].

Combining both propositions leads to an interesting interpretation of the optimal displacement vv. To state this, recall that the Fisher–Rao gradient flow of KL⁡(ρ∥p)\operatorname{KL}(\rho\mathbin{\|} p) is ∂tlog⁡ρt=−(log⁡ρtp−KL⁡(ρt∥p))\partial_t \log\rho_t = -(\log\frac{\rho_t}{p} - \operatorname{KL}(\rho_t \mathbin{\|} p)): instead of moving mass, it reweights a density pointwise towards pp by the ratio pρt\frac{p}{\rho_t}. The exact solution of this gradient flow is the geometric interpolation ρt∝ρ01−ηpη\rho_t \propto\rho_0^{1-\eta}p^\eta.

Corollary 1. Let vv satisfy the assumptions of Proposition 2 and attain equality in Proposition 1. Then log⁡(Tη)#q=log⁡q+ηlog⁡r+ηKL⁡(q∥p)+O(η2)\log(T_\eta)_{\#}q = \log q + \eta\log r + \eta\operatorname{KL}(q \mathbin{\|} p) + O(\eta^2) pointwise for pp-almost every xx. This agrees with an explicit Euler step of the Fisher–Rao gradient flow started at ρ0=q\rho_0 = q, up to O(η2)O(\eta^2). The normalized geometric interpolation q1−ηpηq^{1-\eta}p^\eta has the same first-order log-density change.

The proof follows directly from Propositions 1 and 2; we give it in Appendix A. Simply speaking, at the optimum, moving every sample from qq along the field vv moves the base qq closer to the target pp along the Fisher–Rao gradient flow. This interpretation distinguishes our displacement field vv from the “feature function” used by Liu et al. [49]. The field vv is not only the function that best explains the density ratio rr, but also a legitimate vector field whose displacement multiplies qq by a small power of the ratio, thus moving qq towards pp.

A single convex problem therefore provides two interpretations of the shift: a statistical one (the ratio r^\hat{r} and the diagnostic J^\hat{J}) and a numerical one (the displacement TηT_\eta). Hence the name “Stein displacement ratio estimation”. The Fisher–Rao flow is usually simulated by reweighting or by birth–death of particles [53], or by a kernel-based transport that requires pointwise evaluation of the unnormalized target-to-reference density ratio [55]. Each TηT_\eta moves existing mass through an invertible map. Restricted fields and small steps can limit how much mass is moved between separated modes; we return to this limitation in Section 6.

Proposition 2 also offers a principled way to incorporate dynamical prior knowledge into density ratio estimation: if we know that the distribution shift arises from a specific dynamical process, such as linear or low-rank transformations, we can restrict V\mathcal{V} to the corresponding family of fields. Therefore, a structured class encodes prior knowledge of the distribution shift. We use these restricted classes of transformations in our experiments, and they are explained in Appendix F.

Corollary 1 only describes a single Euler step TηT_\eta. In applications where we would like the base model to approximate the target pp, we might want to perform such a step repeatedly. In the next section, we study two different algorithms that perform such tasks.

Inference Algorithms

The first-order Fisher–Rao interpretation motivates alternating ratio estimation and displacement to bring a starting base model closer to the target samples. At iteration kk, we evaluate the score of the current base, solve (8) for a field v^k\hat{v}_k, estimate r^k\hat{r}_k by (10), and construct a candidate layer Tk=id⁡+ηkv^kT_k = \operatorname{id} + \eta_k\hat{v}_k. If the layer passes a validation criterion, we update the distributions and repeat; otherwise we stop.

We can carry out this estimation-and-transport loop from two different directions (Figure 1). Either move the model towards the data, which we call push-forward, or pull the data back towards a simple, interpretable base distribution, which we call pull-back.

Push-forward algorithm

Suppose our starting base model is a pretrained generative model and we want to adapt it so that it agrees with the target data. Let Φ0\Phi_0 be a pretrained invertible generator with a simple input distribution π\pi, such as N(0,I)\mathcal{N}(0,I). We correct it by appending displacement layers to its output. After k−1k-1 layers, the current base distribution is

qk=(Φk−1)#π,Φk−1=Tk−1∘⋯∘T1∘Φ0,(12)q_k=(\Phi_{k-1})_{\#}\pi,\qquad\Phi_{k-1}=T_{k-1}\circ\cdots\circ T_1\circ\Phi_0, \tag*{(12)}

with q1=(Φ0)#πq_1=(\Phi_0)_{\#}\pi. At iteration kk, we fit SDRE using the new base qkq_k and the target samples xix_i, then append the new layer at the output: Φk=Tk∘Φk−1\Phi_k=T_k\circ\Phi_{k-1}.

Under the conditions of Corollary 1, with v^k\hat{v}_k attaining equality in Proposition 1, this iteration performs the update qk+1∝qkr^kηkq_{k+1}\propto q_k\hat{r}_k^{\eta_k} to first order in ηk\eta_k and the subsequent updates discretize the Fisher–Rao flow towards pp. The pretrained generator remains fixed, and the accepted layers provide the correction.

At each iteration, the new estimate needs the score of the current model qkq_k. When the sampler consists of invertible steps with tractable Jacobians, we obtain log⁡qk\log q_k by inverting those steps and accumulating their log-determinants, then compute its score by an adjoint recursion (Appendix § 11). This back-traced score includes all corrections so far.

We keep a layer only when the validation criterion detects a discrepancy between pp and qkq_k. We check for J^k>2 se⁡(J^k)\hat{J}_k>2\,\operatorname{se}(\hat{J}_k), where se⁡(J^k)=sd⁡(1/r^k(x))/nva\operatorname{se}(\hat{J}_k)=\operatorname{sd}(1/\hat{r}_k(x))/\sqrt{n_{\mathrm{va}}} is the delta-method estimate over the validation samples. Finally, the procedure returns a corrected sampler whose density is available by change of variables. The pseudocode is given in Algorithm 1; Appendix § 10.§ 1 gives further details.

Algorithm 1 Push-forward, Φ←Push⁡(Φ0,{xi})\Phi\leftarrow\operatorname{Push}(\Phi_0,\{x_i\})

Require: pretrained invertible sampler Φ0\Phi_0 with latent distribution π\pi; target samples {xi}\{x_i\}, split into training and validation samples; maximum number of layers KK

  1. for k=1,…,Kk=1,\ldots,K do

  2. Compute sqk(xi)s_{q_k}(x_i) by back-tracing Φk−1\Phi_{k-1}

  3. v^k←\hat{v}_k\leftarrow solve (8) with q=qkq=q_k on training samples.

  4. Tk←id⁡+ηkv^kT_k\leftarrow\operatorname{id}+\eta_k\hat{v}_k ▷ App. § 10.§ 1

  5. if J^k≤2 se⁡(J^k)\hat{J}_k\le2\,\operatorname{se}(\hat{J}_k) on the validation samples then return Φk−1\Phi_{k-1}

  6. end if

  7. Φk←Tk∘Φk−1\Phi_k\leftarrow T_k\circ\Phi_{k-1}

  8. end for

  9. return ΦK\Phi_K

Pull-back algorithm

Suppose our goal is to find a latent representation of our data. The latent structure can be described by a simple, interpretable parametric prior qq whose log-density and score are known in closed form.

Before layer kk, the current latent samples are zi=Φk−1−1(xi)z_i=\Phi_{k-1}^{-1}(x_i), with distribution pk=(Φk−1−1)#pp_k=(\Phi_{k-1}^{-1})_{\#}p. We fit a field in this latent space and compose the resulting layer with the current map: Φk=Φk−1∘Tk\Phi_k=\Phi_{k-1}\circ T_k. The updated representation is therefore Φk−1(xi)=Tk−1(zi)\Phi_k^{-1}(x_i)=T_k^{-1}(z_i).

If the prior qβq_\beta has unknown parameters, we also need to align the prior and the current representation at every iteration. First, we fit βk\beta_k on the current latent samples ziz_i. We then solve (8) with base qβkq_{\beta_k} and ziz_i, and pull the data back through the resulting layer: zi←Tk−1(zi)z_i\leftarrow T_k^{-1}(z_i) and update the forward map Φk=Φk−1∘Tk\Phi_k=\Phi_{k-1}\circ T_k. Under the conditions of Corollary 1, with βk\beta_k held fixed, the forward move of the base is (Tk)#qβk∝qβkr^kηk(T_k)_{\#}q_{\beta_k}\propto q_{\beta_k}\hat{r}_k^{\eta_k} to first order, where r^k\hat{r}_k estimates pk/qβkp_k/q_{\beta_k}. Thus the same Fisher–Rao step is used in the latent space, interleaved with the prior update. The score needed for (8) is evaluated directly from qβkq_{\beta_k}, without back-tracing the full map.

We accept or reject layer kk, chosen among several candidates (Appendix § 10.§ 2), by the validation likelihood of the transformation model with β=βk\beta=\beta_k,

log⁡p^(x)=log⁡qβk(Φk−1(x))+log⁡∣det⁡∇Φk−1(x)∣.(13)\log\hat{p}(x)=\log q_{\beta_k}\left(\Phi_k^{-1}(x)\right)+\log\left|\det\nabla\Phi_k^{-1}(x)\right|. \tag*{(13)}

Algorithm 2 summarizes the procedure. Identifiability requires restricting the transformation: a sufficiently flexible Φ\Phi can match the prior without recovering the intended latent structure (Appendix § 10.§ 2).

Algorithm 2 Pull-back, (Φ,β)←Pull⁡(Φ0,{xi})(\Phi,\beta)\leftarrow\operatorname{Pull}(\Phi_0,\{x_i\})

Require: starting map Φ0\Phi_0; target samples {xi}\{x_i\}, split into training and validation samples; base family qβq_\beta; maximum number of layers KK

  1. zi←Φ0−1(xi)z_i\leftarrow\Phi_0^{-1}(x_i) for all target samples

  2. for k=1,…,Kk=1,\ldots,K do

  3. βk←arg⁡max⁡β∑trainlog⁡qβ(zi)\beta_k\leftarrow\arg\max_\beta\sum_{\mathrm{train}}\log q_\beta(z_i)

  4. Solve (8) with q=qβkq=q_{\beta_k} on training ziz_i

  5. Tk←id⁡+ηkv^kT_k\leftarrow\operatorname{id}+\eta_k\hat{v}_k ▷ App. § 10.§ 2

  6. if TkT_k does not increase the validation likelihood (13) then return (Φk−1,βk)(\Phi_{k-1},\beta_k)

  7. end if

  8. zi←Tk−1(zi)z_i\leftarrow T_k^{-1}(z_i) for all latent samples

  9. Φk←Φk−1∘Tk\Phi_k\leftarrow\Phi_{k-1}\circ T_k

  10. end for

  11. β←arg⁡max⁡β∑trainlog⁡qβ(zi)\beta\leftarrow\arg\max_\beta\sum_{\mathrm{train}}\log q_\beta(z_i)

  12. return (ΦK,β)(\Phi_K,\beta)

Layer construction in the push-forward and pull-back algorithms

Figure 1. Layer construction in the push-forward and pull-back algorithms. Push-forward appends TkT_k to the model output; pull-back applies Tk−1T_k^{-1} to the current latent samples and refits the base between layers. In both panels, Φk\Phi_k maps the latent base to data.

Choosing between push-forward and pull-back

The choice depends on the objective of inference. Push-forward corrects a model to match the data. Pull-back transforms the data to fit an interpretable prior. Their acceptance rules reflect these goals: push-forward changes the model when the criterion detects a discrepancy, whereas pull-back keeps a layer when it improves the validation likelihood.

Their computational costs also differ. Push-forward recomputes the score through the full sampler, including all previous layers. Pull-back evaluates the prior score directly, carrying forward the latent samples and accumulated log-determinants. In the next section, we use push-forward for guidance of a pretrained posterior sampler in simulation-based inference, and pull-back for source recovery in nonlinear ICA.

Applications

In this section, we examine the proposed algorithms (Push, Pull) on simulation-based inference and nonlinear ICA tasks. Specifically, we use push-forward to correct a posterior sampler and pull-back to recover independent sources, from scratch or by refining pretrained models.

We use conditional variants of Push and Pull. We apply (8) to joint target samples, with the Stein operator acting only on the transported variable (Appendix B). In the experiments, SDRE denotes our methods.

Correcting a posterior sampler in simulation-based inference

In simulation-based inference, a parameter θ\theta is drawn from a prior q(θ)q(\theta) and passed through a simulator q(y∣θ)q(y \mid\theta) to produce an observation yy. An amortized posterior sampler trained on these pairs can then generate samples for unseen observations. If the prior changes to p(θ)p(\theta) or the simulator differs from the target process p(y∣θ)p(y \mid\theta), the pretrained model now targets the wrong posterior. We want to adapt our pretrained model q(θ∣y)q(\theta\mid y) to p(θ∣y)p(\theta\mid y) using target pairs (θi,yi)∼p(\theta_i, y_i) \sim p while keeping the pretrained network parameters fixed.

We consider the pretrained sampler qq to be a diffusion sampler [67, 65]. Since diffusion sampling is a multi-level procedure, we apply Push to correct its deterministic predictor steps at all noise levels, with a conditional field v(θ,y)\boldsymbol{v}(\theta, y). At noise level tt, the current sampler is compared with the target noised to the same level; the target parameters become θt=atθ+σtξ\theta_t = a_t \theta+ \sigma_t \xi, where ata_t and σt\sigma_t are the signal and noise scales and ξi∼N(0,I)\xi_i \sim\mathcal{N}(0, I); the observations are unchanged. The score is back-traced through the predictor steps and all accepted corrections. The result is a sampler corrected for the target prior and simulator with a density available by change of variables at all steps. Appendix G gives the full procedure.

We use a neural posterior score estimator (NPSE) as the starting base model and adapt it on two sbibm tasks [54]: gaussian_linear and bernoulli_glm (GLM), under three shifts (Table 1). Prior change: the prior of gaussian_linear is shifted or replaced by a bimodal mixture; the GLM prior has a shifted bias and smoother filter. Target pairs are resampled from existing simulations with weights proportional to p(θ)/q(θ)p(\theta)/q(\theta), without new simulations. Simulator change: target pairs are generated by a GLM with a steeper spiking nonlinearity. Partial coverage: 10310^3 target pairs from this modified simulator cover only negative-bias neurons; we evaluate on both covered and uncovered regions. We measure posterior accuracy by the classifier two-sample test (C2ST) against reference samples (0.5 means indistinguishable). Retraining on 10510^5 new target simulations provides a reference.

We compare with PriorGuide, with and without Langevin refinement [77], classifier-based DRE with sampling–importance resampling (SIR) [8], discriminator guidance with Langevin refinement [42], and fine-tuning on target pairs, alone or mixed with simulations. PriorGuide applies only to prior changes; methods marked {sup}* in Table 1 have no tractable density. A tractable density can be useful in downstream SBI applications. Appendix § 16 gives the experimental setup, baseline implementations and evaluation protocol.

MethodPrior changeSimulator changePartial coverage
unimodalbimodalGLMnreal=500n_{\mathrm{real}}=500nreal=2000n_{\mathrm{real}}=2000covereduncovered
Frozen NPSE0.724±.0010.760±.0010.619±.0020.619±.0040.619±.0040.632±.0010.638±.003
PriorGuide, ODE0.638±.0280.634±.0170.665±.014××××
PriorGuide + Langevin{sup}*{sup}†0.511±.0020.512±.0010.543±.020××××
Classifier DRE + SIR{sup}*0.816±.0050.862±.0030.717±.0050.722±.0090.721±.0070.727±.0040.759±.007
DG + Langevin{sup}*0.531±.005<u>0.555</u>±.0020.559±.005<u>0.589</u>±.0020.575±.004<u>0.607</u>±.0090.859±.036
Fine-tuned NPSE0.582±.0070.629±.0240.564±.0060.620±.0040.596±.0030.615±.0090.630±.008
Fine-tuned, sim. + real×××––0.612±.0070.633±.002
Frozen NPSE + SDRE<u>0.523</u>±.0040.573±.005<u>0.552</u>±.0040.583±.006<u>0.577</u>±.0030.590±.0060.598±.007
Retrained on 10510^{5} target sim.0.511±.0010.510±.0020.531±.0010.558±.0030.558±.0030.561±.0040.571±.003

Table 1. Posterior correction in simulation-based inference: C2ST against reference posteriors (0.5 = indistinguishable; mean ± std). Best per column in bold, second best underlined (reference rows excluded). {sup}*No tractable density. {sup}†Hyperparameters selected by test C2ST. ×: not applicable; –: not evaluated. The last row reports retraining on new target simulations as a reference. Experimental details are in Appendix § 16.

For a unimodal prior change, the correction reduces C2ST from 0.724 to 0.523, close to retraining on new target simulations (0.511), while using only the existing simulations. PriorGuide with Langevin refinement achieves lower mean C2ST in all three prior-change settings, although its advantage over SDRE is statistically significant only in the bimodal setting. PriorGuide with Langevin refinement uses hyperparameters selected by test C2ST and does not retain a tractable density. Under simulator misspecification, nreal∈{500,2000}n_{\mathrm{real}} \in\{500, 2000\} target pairs improve the frozen sampler, with accuracy comparable to discriminator guidance and better than fine-tuning. With partial coverage, the correction improves accuracy in both the covered and uncovered regions. Table 1 gives the comparison; the experimental setup and statistical tests are in Appendix § 16.

Recovering sources in nonlinear ICA

In independent component analysis (ICA), observations are x=f(z)\boldsymbol{x} = f(\boldsymbol{z}) for an invertible mixing ff and latent sources z=(z1,…,zd)\boldsymbol{z} = (z_1, \ldots, z_d). We want to recover z\boldsymbol{z} from observations x\boldsymbol{x}. In auxiliary variable ICA, we assume that the sources are independent given a time segment cc, p(z∣c)=∏jpj(zj∣c)p(\boldsymbol{z} \mid c) = \prod_j p_j(z_j \mid c). Under suitable regularity conditions across segments, the inverse mixing is identifiable up to a permutation and componentwise invertible transformations [34, 37, 41]. The goal is to recover these sources from the observations and segment labels.

Since the latent signals are conditionally independent, we use a factorized conditional base qB(z∣c)q_B(\boldsymbol{z} \mid c). Its parameters vary across segments, while the field and hence the learned transformation are shared across segments. The sources are read off as Φ−1(x)\boldsymbol{\Phi}^{-1}(\boldsymbol{x}). We use Gaussian or smooth super-Gaussian bases and restrict the fields to structured classes that are linear in their parameters (Appendix § 13). Each candidate field is therefore fitted by a convex problem, and the restrictions express assumptions about the mixing. We also test two different starting configurations: starting from Φ0=id\Phi_0 = \mathrm{id} learns the model from scratch; starting from a pretrained model performs refinement by appending layers to its existing transformation.

Our experiments use synthetic Gaussian sources and real speech recordings from CMU ARCTIC [43] and LibriSpeech [60], all mixed by a random invertible nonlinear network (Appendix § 15). The two synthetic settings use nc∈{200,1000}n_c \in\{200, 1000\} samples per segment. We measure recovery by the mean correlation coefficient (MCC) between estimated and true sources after optimal matching.

We compare with three estimators trained end to end by maximum likelihood or its bound. iVAE [41] is a variational autoencoder whose prior on the latent variables is conditioned on the segment label; its exact likelihood is intractable. GIN [68] is a volume-preserving normalizing flow with a conditional Gaussian base. The oracle-structured flow (OSF) uses oracle knowledge of the mixing structure, which is not available in practice (Appendix § 15). We refine GIN and

OSF, both with tractable exact likelihoods.

As Table 2 shows, refinement with SDRE improves the mean MCC of every pretrained model in all six settings. For example, OSF improves from 0.762 to 0.887 on the synthetic benchmark (nc=1000n_c = 1000). To check whether this gain merely reflects additional training, we also train each model for four times the original number of steps (extended training). Table 3 shows that refinement with SDRE gives higher MCC in 39 of 44 paired runs. These comparisons support using pull-back to improve pretrained representations.

MethodSynthetic (d=5d=5) nc=200n_c=200Synthetic (d=5d=5) nc=1000n_c=1000CMU ARCTIC d=3d=3CMU ARCTIC d=5d=5LibriSpeech d=3d=3LibriSpeech d=5d=5
iVAE0.484±\pm0.0450.492±\pm0.0670.538±\pm0.0900.383±\pm0.0340.578±\pm0.1310.461±\pm0.069
GIN0.602±\pm0.0870.635±\pm0.0550.645±\pm0.0840.440±\pm0.0370.575±\pm0.0770.438±\pm0.037
SDRE (from scratch)0.689±\pm0.0610.673±\pm0.0620.621±\pm0.1500.518±\pm0.0470.770±\pm0.0680.537±\pm0.026
OSF*0.795±\pm0.0680.762±\pm0.0840.854±\pm0.0240.747±\pm0.0460.850±\pm0.0140.736±\pm0.046
GIN + SDRE0.660±\pm0.1040.687±\pm0.0660.747±\pm0.0900.587±\pm0.0810.588±\pm0.0560.467±\pm0.043
OSF* + SDRE0.866±\pm0.0680.887±\pm0.0490.883±\pm0.0070.805±\pm0.0310.907±\pm0.0100.811±\pm0.019

Table 2. Nonlinear ICA: validation MCC (mean ±\pm std). Top: standalone estimators; bottom: pretrained models refined by SDRE. Best per column within each block is bold, excluding the starred standalone row. *Uses oracle knowledge of the mixing architecture. Experimental details are in Appendix H.

MethodSynthetic nc=200n_c=200Synthetic nc=1000n_c=1000ARCTIC d=3d=3ARCTIC d=5d=5LibriSpeech d=3d=3LibriSpeech d=5d=5wins
GIN0.6020.6350.6450.4400.5750.438
Extended training0.6190.6580.6230.4330.5870.445
+ SDRE0.6600.6870.7470.5870.5880.46719/22
OSF0.7950.7620.8540.7470.8500.736
Extended training0.8370.8560.8580.7710.8330.790
+ SDRE0.8660.8870.8830.8050.9070.81120/22

Table 3. Refinement versus extended training: validation MCC (seed means). Extended training uses 4×4\times the original training steps; “wins” counts seeds on which refinement beats extended training. Best per column within each model is bold. Experimental details are in Appendix H.

Trained from scratch, SDRE achieves the highest mean MCC among the evaluated estimators without oracle knowledge in five of the six settings. OSF, which has access to the mixing architecture, achieves higher mean MCC in all six settings. Appendix H gives the data, models and detailed comparisons; Appendix H.4 examines stopping rules, selection among refined models and further datasets.

Conclusion and limitations

We propose SDRE, which models the log density ratio as minus the Stein operator applied to a displacement field, up to a normalizing constant. This connects two views of distribution shift. A convex fit estimates both

the ratio and a KL lower bound. When the population bound is attained, the estimated field gives a first-order Fisher–Rao update. Repeating the fit-and-update step yields push-forward and pull-back inference algorithms, which we evaluate on posterior correction in SBI and source recovery in nonlinear ICA.

Our method has theoretical and computational limitations. Moving mass between separated modes may require complex displacement fields. Restricting V\mathcal{V} can limit such transport, whereas highly flexible, unregularized fields can make ratio estimation numerically unstable in high dimensions. Push-forward also requires back-tracing the score through all previous corrections, so its cost grows with the number of layers.

Due to space constraints, we defer a detailed discussion of related work to Section J. There, we compare SDRE with existing density ratio estimators, discuss its transport-based approximation of Fisher–Rao dynamics in relation to kernel-based approaches, and contrast greedy, layer-wise pull-back estimation with end-to-end nonlinear ICA methods such as GIN [68].

AI Use Statement

In this work, we used generative AI tools for writing and running experiment code, including the implementation of Push and Pull and the baselines, for orchestrating experiments on HPC, and for drafting and proofreading the manuscript, structuring tables and formatting the bibliography. The tools also assisted with mathematical derivations and the writing and checking of proofs. They also took part in discussions of experimental design and the interpretation of experimental results, and some experimental design choices (the rank-dd field class, the refinement protocol and the multi-start selection) were first suggested in such discussions and then tested by the authors.

We have reviewed all AI-assisted work: every reported number was checked against the experiment logs, and the code, proofs and references were reviewed by the authors. We take responsibility for the final content of this work, including text, claims, or artifacts produced with the aid of generative AI.

Proofs

Proof of Proposition 1. Write f=Aqvf=A_qv and Z=Ep[ef]Z=\mathbb{E}_p[e^f]. If Z=∞Z=\infty, then L(v)=−∞\mathcal{L}(v)=-\infty and the inequality is immediate. Otherwise, 0<Z<∞0<Z<\infty and the tilted density pv=pef/Zp_v=pe^f/Z is well defined. Stein’s identity gives

KL⁡(q∥pv)=Eq[log⁡qp−f+log⁡Z]=KL⁡(q∥p)+log⁡Z=KL⁡(q∥p)−L(v)≥0.\operatorname{KL}(q\mathbin\Vert p_v)=\mathbb{E}_q\left[\log\frac{q}{p}-f+\log Z\right] =\operatorname{KL}(q\mathbin\Vert p)+\log Z=\operatorname{KL}(q\mathbin\Vert p)-\mathcal{L}(v)\ge0.

Equality holds exactly when pv=qp_v=q almost everywhere, or equivalently f=log⁡(q/p)+log⁡Zf=\log(q/p)+\log Z for pp-almost every xx. Taking the qq-expectation yields 0=KL⁡(q∥p)+log⁡Z0=\operatorname{KL}(q\mathbin\Vert p)+\log Z. Thus equality is equivalent to −Aqv=log⁡r+KL⁡(q∥p)-A_qv=\log r+\operatorname{KL}(q\mathbin\Vert p), as claimed.

Proof of Proposition 2. Let L=sup⁡x∥∇v(x)∥op<∞L=\sup_x\lVert\nabla v(x)\rVert_{\mathrm{op}}<\infty and take η>0\eta>0 with ηL<1\eta L<1. For each x′x', the map x↦x′−ηv(x)x\mapsto x'-\eta v(x) is a contraction on Rd\mathbb{R}^d, so it has a unique fixed point Tη−1(x′)T_\eta^{-1}(x'). The Jacobian I+η∇vI+\eta\nabla v is nonsingular and has positive determinant, since it varies continuously from II without becoming singular. The inverse function theorem therefore makes TηT_\eta a diffeomorphism.

Fix x′x' and put x=Tη−1(x′)x=T_\eta^{-1}(x'). The inverse equation and the Lipschitz bound give ∥x−x′∥≤η∥v(x′)∥/(1−ηL)=O(η)\lVert x-x'\rVert\le\eta\lVert v(x')\rVert/(1-\eta L)=O(\eta), and hence

x=x′−ηv(x)=x′−ηv(x′)+O(η2).x=x'-\eta v(x)=x'-\eta v(x')+O(\eta^2).

Expanding the log-density and log-determinant separately gives

log⁡q(x)=log⁡q(x′)−ηsq(x′)Tv(x′)+O(η2),\log q(x)=\log q(x')-\eta s_q(x')^\mathsf{T}v(x')+O(\eta^2),
log⁡det⁡(I+η∇v(x))=η∇⋅v(x′)+O(η2).\log\det(I+\eta\nabla v(x))=\eta\nabla\cdot v(x')+O(\eta^2).

Subtracting these expressions in the change-of-variables formula yields

log⁡(Tη)#q(x′)=log⁡q(x′)−η(Aqv)(x′)+O(η2).\log(T_\eta)_\#q(x')=\log q(x')-\eta(A_qv)(x')+O(\eta^2).

All remainders are pointwise in x′x'; their constants may depend on x′x'.

Proof of Corollary 1. Combining Propositions 1 and 2 gives

log⁡(Tη)#q=log⁡q+η[log⁡r+KL⁡(q∥p)]+O(η2).\log(T_\eta)_\#q=\log q+\eta\left[\log r+\operatorname{KL}(q\mathbin\Vert p)\right]+O(\eta^2).

At ρ0=q\rho_0=q, the Fisher–Rao log-density velocity is

∂tlog⁡ρt∣t=0=−log⁡(q/p)+KL⁡(q∥p)=log⁡r+KL⁡(q∥p).\left.\partial_t\log\rho_t\right|_{t=0}=-\log(q/p)+\operatorname{KL}(q\mathbin\Vert p)=\log r+\operatorname{KL}(q\mathbin\Vert p).

Thus the displacement agrees with an explicit Euler step for this velocity up to O(η2)O(\eta^2).

The geometric interpolation has the same first-order change after normalization. To see this, write q~η=qrη/Zη\widetilde q_\eta=qr^\eta/Z_\eta, where Zη=Eq[rη]Z_\eta=\mathbb{E}_q[r^\eta] and Z0=1Z_0=1. Multiplying by rηr^\eta adds ηlog⁡r\eta\log r to the log-density; we only need to account for the normalizing constant. Its change at η=0\eta=0 is

ddηlog⁡Zη∣η=0+=Eq[log⁡r]=−KL⁡(q∥p).\left.\frac{d}{d\eta}\log Z_\eta\right|_{\eta=0+}=\mathbb{E}_q[\log r]=-\operatorname{KL}(q\mathbin\Vert p).

This derivative is well defined under the finite-KL assumption: Eq∣log⁡r∣<∞\mathbb{E}_q|\log r| < \infty, since log⁡r≤r\log r \le r when r≥1r \ge1. Also, for 0≤η≤1/20 \le\eta\le1/2, ∣rηlog⁡r∣|r^\eta\log r| is bounded by a constant times r+∣log⁡r∣r + |\log r|, so we may differentiate inside the expectation.

Thus log⁡Zη=−ηKL⁡(q∥p)+o(η)\log Z_\eta= -\eta\operatorname{KL}(q \mathbin\Vert p) + o(\eta), and normalizing gives

log⁡q~η=log⁡q+η[log⁡r+KL⁡(q∥p)]+o(η).\log\widetilde{q}_\eta= \log q + \eta\left[\log r + \operatorname{KL}(q \mathbin\Vert p)\right] + o(\eta).

The coefficient of η\eta is exactly the Fisher–Rao velocity above.

Conditional distributions

Both applications in Section 5 are conditional. Let c\boldsymbol{c} be a conditioning variable with distribution p(c)p(\boldsymbol{c}), and let q(⋅∣c)q(\cdot\mid\boldsymbol{c}) and p(⋅∣c)p(\cdot\mid\boldsymbol{c}) be a base and a target distribution for every c\boldsymbol{c}. The Stein operator acts on the transported variable for each fixed c\boldsymbol{c},

(Aqv)(x,c)=sq(x∣c)Tv(x,c)+∇x⋅v(x,c),sq(x∣c)=∇xlog⁡q(x∣c),(\mathcal{A}_q v)(x,\boldsymbol{c}) = s_q(x \mid\boldsymbol{c})^{\mathsf{T}}v(x,\boldsymbol{c}) + \nabla_x \cdot v(x,\boldsymbol{c}), \qquad s_q(x \mid\boldsymbol{c}) = \nabla_x \log q(x \mid\boldsymbol{c}),

and Stein’s identity Eq(⋅∣c)[(Aqv)(x,c)]=0\mathbb{E}_{q(\cdot\mid\boldsymbol{c})}[(\mathcal{A}_qv)(x,\boldsymbol{c})] = 0 holds for every c\boldsymbol{c}. Given joint target samples (xi,ci)∼p(c)p(x∣c)(x_i,\boldsymbol{c}_i) \sim p(\boldsymbol{c})p(x \mid\boldsymbol{c}), the estimator (8) is applied with (Aqv)(xi,ci)(\mathcal{A}_qv)(x_i,\boldsymbol{c}_i) in place of (Aqv)(xi)(\mathcal{A}_qv)(x_i), and the population Stein–DV objective lower-bounds the expected divergence,

−log⁡Ep(x,c)[e(Aqv)(x,c)]≤Ep(c)KL⁡(q(⋅∣c)∥p(⋅∣c)).(14)-\log\mathbb{E}_{p(x,\boldsymbol{c})}\left[e^{(\mathcal{A}_qv)(x,\boldsymbol{c})}\right] \le\mathbb{E}_{p(\boldsymbol{c})}\operatorname{KL}\left(q(\cdot\mid\boldsymbol{c}) \mathbin\Vert p(\cdot\mid\boldsymbol{c})\right). \tag*{(14)}

Indeed, (7) applied for each c\boldsymbol{c} gives Ep(x∣c)[e(Aqv)(x,c)]≥e−KL⁡c\mathbb{E}_{p(x \mid\boldsymbol{c})}[e^{(\mathcal{A}_qv)(x,\boldsymbol{c})}] \ge e^{-\operatorname{KL}_{\boldsymbol{c}}} with KL⁡c=KL⁡(q(⋅∣c)∥p(⋅∣c))\operatorname{KL}_{\boldsymbol{c}} = \operatorname{KL}(q(\cdot\mid\boldsymbol{c}) \mathbin\Vert p(\cdot\mid\boldsymbol{c})), and averaging over p(c)p(\boldsymbol{c}) and applying Jensen’s inequality, log⁡Ep(c)e−KL⁡c≥−Ep(c)KL⁡c\log\mathbb{E}_{p(\boldsymbol{c})}e^{-\operatorname{KL}_{\boldsymbol{c}}} \ge-\mathbb{E}_{p(\boldsymbol{c})}\operatorname{KL}_{\boldsymbol{c}}, gives (14). A single target sample per conditioning value therefore suffices to form the empirical objective, and no samples from the base are needed. Under the assumptions of Proposition 2, its expansion holds at each fixed c\boldsymbol{c}. The Fisher–Rao conclusion of Corollary 1 additionally requires equality in the conditional DV bound at that c\boldsymbol{c}. A restricted field shared across conditions need not attain these equalities. Since a single J^\hat{J} is shared across conditions, (10) provides a pooled normalization; condition-specific constants remain. In simulation-based inference the transported variable is the parameter θ\theta, the conditioning variable is the observation yy, and the field depends on both; in nonlinear ICA only the base depends on the segment label c\boldsymbol{c}, and the field is shared across segments.

Details of the inference algorithms

This appendix collects the details of the two algorithms of Section 4. Each layer is Tk=id⁡+ηkv^kT_k = \operatorname{id} + \eta_k \hat{v}_k, where v^k\hat{v}_k solves (8) for the current pair of distributions. When the population bound is attained, Corollary 1 identifies the layer with a first-order Fisher–Rao update. The step size must also keep TkT_k invertible, which ηksup⁡∥∇v^k∥<1\eta_k \sup\lVert\nabla\hat{v}_k\rVert< 1 guarantees.

Figure 2 summarizes the iteration loops.

Iteration loops for the two inference algorithms

Figure 2. Iteration loops for the two inference algorithms of Section 4.

Push-forward

Step size and acceptance. The step size is ηk=min⁡{1,1/(2max⁡i∥∇v^k(xi)∥)}\eta_k = \min\{1,1/(2\max_i\|\nabla\hat{v}_k(x_i)\|)\}, with the maximum over the target samples. This sample-based rule does not by itself guarantee global invertibility. The ridge level λ\lambda is chosen from a set Λ\Lambda by the validation value of J^k\hat{J}_k, and J^k\hat{J}_k and se⁡(J^k)\operatorname{se}(\hat{J}_k) are then computed on the same validation samples (Appendix § 16 gives the values used in our experiments). Because the validation samples also choose λ\lambda, the test J^k>2se⁡(J^k)\hat{J}_k > 2\operatorname{se}(\hat{J}_k) is somewhat optimistic.

Pull-back

Candidate layers. Every layer is selected by likelihood. For each candidate field class in a set F\mathcal{F} (Appendix § 13), ridge level in a set Λ\Lambda and step size in a set HH, we pull the validation samples back through the candidate layer and evaluate their likelihood (13) with β=βk\beta= \beta_k (Appendix § 12). Nonlinear candidates whose Jacobian determinant falls below a small threshold at a training sample are discarded. This checks local nonsingularity at the sampled points; it does not establish global injectivity. A linear layer is globally invertible whenever det⁡(I+ηA)≠0\det(I+\eta A) \ne0. We keep the candidate with the highest validation likelihood, and we stop when no candidate increases it. After the last layer, β\beta is refitted by maximum likelihood on the final ziz_i. The sets F\mathcal{F}, Λ\Lambda and HH used for nonlinear ICA are listed in Appendix § 15.

Restricted transports. Pull-back fits the transformation model by maximum likelihood in a greedy way: every layer is proposed by SDRE and selected by validation likelihood. However, this is only informative for a restricted class of transports. For an unconditional base, a sufficiently flexible map can compensate for changes in β\beta, producing the same data density from different latent representations. The data likelihood alone then cannot identify the base parameters or the sources. Conditional structure and restrictions on the shared map can resolve this ambiguity under additional identifiability assumptions. The field classes in F\mathcal{F}, the number of layers and the selection by validation likelihood restrict the transport, and they form part of our model assumption. Push-forward does not have this problem, because the target is to fit a model to the target data points.

Relation to known constructions. First, the model is assembled from small ratio estimates between consecutive intermediate distributions, in the spirit of telescoping density ratio estimation [64], but the bridges are produced by transport rather than fixed in advance. Second, at the population level, the first-order term in vv of the objective corresponding to (8) at layer kk is Epk[Aqβkv]\mathbb{E}_{p_k}[\mathcal{A}_{q_{\beta_k}}v]. With the base held at qβkq_{\beta_k}, composing the layer T=id⁡+ηvT = \operatorname{id}+\eta v changes the average log-likelihood (13) of the data by −ηEpk[Aqβkv]-\eta\mathbb{E}_{p_k}[\mathcal{A}_{q_{\beta_k}}v] to first order (the score term comes from qβkq_{\beta_k} and the divergence term from the log-determinant), so minimizing the objective follows the ascent direction of the likelihood-based normalizing flows of Tabak and Vanden-Eijnden [74]. The log-moment objective also captures higher-order variation beyond this linear term. We also fit a field using a restricted family and use (9) as an empirical estimate of the population lower bound on the remaining divergence, rather than a guaranteed finite-sample bound.

Back-traced score

Let the sampler be a composition of invertible residual maps, Φ=GN∘⋯∘G1\Phi= G_N \circ\cdots\circ G_1 with Gj=id⁡+hjG_j = \operatorname{id}+h_j, applied to a latent variable zz with latent distribution π\pi, and let q=Φ#πq = \Phi_{\#}\pi. The maps GjG_j are the predictor steps of the pretrained sampler and the layers appended so far. Given xx, invert the maps one at a time, x(N)=xx^{(N)} = x and x(j−1)=Gj−1(x(j))x^{(j-1)} = G_j^{-1}(x^{(j)}), so that z=x(0)z = x^{(0)}, then

log⁡q(x)=log⁡π(x(0))−∑j=1Nlog⁡∣det⁡(I+∇hj(x(j−1)))∣.(15)\log q(x) = \log\pi(x^{(0)}) - \sum_{j=1}^{N} \log\left|\det\left(I+\nabla h_j(x^{(j-1)})\right)\right|. \tag*{(15)}

Differentiating (15) through the inverses gives the adjoint recursion

ζ0=∇log⁡π(x(0)),ζj=(I+∇hj(x(j−1)))−T[ζj−1−∇log⁡∣det⁡(I+∇hj)∣(x(j−1))],sq(x)=ζN,\zeta_0 = \nabla\log\pi(x^{(0)}), \qquad\zeta_j = \left(I+\nabla h_j(x^{(j-1)})\right)^{-\mathsf{T}}\left[\zeta_{j-1}-\nabla\log\left|\det\left(I+\nabla h_j\right)\right|(x^{(j-1)})\right], \qquad s_q(x) = \zeta_N,

with ζ0=−x(0)\zeta_0=-x^{(0)} for π=N(0,I)\pi=\mathcal{N}(0,I); the recursion keeps one Jacobian in memory at a time. Each Gj−1G_j^{-1} is computed by a damped Newton iteration. Target samples at which the inversion does not converge (residual of the recovered x(0)x^{(0)} above 10−710^{-7}) are treated as outside the sampler’s image and are dropped before the field is fitted.

Pull-back: likelihood and inverses

At step kk of Algorithm 2, each sample carries its current latent value zi=Φk−1−1(xi)z_i = \Phi_{k-1}^{-1}(x_i) and the accumulated log-determinant Di=log⁡∣det⁡∇Φk−1−1(xi)∣D_i = \log\lvert\det\nabla\Phi_{k-1}^{-1}(x_i)\rvert, initialized at Φ0\Phi_0 and updated after an accepted layer as Di←Di−log⁡∣det⁡∇Tk(zinew)∣D_i \leftarrow D_i - \log\lvert\det\nabla T_k(z_i^{\mathrm{new}})\rvert with zinew=Tk−1(zi)z_i^{\mathrm{new}} = T_k^{-1}(z_i). For a candidate layer T=id⁡+ηv^T = \operatorname{id} + \eta\hat{v}, the validation likelihood after the pull-back is

1nva∑i∈va[log⁡qβk(T−1(zi))−log⁡∣det⁡∇T(T−1(zi))∣+Di].\frac{1}{n_{\mathrm{va}}}\sum_{i\in\mathrm{va}}\left[\log q_{\beta_k}\left(T^{-1}(z_i)\right)-\log\left\lvert\det\nabla T\left(T^{-1}(z_i)\right)\right\rvert+D_i\right].

and adding no layer corresponds to T=id⁡T = \operatorname{id}. A nonlinear candidate is discarded if ∇T\nabla T is close to singular at a training sample (determinant or, for the coordinatewise class, a diagonal entry below a threshold δ\delta; Appendix § 15); a linear candidate is invertible whenever det⁡(I+ηA)≠0\det(I+\eta A)\ne0. The inverse T−1(z)T^{-1}(z) is computed by the fixed-point iteration z′←z−ηv^(z′)z' \leftarrow z-\eta\hat{v}(z'), which is one-dimensional for the rank-one class of Appendix § 13, and by Newton’s method for the rank-dd class.

Field classes

Finite bases. With mm basis fields collected in Ψ(x)∈Rd×m\Psi(x)\in\mathbb{R}^{d\times m}, a field is v(x)=Ψ(x)αv(x)=\Psi(x)\alpha with coefficients α∈Rm\alpha\in\mathbb{R}^m, and the Stein operator is linear in α\alpha,

(Aqv)(x)=ϕ(x)Tα,ϕ(x)=Ψ(x)Tsq(x)+∇⋅Ψ(x),(16)(A_qv)(x)=\phi(x)^{\mathsf{T}}\alpha,\qquad\phi(x)=\Psi(x)^{\mathsf{T}s_q}(x)+\nabla\cdot\Psi(x), \tag*{(16)}

where ∇⋅Ψ\nabla\cdot\Psi is the column-wise divergence. We call ϕ\phi the Stein features, following the tradition of Liu et al. [49]. With ∥v∥V=∥α∥\lVert v\rVert_V=\lVert\alpha\rVert, (8) becomes min⁡αlog⁡1n∑ieϕ(xi)Tα+λ2∥α∥2\min_\alpha\log\frac{1}{n}\sum_i e^{\phi(x_i)^{\mathsf{T}}\alpha}+\frac{\lambda}{2}\lVert\alpha\rVert^2, a log-sum-exp of linear functions plus a quadratic, which is strictly convex and solved by L-BFGS or damped Newton. It is the log-linear KLIEP problem (2) with the roles of pp and qq exchanged, in which the linear term, an average over samples of qq, is replaced by its expectation, which is zero by Stein’s identity.

Classes for pull-back. With a Gaussian radial basis function k(t,γ)=exp⁡(−(t−γ)2/(2ω2))k(t,\gamma)=\exp\left(-(t-\gamma)^2/(2\omega^2)\right) with bandwidth ω\omega on LL fixed centers γ1,…,γL\gamma_1,\ldots,\gamma_L, we use five classes, each linear in its parameters. In pull-back they act on the latent variable z=(z1,…,zd)z=(z_1,\ldots,z_d); we index its coordinates, and the random directions, by l=1,…,dl=1,\ldots,d:

  • linear (d2d^2 parameters): v(z)=Azv(z)=Az, with Stein features ϕ(z)=vec⁡(sq(z)zT+I)\phi(z)=\operatorname{vec}\left(s_q(z)z^{\mathsf{T}}+I\right);

  • coordinatewise (dLdL): vl(z)=∑jαljk(zl,γj)v_l(z)=\sum_j\alpha_{lj}k(z_l,\gamma_j) with αlj∈R\alpha_{lj}\in\mathbb{R}; diagonal Jacobian, reshapes the marginals;

  • joint (d2+dLd^2+dL): linear plus coordinatewise, with separate parameters AA and αlj\alpha_{lj};

  • rank-one (dLdL): v(z)=∑jαjk(uTz,γj)v(z)=\sum_j\alpha_j k(u^{\mathsf{T}}z,\gamma_j), αj∈Rd\alpha_j\in\mathbb{R}^d, a planar-flow-like layer [63] with det⁡∇T=1+ηuT∑jαjk′(uTz,γj)\det\nabla T=1+\eta u^{\mathsf{T}}\sum_j\alpha_j k'(u^{\mathsf{T}}z,\gamma_j), where k′k' is the derivative in the first argument; the problem is convex for a fixed direction uu, which is chosen among random candidates by the value of (8);

  • rank-dd (d2Ld^2L): v(z)=∑l=1d∑jαljk(ulTz,γj)v(z)=\sum_{l=1}^d\sum_j\alpha_{lj}k(u_l^{\mathsf{T}}z,\gamma_j) for a random orthogonal U=[u1,…,ud]U=[u_1,\ldots,u_d], a nonlinearity in a rotated coordinate system with a full-rank Jacobian.

The linear class has no translation term; translations are absorbed by the segment-wise means of the base.

Relation to maximum-likelihood ICA. Holding the base qq fixed, for the linear field v(z)=Azv(z)=Az,

∇AL(0)=−E[sq(z)zT+I].\nabla_A\mathcal{L}(0)=-\mathbb{E}[s_q(z)z^{\mathsf{T}}+I].

where the expectation is over the current pulled-back samples. A gradient-ascent step from A=0A=0 therefore gives A=−α E[sq(z)zT+I]A=-\alpha\,\mathbb{E}[s_q(z)z^{\mathsf{T}}+I]. In the linear ICA setting z=Wxz=Wx, pulling back through T=id⁡+ηvT=\operatorname{id}+\eta v updates the unmixing matrix as

Wnew=(I+ηA)−1W=(I+ϵ E[I+sq(z)zT])W+O(ϵ2),ϵ=ηα.W_{\mathrm{new}}=(I+\eta A)^{-1}W=(I+\epsilon\,\mathbb{E}[I+s_q(z)z^{\mathsf{T}}])W+O(\epsilon^2),\qquad\epsilon=\eta\alpha.

Thus, to first order, this recovers the relative-gradient update for maximum-likelihood ICA with source score sqs_q [2, 10]. In practice, SDRE solves the regularized optimization problem (8) to obtain the optimal refinement field, rather than taking a single gradient step from A=0A=0.

Gated conditional field for push-forward. For a conditional sampler (Appendix B) we use an affine part in (θ,y)(\theta, y) plus a local residual,

v(θ,y)=Aθ+By+b+g(y)∑jαjk((θ,y),γj),g(y)=min⁡{1,p^kde(y)/τ},(17)v(\theta, y) = A\theta+ By + b + g(y) \sum_j \alpha_j k((\theta, y), \gamma_j), \qquad g(y) = \min\{1, \hat{p}_{\mathrm{kde}}(y)/\tau\}, \tag*{(17)}

with the Gaussian kernel k((θ,y),(θ′,y′))=exp⁡(−∥θ−θ′∥2/(2ωθ2)−∥y−y′∥2/(2ωy2))k((\theta, y),(\theta', y')) = \exp\left(-\lVert\theta-\theta'\rVert^2/(2\omega_\theta^2)-\lVert y-y'\rVert^2/(2\omega_y^2)\right) centered at target pairs γj\gamma_j, a kernel density estimate p^kde\hat{p}_{\mathrm{kde}} of the target observations, and τ\tau a low quantile of p^kde\hat{p}_{\mathrm{kde}} on them. The field is linear in (A,B,b,α)(A,B,b,\alpha), so (8) stays convex, and because the gate depends on yy only, the derivatives of the local part in θ\theta are simply scaled by gg. The affine part carries a global correction to observations with few or no target samples; the local part is suppressed there.

Push-forward on a diffusion sampler

Algorithm 3 interleaves the predictor steps of a pretrained deterministic diffusion sampler with calls to Push (Algorithm 1). At noise level tt, the sampler should match the target noised to the same level, whose samples θt,i=atθi+σtξi\theta_{t,i}=a_t\theta_i+\sigma_t\xi_i, ξi∼N(0,I)\xi_i\sim\mathcal{N}(0,I), come for free. The level t0t_0 represents the starting base distribution π\pi.

Algorithm 3 Push-forward on a diffusion sampler

Require: invertible predictor steps P1,…,PSP_1,\ldots,P_S of a pretrained sampler, PsP_s from noise level ts−1t_{s-1} to tst_s, with the starting base distribution π\pi; target pairs {(θi,yi)}\{(\theta_i,y_i)\}; at most KK correction layers per noise level

  1. Φ←id\Phi\leftarrow\mathrm{id}

  2. for s=1,…,Ss=1,\ldots,S do

  3. Φ←Ps∘Φ\Phi\leftarrow P_s\circ\Phi ▷ predictor step

  4. Φ←Push⁡(Φ,{(atsθi+σtsξi,yi)}i)\Phi\leftarrow\operatorname{Push}\left(\Phi,\{(a_{t_s}\theta_i+\sigma_{t_s}\xi_i,y_i)\}_i\right) with at most KK layers

  5. end for

  6. return Φ\Phi; the model Φ#π\Phi_{\#}\pi has the exact log-density (15)

Nonlinear ICA: experiments and additional results

This appendix gives the experimental details and comparisons for § 5.2. In the tables, “+ SDRE” denotes pull-back refinement of the pretrained model, and “SDRE from scratch” starts from Φ0=id\Phi_0 = \mathrm{id}.

Data and evaluation

In our experiments, sources are mixed by a random 4-layer leaky-ReLU network (slope 0.2, square weight matrices with condition number below 5), and each observed coordinate is standardized. The label is one of 20 segments, and 80% of the samples are used for training and 20% for validation, on which all numbers are reported. The synthetic benchmark has d=5d = 5 Gaussian sources with segment-wise means μ∼U[−3,3]\mu\sim U[-3, 3] and standard deviations σ∼U[0.1,3]\sigma\sim U[0.1, 3], nc∈{200,1000}n_c \in\{200, 1000\} samples per segment, and 5 mixing seeds. The speech benchmarks use real recordings as sources, resampled to 2 kHz, 5 s (10410^4 samples) per source, segments of 0.25 s, d∈{3,5}d \in\{3, 5\} and 3 mixing seeds: five speakers of CMU ARCTIC [43] and five utterances of one LibriSpeech dev-clean speaker [60]. Speech sources are heavy-tailed and only approximately segment-wise Gaussian, so the conditional Gaussian model is misspecified there. Identification is measured by the mean correlation coefficient (MCC) after optimal matching of estimated and true sources.

Recordings and licenses. CMU ARCTIC speakers bdl, slt, awb, clb, rms (utterances a0001–a0002 concatenated; d=3d = 3 uses the first three); LibriSpeech dev-clean speaker 1272, utterances 128104-0004, 135031-0024, 141231-0002, 128104-0009, 135031-0002. Audio is resampled from 16 kHz to 2 kHz with an anti-aliasing filter and the first 5 s are used. Licenses: LibriSpeech and the Causal Chambers data (lt_walks_v1) are released under CC BY 4.0; the CMU ARCTIC databases are distributed under a permissive free license. The sbibm task definitions are re-implemented from the sbibm benchmark, and the iVAE baseline is a JAX port of the official implementation; both are released under the MIT license. Our code is submitted with the paper as supplementary material.

Models and estimation

Conditional base. We call Pull with a conditional base qβ(z∣c)q_\beta(z \mid c) and share the field across segments. The base is either the Gaussian family ∏jN(zj;μj(c),σj2(c))\prod_j \mathcal{N}(z_j; \mu_j(c), \sigma_j^2(c)), whose parameters β={μj(c),σj(c)}\beta= \{\mu_j(c), \sigma_j(c)\} are segment-wise means and standard deviations, or a smooth super-Gaussian log-cosh family. For the log-cosh family, β\beta instead collects segment-wise locations μj(c)\mu_j(c) and positive scales σj(c)\sigma_j(c), with density and score

qβ(z∣c)=∏j=1d1πσj(c)cosh⁡((zj−μj(c))/σj(c)),[sqβ(z∣c)]j=−1σj(c)tanh⁡(zj−μj(c)σj(c)).q_\beta(z \mid c) = \prod_{j=1}^{d} \frac{1}{\pi\sigma_j(c) \cosh((z_j-\mu_j(c))/\sigma_j(c))}, \qquad[s_{q_\beta}(z \mid c)]_j = -\frac{1}{\sigma_j(c)} \tanh\left(\frac{z_j-\mu_j(c)}{\sigma_j(c)}\right).

Here σj(c)\sigma_j(c) is a scale parameter, not the standard deviation. Both location and scale are fitted by maximum likelihood separately for each coordinate and segment. The fitted map Φ\Phi estimates the mixing ff, up to the indeterminacy described in § 5.2, and the sources are read off as Φ−1(x)\Phi^{-1}(x). The model class is that of GIN-type flows with a conditional base [68]; what differs is the estimator, a sequence of convex problems instead of end-to-end stochastic gradient descent.

Restricted fields. We restrict the transport, as § 4.2 requires, to fields that are linear in their parameters and of a few structured kinds: linear fields v(z)=Az\boldsymbol{v}(z) = Az, coordinatewise nonlinearities of single coordinates, their sum (joint), and nonlinearities along one (rank-one) or dd (*rank-dd) random directions (Appendix § 13). With linear fields, the first-order version of one step of (8) is the relative (natural) gradient update of maximum-likelihood ICA with source score sqβs_{q_\beta} [2, 10]; solving (8) exactly instead gives a convex Fisher-scoring-type update (Appendix § 13).

Estimators. We compare five standalone estimators. The first is iVAE [41], using our JAX port of the official implementation (MLPs with two hidden layers of 200 units each and an output layer, 6⋅1036 \cdot10^3 training steps). The second is GIN [68], with 8 volume-preserving affine coupling blocks, a conditional Gaussian base, and 10410^4 Adam steps. The next two are structured flows with the inverse architecture of the generating network, W1χ(W2χ(W3χ(W4x)))W_1\chi(W_2\chi(W_3\chi(W_4x))), where χ\chi is an elementwise invertible activation. Both have an exact log-determinant and a conditional Gaussian base, and are trained end to end by maximum likelihood using Adam (5⋅1035 \cdot10^3 steps; the best of four learning-rate/initialization configurations is selected by validation likelihood). The true-architecture flow uses leaky ReLU with a learnable slope, matching the activation family of the generating network. The tanh flow uses the smooth activation χ=id⁡+νtanh⁡\chi= \operatorname{id} + \nu\tanh, ν>−1\nu> -1. The main text reports the tanh flow as the oracle-structured flow (OSF), since its architecture uses knowledge of the generating network. Results for the true-architecture flow are reported in Table 4.

SyntheticARCTICLibriSpeech
nc=200n_c=200nc=1000n_c=1000d=3d=3d=5d=5d=3d=3d=5d=5wins
Structured flow (true arch.)0.591±0.0710.591\pm0.0710.574±0.0610.574\pm0.0610.767±0.1440.767\pm0.1440.614±0.0130.614\pm0.0130.750±0.1390.750\pm0.1390.651±0.0750.651\pm0.075
Extended training0.604±0.0740.604\pm0.0740.595±0.0720.595\pm0.0720.759±0.1340.759\pm0.1340.670±0.0950.670\pm0.0950.756±0.1430.756\pm0.1430.673±0.0650.673\pm0.065
+ SDRE0.768±0.0760.768\pm0.0760.734±0.0730.734\pm0.0730.783±0.1660.783\pm0.1660.704±0.0740.704\pm0.0740.792±0.1600.792\pm0.1600.712±0.1230.712\pm0.12319/22

Table 4. The true-architecture structured flow (leaky-ReLU activation), complementing Table 2 and Table 3: validation MCC (mean ±\pm std over mixing seeds). Last column: seeds on which refinement beats extended training.

The fifth estimator is SDRE trained from scratch. We run Pull from Φ0=id⁡\Phi_0 = \operatorname{id} with at most K=40K = 40 layers. At each iteration, the candidate field classes are linear, coordinatewise, joint, and rank-one; rank-dd is not used in this configuration. The base family is conditional Gaussian for synthetic data and conditional log-cosh for speech.

We also use SDRE to refine GIN and the two structured flows, all of which have tractable exact likelihoods. For each model, Pull starts from its pretrained transformation Φ0\Phi_0 and selects candidate layers from all five field classes: linear, coordinatewise, joint, rank-one, and rank-dd. Across all datasets, including speech, refinement uses the conditional Gaussian base family used to train these models. Thus, refinement differs from training SDRE from scratch in its initialization, candidate field classes, and, for speech, base family. We allow at most K=40K = 40 refinement layers, except for speech with d=5d = 5, where K=100K = 100. In both configurations, the base-family parameters β\beta are re-estimated by maximum likelihood on the current pulled-back training samples before fitting each new layer. Refinement starting from iVAE is discussed in Section H.4.

SDRE layers. The RBF classes of Appendix § 13 use L=12L = 12 centers equally spaced on [−5,5][-5,5] with bandwidth ω=1.25\omega= 1.25 (data are standardized). Ridge levels λ∈{10−1,10−2,10−3}⋅∥ϕ∥2\lambda\in\{10^{-1}, 10^{-2}, 10^{-3}\} \cdot\lVert\phi\rVert^2 (mean squared norm of the Stein features); rank-one layers draw 15 random unit directions, keep the 3 best by the value of (8) and refit them at two ridge levels; rank-dd layers draw 8 random orthogonal matrices and keep the best 2. Step sizes η∈{2,1,0.5,0.25,0.1}\eta\in\{2, 1, 0.5, 0.25, 0.1\}; a nonlinear candidate is rejected if, at some training point, det⁡∇T<δ=0.05\det\nabla T < \delta= 0.05 (joint, rank-one, rank-dd) or a diagonal entry of ∇T\nabla T is below δ\delta (coordinatewise); linear candidates are not screened. Inverses: fixed-point iteration for the coordinatewise, joint and rank-one classes (one-dimensional for rank-one), Newton’s method for rank-dd. The base family is re-estimated before every layer: segment-wise means and standard deviations (Gaussian) or one-dimensional maximum likelihood (log-cosh). From scratch on speech, up to three retries with fresh random directions are allowed before stopping. Convex problems are solved by L-BFGS (NumPy/SciPy) or damped Newton (JAX); both implementations give the same layer sequence on most runs and the same table entries within 0.004.

Optimization of the baselines. iVAE: encoder/decoder MLPs with two hidden layers of 200 units each and an output layer, learning rate 10−210^{-2} with plateau decay, 6⋅1036 \cdot10^3 steps, ELBO objective. GIN: 8 affine coupling blocks with mean-zero log-scales (volume preserving), 2 hidden layers of 64 units, Adam with learning rate 10−310^{-3}, batch 500, 10410^4 steps. Structured flows: Adam with cosine schedule, batch 500, 5⋅1035 \cdot10^3 steps, learning rate ϵ∈{10−2,10−3}\epsilon\in\{10^{-2}, 10^{-3}\} and initialization ϵ\epsilon {identity+noise, random orthogonal}, the configuration with the best validation likelihood is reported. Extended training uses the same configuration with 4×4\times the original number of steps.

Compute. The reported SDRE estimates used the NumPy/SciPy implementation on a laptop CPU (AMD Ryzen AI MAX+ 395, 16 cores, one core per run). The iVAE, GIN and structured-flow baselines use JAX. The run times quoted for the JAX implementation of SDRE were measured on a single NVIDIA RTX 4090. Each layer solves a few dozen convex problems (field classes ×\times ridge levels ×\times random directions) with at most d2Ld^2L parameters on nn points, where L=12L = 12 is the number of radial basis functions per direction (Appendix § 13); with d≤5d \le5 this takes a fraction of a second per layer on a GPU. A full refinement of 40–100 layers runs in 6–29 s on one RTX 4090 with our JAX implementation, or 1.5–6 min on one CPU core.

Main results and training controls

Table 2 gives the main comparison, and Table 4 adds the true-architecture flow. As a standalone estimator, SDRE is second only to the tanh flow on synthetic data and above the true-architecture flow on LibriSpeech with d=3d = 3, but it falls behind both structured flows in the other speech settings. Used as a refiner, it improves the mean MCC of every pretrained model in every column, and refining the tanh flow gives the best result in all six settings, with a smaller seed-to-seed spread than the pretrained model in every speech column. Interestingly, the true-architecture flow is not the best pretrained model to refine: extended training changes its mean MCC by at most 0.06 (Table 4), whereas refinement adds 0.02–0.18.

Refinement adds further training, so a natural objection is that the pretrained model was merely under-trained. To test this, we use extended training for every pretrained model (Table 3 and Table 4). Extended training changes the mean MCC by −0.022-0.022 to +0.094+0.094; even its largest gain (0.762 →\to 0.856 for the tanh flow on synthetic nc=1000n_c=1000) stays below refinement (0.887). Overall, refinement is better on 58 of 66 seeds over the three pretrained models (39 of 44 in Table 3, 19 of 22 for the true-architecture flow), and on speech extended training can even reduce MCC (4 of the 12 speech entries).

Additional analyses

Starting from iVAE. Starting from the encoder mean of iVAE, which is neither invertible nor equipped with a log-determinant, changes MCC by at most 0.025 on the synthetic benchmark (0.484 →\to 0.509 and 0.492 →\to 0.498) and by −0.028-0.028 to +0.048+0.048 on speech (ARCTIC 0.538 →\to 0.586 and 0.383 →\to 0.367, LibriSpeech 0.578 →\to 0.560 and 0.461 →\to 0.432 for d=3,5d=3,5). It improves 12 of the 22 seeds, so there is no systematic gain.

Stopping by the discrepancy. Can we use J^\hat{J} to decide when to stop? The value J^\hat{J} of each accepted layer estimates a lower bound on the remaining divergence. Computed on the samples used to fit the layer, it is about m/(2n)m/(2n) for a layer with mm parameters even when the pulled-back samples already follow the base, which suggests stopping once J^<κm/(2n)\hat{J}<\kappa m/(2n) for a constant κ≥1\kappa\ge1. On 42 traced refinements (Table 5), this rule is counter-productive: running all 40 layers gives mean MCC 0.770, stopping with κ=1\kappa=1 or 4 gives 0.736 or 0.717, and even an oracle that stops at the best layer only reaches 0.777. Later layers still help although each is individually insignificant. This does not argue against the test in push-forward algorithm: there the pretrained model is trusted and every change must be justified by a detected discrepancy, whereas here the pretrained model is known to be imperfect.

Pretrained modelno refinementall 40 layersoracle layerκ=1\kappa=1κ=4\kappa=4κ=16\kappa=16
all0.7060.7700.7770.736 (15.2)0.717 (5.2)0.705 (1.4)
GIN0.5890.6620.6640.630 (8.6)0.617 (3.4)0.595 (0.4)
Structured (true)0.7060.7690.7880.726 (23.7)0.694 (7.4)0.691 (2.4)
Structured (tanh)0.8240.8780.8790.851 (13.4)0.841 (4.9)0.829 (1.3)

Table 5. Stopping refinement by J^<κm/(2n)\hat{J}<\kappa m/(2n), post hoc on 42 traced 40-layer refinements (ARCTIC and LibriSpeech d=3d=3, ARCTIC 20 s d=3d=3, synthetic nc=200n_c=200). Mean validation MCC at the stopping layer (mean number of accepted layers).

Selecting among refined pretrained models. In the following experiments, final validation likelihood is effective for choosing among refined pretrained models. Over the 22 seeds of Table 2 and the six seeds of the 20 s ARCTIC setting below, refining every pretrained model and keeping the one with the highest final validation likelihood gives mean MCC 0.857, against 0.855 for always refining the tanh flow, and is never worse than the latter on any seed. Selecting the pretrained model by its likelihood before refinement instead picks the flexible GIN in 7 of 28 cases and drops to 0.810.

Longer recordings and a failure of refinement. More data do not always help, and refinement can fail. With 20 s instead of 5 s per source (seven ARCTIC speakers, with speaker subsets varying across seeds), MCC does not improve systematically (Table 6): only iVAE and the unrefined true-architecture flow gain in both dimensions, and the comparison is confounded by the change of speakers. The refined tanh flow remains best (0.865 and 0.791 for d=3,5d = 3, 5) and beats extended training on all 6 seeds. Refining the true-architecture flow, however, beats the control on only 2 of 6 seeds, and on one seed MCC collapses from 0.698 to 0.502 while the validation likelihood rises from −1.34-1.34 to +0.90+0.90. From a poor pretrained model, the likelihood itself can lead away from the sources, which no likelihood-based signal, including J^\hat{J}, can detect. This is the caveat of § 4.2 in practice: the likelihood of a transformation model does not by itself say which transformation recovers the sources.

Methodd=3d = 3d=5d = 5
5 s20 s5 s20 s
iVAE0.538±0.0900.573±0.033{sup}†`0.383±0.0340.494±0.014
GIN0.645±0.0840.525±0.0570.440±0.0370.432±0.019
Structured flow (true arch.)0.767±0.1440.792±0.0730.614±0.0130.627±0.058
Structured flow (tanh)0.854±0.0240.816±0.0170.747±0.0460.711±0.062
SDRE (from scratch)0.621±0.1500.598±0.0570.518±0.0470.480±0.007
GIN + SDRE0.747±0.0900.655±0.1040.587±0.0810.594±0.083
Structured (true) + SDRE0.783±0.1660.736±0.1670.704±0.0740.680±0.007
Structured (tanh) + SDRE0.883±0.0070.865±0.0080.805±0.0310.791±0.031

Table 6. ARCTIC with 5 s versus 20 s per source (validation MCC, mean ± std over 3 seeds). The 20 s setting uses seven speakers with a different speaker subset per seed. {sup}†`One iVAE run diverged; mean over 2 seeds.

Physical mixing. Real physical mixing remains hard. On the light tunnel of the Causal Chambers [23], the actuators (LED intensities and a polarizer angle) are mixed by physics and recorded by photodiodes. All nonlinear methods, including ours, stay below linear FastICA [32] (MCC 0.878 and 0.815 on two experiments, against at most 0.798 and 0.623; Table 7), in line with Gamella et al. [22]. The sources are strongly sub-Gaussian within segments (excess kurtosis ≈−1.2\approx-1.2) and their distribution changes little across segments, so the Gaussian and super-Gaussian base families are misspecified in the direction that matters for ICA [3]; a base family that can be sub-Gaussian is needed here.

Methodsmooth_polarizerscolor_mix
Supervised bound0.946±0.0020.949±0.008
Principal components (no unmixing)0.754±0.0020.582±0.013
FastICA (linear)0.878±0.0010.815±0.006
iVAE0.798±0.0340.583±0.016
GIN0.638±0.0010.533±0.026
Structured flow (true arch.)0.665±0.0040.615±0.006
Structured flow (tanh)0.649±0.0160.623±0.012
SDRE from scratch (Gaussian / log-cosh)0.772 / 0.6770.553 / 0.546
GIN / true / tanh + SDRE0.642 / 0.649 / 0.6470.522 / 0.583 / 0.598

Table 7. Causal Chambers light tunnel (lt_walks_v1): photodiode readings projected on their top three principal components (the six sensors come in near-duplicate pairs), 20 time segments, validation MCC against the recoverable actuators, mean ± std over 3 train/validation splits. Targets: red, blue and cos⁡2\cos^2 of the polarizer angle (smooth_polarizers); red, green, blue (color_mix). The supervised bound regresses each target on the inputs with random Fourier features.

Stock returns. We use the MSFT, IBM, SBUX, AAPL and S&P 500 price series in Plotly’s public stockdata.csv.1 We take first differences of the log prices as supplied, with no additional price adjustment, and discard the final incomplete quarter. This leaves 2,265 daily returns from 4 January 2007 to 31 December 2015, grouped into 36 calendar-quarter segments. Each return series is standardized, and the observations are randomly split into 80% training and 20% validation data. With a log-cosh base family, 23 SDRE layers reached a validation log-likelihood of −4.83-4.83 per day, compared with −4.92-4.92 and −4.98-4.98 for four-layer structured flows with a tanh and a leaky-ReLU activation (best of four learning-rate and initialization configurations by validation likelihood), −6.27-6.27 for GIN (which overfits: −4.43-4.43 on the training data) and −6.31-6.31 for independent marginals. The recovered components are one market factor (correlation 0.99 with the S&P 500) and four idiosyncratic ones, each correlated with one stock (0.69–0.79) and almost uncorrelated with the index (≤0.09\le0.09).

Simulation-based inference: experiments and comparisons

In Table 1, “+ SDRE” denotes push-forward correction of the frozen posterior sampler.

Tasks and target samples

Tasks and references. Both sbibm tasks [54] have 10-dimensional parameters and observations. gaussian_linear: θ∼N(0,0.1I10)\theta\sim\mathcal{N}(0,0.1I_{10}), y=θ+N(0,0.1I10)y=\theta+\mathcal{N}(0,0.1I_{10}); all posteriors (including those under mixture priors) are analytic. bernoulli_glm: bias and nine filter weights, a fixed white-noise stimulus of 100 time bins, Bernoulli spikes with logit ψj=b+wTuj\psi_j=b+\mathbf{w}^{\mathsf{T}}\mathbf{u}_j in time bin jj, summary statistics the spike count and the spike-triggered sum; prior as in sbibm. In the modified target simulator used for the simulator-change and partial-coverage experiments, the spike probability is sigmoid⁡(1.3ψj)\operatorname{sigmoid}(1.3\psi_j) instead of sigmoid⁡(ψj)\operatorname{sigmoid}(\psi_j). Reference posteriors are drawn by Hamiltonian Monte Carlo preconditioned with the Hessian at the MAP (64 chains, 10 leapfrog steps, 2000 warm-up iterations, thinning 5; acceptance 0.99); two independent runs give C2ST 0.49. The sufficient-statistic likelihood was checked against the raw Bernoulli likelihood. New priors: N(0.15⋅1,0.05I)\mathcal{N}(0.15\cdot\mathbf{1},0.05I) and the mixture 12N(±0.2⋅1,0.05I)\frac{1}{2}\mathcal{N}(\pm0.2\cdot\mathbf{1},0.05I) (gaussian_linear); bias N(−1,1)\mathcal{N}(-1,1) and the filter precision doubled (bernoulli_glm).

For prior changes, target pairs are resampled with replacement from the existing 10510^{5} simulations, with probabilities proportional to the prior ratio, without new simulations. For simulator change, we generate nreal∈{500,2000}n_{\mathrm{real}}\in\{500,2000\} target pairs from the modified simulator. For partial coverage, we generate 10310^{3} pairs from that simulator restricted to neurons with negative bias; evaluation covers both negative-bias (covered) and positive-bias (uncovered) neurons.

All evaluated corrections use the same target pairs as SDRE; Table 1 specifies which settings are evaluated for each baseline.

Sampler and corrections

Pretrained sampler. On each task, we train NPSE [67, 65] on 10510^{5} simulations and freeze its network during correction. We use VP diffusion (linear noise schedule from 0.1 to 20) with a noise-prediction MLP (4 hidden layers of 512 SiLU units, sinusoidal time embedding, skip term σtθt\sigma_t\theta_t for the noised parameter θt\theta_t) on standardized parameters and observations; denoising score matching for t∈[10−3,1]t\in[10^{-3},1], 3⋅1043\cdot10^{4} Adam steps with batch 1024, exponential moving average 0.999 and early stopping on validation simulations. Sampling uses 25 deterministic DDIM steps [66] on the grid ts=10−3+(1−10−3)(1−s/25)2t_s=10^{-3}+(1-10^{-3})(1-s/25)^2, s=0,…,25s=0,\ldots,25, so that t0=1t_0=1 is the level of the latent distribution. Training gives deterministic giving the seed.

SDRE layers. We use the gated field (17) and the acceptance rule of Algorithm 1, with hyperparameters selected on validation target samples. The field has 300 centers γj\gamma_j drawn from the noised target pairs, one bandwidth pair wθ∈{1,2}w_\theta\in\{1,2\}, wy∈{1.5,3}w_y\in\{1.5,3\} (standardized units), and τ\tau the 5% quantile of p^kde\hat{p}_{\mathrm{kde}} on the target observations. Unlike in (8), the penalty is λ⋅1n∑i∥v(θi,yi)∥2\lambda\cdot\frac{1}{n}\sum_i\lVert v(\theta_i,y_i)\rVert^2 (no factor 12\frac{1}{2}), and the bandwidth pair and λ∈{10−3,10−4}\lambda\in\{10^{-3},10^{-4}\} are chosen jointly by the validation objective J^\hat{J} after each layer (all 4×24\times2 combinations are fitted). L-BFGS is stopped at the best validation value of the objective: with about 3⋅1033\cdot10^3 coefficients and these small λ\lambda, the empirical objective keeps decreasing long after the validation one starts to increase. Step ηk=min⁡{1,1/(2max⁡i∥∇v^k∥2)}\eta_k=\min\{1,1/(2\max_i\lVert\nabla\hat{v}_k\rVert_2)\} with the spectral norm and the maximum over the target samples; up to K=6K=6 layers per noise level; 80% of the target samples fit the field and 20% decide acceptance. Target sample sizes: 3000 simulations drawn with replacement with probabilities proportional to the prior ratio (prior change), and the training part of the nrealn_{\mathrm{real}} target pairs, each noised several times to about 3000 points per level (simulator change and partial coverage).

Evaluation and baselines

We measure accuracy by the classifier two-sample test (C2ST; [52]); the accuracy of a classifier trained to separate 5⋅1035\cdot10^3 samples of the sampler from reference samples, with chance accuracy 0.5 and lower values indicating a closer match. It is averaged over 10 observations drawn from the target (20 for partial coverage, 10 in each half), with three seeds for the network, the target samples and the push-forward layers. Baselines. PriorGuide [77] is evaluated only for prior changes. The prior ratio is one Gaussian (unimodal and bernoulli_glm) or a two-component mixture, so its mixture representation is exact; reverse kernel N(θ^,σt2(at2+σt2)I)\mathcal{N}\left(\hat{\theta},\frac{\sigma_t^2}{(a_t^2+\sigma_t^2)}I\right) with the Tweedie estimate θ^\hat{\theta} of the clean parameter; the gradient of the guidance term is computed exactly through θ^\hat{\theta}, so the guided ODE is an invertible sampler with a tractable density. Langevin refinement: {2,5,10}\{2, 5, 10\} steps per level, signal-to-noise ratio {0.08,0.16}\{0.08, 0.16\}, best by the test C2ST. DG [42]: 25 discriminators (4 hidden layers of 512 units, 8⋅1038 \cdot10^3 Adam steps, learning rate 3⋅10−43 \cdot10^{-4}, fresh forward noise every 25 steps) between noised target pairs and noised model pairs with the same observations, model samples from a 100-step DDIM sampler; guidance adds the discriminator-logit gradient to the score with weight 1, followed by Langevin refinement on the same grid, selected by the maximum mean discrepancy on validation pairs (selection by the test C2ST changes the numbers by at most 0.006). Classifier DRE + SIR [8]: MLPs with 2×2562 \times256 and 3×5123 \times512 units between the target pairs and as many simulated pairs, the one with the lowest validation log-loss; SIR on 5⋅1035 \cdot10^3 samples of the frozen sampler. The simulated pairs are a uniform subsample of the existing simulations under a prior change, so that no new simulation is run, fresh simulations under a simulator change, and fresh simulations from the same half of the prior (negative bias) under partial coverage, so that the classifier estimates the change of likelihood on the covered half. Fine-tuning on the target pairs: 4⋅1034 \cdot10^3 Adam steps at learning rate 3⋅10−43 \cdot10^{-4} from the pretrained weights with early stopping on validation pairs; the sim. + real variant is evaluated only under partial coverage, as a rehearsal baseline for the uncovered region. It mixes 2⋅1042 \cdot10^4 original simulations with oversampled target pairs in equal proportion. The retrained reference uses the same architecture, trained from scratch on 10510^5 new target simulations, beyond the correction budget; under partial coverage, it is the network retrained for the simulator change, evaluated on the partial-coverage observations.

Statistical comparisons and limitations

For Table 1, paired tt-tests over seeds compare SDRE with PriorGuide + Langevin under prior change (p=0.092p = 0.092, 0.003 and 0.56 for unimodal, bimodal and GLM, respectively). PriorGuide + Langevin has lower mean C2ST in all three settings, with a statistically significant difference only for the bimodal prior; its hyperparameters are selected by test C2ST. Under simulator change, comparisons with DG give p=0.42p = 0.42 and 0.43, while SDRE outperforms fine-tuning with p=0.004p = 0.004 and 0.009 for nreal=500n_{\mathrm{real}} = 500 and 2000, respectively. Under partial coverage, SDRE outperforms fine-tuning on both the covered and uncovered regions (p=0.020p = 0.020 and 0.024, respectively).

Separated modes. Push-forward only transports the samples that the sampler already produces. When the target needs mass moved between separated modes, as for the bimodal prior in Table 1 or for a pretrained sampler that misses a mode altogether, each layer can only make a small, invertible, locally Lipschitz move. The per-layer discrepancy then quickly falls below the detection threshold, and push-forward stops short (C2ST 0.573 against 0.510 for retraining); a stochastic correction that is not limited to small invertible moves, such as the Langevin refinement of PriorGuide, is better suited to this case.

Compute. Between two and eleven correction layers were accepted per task. One GH200. Per run: SDRE 3–4 min, DG 9–13 min (dominated by the discriminators), PriorGuide with Langevin 4–7 min, fine-tuning under 1 min, retraining 2 min.

Related Work

Direct density ratio estimation fits the ratio without modeling either density: moment matching in an RKHS [31], KLIEP and its log-linear form [71, 76], least-squares importance fitting [40], convex risk minimization for ff-divergences [57], and probabilistic classification [8, 28]; see Sugiyama et al. [72] for a monograph. Neural variational bounds [6] use the same DV representation as (7). When the two distributions are far apart, telescoping DRE chains classifiers along fixed bridging distributions [64], Choi et al. [14] take the infinitesimal limit of such bridges, and featurized DRE estimates the ratio in the latent space of a shared flow [13]. The pull-back estimator is also a product of small ratios, but the intermediate distributions are produced by transport and adapted to the data, and the final map is itself a flow, as in featurized DRE. All of these methods need samples from both distributions; we need samples from one and the score of the other. Stein-parameterized ratio models were introduced for fitting intractable models [49]; we add the displacement interpretation, the connection to the Fisher–Rao flow, and the push-forward and pull-back algorithms. Score-based alternatives such as score matching [33] and Stein discrepancies [26, 48, 15] compare a model with data through the model score, but return a discrepancy rather than a ratio or a transport.

Among gradient flows, Wasserstein gradient flows of the KL divergence [39], and their particle approximation SVGD [47], need the score of the target. Fisher–Rao and Wasserstein–Fisher–Rao flows [12, 45] are simulated by birth–death dynamics [53] or by kernel-based transport [55, 59], which we compare with next.

The closest works to SDRE are kernel Fisher–Rao flow [55] and Stein transport [59]. Both move particles along a tempered path from a reference π0\pi_0 to a target π1\pi_1, πt∝π01−tπ1t\pi_t \propto\pi_0^{1-t}\pi_1^t, with a velocity field that solves the same equation as our optimal field: the continuity equation −∇⋅(πtvt)=πt(log⁡ℓ−Eπt[log⁡ℓ])-\nabla\cdot(\pi_t v_t) = \pi_t\left(\log\ell- \mathbb{E}_{\pi_t}[\log\ell]\right) with ℓ=π1/π0\ell= \pi_1/\pi_0, which in Stein form reads −Aπtvt=log⁡ℓ−Eπt[log⁡ℓ]-A_{\pi_t}v_t = \log\ell- \mathbb{E}_{\pi_t}[\log\ell] (compare Proposition 1). Kernel Fisher–Rao flow takes the solution of minimal kinetic energy, a gradient field obtained from a Poisson equation in an RKHS, and needs only evaluations of ℓ\ell; Stein transport fits the Stein equation by kernel ridge regression and also uses the scores along the path. In both, the log-ratio log⁡ℓ\log\ell is known (in Bayesian inference, it is the log-likelihood) and serves as the right-hand side of the equation. In our setting the target is observed only through samples, so the log-ratio is unknown: SDRE estimates it together with the field. Moreover, both methods traverse a prescribed path in unit time, whereas push-forward and pull-back take one estimated step at a time and re-estimate the ratio after each.

Pulling the data back, one simple map at a time, until they look like a simple base distribution is a classic idea. Projection pursuit removes structure along one direction at a time by Gaussianizing the projection [21]; it is the counterpart of our rank-one class. Gaussianization alternates linear ICA with marginal Gaussianization [11], the counterpart of our linear and coordinatewise classes, and RBIG replaces the ICA step by random rotations and shows convergence [44], the counterpart of our rank-dd class. Tabak and Vanden-Eijnden [74] and Tabak and Turner [73], whose work introduced the term normalizing flow, compose simple maps that each increase the likelihood of the pulled-back samples under a standard normal base. As shown in Appendix § 10.§ 2, their ascent direction is the linear Stein functional of which (7) is the log-moment counterpart. Density destructors [38], sliced iterative normalizing flows [19] and gradient-boosted flows [24] develop the greedy construction further, and Gaussianization flows make iterative Gaussianization trainable end to end [56]. Our construction differs in three ways: each layer is the solution of a convex problem whose value estimates a lower bound on the remaining divergence; the base is a parametric family re-estimated at every step and may be conditional on an auxiliary variable; and every step is at the same time a density ratio estimate. See Papamakarios et al. [61] for normalizing flows in general.

In independent component analysis, linear ICA [16] is identified by non-Gaussianity; maximum-likelihood and infomax estimators [7, 9, 62] are optimized by the relative gradient [2], whose stability depends on matching the sign of the source kurtosis [3]; FastICA [32] adapts to this sign. Nonlinear ICA is not identifiable without further assumptions [36]; post-nonlinear mixtures [75] are a classical exception. Auxiliary variables restore identifiability: time-contrastive learning [34], temporal dependence [35], generalized contrastive learning [37], iVAE [41], GIN [68] and hidden-Markov variants [29]; other routes constrain the mixing [27] or use contrastive objectives [80]. We use the same model class as GIN—a conditional base and an exact-likelihood flow—but replace end-to-end training by convex layer-wise estimation, and use it to refine end-to-end estimators. Real-world checks of these methods remain sobering [22], as our light-tunnel results confirm.

References

  1. [1]Michael S. Albergo and Eric Vanden-Eijnden. Building normalizing flows with stochastic interpolants. In International Conference on Learning Representations, 2023.arxiv.org/abs/2209.15571
  2. [2]Shun-ichi Amari, Andrzej Cichocki, and Howard Hua Yang. A new learning algorithm for blind signal separation. In Advances in Neural Information Processing Systems 8, 1996.
  3. [3]Shun-ichi Amari, Tian-Ping Chen, and Andrzej Cichocki. Stability analysis of learning algorithms for blind source separation. Neural Networks, 10(8):1345–1351, 1997.pubmed.ncbi.nlm.nih.gov/12662478
  4. [4]Andreas Anastasiou, Alessandro Barp, François-Xavier Briol, Bruno Ebner, Robert E. Gaunt, Fatemeh Ghaderinezhad, Jackson Gorham, Arthur Gretton, Christophe Ley, Qiang Liu, Lester Mackey, Chris J. Oates, Gesine Reinert, and Yvik Swan. Stein’s method meets computational statistics: A review of some recent developments. Statistical Science, 38(1):120–139, 2023.arxiv.org/abs/2105.03481
  5. [5]Martin Arjovsky and Léon Bottou. Towards principled methods for training generative adversarial networks. In International Conference on Learning Representations, 2017.arxiv.org/abs/1701.04862
  6. [6]Mohamed Ishmael Belghazi, Aristide Baratin, Sai Rajeswar, Sherjil Ozair, Yoshua Bengio, Aaron Courville, and R. Devon Hjelm. Mutual information neural estimation. In Proceedings of the 35th International Conference on Machine Learning (ICML), 2018.arxiv.org/abs/1801.04062
  7. [7]Anthony J. Bell and Terrence J. Sejnowski. An information-maximization approach to blind separation and blind deconvolution. Neural Computation, 7(6):1129–1159, 1995.pubmed.ncbi.nlm.nih.gov/7584893
  8. [8]Steffen Bickel, Michael Brückner, and Tobias Scheffer. Discriminative learning under covariate shift. Journal of Machine Learning Research, 10:2137–2155, 2009.DOI
  9. [9]Jean-François Cardoso. Infomax and maximum likelihood for blind source separation. IEEE Signal Processing Letters, 4(4):112–114, 1997.
  10. [10]Jean-François Cardoso and Beate Hvam Laheld. Equivariant adaptive source separation. IEEE Transactions on Signal Processing, 44(12):3017–3030, 1996.DOI
  11. [11]Scott Shaobing Chen and Ramesh A. Gopinath. Gaussianization. In Advances in Neural Information Processing Systems 13, 2001.
  12. [12]Lénaïc Chizat, Gabriel Peyré, Bernhard Schmitzer, and François-Xavier Vialard. An interpolating distance between optimal transport and Fisher–Rao metrics. Foundations of Computational Mathematics, 18:1–44, 2018.
  13. [13]Kristy Choi, Madeline Liao, and Stefano Ermon. Featureized density ratio estimation. In Proceedings of the 37th Conference on Uncertainty in Artificial Intelligence (UAI), 2021.arxiv.org/abs/2107.02212
  14. [14]Kristy Choi, Chenlin Meng, Yang Song, and Stefano Ermon. Density ratio estimation via infinitesimal classification. In Proceedings of the 25th International Conference on Artificial Intelligence and Statistics (AISTATS), 2022.arxiv.org/abs/2111.11010
  15. [15]Kacper Chwialkowski, Heiko Strathmann, and Arthur Gretton. A kernel test of goodness of fit. In Proceedings of the 33rd International Conference on Machine Learning (ICML), 2016.arxiv.org/abs/1602.02964
  16. [16]Pierre Comon. Independent component analysis, a new concept? Signal Processing, 36(3):287–314, 1994.DOI
  17. [17]Nicolas Courty, Rémi Flamary, Devis Tuia, and Alain Rakotomamonjy. Optimal transport for domain adaptation. IEEE Transactions on Pattern Analysis and Machine Intelligence, 39(9):1853–1865, 2017.arxiv.org/abs/1507.00504
  18. [18]Kyle Cranmer, Johann Brehmer, and Gilles Louppe. The frontier of simulation-based inference. Proceedings of the National Academy of Sciences, 117(48):30055–30062, 2020.DOI
  19. [19]Biwei Dai and Uroš Seljak. Sliced iterative normalizing flows. In Proceedings of the 38th International Conference on Machine Learning (ICML), 2021.arxiv.org/abs/2007.00674
  20. [20]Monroe D. Donsker and S. R. Srinivasa Varadhan. Asymptotic evaluation of certain Markov process expectations for large time. IV. Communications on Pure and Applied Mathematics, 36(2):183–212, 1983.
  21. [21]Jerome H. Friedman. Exploratory projection pursuit. Journal of the American Statistical Association, 82(397):249–266, 1987.
  22. [22]Juan L. Gamella, Simon Bing, and Jakob Runge. Sanity checking causal representation learning on a simple real-world system. In Proceedings of the 42nd International Conference on Machine Learning (ICML), volume 267 of Proceedings of Machine Learning Research, pages 18143–18169, 2025.
  23. [23]Juan L. Gamella, Jonas Peters, and Peter Bühlmann. Causal chambers as a real-world physical testbed for AI methodology. Nature Machine Intelligence, 2025.
  24. [24]Robert Giaquinto and Arindam Banerjee. Gradient boosted normalizing flows. In Advances in Neural Information Processing Systems 33, 2020.arxiv.org/abs/2002.11896
  25. [25]Ian J. Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in Neural Information Processing Systems 27, 2014.
  26. [26]Jackson Gorham and Lester Mackey. Measuring sample quality with Stein’s method. In Advances in Neural Information Processing Systems 28, 2015.
  27. [27]Luigi Gresele, Julius von Kügelgen, Vincent Stimper, Bernhard Schölkopf, and Michel Besserve. Independent mechanism analysis, a new concept? In Advances in Neural Information Processing Systems 34, 2021.arxiv.org/abs/2106.05200
  28. [28]Michael Gutmann and Aapo Hyvärinen. Noise-contrastive estimation: A new estimation principle for unnormalized statistical models. In Proceedings of the 13th International Conference on Artificial Intelligence and Statistics (AISTATS), 2010.
  29. [29]Hermanni Hälvä and Aapo Hyvärinen. Hidden Markov nonlinear ICA: Unsupervised learning from nonstationary time series. In Proceedings of the 36th Conference on Uncertainty in Artificial Intelligence (UAI), 2020.arxiv.org/abs/2006.12107
  30. [30]Joeri Hermans, Volodimir Begy, and Gilles Louppe. Likelihood-free MCMC with amortized approximate ratio estimators. In Proceedings of the 37th International Conference on Machine Learning (ICML), 2020.
  31. [31]Jiayuan Huang, Arthur Gretton, Karsten M. Borgwardt, Bernhard Schölkopf, and Alexander J. Smola. Correcting sample selection bias by unlabeled data. In Advances in Neural Information Processing Systems 19, 2007.
  32. [32]Aapo Hyvärinen. Fast and robust fixed-point algorithms for independent component analysis. IEEE Transactions on Neural Networks, 10(3):626–634, 1999.
  33. [33]Aapo Hyvärinen. Estimation of non-normalized statistical models by score matching. Journal of Machine Learning Research, 6:695–709, 2005.
  34. [34]Aapo Hyvärinen and Hiroshi Morioka. Unsupervised feature extraction by time-contrastive learning and nonlinear ICA. In Advances in Neural Information Processing Systems 29, 2016.
  35. [35]Aapo Hyvärinen and Hiroshi Morioka. Nonlinear ICA of temporally dependent stationary sources. In Proceedings of the 20th International Conference on Artificial Intelligence and Statistics (AISTATS), 2017.
  36. [36]Aapo Hyvärinen and Petteri Pajunen. Nonlinear independent component analysis: Existence and uniqueness results. Neural Networks, 12(3):429–439, 1999.pubmed.ncbi.nlm.nih.gov/12662686
  37. [37]Aapo Hyvärinen, Hiroaki Sasaki, and Richard E. Turner. Nonlinear ICA using auxiliary variables and generalized contrastive learning. In Proceedings of the 22nd International Conference on Artificial Intelligence and Statistics (AISTATS), 2019.
  38. [38]David I. Inouye and Pradeep Ravikumar. Deep density destructors. In Proceedings of the 35th International Conference on Machine Learning (ICML), 2018.
  39. [39]Richard Jordan, David Kinderlehrer, and Felix Otto. The variational formulation of the Fokker–Planck equation. SIAM Journal on Mathematical Analysis, 29(1):1–17, 1998.
  40. [40]Takafumi Kanamori, Shohei Hido, and Masashi Sugiyama. A least-squares approach to direct importance estimation. Journal of Machine Learning Research, 10:1391–1445, 2009.
  41. [41]Ilyes Khemakhem, Diederik P. Kingma, Ricardo Pio Monti, and Aapo Hyvärinen. Variational autoencoders and nonlinear ICA: A unifying framework. In Proceedings of the 23rd International Conference on Artificial Intelligence and Statistics (AISTATS), 2020.
  42. [42]Dongjun Kim, Yeongmin Kim, Se Jung Kwon, Wanmo Kang, and Il-Chul Moon. Refining generative process with discriminator guidance in score-based diffusion models. In Proceedings of the 40th International Conference on Machine Learning, 2023.
  43. [43]John Kominek and Alan W. Black. The CMU Arctic speech databases. In Fifth ISCA Workshop on Speech Synthesis, 2004.
  44. [44]Valero Laparra, Gustavo Camps-Valls, and Jesús Malo. Iterative Gaussianization: From ICA to random rotations. IEEE Transactions on Neural Networks, 22(4):537–549, 2011.DOI
  45. [45]Matthias Liero, Alexander Mielke, and Giuseppe Savaré. Optimal entropy-transport problems and a new Hellinger–Kantorovich distance between positive measures. Inventiones Mathematicae, 211:969–1117, 2018.DOI
  46. [46]Yaron Lipman, Ricky T. Q. Chen, Heli Ben-Hamu, Maximilian Nickel, and Matt Le. Flow matching for generative modeling. In International Conference on Learning Representations, 2023.arxiv.org/abs/2210.02747
  47. [47]Qiang Liu and Dilek Wang. Stein variational gradient descent: A general purpose Bayesian inference algorithm. In Advances in Neural Information Processing Systems 29, 2016.arxiv.org/abs/1608.04471
  48. [48]Qiang Liu, Jason Lee, and Michael Jordan. A kernelized Stein discrepancy for goodness-of-fit tests. In Proceedings of the 33rd International Conference on Machine Learning (ICML), 2016.arxiv.org/abs/1602.03253
  49. [49]Song Liu, Takafumi Kanamori, Wittawat Jitkrittum, and Yu Chen. Fisher efficient inference of intractable models. In Advances in Neural Information Processing Systems 32, pages 8790–8800, 2019.arxiv.org/abs/1805.07454
  50. [50]Song Liu, Jiahao Yu, Jack Simons, Mingxuan Yi, and Mark Beaumont. Minimizing f-divergences by interpolating velocity fields. In Proceedings of the 41st International Conference on Machine Learning (ICML), 2024.arxiv.org/abs/2305.15577
  51. [51]Xingchao Liu, Chengyue Gong, and Qiang Liu. Flow straight and fast: Learning to generate and transfer data with rectified flow. In International Conference on Learning Representations, 2023.arxiv.org/abs/2209.03003
  52. [52]David Lopez-Paz and Maxime Oquab. Revisiting classifier two-sample tests. In International Conference on Learning Representations, 2017.arxiv.org/abs/1610.06545
  53. [53]Yulong Lu, Jianfeng Lu, and James Nolen. Accelerating Langevin sampling with birth-death. arXiv preprint arXiv:1905.09863, 2019.arxiv.org/abs/1905.09863
  54. [54]Jan-Matthis Lueckmann, Jan Boelts, David S. Greenberg, Pedro J. Gonçalves, and Jakob H. Macke. Benchmarking simulation-based inference. In Proceedings of the 24th International Conference on Artificial Intelligence and Statistics, pages 343–351, 2021.arxiv.org/abs/2101.04653
  55. [55]Aimee Maurais and Youssef Marzouk. Sampling in unit time with kernel Fisher–Rao flow. In Proceedings of the 41st International Conference on Machine Learning (ICML), 2024.arxiv.org/abs/2401.03892
  56. [56]Chenlin Meng, Yang Song, Jiaming Song, and Stefano Ermon. Gaussianization flows. In Proceedings of the 23rd International Conference on Artificial Intelligence and Statistics (AISTATS), 2020.arxiv.org/abs/2003.01941
  57. [57]XuanLong Nguyen, Martin J. Wainwright, and Michael I. Jordan. Estimating divergence functionals and the likelihood ratio by convex risk minimization. IEEE Transactions on Information Theory, 56(11):5847–5861, 2010.DOI
  58. [58]Sebastian Nowozin, Botond Cseke, and Ryota Tomioka. f-GAN: Training generative neural samplers using variational divergence minimization. In Advances in Neural Information Processing Systems 29, 2016.arxiv.org/abs/1606.00709
  59. [59]Nikolas Nüsken. Stein transport for Bayesian inference. arXiv preprint arXiv:2409.01464, 2024.arxiv.org/abs/2409.01464
  60. [60]Vassil Panayotov, Guoguo Chen, Daniel Povey, and Sanjeev Khudanpur. Librispeech: An ASR corpus based on public domain audio books. In IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), 2015.DOI
  61. [61]George Papamakarios, Eric Nalisnick, Danilo Jimenez Rezende, Shakir Mohamed, and Balaji Lakshminarayanan. Normalizing flows for probabilistic modeling and inference. Journal of Machine Learning Research, 22(57):1–64, 2021.
  62. [62]Dinh Tuan Pham and Philippe Garat. Blind separation of mixture of independent sources through a quasi-maximum likelihood approach. IEEE Transactions on Signal Processing, 45(7):1712–1725, 1997.
  63. [63]Danilo Rezende and Shakir Mohamed. Variational inference with normalizing flows. In Proceedings of the 32nd International Conference on Machine Learning (ICML), 2015.arxiv.org/abs/1505.05770
  64. [64]Benjamin Rhodes, Kai Xu, and Michael U. Gutmann. Telescoping density-ratio estimation. In Advances in Neural Information Processing Systems 33, 2020.arxiv.org/abs/2006.12204
  65. [65]Louis Sharrock, Jack Simons, Song Liu, and Mark Beaumont. Sequential neural score estimation: Likelihood-free inference with conditional score based diffusion models. In Proceedings of the 41st International Conference on Machine Learning, 2024.arxiv.org/abs/2210.04872
  66. [66]Jiaming Song, Chenlin Meng, and Stefano Ermon. Denoising diffusion implicit models. In International Conference on Learning Representations, 2021.arxiv.org/abs/2010.02502
  67. [67]Yang Song, Jascha Sohl-Dickstein, Diederik P. Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. Score-based generative modeling through stochastic differential equations. In International Conference on Learning Representations, 2021.arxiv.org/abs/2011.13456
  68. [68]Peter Sorrenson, Carsten Rother, and Ullrich Köthe. Disentanglement by nonlinear ICA with general incompressible-flow networks (GIN). In International Conference on Learning Representations (ICLR), 2020.arxiv.org/abs/2001.04872
  69. [70]Charles Stein. A bound for the error in the normal approximation to the distribution of a sum of dependent random variables. In Proceedings of the Sixth Berkeley Symposium on Mathematical Statistics and Probability, volume 2, pages 583–602, 1972.
  70. [71]Masashi Sugiyama, Shinichi Nakajima, Hisashi Kashima, Paul von Bünau, and Motoaki Kawanabe. Direct importance estimation with model selection and its application to covariate shift adaptation. In Advances in Neural Information Processing Systems 20, 2008.
  71. [72]Masashi Sugiyama, Taiji Suzuki, and Takafumi Kanamori. Density Ratio Estimation in Machine Learning. Cambridge University Press, 2012.
  72. [73]Esteban G. Tabak and Cristina V. Turner. A family of nonparametric density estimation algorithms. Communications on Pure and Applied Mathematics, 66(2):145–164, 2013.DOI
  73. [74]Esteban G. Tabak and Eric Vanden-Eijnden. Density estimation by dual ascent of the log-likelihood. Communications in Mathematical Sciences, 8(1):217–233, 2010.
  74. [75]Anisse Taleb and Christian Jutten. Source separation in post-nonlinear mixtures. IEEE Transactions on Signal Processing, 47(10):2807–2820, 1999.DOI
  75. [76]Yuta Tsuboi, Hisashi Kashima, Shohei Hido, Steffen Bickel, and Masashi Sugiyama. Direct density ratio estimation for large-scale covariate shift adaptation. Journal of Information Processing, 17:138–155, 2009.
  76. [77]Yang Yang, Severi Rissanen, Paul E. Chang, Nasrulloh Loka, Daolang Huang, Arno Solin, Markus Heinonen, and Luigi Acerbi. PriorGuide: Test-time prior adaptation for simulation-based inference. In International Conference on Learning Representations (ICLR), 2026.arxiv.org/abs/2510.13763
  77. [78]Mingxuan Yi, Zhangxing Zhu, and Song Liu. MonoFlow: Rethinking divergence GANs via the perspective of Wasserstein gradient flows. In Proceedings of the 40th International Conference on Machine Learning (ICML), 2023.arxiv.org/abs/2302.01075
  78. [80]Roland S. Zimmermann, Yash Sharma, Steffen Schneider, Matthias Bethge, and Wieland Brendel. Contrastive learning inverts the data generating process. In Proceedings of the 38th International Conference on Machine Learning (ICML), 2021.arxiv.org/abs/2102.08850

Paper details

vlnc:W_hjsybzk9
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Mathematics

generative AI tools

View statement
Looking for related papers…
Contents