~/satyajit

CSFM: flow matching never had to start from Gaussian noise

mdjsonmcp

2026-10-02 · 26 min · flow-matching · diffusion · image-generation · representation-learning

Why read this

Notabletop 60%

Checks CSFM's variance decomposition on an exact 2-D toy: a mean shift leaves the conditional term unchanged, so the gain lives where the field ignores C.

  • Interactive explanations
  • Original analysis
  • A lasting reference

Image & video generationNeeds datacenter GPUsNo licenceResearch paper

How this was scored
Is it new?
2 of 3: A real new idea, method or capability
Can I trust it?
2 of 3: Measures key facts from files, code or configs
Can I run it?
1 of 3: API-only, gated or restrictive licence
Will I understand it?
3 of 3: Mechanism carried by interactives built from real code or data
Can I act on it?
2 of 3: A concrete recipe, numbers or comparison
Will it last?
2 of 3: A reference for a year or more
Does it affect many?
1 of 3: A specialist community
Only here?
2 of 3: A teardown or measurement few others did

Score 67 of 100, ranked 258 of 773 rated articles. Each question is answered 0–3 by hand, and a 3 is rare. How articles are scored

Flow matching has one degree of freedom almost nobody spends: the source distribution. You pick the velocity field, you pick the target data, and then, out of habit inherited from diffusion, you start every sample from the same fixed Gaussian, N(0,I)\mathcal{N}(0, I), the same cloud of noise for a photo of a dog and a photo of a giraffe. The flow-matching framework does not require this. It places no restriction on the source at all.

CSFM, Condition-dependent Source Flow Matching, from NYU and KAIST at NeurIPS 2026 (Better Source, Better Flow, Kim et al.), takes that unused freedom and learns the source. Instead of one Gaussian for everything, it trains a small network that reads the text condition and produces a condition-dependent source distribution pϕ(X0∣C)p_\phi(X_0 \mid C), jointly with the velocity field, under the same flow-matching loss. The headline is convergence: the paper reports up to 3.01x faster FID convergence and 2.48x faster CLIP-Score convergence on captioned ImageNet-1K, in a structured latent space. Nothing about the backbone changes. The win comes from where the samples start.

When I first wrote this up in October, I explained the mechanism and audited the paper's tables, which is all you can do with a result that needs a TPU pod to reproduce. Every table below is still read off the paper (arXiv v2, 30 May 2026). For this update I did the part that does not need a TPU pod: I wrote a 2-D toy with exact posteriors and measured the variance decomposition the whole argument rests on. It holds. It also says something sharper than the paper's main text about which part of the source does the work, and that changes how I read the results.

What flow matching is, and why the source got fixed

Flow matching learns a continuous-time velocity field vθ(x,t)v_\theta(x, t) that transports a source distribution p0p_0 into a target distribution p1p_1 by integrating an ODE:

ddtXt=vθ(Xt,t),t∈[0,1].\frac{d}{dt}X_t = v_\theta(X_t, t), \quad t \in [0, 1].

Training is almost embarrassingly direct. Take a source sample X0X_0 and a data sample X1X_1, draw them as a pair (a coupling π\pi), lay a straight line between them,

Xt=(1−t) X0+t X1,Δ:=X1−X0,X_t = (1 - t)\,X_0 + t\,X_1, \qquad \Delta := X_1 - X_0,

and regress the network onto the displacement Δ\Delta at a random time tt:

LFM(θ)=Et, π(X0,X1,C)[∥vθ(Xt,t,C)−Δ∥2].\mathcal{L}_{\mathrm{FM}}(\theta) = \mathbb{E}_{t,\,\pi(X_0, X_1, C)}\big[\lVert v_\theta(X_t, t, C) - \Delta \rVert^2\big].

Each training pair follows a straight line, but the field the network ends up learning is the average displacement over every pair passing through a given point, ut(x)=E[Δ∣Xt=x]u_t(x) = \mathbb{E}[\Delta \mid X_t = x]. That average is generally curved, because many pairs with different Δ\Delta cross the same point at the same time and pull it in different directions.

The source p0p_0 is usually a standard Gaussian for two reasons, neither of them principled. It is what diffusion models use, and under the standard coupling it is convenient: draw noise, draw data, pair them independently. But a Gaussian carries no information about the target. For conditional generation that looks like a waste, because the condition CC is right there and could shape the source too, not just modulate the velocity network. The Diffusion Transformer write-up traces the same lever through the move from noise prediction to rectified flow: the interpolant is a modelling choice, and so are its endpoints.

The one term that the source controls

Why would moving the source help at all? The answer is a two-line decomposition of the loss. The flow-matching objective splits exactly into two pieces (the paper derives it in Appendix C):

LFM=E[∥vθ(Xt,t)−ut(Xt)∥2]⏟approximation error  +  E[Var(Δ∣Xt)]⏟intrinsic variance.\mathcal{L}_{\mathrm{FM}} = \underbrace{\mathbb{E}\big[\lVert v_\theta(X_t, t) - u_t(X_t) \rVert^2\big]}_{\text{approximation error}} \;+\; \underbrace{\mathbb{E}\big[\mathrm{Var}(\Delta \mid X_t)\big]}_{\text{intrinsic variance}}.

The first term is the model's fault: how well the network fits the true marginal field. The second is not the model's fault at all. It depends only on the coupling π\pi, not on θ\theta: it is the variance of the displacement Δ\Delta among all the pairs that pass through a given point (x,t)(x, t). Train forever, grow the network without bound, and the intrinsic variance does not move, because no network can predict a single velocity at a point where the true targets disagree.

The geometric reading is the whole paper in one sentence: for straight-line interpolants, the intrinsic variance vanishes exactly when the interpolants do not intersect. Two paths crossing at a point means two different Δ\Delta values supervising the same (x,t)(x, t), conflicting instructions averaged into a curved, hard-to-fit field. Fewer crossings means cleaner supervision, a straighter field and faster convergence. And the coupling, hence the crossings, hence the intrinsic variance, is what the source distribution controls.

Two panels. Left, Standard FM: a fixed source plane on the left, arrows crossing each other as they transport to clustered targets on the right. Right, CSFM: a learned source plane whose clusters are already sorted by caption, with arrows running almost straight across to the matching target clusters.
Standard flow matching transports a single fixed source to every target, so the paths cross; CSFM's learned source is sorted by condition, so the paths run nearly straight to their matching targets (CSFM paper, Figure 1).

Notice what the equation above leaves out: CC. The paper writes the main-text decomposition without the condition, and says so in Appendix C: the same split holds for conditional flow matching with Var(Δ∣Xt,C)\mathrm{Var}(\Delta \mid X_t, C) as the intrinsic term, but the main text uses the unconditioned form "because it highlights how the interpolation path changes the information and ambiguity carried by XtX_t itself". That choice matters more than it looks, and the toy below is where it shows.

Watch the source change the crossings

First, the picture. Six conditions, each with a target cluster on a ring. Switch the source between the fixed Gaussian everyone inherits and a learned, condition-shaped source, and watch how many interpolants cross and how many Euler steps it takes to integrate a sample to the data.

The velocity field in this widget is exact and closed-form for these Gaussians, so every sampler error you see is the integrator's, not a model's. With the fixed source, the interpolants fan out of one blob at the origin and cross hundreds of times, and a sample dropped into the ambiguous middle needs ten or more Euler steps to land. With the learned source relocated next to each target, the paths are roughly half as long and cross several times less often. That widget draws the paths of all six conditions on one canvas, and counts a crossing between a dog path and a giraffe path the same as one between two dog paths. Whether that is fair depends on whether the velocity field can tell them apart.

Checking the decomposition, and what it says about the mean

So I measured it. The script is mine and uses no network: six conditions on a ring of radius 2, targets that are Gaussian (or a pair of Gaussians) per condition with standard deviation 0.16, and sources that are Gaussian per condition. With Gaussian components the posterior E[Δ∣Xt]\mathbb{E}[\Delta \mid X_t] and the conditional second moment are closed-form mixtures, so the marginal field uu and the intrinsic variance are exact at every point; only the outer expectation over (t,X0,X1)(t, X_0, X_1) is Monte Carlo, on 200,000 pairs with tt uniform on [0.02,0.98][0.02, 0.98]. I ran every source design twice, once with a field that sees CC and once with a field that does not.

The first check is the decomposition itself. Take a deliberately wrong field, v=u+v = u + a smooth bend, and measure its flow-matching loss directly against the pairs. Then compute the approximation error E∥v−u∥2\mathbb{E}\lVert v - u\rVert^2 and the intrinsic variance separately and add them. Over sixteen configurations the two sides agree to within 0.5%, which is Monte Carlo noise. For the fixed source with a conditional field, the loss is 0.616 and the sum is 0.135 + 0.481. The identity is exact algebra, so this is a check on my code as much as on the paper; it was worth doing because the next result looked wrong until I saw it hold.

Here is the result. With a field that sees the condition and a single Gaussian mode per condition, the fixed N(0,I)\mathcal{N}(0, I) source has an intrinsic variance of 0.481. Move each condition's source mean onto its own target, keep the spread at σ=1\sigma = 1 (which is where CSFM's variance regularizer holds it), and the intrinsic variance is 0.480. The paths are 44% shorter (mean length 2.28 down to 1.27), and the term the paper is about does not move. With two modes per condition it is the same story: 1.349 against 1.348. The Euler errors do not move either: 0.165 and 0.169 at two steps.

That is not a toy artefact; it is a one-line identity. Shift the source by a constant that depends only on the condition, X0′=X0+μ(C)X_0' = X_0 + \mu(C). Then Xt′=Xt+(1−t)μ(C)X_t' = X_t + (1 - t)\mu(C) and Δ′=Δ−μ(C)\Delta' = \Delta - \mu(C), a deterministic relabelling of both once CC is known, so

Var(Δ′∣Xt′,C)=Var(Δ∣Xt,C).\mathrm{Var}(\Delta' \mid X_t', C) = \mathrm{Var}(\Delta \mid X_t, C).

For a Gaussian source and a Gaussian target per condition there is even a closed form. Per dimension, Var(Δ∣Xt,C)=σ02σ12/((1−t)2σ02+t2σ12)\mathrm{Var}(\Delta \mid X_t, C) = \sigma_0^2\sigma_1^2 / \big((1-t)^2\sigma_0^2 + t^2\sigma_1^2\big), which integrates over t∈[0,1]t \in [0, 1] to π2σ0σ1\tfrac{\pi}{2}\sigma_0\sigma_1. In two dimensions that is πσ0σ1\pi\sigma_0\sigma_1, and it has no means in it at all. Over the trimmed range my script uses, it predicts 0.480 for σ0=1\sigma_0 = 1, 0.152 for σ0=0.3\sigma_0 = 0.3 and 0.025 for σ0=0.05\sigma_0 = 0.05; the Monte Carlo gives 0.481, 0.152 and 0.025.

What does move the conditional term is the source's spread. A learned source at σ=0.3\sigma = 0.3 cuts it from 0.481 to 0.152, and a collapsed source at σ=0.05\sigma = 0.05 cuts it to 0.025. That is exactly the shortcut the paper warns about, and the toy shows why it is a trap. With two modes per condition, the collapsed source has the lowest intrinsic variance of the lot (0.054) and the worst few-step behaviour by far: 0.759 from the reference at two Euler steps and 0.423 at five, against 0.432 and 0.105 for the fixed Gaussian. A near-point source has to split into two modes, and it does it in a sharp bend near t=0t = 0 that coarse steps cannot follow. Low intrinsic variance averaged over tt is not the same thing as a straight flow.

Now switch the field to ignore the condition. The fixed source's intrinsic variance jumps to 3.651, because a dog path and a giraffe path through the same point now are a real conflict. Moving the means onto the targets cuts it to 0.997, a factor of 3.7, and the one-step Euler error falls from 1.999 to 0.441. This is the regime where the paper's picture is literally true, and it is also the quantity the paper measures. Its Appendix A.2 estimates E[Var(Δ∣Xt)]\mathbb{E}[\mathrm{Var}(\Delta \mid X_t)] on its own toys by taking the 64 nearest neighbours of each query point in XtX_t-space, with no conditioning on CC, so a crossing between two conditions counts as ambiguity there just as it does in my "field ignores it" rows:

Two line charts of estimated intrinsic variance against training steps on a log scale from 4 to 1024. Eight Gaussians: the fixed source stays near 11.5 while the learnable source falls from about 14 to under 1. Two Moons: the fixed source stays near 8 while the learnable source falls from about 4 to under 1.
Intrinsic variance estimated by nearest neighbours in X_t, without conditioning on C, during training on the paper's toys: flat for the fixed source, falling for the learned one (CSFM paper, Figure 7).

A fall that deep, to under a tenth of the fixed-source value, is more than relocating the means did in my toy (a factor of 3.7), which suggests the learned spread in the paper's toy shrank as well. The toys differ, and the paper does not report the learned spread, so that is a guess. Appendix A.3 trains a learned source with an unconditional flow model and finds the source becomes "noticeably more discriminative across conditions", because the source is then the only way the condition reaches the velocity target:

Two columns of 2-D toy plots for Eight Gaussians and Two Moons. (A) Conditional flow model: learned source clusters sit close together near the centre with short paths to the targets. (B) Unconditional flow model: learned source clusters are pushed far apart and sorted by condition, each running a bundle of parallel paths to its own target.
A learned source trained with a conditional flow model (A) and with an unconditional one (B). When the field cannot see the condition, the source has to carry it, and spreads out by condition (CSFM paper, Figure 8).

The paper's appendix ablation on ImageNet says the same in numbers. Its Table 4 uses a LightningDiT backbone: a learned source with no condition fed to the velocity network scores FID 3.167; giving the network the condition too, without the alignment loss, scores 3.188, no better; adding alignment scores 3.041. The fixed-Gaussian LightningDiT baseline in Table 1 is 3.721. So on that backbone the learned source alone, with an unconditional field, buys most of the gain, and adding the condition to the field buys nothing until the alignment loss forces the source to stay informative.

My reading: the intrinsic-variance story is right about the term it names, the unconditioned Var(Δ∣Xt)\mathrm{Var}(\Delta \mid X_t). A real text-to-image network sits somewhere between my two extremes. It sees the caption, but early in training it does not use it well, and a source that already sits in the right place hands it the condition for free at t≈0t \approx 0. That fits a result about convergence speed better than one about the final model, and convergence speed is what CSFM claims. The appendix says nearly this: with finite-capacity networks and continuous conditions, "making XtX_t itself condition-compatible can still ease the supervision seen by the flow model". I would put it in the main text.

Learning the source without it collapsing

The idea is one substitution: replace the condition-agnostic Gaussian in the loss with a learnable, condition-dependent source, and expose the induced coupling to the objective rather than fixing it.

πϕ(X0,X1,C)=pϕ(X0∣C) p1(X1,C),X0∼pϕ(X0∣C).\pi_\phi(X_0, X_1, C) = p_\phi(X_0 \mid C)\, p_1(X_1, C), \qquad X_0 \sim p_\phi(X_0 \mid C).

A source generator gϕg_\phi maps the condition to the parameters of pϕp_\phi, and ϕ\phi trains jointly with θ\theta under the same flow-matching loss. It collapses in two different ways if you are not careful, and CSFM's actual contribution is what stops each one.

Collapse one: the source shrinks to a point. The fastest way to reduce intrinsic variance is to drive the source variance σϕ2(C)\sigma_\phi^2(C) to zero, as the toy above shows. But an overly concentrated source has almost no support, and a flow model cannot recover a full target distribution from a near-point source; in the paper's toy it fails outright, and in Table 1 the unregularized run goes to NaN. CSFM parameterizes the source as a conditional Gaussian

pϕ(X0∣C)=N(μϕ(C), diag(σϕ2(C)))p_\phi(X_0 \mid C) = \mathcal{N}\big(\mu_\phi(C),\, \mathrm{diag}(\sigma_\phi^2(C))\big)

and then regularizes only the variance, pulling σϕ2(C)\sigma_\phi^2(C) toward one while leaving the mean μϕ(C)\mu_\phi(C) free:

LVarReg(ϕ)=EC[DKL(N(μϕ(C),diag(σϕ2(C))) ∥ N(μϕ(C),I))].\mathcal{L}_{\mathrm{VarReg}}(\phi) = \mathbb{E}_C\Big[D_{\mathrm{KL}}\big(\mathcal{N}(\mu_\phi(C), \mathrm{diag}(\sigma_\phi^2(C))) \,\Vert\, \mathcal{N}(\mu_\phi(C), I)\big)\Big].

The design choice is the thing inside that KL: the reference distribution has mean μϕ(C)\mu_\phi(C), not 00. Standard VAE-style regularization pulls the source toward N(0,I)\mathcal{N}(0, I), which anchors the mean at the origin too, and the mean is exactly the mobility the source needs. The released code matches the equation: var_only_kld_loss in src/stage2/text_encoders/regularization_loss.py computes −12 mean(1+log⁡σ2−σ2)-\tfrac12\,\mathrm{mean}(1 + \log\sigma^2 - \sigma^2) with no μ\mu term, and configs/csfm.yaml sets kld_loss_type: var_kld, kld_target_std: 1.0 and a weight of 5. Read with the toy in mind, this regularizer is doing something specific. It pins σ\sigma near one, so it pins the conditional intrinsic variance near the fixed-Gaussian value, and leaves the mean as the only thing that can move.

A grid of transport-trajectory plots for two toy datasets (Eight Gaussians, Two Moons) under five source designs: fixed standard Gaussian with entangled paths; deterministic mapping that fails to cover the target; conditional Gaussian that collapses; conditional Gaussian with standard KL whose paths are still entangled; and conditional Gaussian with variance-only regularization, whose paths are disentangled and target-aligned.
Source designs on two toy datasets. Fixed Gaussian (A) entangles; a deterministic source (B) and a collapsed conditional Gaussian (C) lose the target; standard KL (D) prevents collapse but pins the mean and stays entangled; variance-only regularization (E) frees the mean and disentangles the paths (CSFM paper, Figure 2).

Collapse two: the source gets no gradient. Modern text-to-image backbones (MM-DiT, the Lumina-style UnifiedNextDiT, the kind of unified-sequence conditioning that Qwen-Image-2.1 uses) integrate the condition so tightly into the velocity network that it can explain most of the conditional structure by itself. That is the toy's conditional regime, where the mean of the source stops mattering to the loss, so almost no learning signal flows back to the source generator and the source barely trains. CSFM adds an explicit, source-specific supervision: a directional alignment loss that asks the source to point the same way as its target, without matching magnitudes or shrinking the spread,

Lalign(ϕ)=E[ 1−X0⋅X1∥X0∥ ∥X1∥],\mathcal{L}_{\mathrm{align}}(\phi) = \mathbb{E}\Big[\,1 - \frac{X_0 \cdot X_1}{\lVert X_0 \rVert\,\lVert X_1 \rVert}\Big],

and the final objective adds the three terms, Ltotal=LFM+λVarRegLVarReg+λalignLalign\mathcal{L}_{\mathrm{total}} = \mathcal{L}_{\mathrm{FM}} + \lambda_{\mathrm{VarReg}}\mathcal{L}_{\mathrm{VarReg}} + \lambda_{\mathrm{align}}\mathcal{L}_{\mathrm{align}}. Cosine, not MSE, is deliberate: matching ℓ2\ell_2 distance over-constrains the source and costs performance, the same failure mode as pinning the mean.

The released training script implements this a little differently from how the equation reads, and you would meet the difference if you ported it. In src/train_t2i.py the alignment is applied to the mean μϕ(C)\mu_\phi(C), not to a sampled X0X_0. And the shipped config selects align_loss_type: normalized_l2, which reshapes μ\mu to the latent's B x C x H x W layout, L2-normalizes along the last axis and takes the MSE. For unit vectors the MSE is a rescaled 1−cos⁡1 - \cos, so it is a cosine loss, but over rows of the latent's width rather than over each token's channel vector. A per-token token_cosine_loss exists in regularization_loss.py, but only an older loss path in src/stage2/transport/transport.py calls it, and train_t2i.py does not use that path. I have not trained either variant, so I cannot say whether it matters; it is a discrepancy between the paper's formula and the code you would run.

Checking the ablation

The component table is where the two regularizers earn their place, on captioned ImageNet-1K at 256x256, RAE latents, 100K iterations, 50-step Euler, no guidance. These are the paper's numbers from its Table 1; I am reading them, not re-running the training.

SourceRegularizerFID (lower better)CLIPFDD (lower better)
Fixed N(0,I)\mathcal{N}(0, I)none3.0360.339869.08
Learned pϕ(X0∣C)p_\phi(X_0 \mid C)noneNaN (collapse)
Learnedstandard KL2.9040.340565.92
Learnedvariance-only2.7650.340460.64
LearnedMSE align + VarReg2.9420.341069.89
Learnedcosine align + VarReg2.4530.342054.00

Everything the method claims is visible here. With no regularizer, the source collapses and the run goes to NaN. Standard KL recovers and beats the fixed baseline, but only a little (3.036 to 2.904), because it pins the mean. Variance-only regularization does better (2.765) by freeing the mean. Then cosine alignment takes it to 2.453, and MSE alignment hurts (2.942, worse than VarReg alone), so the direction, not the distance, is what the source needs.

By my arithmetic on those numbers, FID drops 19.2% from the fixed baseline to full CSFM, and variance regularization delivers a touch under half of that drop: (3.036 − 2.765) is about 47% of (3.036 − 2.453). The alignment loss is the other half, which is what the toy predicts for a backbone that sees the caption: without alignment, nothing makes the mean worth moving. The paper also reports a parameter-matched fixed-Gaussian baseline (FID 2.925) built to absorb the extra parameters the source generator adds, and CSFM still beats it by 16.1%, so the gain is not simply more parameters.

The same table also measures how much the gain depends on the backbone. With alignment and VarReg, CSFM takes LightningDiT from 3.721 to 3.041 (18%), MMDiT from 3.412 to 3.051 (11%) and UnifiedNextDiT from 3.036 to 2.453 (19%). Table 2 compares against other ways of making the source or the coupling condition-aware, all reproduced on the same RAE latents: CrossFlow 2.957, C2OT 3.365, CPD 3.219, CAR-Flow 2.929, CSFM 2.453. And Table 8 checks the obvious worry, that a source placed by the caption narrows what a caption can produce. Per-prompt diversity ("MModality") is 9.62 for standard flow matching, 9.24 for CSFM and 8.23 for standard flow matching with classifier-free guidance: CSFM gives up about 4% of the diversity for its FID gain, where guidance gives up 14% for a smaller one.

Checking the few-step robustness

Straighter flows should survive coarse integration, so the second claim is about few-step sampling. If the field is straight, dropping from 50 Euler steps to a handful barely hurts; if it is bent, it falls apart.

Two line charts of FID against sampling steps. In both, CSFM (purple) sits below FM (grey) and the gap widens as steps drop toward 2. Left panel is plain Flow Matching; right panel is after 1-Reflow, where CSFM stays nearly flat from 50 down to 2 steps while FM rises sharply.
FID versus sampling steps for standard FM and CSFM, plain (left) and after one round of reflow (right). CSFM degrades far more gracefully toward 2 steps (CSFM paper, Figure 4).

The paper reports two measurements from that figure. Straight out of training, cutting 50 steps to 3 costs 8.75 FID for CSFM against 12.47 for the fixed-source baseline. After one round of reflow (fine-tuning the flow on its own sampled pairs for 20K steps, with the source generator frozen), going from 50 steps to 2 costs CSFM 3.51 FID while standard FM loses 11.75, a degradation about 70% smaller.

That claim rests on one figure: one training run per curve, no seeds and no error bars, on one dataset at 100K iterations. The only other few-step evidence in the paper is qualitative, its Figure 19, which crosses training steps with function evaluations for one prompt:

Two 3 by 3 grids of generated dog images, rows at 20k, 40k and 80k training steps, columns at 2, 4 and 16 function evaluations. Standard FM on the left: blurry brown blobs at 2 NFE, distorted dogs at 4 NFE, sharp dogs at 16. CSFM on the right: blurry blobs at 2 NFE as well, but clean dog portraits with a green background already at 4 NFE from 20k steps on.
Standard FM and CSFM across training steps and sampling steps (NFE). Both fail at 2 steps without reflow; CSFM is clean at 4 steps from 20k training steps on, where standard FM is still distorted (CSFM paper, Figure 19).

It is one prompt, and it agrees with the curve: at 2 steps without reflow both models produce a blur, and the gap opens at 4. My toy adds a caution about what "straighter" means. In the regime where the source mean matters (a field that ignores the condition), moving the mean cut the one-step error from 1.999 to 0.441 and the two-step error from 0.734 to 0.168, which is the paper's story. Where the field sees the condition, moving the mean changed the few-step error by nothing, and collapsing the source made it far worse for a two-mode target. Few-step robustness is real in the toy, but it comes from the field not having to do the condition's work, not from the intrinsic-variance number as such. This is the complement of the point in the few-step Qwen-Image work: curved paths are what force small Euler steps, and where the curvature comes from decides which fix works.

When it works: the target has to be structured

The paper is candid about a boundary condition. Learning the source is not free; its benefit depends on the geometry of the target latent space, and CSFM shows it both ways.

The default target is an RAE, a representation autoencoder whose latent is a frozen self-supervised feature space (DINOv2, or SigLIP2 at scale) with a trained decoder, so the latent is semantically organized: images with the same caption land in a compact cluster. An SD-VAE latent is optimized for reconstruction, and the same images are smeared across the space. The difference matters because a condition-dependent source works by placing a mean μϕ(C)\mu_\phi(C) near the target for CC, and that mean is only well-defined if the target for CC is compact. In the RAE space it is, and CSFM's t-SNE shows the learned source inheriting the target's class structure. In an entangled SD-VAE space the target for a caption is spread across distant modes, the source mean has nowhere good to go, and the gain mostly evaporates:

Four line charts of FID and CLIP Score against training steps from 20k to 200k. Top row, SD-VAE: CSFM and FM curves nearly overlap. Bottom row, RAE (DINOv2): CSFM's FID curve sits well below FM's, with an arrow marking 3.01x fewer steps to reach FM's final FID, and its CLIP curve above FM's, marked 2.48x.
Training curves in SD-VAE latents (top) and RAE latents (bottom). The 3.01x and 2.48x headline numbers are read where CSFM's curve reaches standard FM's 200k-step value (CSFM paper, Figure 5).

Look at how the headline is constructed. The 3.01x is a ratio of training steps: the step at which CSFM first reaches the FID that standard FM has at 200K. It is read at one crossing point on one pair of curves, in the favourable latent space. On SD-VAE the curves sit nearly on top of each other until late in training. The representation-autoencoder idea itself, running the generative flow in a feature space that already carries meaning, is the same bet TencentARC's GAE makes for geometry, and the same tension Sana's deep-compression autoencoder lives with: the autoencoder decides how much structure the flow has to invent.

Checking it at scale

The last table asks whether it survives a real text-to-image model. CSFM scales the default recipe to a 1.3B-parameter UnifiedNextDiT, swaps in a Qwen3-0.6B text encoder for longer prompts, pretrains on roughly 36M BLIP3o samples, and evaluates on GenEval and DPG-Bench.

Model (1.3B)GenEvalDPG-Bench
Standard FM0.7778.31
CSFM0.8081.11

GenEval goes 0.77 to 0.80 and DPG-Bench 78.31 to 81.11, consistent with the small-scale result. The paper says these benchmarks are saturating at this scale, so the gap understates what the qualitative samples show. It is a real but modest bump, which is the right thing to report rather than a hero number.

What it costs, and the licence

The paper states its costs. CSFM adds a source generator (extra parameters, though the parameter-matched baseline shows the win is not just capacity) and two loss terms with two more hyperparameters to balance. It uses AutoGuidance rather than classifier-free guidance, because a learned source has no natural unconditional branch. It is validated only on text-to-image; other modalities and frontier scale are future work. All of it was trained on TPU v5p with Torch/XLA at about a day per model. And the gain is representation-dependent, so you have to profile it on your autoencoder before you adopt it.

The paper does not mention the licence, and the repository still settles it. I rechecked github.com/junwankimm/CSFM on 13 November 2026: no LICENSE file at the root, and the GitHub API reports no licence. Under default copyright that means all rights reserved; reading it is fine, building on it is not. The files themselves make it murkier rather than clearer. src/train_t2i.py and src/test_t2i.py open with "This source code is licensed under the license found in the LICENSE file in the root directory of this source tree", a header inherited from the MIT-licensed RAE code they were built on, pointing at a file that does not exist. src/stage1/decoders/decoder.py carries Hugging Face's Apache-2.0 header. The README credits RAE (MIT) and Lumina-Image 2.0 (Apache-2.0), and says the toy experiments ran on C2OT (MIT) and are not in the repository. The caption dataset, junwann/CSFM-ImageNet1K-Caption on Hugging Face, is tagged MIT. The dataset is reusable today; the new code is not, until the authors add a licence.

The lasting idea is smaller than the benchmark table and more useful: in conditional flow matching the source is a first-class design choice, not a constant. My toy sharpens which part of it matters. A source's spread sets the conditional intrinsic variance and is the part you must not let collapse; a source's position is free to move and does nothing to that term, but it carries the condition into the flow at the very start, which helps most exactly when the velocity network is not yet using the condition well. CSFM's recipe of regularizing the variance and aligning the direction is built around that split, even if the main text explains it with the unconditioned term. I would adopt it for a new text-to-image model in an RAE-style latent, and skip it in a reconstruction-first VAE latent until someone shows the gain there.

What I ran and what I read

Ran, on the CPU of a Mac: my own 2-D script with exact Gaussian-mixture posteriors, sixteen configurations (four sources, one or two modes per condition, a field that sees or ignores the condition), 200,000 Monte Carlo pairs each for the decomposition and 4,000 samples for the Euler errors. No CSFM code was executed and no image model was trained. Read: the paper (v2), its appendices on the toys, the decomposition, training details, comparisons and limitations, the released training script, configs and loss functions, and the repository's licence state through the GitHub API.

Cite this article

For attribution, please use the following reference or BibTeX:

Satyajit Ghana, "CSFM: flow matching never had to start from Gaussian noise", ai.satyajit.si, October 2026.

bibtex
@misc{ghana2026csfmflowmatching,
  author = {Satyajit Ghana},
  title  = {CSFM: flow matching never had to start from Gaussian noise},
  url    = {https://ai.satyajit.si/articles/csfm-flow-matching},
  year   = {2026}
}
share