Introduction
Flow matching trains a velocity network by regressing the time derivative of a conditional path between a noise sample and a data sample [1, 2, 3]. With the linear path and independent pairs, the regression target is a random variable given , and the network learns its conditional mean. That mean field has curved trajectories, and a sampler that integrates it with a few Euler steps leaves the data manifold. The question of this task is which conditional path, meaning the coupling of noise and data and the interpolation between them, gives the best images when the number of function evaluations is small.
The field attacks the problem from two sides. One side changes the coupling so that conditional paths cross less: minibatch optimal transport [4], larger Sinkhorn couplings [5], persistent assignments across minibatches [6], weighted pairs [7], a quantile tree that aligns noise with data [8] and contrastive alignment of noise to data [9]. The other side changes the time axis: the density of training times [10], a schedule calibrated to difficulty [11] or a regression target scheduled for the Euler step [12]. Both sides must respect a hard constraint of this task: the sampler starts from standard Gaussian noise on a fixed grid, so any coupling must leave the source marginal Gaussian, or the network is trained on inputs the sampler never produces.
Our idea is the limit of the coupling side. If a map sent the data distribution exactly to a standard Gaussian, pairing each image with the noise would give a deterministic coupling with the correct prior and straight, non-crossing conditional paths, and one Euler step would suffice. We build a cheap, closed-form approximation of such a map and then ask how much of its determinism the trained network can use.
Method
Our method, which we call CAIG (correlation-annealed iterative Gaussianization), has three parts: a low-rank Gaussianizing transport fitted once from training statistics, a deterministic coupling built from it, and an annealing of that coupling back to independent noise over training time.
A low-rank Gaussianizing transport
Let be the image dimension and hold the 128 leading eigenvectors of the second-moment matrix , estimated on 8,192 training images drawn at random, each flipped horizontally with probability one half, as the training loop's augmentation does. The projection is mapped to approximately standard Gaussian coordinates by two layers of rotation-based iterative Gaussianization. Each layer centres its input, rotates it into its principal axes and replaces every coordinate by its normal score under the empirical marginal CDF , interpolated linearly between 256 quantile knots:
with a final per-coordinate standardisation . All of this is computed once in setup and
kept as about 2 MB of state; no training image is stored.
def setup(self, images, generator, device):
count = images.shape[0]
picked = torch.randperm(count, generator=generator)[:min(count, self.FIT)]
x = images[picked].to(device).permute(0, 3, 1, 2).float() / 127.5 - 1.0
flips = torch.rand(picked.shape[0], generator=generator) < 0.5
x[flips] = torch.flip(x[flips], dims=(3,))
pooled = self.pool(x)
moment = pooled.double().T @ pooled.double() / pooled.shape[0]
eigenvalues, vectors = torch.linalg.eigh(moment)
base = torch.flip(vectors, dims=(1,))[:, :self.KEEP].T.float()
values = pooled @ base.T
state = {"base": base}
for layer in range(self.LAYERS):
mean = values.mean(dim=0)
centered = values - mean
covariance = centered.double().T @ centered.double() / max(1, centered.shape[0] - 1)
eigenvalues, vectors = torch.linalg.eigh(covariance)
rotation = torch.flip(vectors, dims=(1,)).float()
values = centered @ rotation
ordered = torch.sort(values, dim=0).values
positions = torch.linspace(0, ordered.shape[0] - 1, self.KNOTS, device=device).long()
knots = ordered[positions]
state[f"mean{layer}"] = mean
state[f"rotation{layer}"] = rotation
state[f"knots{layer}"] = knots
values = self.gaussianize(values, knots)
state["final_mean"] = values.mean(dim=0)
state["final_scale"] = values.std(dim=0, correction=0).clamp(min=1e-4)
return state def gaussianize(self, values, knots):
transposed = values.T.contiguous()
table = knots.T.contiguous()
index = torch.searchsorted(table, transposed).clamp(1, self.KNOTS - 1)
left = torch.gather(table, 1, index - 1)
right = torch.gather(table, 1, index)
fraction = ((transposed - left) / (right - left).clamp(min=1e-8)).clamp(0.0, 1.0)
quantile = ((index - 1).float() + fraction) / (self.KNOTS - 1)
return torch.special.ndtri(quantile.clamp(1e-5, 1.0 - 1e-5)).T.contiguous()
def latent(self, values, state):
result = values
for layer in range(self.LAYERS):
result = (result - state[f"mean{layer}"]) @ state[f"rotation{layer}"]
result = self.gaussianize(result, state[f"knots{layer}"])
return (result - state["final_mean"]) / state["final_scale"]Only the subspace is transported. The noise's component orthogonal to the subspace stays as it is, so its law is exactly Gaussian whatever the quality of the fit, and the risk of a prior mismatch is confined to 128 coordinates.
The coupling and its annealing
At training time the source point is
and the network input is the linear interpolant from that source,
At the subspace component of the source is the image's own code : the coupling is deterministic in the subspace and noisy only in its complement. As the angle reaches , the source becomes the independent noise , and the coupling near the data end is independent. Because is independent of , a perfect Gaussianization would give for every , since ; the source marginal is then standard Gaussian at every time, which is the property the fixed sampler needs.
The source depends on , so the regression target is the full derivative of :
Since , the correction vanishes at the noise end and the target there is exactly the straight displacement of the deterministic coupling: annealing does not change what a single Euler step from noise is trained to do. The quartic angle is flat to third order at , so the coupling stays nearly deterministic over the early part of the path, where few-step samplers take their first step, and is randomized mainly in the interior and near the data.
def batch(self, x0, x1, u, generator, info, state):
b, c, h, w = x0.shape
p = self.PATCH
base = state["base"]
encoded = self.latent(self.pool(x1) @ base.T, state)
current = self.pool(x0) @ base.T
angle = (0.5 * torch.pi * u * u * u * u).view(b, 1)
cosine = torch.cos(angle)
sine = torch.sin(angle)
code = cosine * encoded + sine * current
delta = ((code - current) @ base).reshape(b, c, h // p, 1, w // p, 1)
expansion = torch.ones((1, 1, 1, p, 1, p), device=x0.device) / p
z = x0 + (delta * expansion).reshape(b, c, h, w)
code_velocity = (2.0 * torch.pi * u.view(b, 1) ** 3) * (-sine * encoded + cosine * current)
correction = (((1.0 - u).view(b, 1) * code_velocity) @ base).reshape(b, c, h // p, 1, w // p, 1)
view = (b,) + (1,) * (x0.ndim - 1)
weight = u.view(view)
return {"x_t": (1.0 - weight) * z + weight * x1,
"t": u, "target": x1 - z + (correction * expansion).reshape(b, c, h, w)}The path uses the general batch interface only to build and its target; training times are uniform, every pair carries unit weight, and the sampler's grid and step sizes are left at their defaults. The configuration has no branch on dataset, network or step count.
class ProbabilityPath:
"""Higher-order endpoint-flat correlation annealing with theta(t) = pi*t^4/2."""
PATCH = 1
KEEP = 128
LAYERS = 2
FIT = 8192
KNOTS = 256
def pool(self, x):
b, c, h, w = x.shape
p = self.PATCH
return x.reshape(b, c, h // p, p, w // p, p).sum(dim=(3, 5)).reshape(b, -1) / pResults
| Method | ① | ② | ③ | ||||||
|---|---|---|---|---|---|---|---|---|---|
| FID, few Euler steps ↓ | FID, more Euler steps ↓ | FID, largest sampling budget ↓ | FID, few Euler steps ↓ | FID, more Euler steps ↓ | FID, largest sampling budget ↓ | FID, few Euler steps ↓ | FID, more Euler steps ↓ | FID, largest sampling budget ↓ | |
| Kimi K3.1 Pro | 61.19 | 57.56 | 55.17 | 58.93 | 55.36 | 55.20 | 70.08 | 66.82 | 65.50 |
| Independent linear path | 18.90 | 10.93 | 6.984 | 28.42 | 19.66 | 15.98 | 25.92 | 15.77 | 10.57 |
| VP trigonometric path | 43.30 | 9.155 | 6.188 | 88.46 | 26.97 | 15.03 | 66.84 | 23.57 | 15.58 |
| Stochastic interpolants | 25.33 | 6.803 | 6.190 | 39.55 | 16.92 | 15.16 | 34.68 | 15.12 | 12.79 |
| OT-CFM | 15.76 | 10.94 | 7.337 | 25.52 | 20.11 | 16.69 | 23.99 | 17.36 | 12.81 |
| W-CFM | 20.25 | 11.09 | 6.650 | 30.17 | 20.33 | 16.09 | 28.07 | 16.95 | 11.38 |
| LOOM-CFM | 14.77 | 10.33 | 6.934 | 24.21 | 19.12 | 15.85 | 20.11 | 14.14 | 9.830 |
| VS-FM | 24.97 | 10.48 | 5.937 | 36.61 | 19.87 | 14.08 | 32.29 | 15.07 | 8.846 |
| Logit-normal timestep sampling | 18.12 | 11.15 | 6.899 | 28.03 | 20.17 | 16.02 | 32.76 | 23.01 | 17.56 |
| DC-FM | 31.89 | 15.11 | 8.981 | 36.28 | 28.72 | 20.12 | 29.11 | 16.62 | 10.72 |
| CNA + OT | 13.53 | 9.972 | 7.671 | 23.05 | 18.82 | 16.68 | 19.90 | 15.54 | 13.09 |
| QAT-FM | 17.15 | 11.12 | 6.967 | 26.72 | 19.90 | 15.96 | 22.97 | 15.61 | 10.70 |
- ① CIFAR-10 · UNet · 150k steps · Euler 8/16/50 NFE
- ② ImageNet 32×32 · UNet · 150k steps · Euler 8/16/50 NFE
- ③ CIFAR-10 · U-ViT-S/2 transformer · 150k steps · Euler 8/16/50 NFE
CAIG is not competitive on the measured settings. At the largest sampling budget it reaches an FID of 55.17 on C10-UNet, 55.20 on IN32-UNet and 65.50 on C10-UViT, against 5.937 (VS-FM [12]), 14.08 (VS-FM [12]) and 8.846 (VS-FM [12]) for the best baselines, and even the independent linear path of the starter reaches 6.984, 15.98 and 10.57. The larger sampling budget shows the same order: 57.56, 55.36 and 66.82 for CAIG, behind every baseline on every setting.
At the smaller sampling budget the gap narrows but does not close. CAIG reaches 61.19, 58.93 and 70.08, against 13.53, 23.05 and 19.90 for the best baselines. The single comparison it wins is against the VP trigonometric path on IN32-UNet, which reaches 88.46 there.
The flat profile of our numbers across the sampling budgets is the clearest signature of the method. The baselines improve substantially as the number of steps grows; CAIG improves only slightly. This matches what we saw in development: the deterministic coupling makes the very first steps from noise accurate, but the learned field converges to a distribution that stays far from the data however finely it is integrated. In our development runs, a matched adaptive solver showed the same gap between our models and the quantile-tree coupling as fixed-step Euler did, so the deficit is in the learned flow and not in the discretization.
How we got here
The method grew out of one observation and was then reshaped twice by results that contradicted our expectations.
- The starting point was a deterministic transport, not a teacher. Reading recent work on couplings, we noted that an invertible Gaussianizing map gives a deterministic noise-data coupling with the correct prior, and in the ideal limit a one-step generator. We chose a closed-form, data-fitted map over a trained neural flow, which would have to be trained first and might be hard for the student to imitate.
- Full-image Gaussianization overfitted, and richer maps were worse. Gaussianizing every pixel marginal overfitted the fitting sample: held-out codes had a standard deviation of about 1.17. A multiscale variant with patch-shared statistics fixed the held-out moments, but its analytic inverse, applied to fresh Gaussian noise, produced only noise, with an FID near 390 in our measurement. A low-rank map applied to the full-resolution principal subspace was far better: its analytic inverse reached an FID of 173 at rank 64 and 153 at rank 128 in our development measurements, against 330 with 4×4 pooling. We had argued for rank 64 from the observation that roughly 66 and 73 principal components on the two datasets have variance above that of unit noise, and moved to rank 128 because it won our short student screens.
- Several refinements of the map did not survive the trained student. Fewer quantile knots, an independent-component rotation, a larger fitting sample, a held-out calibration of the final standardisation and a single Gaussianization layer gave no consistent FID gain for the trained network, although the first two improved an analytic diagnostic and the single layer matched the two-layer map on it; the single layer was worse at every step count in our runs. A learned affine-coupling flow reached good held-out Gaussianity after early stopping but no better analytic inverse, and we dropped it without training a network on it. Better Gaussianity of the codes does not by itself make a transport easier for the network to learn.
- The deterministic coupling, alone, traded accurate sampling for few-step sampling. At the full training budget on our main development pair, the purely deterministic version (our "LRIG") reached FIDs of 98.15, 81.06 and 69.77 at one, two and four Euler steps and 58.74 at 64 steps in our measurement, while the quantile-tree coupling reached about 335 and 106 at one and two steps but 37 at four and 8.77 at 64. The coupling had made the first steps excellent and the converged distribution poor.
- Schedules did not repair the high-step weakness. A cubic displacement schedule looked strong on short runs but, on the full training set, worsened one-step FID and did not help larger step counts; applying it only at inference did not help either, and a coasting profile and a low-rank jitter were rejected as well. We concluded that the problem was the coupling, not the time axis.
- A diagnosis pointed at determinism. Generated images had a pixel standard deviation that stayed below that of the quantile-tree model even with many steps, and the learned 128-dimensional component was under-dispersed. Our reading was that a deterministic code per training image lets the network memorize codes, while the quantile tree keeps randomizing them within cells. A stratified version that randomized codes inside equal-mass quantile cells behaved like independent linear flow matching, and switching from the deterministic to the stratified coupling at the midpoint of training time helped large step counts but cost too much at one and two steps.
- Annealing the correlation was the version that kept both. Rotating the code from towards fresh noise as grows, with , kept the deterministic coupling at the noise end and independent coupling at the data end with no extra state. At the full training budget on our main development pair it reached FIDs of 100.69, 84.37 and 64.83 at one, two and four steps and 48.39 at 64 steps in our measurement, a small loss at one and two steps against a gain from four steps on. A paired check at a shorter budget confirmed the pattern on a second seed.
- The final change was made with little time left. Because the remaining weakness was at two steps, we tested the quartic angle , which keeps the coupling deterministic for longer near noise. On two seeds at 20k updates it beat the quadratic angle at every measured step count, for example 102.93 against 114.73 and 111.21 against 125.06 at two steps, and we submitted it. All of our full-budget evidence was gathered with the quadratic angle; the quartic one was validated only at that shorter budget and on one dataset-network pair.
The figures in this section are our own development measurements, taken against our own reference statistics with our own sample sizes, and they are not comparable in absolute value to the table above; we report them only to show which way each decision went.
Limitations
- It loses to every baseline where it was measured, except once. CAIG is behind all published baselines on the larger and largest sampling budgets of every setting, often by several times, and ahead of only the VP trigonometric path on IN32-UNet at the smaller budget. As submitted, the method does not answer the task's question better than the independent linear path it started from.
- The advantage we developed lives at one and two steps. In our development runs the deterministic coupling was strongest at one and two Euler steps, where the coupling baselines are weak, and from four steps on it was already behind the quantile-tree coupling. A method whose gain is confined to so few steps is fragile to any change in the sampling budget.
- The converged distribution is poor, and annealing only partly fixes it. The learned flow stays far from the data even with an adaptive solver, which our diagnostics traced to the transport map itself and to under-dispersion of the learned low-rank component. Annealing moved the high-step FID in the right direction in development, but nowhere near the baselines.
- The submitted angle was not validated at the full budget. The quartic angle replaced the quadratic one in the final minutes of the run on the evidence of two short runs on one dataset-network pair. Its behaviour after full training, and on the other network and dataset, was never measured before submission.
- The transport is fixed and shallow. Rank, depth, knot count and fitting-sample size are constants chosen from development diagnostics on one dataset, and the map is fitted on 8,192 images. Our attempts to make it richer or better fitted improved Gaussianity of the codes but not the trained model, so we do not know how to improve the transport within this design.
References
- Yaron Lipman, Ricky T. Q. Chen, Heli Ben-Hamu et al. (2022). Flow Matching for Generative Modeling.
- Michael S. Albergo, Eric Vanden-Eijnden (2023). Building Normalizing Flows with Stochastic Interpolants. ICLR.
- Michael S. Albergo, Nicholas M. Boffi, Eric Vanden-Eijnden (2023). Stochastic Interpolants: A Unifying Framework for Flows and Diffusions. JMLR.
- Alexander Tong, Kilian Fatras, Nikolay Malkin et al. (2023). Improving and generalizing flow-based generative models with minibatch optimal transport. TMLR.
- Stephen Zhang, Alireza Mousavi-Hosseini, Michal Klein et al. (2025). On Fitting Flow Models with Large Sinkhorn Couplings.
- Aram Davtyan, Leello Tadesse Dadi, Volkan Cevher et al. (2025). Faster Inference of Flow-Based Generative Models via Improved Data-Noise Coupling. ICLR.
- Sergio Calvo-Ordonez, Matthieu Meunier, Alvaro Cartea et al. (2025). Weighted Conditional Flow Matching.
- Junyi Lin, Mengyu Li, Jingxuan Hu et al. (2026). Beyond Straightness: Non-Crossing Flow Matching via Quantile AlignTree Coupling.
- Lennart Wittke, Vinicius Azevedo (2026). Beyond Random Couplings: Contrastive Noise Alignment in Generative Flows.
- Patrick Esser, Sumith Kulal, Andreas Blattmann et al. (2024). Scaling Rectified Flow Transformers for High-Resolution Image Synthesis. ICML.
- Airin Akter Tania, Md Raihan Khan (2026). Difficulty-Calibrated Interpolation Paths for Conditional Flow Matching.
- Vitalii Bondar (2026). Velocity Scheduled Flow Matching.