U2.3 7 min read Oct 2026

U2.3 Gaussian Sources: Where DDIM and Flow Matching Meet

Builds on2 notes

We asked whether a Gaussian-source Flow Matching field relates to DDIM’s deterministic dynamics.

A denoiser predicts data or noise; a Flow Matching network predicts velocity. On the same noisy distribution, can these quantities be converted?

Can the denoiser from Unit 1 supply a Flow ODE’s velocity?

Rewrite the diffusion path in Flow Matching notation

Here t=0t=0 is noise and t=1t=1 is data, opposite to the forward-corruption direction of Unit 1.

Use τ\tau for data-to-noise time and tt for noise-to-data time. The earlier state was

xτ=αˉτ x0+στϵ.x_\tau=\sqrt{\bar\alpha_\tau}\,x_0+\sigma_\tau\epsilon.

Reverse its interpretation and choose endpoints

X0=ϵ∼N(0,I),X1∼pdata,X_0=\epsilon\sim\mathcal N(0,I),\qquad X_1\sim p_{\mathrm{data}},

to write the interpolation as

It=αtX1+σtX0=αtX1+σtϵ,α0=0,σ0=1,α1=1,σ1=0.I_t=\alpha_tX_1+\sigma_tX_0 =\alpha_tX_1+\sigma_t\epsilon,\qquad \alpha_0=0, \sigma_0=1, \alpha_1=1, \sigma_1=0.

The coefficients have these meanings:

  • αt\alpha_t is the signal amplitude, corresponding to αˉ\sqrt{\bar\alpha} in Unit 1. It is not the earlier one-step retention factor αs=1−βs\alpha_s=1-\beta_s.
  • σt\sigma_t is the noise amplitude.
  • A VP path satisfies αt2+σt2=1\alpha_t^2+\sigma_t^2=1.

In this reversed direction, signal increases while noise decreases. Exact zero/one endpoints describe an ideal limiting path; finite diffusion schedules can retain a small prior mismatch.

Let us derive the velocity corresponding to this interpolation.

For fixed endpoint data and noise, differentiate the reference position:

I˙t=α˙tX1+σ˙tϵ.\dot I_t=\dot\alpha_tX_1+\dot\sigma_t\epsilon.

The optimal marginal field is its conditional average:

vt⋆(x)=E[I˙t∣It=x]=E[α˙tX1+σ˙tϵ∣It=x].v_t^\star(x) =\mathbb E[\dot I_t\mid I_t=x] =\mathbb E[\dot\alpha_tX_1+\dot\sigma_t\epsilon\mid I_t=x].

Connect this field to the denoiser

Condition on the current position:

x=αtX1+σtϵ.x=\alpha_tX_1+\sigma_t\epsilon.

For αt>0\alpha_t>0, solve for clean data:

X1=x−σtϵαt.X_1=\frac{x-\sigma_t\epsilon}{\alpha_t}.

Substitute into the reference velocity:

I˙t=α˙tX1+σ˙tϵ=α˙tαtx+(σ˙t−α˙tαtσt)ϵ.\begin{aligned} \dot I_t &=\dot\alpha_tX_1+\dot\sigma_t\epsilon\\ &=\frac{\dot\alpha_t}{\alpha_t}x +\left( \dot\sigma_t- \frac{\dot\alpha_t}{\alpha_t}\sigma_t \right)\epsilon. \end{aligned}

Then average over compatible origins:

vt⋆(x)=α˙tαtx+(σ˙t−α˙tαtσt)E[ϵ∣It=x].v_t^\star(x) =\frac{\dot\alpha_t}{\alpha_t}x +\left( \dot\sigma_t- \frac{\dot\alpha_t}{\alpha_t}\sigma_t \right) \mathbb E[\epsilon\mid I_t=x].

The conditional noise mean therefore determines velocity. At the matching noise level, the denoiser estimates

ϵθ(x,t)≈E[ϵ∣It=x]=−σt∇xlog⁡pt(x),\epsilon_\theta(x,t) \approx\mathbb E[\epsilon\mid I_t=x] =-\sigma_t\nabla_x\log p_t(x),

Tweedie’s identity gives the last equality. Substitution produces the conversion

vθ(x,t)=α˙tαtx+(σ˙t−α˙tαtσt)ϵθ(x,t).\boxed{ v_\theta(x,t) =\frac{\dot\alpha_t}{\alpha_t}x +\left( \dot\sigma_t- \frac{\dot\alpha_t}{\alpha_t}\sigma_t \right)\epsilon_\theta(x,t). }

or, in score coordinates,

vt⋆(x)=α˙tαtx−σt(σ˙t−α˙tαtσt)∇xlog⁡pt(x).v_t^\star(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).

This is an algebraic conversion of an existing predictor, rather than training another network.

On the same VP interpolation, noise, score, and velocity encode convertible conditional-mean information.

What happens when a DDIM step becomes infinitesimal?

We have converted outputs. We still need to check whether this field is DDIM’s underlying deterministic dynamics.

Return to data-to-noise time τ\tau. Deterministic DDIM [1] reconstructs a new level using the current clean and noise predictions:

xs=αˉs x^0(xτ,τ)+σsϵθ(xτ,τ),s<τ.x_s =\sqrt{\bar\alpha_s}\,\widehat x_0(x_\tau,\tau) +\sigma_s\epsilon_\theta(x_\tau,\tau), \qquad s<\tau.

where

x^0(xτ,τ)=xτ−στϵθ(xτ,τ)αˉτ.\widehat x_0(x_\tau,\tau) =\frac{x_\tau-\sigma_\tau\epsilon_\theta(x_\tau,\tau)} {\sqrt{\bar\alpha_\tau}}.

The current state also satisfies

xτ=αˉτ x^0(xτ,τ)+στϵθ(xτ,τ).x_\tau =\sqrt{\bar\alpha_\tau}\,\widehat x_0(x_\tau,\tau) +\sigma_\tau\epsilon_\theta(x_\tau,\tau).

Subtract the two times:

xs−xτ=(αˉs−αˉτ)x^0(xτ,τ)+(σs−στ)ϵθ(xτ,τ).\begin{aligned} x_s-x_\tau &=\left(\sqrt{\bar\alpha_s}-\sqrt{\bar\alpha_\tau}\right) \widehat x_0(x_\tau,\tau)\\ &\quad+(\sigma_s-\sigma_\tau)\epsilon_\theta(x_\tau,\tau). \end{aligned}

Divide by s−τs-\tau and take s→τs\to\tau:

dxτdτ=dαˉτdτx^0(xτ,τ)+σ˙τϵθ(xτ,τ)=ddτlog⁡αˉτ xτ+(σ˙τ−ddτlog⁡αˉτ στ)ϵθ(xτ,τ).\begin{aligned} \frac{\mathrm dx_\tau}{\mathrm d\tau} &=\frac{\mathrm d\sqrt{\bar\alpha_\tau}}{\mathrm d\tau} \widehat x_0(x_\tau,\tau) +\dot\sigma_\tau\epsilon_\theta(x_\tau,\tau)\\ &=\frac{\mathrm d}{\mathrm d\tau} \log\sqrt{\bar\alpha_\tau}\,x_\tau +\left( \dot\sigma_\tau- \frac{\mathrm d}{\mathrm d\tau} \log\sqrt{\bar\alpha_\tau}\,\sigma_\tau \right) \epsilon_\theta(x_\tau,\tau). \end{aligned}

This is the same velocity conversion, expressed in the opposite time direction. Infinitesimal deterministic DDIM follows the corresponding Flow ODE.

Which ODE does the VP schedule produce?

Use αˉ˙τ=−β(τ)αˉτ\dot{\bar\alpha}_\tau=-\beta(\tau)\bar\alpha_\tau to differentiate the signal amplitude:

ddτlog⁡αˉτ=−12β(τ).\frac{\mathrm d}{\mathrm d\tau}\log\sqrt{\bar\alpha_\tau} =-\frac12\beta(\tau).

Differentiating the noise variance gives

2στσ˙τ=β(τ)αˉτ.2\sigma_\tau\dot\sigma_\tau =\beta(\tau)\bar\alpha_\tau.

Substitute the noise-score relation. The score coefficient becomes

−στ(σ˙τ+12β(τ)στ)=−12β(τ)(αˉτ+στ2)=−12β(τ).\begin{aligned} -\sigma_\tau\left( \dot\sigma_\tau+\frac12\beta(\tau)\sigma_\tau \right) &=-\frac12\beta(\tau) \left(\bar\alpha_\tau+\sigma_\tau^2\right)\\ &=-\frac12\beta(\tau). \end{aligned}

and the continuous equation is

dxτdτ=−12β(τ)xτ−12β(τ)∇log⁡pτ(xτ).\boxed{ \frac{\mathrm dx_\tau}{\mathrm d\tau} =-\frac12\beta(\tau)x_\tau -\frac12\beta(\tau)\nabla\log p_\tau(x_\tau). }

This is the probability-flow ODE [2]. Generation integrates τ\tau from the noisy end toward the data end.

DDPM and DDIM share denoising supervision. Its conditional mean converts into the VP field; deterministic DDIM supplies a finite-step approximation to that continuous rule.

CautionChanging coordinates is not changing the path

The conversion coefficients must match the interpolation used in training. Combining a VP-trained denoiser with arbitrary linear-path coefficients generally evaluates it on different intermediate distributions.

Output conversion can avoid retraining; an arbitrary change of probability path cannot.

What additional freedom does Flow Matching provide?

DDIM already defines a deterministic flow. On the corresponding path, both constructions have the form

dXtdt=vt(Xt),\frac{\mathrm dX_t}{\mathrm dt}=v_t(X_t),

Flow Matching additionally lets us choose

  • The source distribution p0p_0.
  • The reference path ItI_t.
  • The joint pairing of source and target endpoints.

The simplest first choice is straight interpolation:

It=(1−t)X0+tX1,I˙t=X1−X0.I_t=(1-t)X_0+tX_1,\qquad \dot I_t=X_1-X_0.

Its reference velocity is constant. If generation followed a known reference line, one Euler step would suffice. Whether the averaged field has this property is a separate question.

ChoiceDDPM/DDIM setupFlow Matching
SourceGaussian priorA chosen p0p_0
Reference pathNoise scheduleChosen interpolation
PairingIndependent noise and dataChosen endpoint joint
OutputCommonly noise or scoreCommonly velocity, with other parametrizations possible

Changing the path or endpoint coupling generally changes both intermediate distributions and the optimal field. Output-coordinate equivalence alone does not preserve the trained model.

SupplementVelocity MSE changes weights in noise coordinates

For the linear path,

ϵ=It−tI˙t,vθ(x,t)=x−ϵθ(x,t)t.\epsilon=I_t-t\dot I_t,\qquad v_\theta(x,t)=\frac{x-\epsilon_\theta(x,t)}{t}.

we obtain

∥vθ−I˙t∥2=1t2∥ϵθ−ϵ∥2.\|v_\theta-\dot I_t\|^2 =\frac1{t^2}\|\epsilon_\theta-\epsilon\|^2.

Uniform-time velocity MSE therefore carries a 1/t21/t^2 weight when expressed as noise error. It is not identical to DDPM’s uniform noise MSE.

Check your understanding

Check your understanding

On a fixed VP path, does a trained noise predictor require another network to obtain velocity?

Check your understanding

Which statement about DDIM and Flow Matching is accurate?

References

  1. Song, J., Meng, C., Ermon, S. Denoising Diffusion Implicit Models. ICLR 2021.
  2. Song, Y., et al. Score-Based Generative Modeling through Stochastic Differential Equations. ICLR 2021.
  3. Lipman, Y., et al. Flow Matching for Generative Modeling. ICLR 2023.