U2.4 17 min read Oct 2026

U2.4 Stochastic Interpolants: Unifying Flows and Diffusions

Builds on5 notes

We have connected reference paths, velocity regression, and ideal ODE transport. With a Gaussian source, denoising and score predictions can also provide velocity.

A trained network is only approximate. The practical question is now:

How much distribution error can small local velocity errors cause?

Can an SDE follow the same marginals as the ODE, and would it yield a different error guarantee?

We need a framework connecting the intermediate law, training target, generation dynamics, and resulting error.

Can one framework describe both flows and diffusions and control their distribution errors?

Turn reference paths into a random process

Start with endpoint random variables having laws

X0∼p0,X1∼p1.X_0\sim p_0,\qquad X_1\sim p_1.

Their joint distribution specifies how to draw a pair:

(X0,X1)∼π.(X_0,X_1)\sim\pi.

This joint π\pi is a coupling.

SupplementA precise coupling definition

A coupling of p0p_0 and p1p_1 is a probability law on the product space with those marginals. For measurable sets AA and BB,

π(A×X1)=p0(A),π(X0×B)=p1(B).\pi(A\times\mathcal X_1)=p_0(A), \qquad \pi(\mathcal X_0\times B)=p_1(B).

The set of such laws is Π(p0,p1)\Pi(p_0,p_1). Coupling changes endpoint dependence without changing either endpoint distribution.

Our earlier choice drew endpoints independently:

πind(x0,x1)=p0(x0)p1(x1),\pi_{\mathrm{ind}}(x_0,x_1)=p_0(x_0)p_1(x_1),

This is the independent coupling, but alternatives exist.

In the crowd example, source density specifies starting positions and target density specifies station occupancy. Independent pairing randomly assigns stations without considering location, creating many crossings.

A different assignment could favor nearby stations while maintaining every station’s required occupancy. The marginal populations stay fixed; only individual pairings change.

After choosing the joint, choose a reference path, for example

It(x0,x1)=(1−t)x0+tx1.I_t(x_0,x_1)=(1-t)x_0+tx_1.

Draw endpoints and evaluate the path:

(X0,X1)∼π,Xt=It(X0,X1).(X_0,X_1)\sim\pi,\qquad X_t=I_t(X_0,X_1).

With fixed endpoints the path is deterministic; random endpoints make its position a random variable. Albergo, Boffi, and Vanden-Eijnden [1] call the resulting random process a stochastic interpolant, extending their earlier flow construction [2].

The distribution of all positions at time tt is

pt=Law⁡(X0,X1)∼π(It(X0,X1))=Law⁡(Xt).p_t = \operatorname{Law}_{(X_0,X_1)\sim\pi} \bigl(I_t(X_0,X_1)\bigr) =\operatorname{Law}(X_t).

Coupling determines who goes where; the reference map determines how each pair is connected. Together they determine the intermediate marginals.

Keep these objects distinct:

ObjectCrowd interpretationMathematical role
CouplingAssign each person a destination(X0,X1)∼π(X_0,X_1)\sim\pi
Reference pathA route for fixed endpointsIt(x0,x1)I_t(x_0,x_1)
Stochastic interpolantPosition after drawing random endpointsXt=It(X0,X1)X_t=I_t(X_0,X_1)
Marginal pathPopulation snapshot at each timept=Law⁡(Xt)p_t=\operatorname{Law}(X_t)
ODE trajectoryRoute following the averaged crowd fielddYt/dt=vt(Yt)dY_t/dt=v_t(Y_t)

Reference paths supply labels; the interpolant is a random process; marginals are its snapshots. Generated ODE trajectories generally do not retrace individual references.

TerminologyWhy distinguish a reference path from a stochastic interpolant?

A reference path emphasizes a curve for fixed endpoints.

A stochastic interpolant emphasizes the random process obtained after drawing endpoints and studying its laws over time. They describe different levels of the same construction.

Add controlled randomness around the reference path

A legal endpoint connection need not be easy to learn.

Many routes may concentrate through a narrow crossing. Intermediate density can become sharp or singular, and velocity can change rapidly.

To spread intermediate positions without changing endpoints, introduce independent Gaussian ZZ:

Xt=σtX0+αtX1+γtZ,(X0,X1)∼π,Z∼N(0,I).\boxed{ X_t = \sigma_tX_0+\alpha_tX_1+\gamma_tZ, \qquad (X_0,X_1)\sim\pi,\qquad Z\sim\mathcal N(0,I). }

Use the same source-to-target time convention and endpoint conditions:

σ0=1,α0=0,σ1=0,α1=1,γ0=γ1=0.\sigma_0=1,\quad \alpha_0=0, \qquad \sigma_1=0,\quad \alpha_1=1, \qquad \gamma_0=\gamma_1=0.

The term γtZ\gamma_tZ gives each reference route some width. Its endpoint values vanish, preserving the source and target while changing intermediate snapshots.

Research resultsWhat can extra Gaussian randomness help with?

If pt(0)p_t^{(0)} denotes the unsmoothed intermediate law, independence gives

pt(γ)=pt(0)∗N(0,γt2I).p_t^{(\gamma)} = p_t^{(0)}*\mathcal N(0,\gamma_t^2I).

This is Gaussian convolution. Under their assumptions, [1] establishes spatial regularity of the intermediate densities and velocity, providing a basis for more stable numerical integration.

Related work investigates several different benefits:

  • Flow stability. In related Gaussian-endpoint settings, Gao and colleagues [5] establish velocity regularity, flow well-posedness, and Wasserstein stability under perturbations.
  • Supervision coverage. For empirical endpoints, noise fills a neighborhood around each reference line. Su and colleagues [7] analyze smoothing and a W1W_1 generalization gap. Their full stochastic-injection method reports image-to-image improvements, with ablations assessing interpolant noise separately; this is setting-specific evidence rather than a universal guarantee.
  • Memorization. Reu and colleagues [6] analyze memorizing fields in a straight-path setting and report improved generalization with added noise in their experiments. Crossing reference lines alone need not ensure generalization.

The extra Gaussian also supplies an observed training label ZZ. Its conditional mean converts into the marginal score, enabling score regression for arbitrary endpoint laws.

These results do not imply that more noise always helps. Its schedule changes the path and can matter substantially [7]. Bertrand and colleagues [8] study target stochasticity in a different setting, finding that conditional-mean targets need not harm generalization. Interpolant smoothing, sampling randomness, and stochastic regression targets are different mechanisms.

This affine family contains our diffusion and Flow Matching examples. More general interpolants replace the endpoint combination with an arbitrary reference map; we use the affine form below.

There are three design choices:

  • Path: the endpoint coefficients (σt,αt)(\sigma_t,\alpha_t).
  • Coupling: the joint law π\pi of the endpoints.
  • Extra randomness: the scale γt\gamma_t.

A positive intermediate γt\gamma_t thickens each reference line into a channel, while zero endpoint scales preserve both marginals.

Place DDPM, DDIM, and Flow Matching in this framework

The constructions we already know correspond to

MethodEndpoint coefficientsCouplingExtra randomness
Linear Flow Matching(1−t,t)(1-t,t)Independentγt=0\gamma_t=0
DDPM/DDIM marginalsVP: σt2+αt2=1\sigma_t^2+\alpha_t^2=1Independent Gaussian noise and dataγt=0\gamma_t=0

The earlier notes derived linear interpolation and the VP signal/noise amplitudes; see U2.1 and U1.1.

DDPM and DDIM share this row because it records single-time marginals, not their different sampling rules.

SiT [3] applies interpolant-based choices of path, objective, and deterministic or stochastic sampling to large-scale image generation.

Setting γt=0\gamma_t=0 does not remove source noise. In diffusion, X0X_0 itself is Gaussian; ZZ would be an additional independent variable.

This framework unifies how endpoint pairing, reference interpolation, and added randomness define a probability path. We now derive dynamics for following it.

The same regression trick learns velocity

For a known training triple, differentiate:

X˙t=σ˙tX0+α˙tX1+γ˙tZ.\dot X_t = \dot\sigma_tX_0+\dot\alpha_tX_1+\dot\gamma_tZ.

Use position and time as input and the directly computable derivative as label:

Lv(θ)=E ⁣[∥vθ(Xt,t)−X˙t∥2].\mathcal L_v(\theta) = \mathbb E\!\left[ \left\|v_\theta(X_t,t)-\dot X_t\right\|^2 \right].

Squared error averages compatible labels, giving

vt∗(x)=E[X˙t∣Xt=x].v_t^*(x) = \mathbb E[\dot X_t\mid X_t=x].

This extends Flow Matching with the term γ˙tZ\dot\gamma_tZ. We now omit the star from the ideal velocity.

Why does this field follow the same marginals?

Apply the conditional-average proof from U2.2, extending the reference variables to include ZZ:

vt(x)=E[X˙t∣Xt=x],pt=Law⁡(Xt).v_t(x)=\mathbb E[\dot X_t\mid X_t=x], \qquad p_t=\operatorname{Law}(X_t).

The field and marginal law satisfy

∂tpt+∇⋅(ptvt)=0.\partial_t p_t+\nabla\cdot(p_tv_t)=0.

Starting from Y0∼p0Y_0\sim p_0, solve

dYtdt=vt(Yt)\frac{\mathrm dY_t}{\mathrm dt}=v_t(Y_t)

Under suitable regularity and uniqueness, the ODE law equals the interpolant snapshot at every time and reaches p1p_1.

Extra Gaussian noise also supplies a score target

Since the training triple includes ZZ, regress it as well:

LZ(θ)=E ⁣[∥ηθ(Xt,t)−Z∥2],ηt∗(x)=E[Z∣Xt=x].\mathcal L_Z(\theta) = \mathbb E\!\left[ \left\|\eta_\theta(X_t,t)-Z\right\|^2 \right], \qquad \eta_t^*(x)=\mathbb E[Z\mid X_t=x].

Given the endpoints,

Xt∣X0,X1∼N ⁣(σtX0+αtX1,γt2I).X_t\mid X_0,X_1 \sim \mathcal N\!\left( \sigma_tX_0+\alpha_tX_1, \gamma_t^2I \right).

For γt>0\gamma_t>0, the Gaussian posterior identity gives

∇xlog⁡pt(x)=−1γt E[Z∣Xt=x]=−ηt∗(x)γt.\boxed{ \nabla_x\log p_t(x) = -\frac{1}{\gamma_t}\, \mathbb E[Z\mid X_t=x] = -\frac{\eta_t^*(x)}{\gamma_t}. }

Predicting displacement from a channel’s center therefore estimates the local log-density gradient.

ConnectionDoes a Gaussian source already give a score identity?

Yes. With an independent Gaussian source and no extra noise, the earlier construction gives

E[X0∣Xt=x]=−σt∇xlog⁡pt(x).\mathbb E[X_0\mid X_t=x] =-\sigma_t\nabla_x\log p_t(x).

and velocity can be written

vt∗(x)=α˙tαtx+(σ˙t−α˙tαtσt)E[X0∣Xt=x]=α˙tαtx−σt(σ˙t−α˙tαtσt)∇xlog⁡pt(x).\begin{aligned} v_t^*(x) &=\frac{\dot\alpha_t}{\alpha_t}x +\left(\dot\sigma_t- \frac{\dot\alpha_t}{\alpha_t}\sigma_t\right) \mathbb E[X_0\mid X_t=x]\\ &=\frac{\dot\alpha_t}{\alpha_t}x -\sigma_t\left(\dot\sigma_t- \frac{\dot\alpha_t}{\alpha_t}\sigma_t\right) \nabla_x\log p_t(x). \end{aligned}

Both quantities depend on the same conditional source-noise mean.

Arbitrary endpoint laws need not offer such a Gaussian direction. Independent ZZ restores one:

E[Z∣Xt=x]=−γt∇xlog⁡pt(x).\mathbb E[Z\mid X_t=x] =-\gamma_t\nabla_x\log p_t(x).

This extends the Gaussian identity to arbitrary endpoint couplings. If the source is already independent Gaussian, extra ZZ is unnecessary merely to obtain a score; its role can instead be to change and smooth the path.

For arbitrary endpoints, the score alone generally does not determine velocity. Velocity also averages both endpoint contributions.

DetailsApply Tweedie's identity to the added Gaussian

Set mt=σtX0+αtX1m_t=\sigma_tX_0+\alpha_tX_1. Conditional on the endpoints, the displacement is γtZ\gamma_tZ, so

∇xlog⁡pt(x∣X0,X1)=−x−mtγt2=−Zγt.\nabla_x\log p_t(x\mid X_0,X_1) = -\frac{x-m_t}{\gamma_t^2} = -\frac{Z}{\gamma_t}.

Average conditional scores over the endpoint posterior:

∇xlog⁡pt(x)=E ⁣[∇xlog⁡pt(x∣X0,X1)∣Xt=x]=−1γtE[Z∣Xt=x].\begin{aligned} \nabla_x\log p_t(x) &= \mathbb E\!\left[ \nabla_x\log p_t(x\mid X_0,X_1) \mid X_t=x \right]\\ &= -\frac{1}{\gamma_t} \mathbb E[Z\mid X_t=x]. \end{aligned}

Dividing by the marginal density produces precisely the posterior weights, as in Unit 1.

Follow the same probability path with an ODE or SDE

The interpolant provides

vt(x),st(x):=∇xlog⁡pt(x).v_t(x),\qquad s_t(x):=\nabla_x\log p_t(x).

For fixed ε>0\varepsilon>0, combine velocity and score into a drift:

btε(x):=vt(x)+εst(x).\boxed{ b_t^\varepsilon(x) := v_t(x)+\varepsilon s_t(x). }

We need not train two separate networks if only this drift is required. Since

st(x)=−1γtE[Z∣Xt=x],s_t(x) =-\frac{1}{\gamma_t}\mathbb E[Z\mid X_t=x],

we have

btε(x)=E ⁣[X˙t−εγtZ | Xt=x],γt>0.b_t^\varepsilon(x) = \mathbb E\!\left[ \dot X_t-\frac{\varepsilon}{\gamma_t}Z \,\middle|\,X_t=x \right], \qquad \gamma_t>0.

so directly regress the combined label:

Lb(θ)=E ⁣[∥bθ(Xt,t)−(X˙t−εγtZ)∥2].\mathcal L_b(\theta) = \mathbb E\!\left[ \left\| b_\theta(X_t,t) -\left(\dot X_t-\frac{\varepsilon}{\gamma_t}Z\right) \right\|^2 \right].

Its optimum is btεb_t^\varepsilon, which defines the SDE

dYt=btε(Yt) dt+2ε dWt.\boxed{ \mathrm dY_t = b_t^\varepsilon(Y_t)\,\mathrm dt +\sqrt{2\varepsilon}\,\mathrm dW_t. }

The density of this SDE evolves according to the Fokker–Planck equation:

∂tpt=−∇⋅(btεpt)+εΔpt=−∇⋅((vt+εst)pt)+εΔpt.\begin{aligned} \partial_t p_t &=-\nabla\cdot\bigl(b_t^\varepsilon p_t\bigr) +\varepsilon\Delta p_t\\ &=-\nabla\cdot\bigl((v_t+\varepsilon s_t)p_t\bigr) +\varepsilon\Delta p_t. \end{aligned}
SupplementDerive the Fokker–Planck equation

For a smooth test function, Itô’s lemma gives

ddtE[ϕ(Yt)]=E ⁣[∇ϕ(Yt)⋅btε(Yt)+εΔϕ(Yt)].\frac{\mathrm d}{\mathrm dt}\mathbb E[\phi(Y_t)] = \mathbb E\!\left[ \nabla\phi(Y_t)\cdot b_t^\varepsilon(Y_t) +\varepsilon\Delta\phi(Y_t) \right].

Write the expectations as density integrals and integrate by parts:

ddt∫ϕ(x)pt(x) dx=∫[∇ϕ⋅btε+εΔϕ]pt dx=∫ϕ(x)[−∇⋅(btεpt)+εΔpt]dx.\begin{aligned} \frac{\mathrm d}{\mathrm dt}\int\phi(x)p_t(x)\,\mathrm dx &=\int \left[ \nabla\phi\cdot b_t^\varepsilon +\varepsilon\Delta\phi \right]p_t\,\mathrm dx\\ &=\int\phi(x) \left[ -\nabla\cdot(b_t^\varepsilon p_t) +\varepsilon\Delta p_t \right]\mathrm dx. \end{aligned}

Since this holds for all suitable test functions, the bracketed expression is the density derivative. The Laplacian is the additional contribution of Brownian diffusion.

Because stpt=∇pts_tp_t=\nabla p_t, the added terms cancel:

−∇⋅(ε∇pt)+εΔpt=0.-\nabla\cdot(\varepsilon\nabla p_t) +\varepsilon\Delta p_t=0.

What remains is the same continuity equation. The interpolant specifies the marginal path; ODE or SDE dynamics specify how samples traverse it.

SupplementThe sampling diffusion may vary with time

More generally choose a time-dependent εt≥0\varepsilon_t\geq0:

dYt=[vt(Yt)+εtst(Yt)] dt+2εt dWt.\mathrm dY_t = \bigl[v_t(Y_t)+\varepsilon_t s_t(Y_t)\bigr]\,\mathrm dt +\sqrt{2\varepsilon_t}\,\mathrm dW_t.

It is independent of position, so

−∇⋅(εtstpt)+εtΔpt=0.-\nabla\cdot(\varepsilon_t s_t p_t) +\varepsilon_t\Delta p_t =0.

With exact fields and exact continuous dynamics, these choices preserve the same marginals. They change trajectories and the response to model and numerical errors.

ImplementationWhen do we need both velocity and score?

For one fixed diffusion scale, directly learn the combined drift. To switch between ODE and several SDE scales, or analyze their errors separately, obtain both fields, perhaps using a shared backbone with two heads.

A score describes a density’s spatial shape but generally does not determine its temporal evolution. Diffusion is a special case where known forward dynamics and a Gaussian construction supply the missing relation.

Does smaller regression error imply a closer final distribution?

So far we have used exact fields. Now replace them with learned approximations.

ODEs and SDEs naturally yield different kinds of stability bounds.

ODE: velocity error controls Wasserstein distance

Let p^1\hat p_1 be the terminal law of the learned ODE and assume the learned field is LL-Lipschitz in space. Define integrated velocity error along the exact marginals:

Ev:=∫01EXt∼pt[∥vθ(Xt,t)−vt(Xt)∥2] dt.\mathcal E_v := \int_0^1 \mathbb E_{X_t\sim p_t} \big[\|v_\theta(X_t,t)-v_t(X_t)\|^2\big]\,\mathrm dt.

This is the excess population regression loss. Under the appropriate assumptions, the bound takes the form [4]

W22(p1,p^1)≤e2LEv.\boxed{ W_2^2(p_1,\hat p_1) \le e^{2L}\mathcal E_v. }

Couple exact and learned trajectories by using the same initial sample. Their separation satisfies

ddt∥Y^t−Yt∥≤L∥Y^t−Yt∥+∥vθ(Yt,t)−vt(Yt)∥.\frac{\mathrm d}{\mathrm dt}\|\hat Y_t-Y_t\| \le L\|\hat Y_t-Y_t\| +\|v_\theta(Y_t,t)-v_t(Y_t)\|.

Apply Grönwall, square, and average:

E∥Y^1−Y1∥2≤e2LEv.\mathbb E\|\hat Y_1-Y_1\|^2 \le e^{2L}\mathcal E_v.

These paired endpoints form one coupling of p1p_1 and p^1\hat p_1. Since W2W_2 minimizes over all couplings, it cannot be larger. This bounds model error under exact ODE integration; discretization is separate.

SDE: drift error controls a KL bound

Now consider approximate velocity and score in

dY^t=[vθ(Y^t,t)+εsθ(Y^t,t)] dt+2ε dWt,\mathrm d\hat Y_t = \big[v_\theta(\hat Y_t,t)+\varepsilon s_\theta(\hat Y_t,t)\big]\,\mathrm dt +\sqrt{2\varepsilon}\,\mathrm dW_t,

with marginal law p^t\hat p_t. Define

Es:=∫01EXt∼pt[∥sθ(Xt,t)−st(Xt)∥2] dt.\mathcal E_s := \int_0^1 \mathbb E_{X_t\sim p_t} \big[\|s_\theta(X_t,t)-s_t(X_t)\|^2\big]\,\mathrm dt.

For equal diffusion coefficients and different drifts, the relative-entropy calculation gives

ddtKL(pt∥p^t)=Ept[δt⋅Δbt]−εEpt[∥δt∥2],\frac{\mathrm d}{\mathrm dt}\mathrm{KL}(p_t\|\hat p_t) = \mathbb E_{p_t}[\delta_t\cdot\Delta b_t] -\varepsilon\mathbb E_{p_t}[\|\delta_t\|^2],

Here δt\delta_t is the difference of log-density gradients. Apply

a⋅d−ε∥a∥2≤∥d∥24ε,a\cdot d-\varepsilon\|a\|^2 \le \frac{\|d\|^2}{4\varepsilon},

then substitute the drift-error decomposition and integrate:

KL(p1∥p^1)≤12εEv+ε2Es.\boxed{ \mathrm{KL}(p_1\|\hat p_1) \le \frac{1}{2\varepsilon}\mathcal E_v +\frac{\varepsilon}{2}\mathcal E_s. }

These errors are averaged under the law specified in the bound, here the learned marginals. This need not be the same weighting as ordinary training data. Under the stated assumptions, the inequality connects drift accuracy to terminal relative entropy; it does not turn every empirical training loss directly into a likelihood guarantee.

CautionWhy not the same KL bound for an ODE?

A deterministic transport calculation lacks the negative diffusion/Fisher term that absorbs the density-gradient difference. Small velocity MSE alone does not generally give the same KL control.

Both exact dynamics follow the intended marginals. Their approximate-field bounds differ: trajectory coupling gives ODE Wasserstein stability, while diffusion supplies the entropy-dissipation term used in the SDE bound.

Do not confuse γt\gamma_t, which changes the interpolant and its intermediate laws, with εt\varepsilon_t, which changes sampling dynamics while preserving ideal marginals. The demo isolates the first.

Both endpoints are the same ring. Antipodal pairing with zero extra noise collapses every reference path at the center at mid-time. Increasing γ\gamma restores width, changing the whole marginal path rather than merely adding sampling noise.

Should extra randomness always be positive?

DiscussionQ1

If positive γt\gamma_t supplies smooth density and a score target, why not always use it?

Show the reasoning

It addresses smoothing and score estimation, rather than directly guaranteeing straight ODE trajectories.

It also changes intermediate laws and reference velocities. Averaging overlapping channels can still produce changing directions.

Velocity regression remains possible with zero extra noise. An independent Gaussian source can already supply a score identity; what is lost in general is the added-ZZ formula valid for arbitrary endpoint couplings.

Unit 3 examines coupling and trajectory variation. The interpolant lab separately investigates sampling diffusion and its numerical cost.

Reference path, endpoint coupling, and extra Gaussian randomness.

Figure: these three choices jointly specify the interpolant and its intermediate distributions.

Check your understanding

Check your understanding

How do a fixed-endpoint reference path and a stochastic interpolant differ?

Check your understanding

Why can a VP interpolant contain noise with γt=0\gamma_t=0?

Check your understanding

Why does ODE velocity error naturally control W2W_2, while KL needs more?

References

  1. Albergo, M. S., Boffi, N. M., Vanden-Eijnden, E. Stochastic Interpolants: A Unifying Framework for Flows and Diffusions. 2023.
  2. Albergo, M. S., Vanden-Eijnden, E. Building Normalizing Flows with Stochastic Interpolants. ICLR 2023.
  3. Ma, N., et al. SiT: Exploring Flow and Diffusion-Based Generative Models with Scalable Interpolant Transformers. 2024.
  4. Benton, J., Deligiannidis, G., Doucet, A. Error Bounds for Flow Matching Methods. TMLR 2024.
  5. Gao, Y., Huang, J., Jiao, Y. Gaussian Interpolation Flows. JMLR 2024.
  6. Reu, T., et al. Gradient Variance Reveals Failure Modes in Flow-Based Generative Models. NeurIPS 2025.
  7. Su, S., et al. Three Forms of Stochastic Injection for Improved Distribution-to-Distribution Generative Modeling. 2025.
  8. Bertrand, Q., et al. On the Closed-Form of Flow Matching: Generalization Does Not Arise from Target Stochasticity. NeurIPS 2025.