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
Their joint distribution specifies how to draw a pair:
This joint is a coupling.
SupplementA precise coupling definition
A coupling of and is a probability law on the product space with those marginals. For measurable sets and ,
The set of such laws is . Coupling changes endpoint dependence without changing either endpoint distribution.
Our earlier choice drew endpoints independently:
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
Draw endpoints and evaluate the path:
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 is
Coupling determines who goes where; the reference map determines how each pair is connected. Together they determine the intermediate marginals.
Keep these objects distinct:
| Object | Crowd interpretation | Mathematical role |
|---|---|---|
| Coupling | Assign each person a destination | |
| Reference path | A route for fixed endpoints | |
| Stochastic interpolant | Position after drawing random endpoints | |
| Marginal path | Population snapshot at each time | |
| ODE trajectory | Route following the averaged crowd field |
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 :
Use the same source-to-target time convention and endpoint conditions:
The term 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 denotes the unsmoothed intermediate law, independence gives
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 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 . 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 .
- Coupling: the joint law of the endpoints.
- Extra randomness: the scale .
A positive intermediate 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
| Method | Endpoint coefficients | Coupling | Extra randomness |
|---|---|---|---|
| Linear Flow Matching | Independent | ||
| DDPM/DDIM marginals | VP: | Independent Gaussian noise and data |
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 does not remove source noise. In diffusion, itself is Gaussian; 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:
Use position and time as input and the directly computable derivative as label:
Squared error averages compatible labels, giving
This extends Flow Matching with the term . 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 :
The field and marginal law satisfy
Starting from , solve
Under suitable regularity and uniqueness, the ODE law equals the interpolant snapshot at every time and reaches .
Extra Gaussian noise also supplies a score target
Since the training triple includes , regress it as well:
Given the endpoints,
For , the Gaussian posterior identity gives
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
and velocity can be written
Both quantities depend on the same conditional source-noise mean.
Arbitrary endpoint laws need not offer such a Gaussian direction. Independent restores one:
This extends the Gaussian identity to arbitrary endpoint couplings. If the source is already independent Gaussian, extra 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 . Conditional on the endpoints, the displacement is , so
Average conditional scores over the endpoint posterior:
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
For fixed , combine velocity and score into a drift:
We need not train two separate networks if only this drift is required. Since
we have
so directly regress the combined label:
Its optimum is , which defines the SDE
The density of this SDE evolves according to the Fokker–Planck equation:
SupplementDerive the Fokker–Planck equation
For a smooth test function, Itô’s lemma gives
Write the expectations as density integrals and integrate by parts:
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 , the added terms cancel:
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 :
It is independent of position, so
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 be the terminal law of the learned ODE and assume the learned field is -Lipschitz in space. Define integrated velocity error along the exact marginals:
This is the excess population regression loss. Under the appropriate assumptions, the bound takes the form [4]
Couple exact and learned trajectories by using the same initial sample. Their separation satisfies
Apply Grönwall, square, and average:
These paired endpoints form one coupling of and . Since 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
with marginal law . Define
For equal diffusion coefficients and different drifts, the relative-entropy calculation gives
Here is the difference of log-density gradients. Apply
then substitute the drift-error decomposition and integrate:
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 , which changes the interpolant and its intermediate laws, with , 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 restores width, changing the whole marginal path rather than merely adding sampling noise.
Should extra randomness always be positive?
DiscussionQ1
If positive 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- formula valid for arbitrary endpoint couplings.
Unit 3 examines coupling and trajectory variation. The interpolant lab separately investigates sampling diffusion and its numerical cost.

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