A Self-Supervised Free Lunch for Flow Map Training
- Paper
- Code
- BibTeX
TL;DR: Flow maps can learn good internal features on their own, without the pretrained encoder that REPA borrows. One added loss, with no extra forward pass and about 2% extra time per training step, reaches the baseline's final one-step FID on ImageNet 256 2.4 to 3.1 times sooner on Shortcut and 2.1 times sooner on LSD.
Generative models train faster when their internal features are good. Representation alignment (REPA) uses this directly: it trains the early features of a diffusion model to match those of DINOv2, a pretrained self-supervised image encoder, and reports training more than 17 times faster. Related work points the same way, from representation autoencoders, which generate in the feature space of such an encoder, to representation generation, which first samples encoder features and then the image. All of them borrow features from an external encoder. That encoder needs its own pretraining and an extra pass over the training data, and the generator does not learn the features itself.
Since I was mostly working on few-step models (flow maps, which generate an image in one or a few jumps along the path from noise to image), I noticed that their training is, in principle, a form of self-distillation: the model, or its EMA copy (a slowly updated average of its weights), teaches itself. Its own evaluation at a cleaner view of the image builds the target for its jump from a noisier view. Because the model already distills from itself in output space, its features at the cleaner view give a self-distillation target in feature space, as DINOv2's features do for REPA. The training step already computes them, so using them needs no extra forward pass. That is the free lunch for flow map training.
One-step samples




Deriving a free self-supervised objective from the training step
iFeCo reads the teacher's features from the evaluation that the training step already runs, so the feature consistency objective comes from the standard training batch, with no extra forward pass. Where that evaluation happens depends on the family.
Shortcut builds its target from two half steps of its EMA copy, and the second half step starts at the cleaner view. LSD evaluates its EMA copy where the student's jump lands, which is the cleaner view. MeanFlow already computes a Jacobian-vector product (JVP) along the trajectory. That pass gives the features of the noisier view and how fast they change along the path, and a first-order step moves them to the cleaner view. In MeanFlow the teacher is the model itself with a stop-gradient, since the EMA copy does not run this pass.
Feature consistency loss
Given these two views, iFeCo adds one loss to the standard training step. A small predictor maps the student's early features of the noisier view to the teacher's deep features of the cleaner view. The teacher is the EMA copy of the student in Shortcut and LSD, and the model itself with a stop-gradient in MeanFlow.
One training step. The teacher's forward pass builds the flow-map target and, in the same pass, supplies the deep features that the student's early features learn to predict.
The predictor is a two-layer MLP; the consistency loss is the cosine distance between its output and the teacher's features, per token, and the predictor is discarded after training. One setting serves all three families: loss weight 0.25, student block at a quarter of the depth (block 2 of 12 at B/2), teacher block at 70% (block 7 of 12).
Results
With the free teacher, iFeCo reaches the baseline's final 1-step FID 2.1 to 3.1 times sooner on Shortcut and on LSD B/2. On Shortcut, the speedup grows with training. On MeanFlow the gain is smaller. At XL/2 there is no reliable gain: the iFeCo curve crosses the baseline. It is ahead at 300k and 700k steps (3.60 against 3.78 at 700k) and behind at 500k and 600k (4.88 against 3.79 at 600k).
| Method | BackboneSize | Steps | Baseline | iFeCo | REPA | Speedup |
|---|---|---|---|---|---|---|
| Shortcut | DiT-B/2 | 1.2M | 36.95 | 28.03 | 36.11 | 2.9× |
| DiT-XL/2 | 1.2M | 18.55 | 12.71 | – | 3.1× | |
| MeanFlow | SiT-B/2 | 400k | 9.79 | 8.03 | 7.36 | 1.3× |
| SiT-XL/2 | 700k | 3.78 | 3.60 | – | – | |
| LSD | SiT-B/2 | 1.2M | 12.42 | 10.56 | 11.44 | 2.1× |
1-step FID-50k (lower is better) with ADM reference statistics. Speedup: how many times sooner iFeCo reaches the baseline's final 1-step FID, with linear interpolation between evaluations. The MeanFlow iFeCo models stop at 400k (B/2) and 700k (XL/2), so those rows compare at that step; on MeanFlow B/2, iFeCo reaches the baseline's 400k FID at 302k steps. At XL/2 the 700k row does not show a reliable gain, since iFeCo is behind at 500k and 600k (4.88 against 3.79 at 600k). The MeanFlow XL/2 baseline reaches 3.50 at 1.2M.
| Method | BackboneSize | Sampling steps | Baseline | iFeCo | REPA |
|---|---|---|---|---|---|
| Shortcut | DiT-B/2 | 8 | 23.89 | 18.04 | 16.14 |
| MeanFlow | SiT-B/2 | 4 | 6.72 | 6.23 | 5.54 |
| LSD | SiT-B/2 | 4 | 6.47 | 5.62 | 4.93 |
Multi-step sampling, FID-50k at 1.2M training steps (MeanFlow at 400k). In all three families the one-step gain carries over to more sampling steps. REPA has the lowest multi-step FID in all three.
Comparison with REPA. REPA aligns features with a frozen DINOv2 encoder. Our REPA reference uses the same student block as iFeCo, is not tuned for flow maps, and does not reproduce the published REPA. Which target is better depends on the family and on the number of sampling steps. iFeCo has the lower 1-step FID on Shortcut B/2 (28.03 against 36.11) and on LSD B/2 (10.56 against 11.44). REPA is better on MeanFlow B/2 (7.36 against 8.03 at 400k steps) and with 8 sampling steps on Shortcut B/2 (16.14 against 18.04) and LSD B/2 (4.99 against 5.60).
Preliminary: the loss on every row. Each training batch also holds rows with no jump, which train the velocity at a single time. By default iFeCo skips them, since they have no cleaner view. On these rows the student's early features can instead predict a deeper block of the same forward pass, again with no extra forward pass. In all three families at B/2, this lowers the 1-step FID below that of the default iFeCo at every checkpoint evaluated for both (table below). The gain is largest early in training and shrinks as training goes on. On Shortcut it is about 1.4 at 200k to 400k steps and 0.5 at 1.2M (27.56 against 28.03). On LSD it falls from about 0.6 at 300k to 500k steps to 0.1 to 0.3 at 700k to 900k, and with 4 and 8 sampling steps the two LSD models are level. The default MeanFlow model stops at 400k steps, so there we compare with the baseline: the every-row model stays 0.7 to 1.2 ahead of it from 600k through 1.0M steps (5.62 against 6.40 at 1.0M). REPA stays lower (5.04 at 1.0M). Each model is trained once, so this result does not change the speedups above.
| Method | Steps | Baseline | Jump rows | Every row |
|---|---|---|---|---|
| Shortcut | 200k | 60.88 | 48.86 | 47.44 |
| 400k | 47.75 | 37.32 | 35.95 | |
| 800k | 39.83 | 29.75 | 29.31 | |
| 1.2M | 36.95 | 28.03 | 27.56 | |
| MeanFlow | 200k | 15.91 | 13.67 | 12.75 |
| 400k | 9.79 | 8.03 | 7.80 | |
| 600k | 7.72 | – | 6.53 | |
| 800k | 6.63 | – | 5.90 | |
| 1.0M | 6.40 | – | 5.62 | |
| LSD | 200k | 26.91 | 21.34 | 20.93 |
| 400k | 18.27 | 14.41 | 13.85 | |
| 600k | 15.35 | 12.01 | 11.59 | |
| 800k | 14.09 | 11.21 | 11.07 | |
| 900k | 13.80 | 11.02 | 10.74 |
1-step FID-50k on ImageNet 256×256, B/2, free teacher, one seed. Baseline: no consistency loss (the Shortcut value at 800k is evaluated at 801k). Jump rows: the default iFeCo, with the loss on rows with a jump only. Every row: the loss also on rows with no jump. The default MeanFlow model is trained to 400k steps only.
BibTeX
@article{awal2026ifeco,
title = {A Self-Supervised Free Lunch for Flow Map Training},
author = {Awal, Rabiul and others},
year = {2026},
note = {Preprint coming soon}
}