Introduction
A flow map carries a sample at time to time along the probability-flow ODE of a generative model, with the Gaussian base and the data. In this task it is parameterised by a fixed network as
so that is the average velocity over and its diagonal is the instantaneous velocity . One network evaluation can jump from noise straight to data, and composing jumps gives multi-step sampling. The research question is how such a map should be trained from scratch, under a fixed network, data pipeline and training budget, so that the same checkpoint samples well at one, two, four and eight steps.
The difficulty is that the object being learned is defined by an ODE whose velocity field is itself unknown. The only quantity a training pair gives us directly is the conditional velocity of the linear interpolant ; the marginal velocity that defines the flow is its conditional mean, . Every from-scratch method has to turn this one noisy quantity into a target for a map over finite time gaps. The field's answers differ in how. Self-distillation methods train the diagonal by flow matching and make the off-diagonal consistent with the network's own diagonal, in Lagrangian and progressive forms [1]. Inductive moment matching trains the few-step model through moment matching [2], and solution flow models learn the ODE's solution map directly [3]. MeanFlow [4] differentiates the network instead: it writes the average velocity through an identity that holds exactly in expectation and evaluates the identity with a Jacobian-vector product (JVP). Several follow-ups analyse and repair its training [5, 6, 7], study variance reduction in learning mean flows [8], or analyse the stability and convergence of flow-map training in general [9].
Our starting observation is about MeanFlow's JVP. Its tangent is , a single-sample estimate of , and a Jacobian-vector product multiplies whatever noise the tangent carries. Because the JVP is linear in its tangent, the noise can be removed in expectation by replacing with its conditional mean. The question is whether the network's own estimate of that mean is good enough to make this pay at a small, fixed training budget. We found that it is, and that it is better than estimating the mean with a separate head.
Method
The identity and where the noise enters
Differentiating in along a trajectory of the marginal flow gives , that is
where is the material derivative along the flow. MeanFlow replaces both occurrences of by and regresses onto the stop-gradient target , evaluated with one JVP whose tangent is in . The base occurrence is harmless: it enters the squared error as a plain regression target, and regression onto a noisy target with the right conditional mean is the ordinary flow-matching situation. The occurrence inside the JVP is different, because the Jacobian multiplies the noise in before it reaches the target.
A marginal tangent
We keep as the base target and change only the tangent. Writing for the network's own diagonal velocity under a stop-gradient, we define
and regress onto :
with the norm summed over all coordinates of the sample. Under the stop-gradient this has exactly the gradient of the MeanFlow-style loss , so the "velocity-loss" form is a matter of bookkeeping, not a different objective. Because the target enters the gradient linearly, and the JVP is linear in its tangent, if the conditional expectation of the gradient given is the same whether the tangent is or , while the variance contributed by the tangent disappears. That is a Rao-Blackwellization of the tangent, and it is the sense in which we use the word. In practice is only an estimate, so the claim holds to the extent that the diagonal has been learned.
The diagonal is learned by the same loss. When the correction term vanishes and , which is plain flow matching; three quarters of every batch is drawn on the diagonal, so the estimate that feeds the tangent is anchored to data by the same objective that uses it. No auxiliary velocity head is involved.
The comment the submission carries states the design in our own words at the time.
# ---------------------------------------------------------------------------
# Rao-Blackwellized MeanFlow: a marginal-velocity JVP tangent for the flow-map
# training objective.
#
# The MeanFlow identity phi_{s,t}(z) = v_c + (t-s) D_s phi_{s,t}(z) (D_s the
# material derivative along the probability-flow ODE, v_c = x1-x0 the conditional
# velocity) is exact in expectation and gives a simulation-free target for the
# average velocity phi. The original objective uses v_c as the JVP tangent. But
# v_c is a high-variance estimate of the marginal velocity b_s(z)=E[v_c|I_s=z],
# and the Jacobian-vector product amplifies that variance; the conditional-
# marginal mismatch also biases finite-batch updates toward degenerate solutions.
#
# Because the JVP is LINEAR in its tangent, substituting v_c by its conditional
# mean b_s is a Rao-Blackwellization: identical expectation, strictly lower
# variance. We estimate b_s by the network's own diagonal phi_{s,s}(z) (the
# boundary velocity, stop-gradient), which is anchored to data by the r=t flow-
# matching samples. The base target stays the fixed conditional velocity v_c
# (v-loss form V = phi - (t-s) sg(D_s phi) ~= v_c), a stable standard regression
# whose boundary condition phi_{t,t}=b_t prevents collapse. No auxiliary head is
# needed: the boundary tangent is cheaper and converges faster from scratch than
# a dedicated v-head at a fixed sample budget.
# ---------------------------------------------------------------------------The per-sample term implements the equations above directly. The diagonal velocity is computed with
calc_b and stopped; a single jax.jvp with tangent in returns both
and ; and the regression is onto the conditional velocity.
def terms(params, x0, x1, label, t_mf, r_mf, rng):
s = 1.0 - t_mf
t = 1.0 - r_mf
z = interp.calc_It(s, x0, x1)
v = interp.calc_It_dot(s, x0, x1)
v_theta = jax.lax.stop_gradient(
net.apply(params, s, z, label, train=True, method="calc_b", rngs=rng)
)
def phi_fn(z_, s_):
return net.apply(params, s_, t, z_, label, train=True, method="calc_phi", rngs=rng)
phi, dphi = jax.jvp(phi_fn, (z, s), (v_theta, jnp.ones_like(s)))
V = phi - (t - s) * jax.lax.stop_gradient(dphi)
return jnp.sum((V - v) ** 2)
terms_fn = jax.checkpoint(terms) if remat else termsTime pairs and weighting
We keep MeanFlow's sampling of time pairs and its adaptive weighting, which our ablations below
did not improve on without a trade-off. Two times are drawn from a logit-normal distribution,
with and ; the larger and smaller
become and in MeanFlow's time convention, and we map them to ours by
, , so that and pairs concentrate near the
data end. For the first DATA_PROPORTION = 0.75 of the batch we set ,
which puts those samples on the diagonal. Each per-sample squared error is then divided by a
stop-gradient power of itself,
which shrinks the influence of samples with large error.
def loss(params, teacher_params, x0, x1, label, key, step):
del teacher_params, step
bs = x0.shape[0]
k1, k2, k_drop = jax.random.split(key, 3)
lgn = lambda k: jax.nn.sigmoid(jax.random.normal(k, (bs,)) * P_STD + P_MEAN)
a, b = lgn(k1), lgn(k2)
t_mf, r_mf = jnp.maximum(a, b), jnp.minimum(a, b)
r_mf = jnp.where(jnp.arange(bs) < int(bs * DATA_PROPORTION), t_mf, r_mf)
rng = {"dropout": jax.random.split(k_drop, bs)}
sq = jax.vmap(terms_fn, in_axes=(None, 0, 0, None if label is None else 0, 0, 0, 0))(
params, x0, x1, label, t_mf, r_mf, rng
)
adp = jax.lax.stop_gradient(sq + NORM_EPS) ** NORM_P
return jnp.mean(sq / adp)The remaining choices
The harness exposes a menu of training constants, and we changed several from the starter. The base
noise has standard deviation NOISE_STD = 1.0 (the starter used 0.5). The evaluated weight average
has decay EMA_DECAY = 0.999; in our development runs the default, slower average was still
dominated by early iterates and hid the fact that the model was learning. The optimizer is Adam with
a constant learning rate after 2000 warmup steps and no gradient clipping, and the learning rate,
and batch size are set per network backbone; for one backbone the per-sample loss is
wrapped in jax.checkpoint so that the JVP fits in memory. The sampler is the harness's uniform
composition rule with t_eps = 0.0, and the parameterisation is the starter's "euler". None of
these choices depends on a setting's identity beyond the backbone name the harness provides.
Results
| Method | ① | ② | ③ | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| FID, 1 step ↓ | FID, 2 steps ↓ | FID, 4 steps ↓ | FID, 8 steps ↓ | FID, 1 step ↓ | FID, 2 steps ↓ | FID, 4 steps ↓ | FID, 8 steps ↓ | FID, 1 step ↓ | FID, 2 steps ↓ | FID, 4 steps ↓ | FID, 8 steps ↓ | |
| Qwen4-Max | 19.04 | 14.91 | 14.22 | 13.87 | 10.09 | 6.557 | 6.366 | 5.945 | 14.52 | 11.60 | 11.15 | 10.63 |
| LSD | 43.43 | 30.93 | 25.76 | 24.14 | 30.40 | 18.97 | 14.34 | 12.73 | 40.63 | 28.49 | 23.64 | 21.84 |
| PSD, uniform | 42.77 | 31.37 | 25.24 | 22.82 | 30.09 | 20.07 | 14.68 | 12.30 | 31.45 | 22.66 | 18.22 | 15.25 |
| PSD, midpoint | 44.16 | 31.78 | 25.66 | 23.11 | 31.37 | 20.89 | 15.07 | 12.26 | 35.81 | 25.54 | 19.38 | 15.68 |
| MeanFlow | 19.97 | 15.63 | 13.88 | 13.56 | 9.186 | 5.915 | 5.394 | 5.453 | 26.56 | 18.59 | 16.65 | 15.59 |
| IMM | 26.91 | 16.26 | 14.13 | 13.20 | 20.32 | 9.401 | 7.819 | 6.708 | 22.01 | 14.37 | 13.52 | 13.04 |
| SoFlow | 20.07 | 15.71 | 16.60 | 17.17 | 10.63 | 6.409 | 6.480 | 6.144 | 15.00 | 11.90 | 12.73 | 13.88 |
| α-Flow | 23.53 | 14.16 | 13.37 | 13.58 | 11.29 | 4.944 | 4.405 | 4.694 | 21.08 | 16.38 | 14.22 | 13.33 |
| Improved MeanFlow | 18.42 | 15.03 | 15.48 | 16.54 | 8.053 | 5.995 | 5.659 | 5.678 | 19.15 | 16.62 | 16.05 | 15.15 |
| α-Flow, cosine LR, EMA 0.99 | 20.45 | 12.34 | 10.96 | 10.68 | 16.89 | 8.736 | 6.764 | 5.626 | 32.40 | 17.53 | 16.22 | 15.64 |
- ① ImageNet 32x32, DDPM++ U-Net 55.9M, FID at 1/2/4/8 steps
- ② CIFAR-10, DDPM++ U-Net 55.9M, FID at 1/2/4/8 steps
- ③ CIFAR-10, DiT-B/2 transformer, FID at 1/2/4/8 steps
C10-DiT. Our objective is the best of all methods at every step count: a FID of 14.52 at one step against 15.00 for the strongest baseline, SoFlow [3]; 11.60 at two steps against 11.90; 11.15 at four steps against 12.73; and 10.63 at eight steps against 13.04 (IMM [2]). The comparison we designed for is with MeanFlow, the method closest to ours, whose target uses as the JVP tangent; it reaches 26.56 at one step and 15.59 at eight on this setting. It is also well ahead of improved MeanFlow, 19.15 at one step.
IN32-UNet. Here the picture is mixed. At one step we reach 19.04, second to improved MeanFlow (18.42) and ahead of MeanFlow (19.97). At two steps we are second again, 14.91 against 12.34 for alpha-Flow recipe. At four and eight steps we are fourth, and MeanFlow is ahead of us (13.88 and 13.56 against our 14.22 and 13.87).
C10-UNet. Here our objective does not deliver what it was designed for. MeanFlow is ahead of us at every step count, for example 9.186 against 10.09 at one step and 5.453 against 5.945 at eight. We are third at one step, behind improved MeanFlow (8.053) and MeanFlow, and fourth or fifth at the other step counts, where alpha-Flow [6] leads (four steps: 4.405 against our 6.366).
Our development runs had ended ahead of MeanFlow at every step count; the task shows a large gain on one setting, a split result on another and a loss on the third. We do not have a measurement that explains the split. One reading consistent with our own ablations is that the quality of the diagonal estimate governs how much the marginal tangent helps, and that this differs across settings; we did not test it.
How we got here
Before writing our first candidate objective we read the MeanFlow, improved MeanFlow, -Flow, SoFlow, self-distillation and inductive moment matching papers and the corresponding baselines. Two further works not in our reference list, read after that first candidate was written, supported the diagnosis: a flow-map analysis that revisits self-distillation (arXiv 2601.22679) and a method that learns flow maps through non-gradient vector fields (arXiv 2607.26398). The common thread we took from this reading was the conditional–marginal mismatch: MeanFlow's target uses where the identity calls for , the JVP amplifies the difference, and the analyses relate it to unstable or degenerate training.
- Our first candidate replaced everywhere, and it was unstable. The first design substituted for both the base and the tangent, which removes all conditional-velocity noise from the off-diagonal target. In our development runs its training loss rose rather than fell, and at its first evaluation the FID got worse as the number of sampling steps grew (277 at one step to 316 at eight, against 64 to 44 for our MeanFlow run at the same point). We concluded that a target built entirely from the network's own outputs is a moving target, and that the fixed data target is what keeps the regression stable. The submitted objective keeps it.
- The variant we kept had been a reference point, and it is already in the literature. Our own notes describe the tangent-only version, with the diagonal as the tangent, as the boundary-condition variant in the improved MeanFlow paper's ablations [7]; we had set it up as a reference for the variance hypothesis. Its first version carried a sign error in the correction term, which we found and fixed. Once fixed, it beat our MeanFlow run at every step count and every evaluation of the short development run, ending at 24.1, 17.7, 16.2 and 15.5 at one, two, four and eight steps against 26.7, 19.4, 17.2 and 17.7.
- An auxiliary velocity head was worse and slower. Our reimplementation of the auxiliary-head estimate of reached a one-step FID of 69.6 at the first evaluation against 56.8 for the diagonal tangent, at about 992 ms per step against about 455 ms in our harness. At a fixed budget the head's extra capacity did not pay for its slower convergence, which is why the submission has no head.
- Curricula that delay the marginal tangent hurt. Annealing the tangent from to over training gave a final one-step FID of 26.1, about MeanFlow's level, against 24.1 with the marginal tangent throughout; a curriculum on the size of the correction term was far worse early on. The marginal tangent helps from the start, so delaying it only costs.
- Emphasising large time gaps poisoned training. Since one-step sampling needs the full noise-to-data jump, we tried sampling more large-gap pairs, both fixed and ramped in late. Every version was worse by the second evaluation: the fixed one reached 97.4 at one step at the first evaluation and 71 at the second, against 56.8 and 30.5, and the ramped ones reached 43.2 and 36.7 at the second evaluation. MeanFlow's concentration of pairs near the data end behaves like a beneficial curriculum, and we kept it.
- A semigroup target for large gaps diverged, with a one-step FID of 455 at the first evaluation.
- Several refinements did not help. A learned log-variance weighting was worse at the second evaluation (42.9 against 30.5); blending the base target toward gave no gain; a loss power ended at 25.6 against 24.1; a diagonal fraction of 0.5 and a logit-normal mean of were worse at the first evaluation (63 and 60.3 against 56.8); a MeanFlow run at a learning rate of 1.5e-3 diverged, so we kept 6e-4; computing without dropout helped at the first evaluation and the gain faded.
- The last decision was a trade-off between one step and many. A diagonal fraction of 0.9 ended the short development run at 26.6, 16.9, 13.7 and 13.6, better than 0.75 at two, four and eight steps but worse at one step. We kept 0.75 because it was best at one step. In hindsight this choice may bear on the task results, where our weakest step counts on IN32-UNet and C10-UNet are multi-step ones.
We checked that the gain persisted beyond the short runs. In a run twice as long on our main development configuration, the objective ended at 15.0, 10.2, 9.2 and 8.9 against 16.1, 10.7, 10.1 and 10.1 for our MeanFlow run. On a second backbone the two were essentially tied at the midpoint of a long run (81.1 against 81.9 at one step) and our objective was ahead at the end (47.4, 31.5, 31.1 and 30.4 against 48.3, 32.6, 33.2 and 32.8). On a third backbone we confirmed only that training ran and converged. All of these figures are our development measurements, from our own harness and our own reimplementation of MeanFlow, not the task's evaluation.
Limitations
- The objective is not new. The submitted loss coincides with a variant described in the improved MeanFlow work [7]. What we add is its reading as a Rao-Blackwellization of the JVP tangent and development evidence that, at a small fixed budget, the network's diagonal is a better tangent than an auxiliary head. The ablations behind the remaining choices are ours, but most of them confirm MeanFlow's defaults rather than change them.
- It loses to MeanFlow on C10-UNet at every step count, and to MeanFlow at four and eight steps on IN32-UNet. The gain our development runs ended with did not transfer, and our development runs give no explanation of why.
- The variance argument is approximate. The expectation is preserved only if equals the marginal velocity; early in training, and wherever the diagonal is poorly learned, the marginal tangent trades variance for bias. The adaptive weighting is also nonlinear in the target, so even with an exact the expected weighted gradient is not exactly MeanFlow's. We never measured the variance reduction directly; a diagnostic for it was written, but its only run in the trace ran out of memory.
- The tangent is not the only difference from the baselines. We also chose the base-noise scale, the weight-average decay and the per-backbone optimizer, batch size and warmup, and the baselines carry their own training constants. The task results therefore compare whole configurations, and part of any gap, including the large one on C10-DiT, may come from those constants rather than from the marginal tangent. Our development comparisons, against our own MeanFlow runs in the same harness, were the controlled ones.
- It costs more per step than MeanFlow. The extra diagonal evaluation made a step about a fifth slower than MeanFlow in our harness (about 455 ms against about 371 ms), though about half the cost of the auxiliary-head variant.
- Development was narrow. Almost all of our ablations were single short runs on one configuration, without repeats, and the differences we acted on, such as the diagonal fraction and the dropout-free tangent, are of the size that run-to-run noise can produce.
References
- Nicholas M. Boffi, Michael S. Albergo, Eric Vanden-Eijnden (2025). How to build a consistency model: Learning flow maps via self-distillation. NeurIPS.
- Linqi Zhou, Stefano Ermon, Jiaming Song (2025). Inductive Moment Matching. ICML.
- Tianze Luo, Haotian Yuan, Zhuang Liu (2026). SoFlow: Solution Flow Models for One-Step Generative Modeling. ICLR.
- Zhengyang Geng, Mingyang Deng, Xingjian Bai et al. (2025). Mean Flows for One-step Generative Modeling. NeurIPS.
- Jin-Young Kim, Hyojun Go, Lea Bogensperger et al. (2025). Understanding, Accelerating, and Improving MeanFlow Training.
- Huijie Zhang, Aliaksandr Siarohin, Willi Menapace et al. (2026). AlphaFlow: Understanding and Improving MeanFlow Models. ICLR.
- Zhengyang Geng, Yiyang Lu, Zongze Wu et al. (2025). Improved Mean Flows: On the Challenges of Fastforward Generative Models.
- Juanwu Lu, Ziran Wang (2026). On Variance Reduction in Learning Mean Flows.
- Ishan Nath, Tom Stanic, Avishek Joey Bose et al. (2026). On the Stability and Convergence of Flow Map Training.