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, , 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 , 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 that transports a source distribution into a target distribution by integrating an ODE:
Training is almost embarrassingly direct. Take a source sample and a data sample , draw them as a pair (a coupling ), lay a straight line between them,
and regress the network onto the displacement at a random time :
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, . That average is generally curved, because many pairs with different cross the same point at the same time and pull it in different directions.
The source 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 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):
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 , not on : it is the variance of the displacement among all the pairs that pass through a given point . 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 values supervising the same , 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.

Notice what the equation above leaves out: . 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 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 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 and the conditional second moment are closed-form mixtures, so the marginal field and the intrinsic variance are exact at every point; only the outer expectation over is Monte Carlo, on 200,000 pairs with uniform on . I ran every source design twice, once with a field that sees and once with a field that does not.
The first check is the decomposition itself. Take a deliberately wrong field, a smooth bend, and measure its flow-matching loss directly against the pairs. Then compute the approximation error 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 source has an intrinsic variance of 0.481. Move each condition's source mean onto its own target, keep the spread at (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, . Then and , a deterministic relabelling of both once is known, so
For a Gaussian source and a Gaussian target per condition there is even a closed form. Per dimension, , which integrates over to . In two dimensions that is , and it has no means in it at all. Over the trimmed range my script uses, it predicts 0.480 for , 0.152 for and 0.025 for ; 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 cuts it from 0.481 to 0.152, and a collapsed source at 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 that coarse steps cannot follow. Low intrinsic variance averaged over 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 on its own toys by taking the 64 nearest neighbours of each query point in -space, with no conditioning on , so a crossing between two conditions counts as ambiguity there just as it does in my "field ignores it" rows:

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:

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 . 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 . 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 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.
A source generator maps the condition to the parameters of , and trains jointly with 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 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
and then regularizes only the variance, pulling toward one while leaving the mean free:
The design choice is the thing inside that KL: the reference distribution has mean , not . Standard VAE-style regularization pulls the source toward , 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 with no 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 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.

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,
and the final objective adds the three terms, . Cosine, not MSE, is deliberate: matching 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 , not to a sampled . And the shipped config selects align_loss_type: normalized_l2, which reshapes 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 , 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.
| Source | Regularizer | FID (lower better) | CLIP | FDD (lower better) |
|---|---|---|---|---|
| Fixed | none | 3.036 | 0.3398 | 69.08 |
| Learned | none | NaN (collapse) | ||
| Learned | standard KL | 2.904 | 0.3405 | 65.92 |
| Learned | variance-only | 2.765 | 0.3404 | 60.64 |
| Learned | MSE align + VarReg | 2.942 | 0.3410 | 69.89 |
| Learned | cosine align + VarReg | 2.453 | 0.3420 | 54.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.

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:

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 near the target for , and that mean is only well-defined if the target for 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:

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) | GenEval | DPG-Bench |
|---|---|---|
| Standard FM | 0.77 | 78.31 |
| CSFM | 0.80 | 81.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.