A Self-Supervised Free Lunch for Flow Map Training

Rabiul Awal

Mila, Université de Montréal

Work in progress

Where the alignment target comes from. Top, REPA: the student's early features of a noisy view are aligned with a frozen DINOv2 encoder that reads the clean image, in an extra forward pass. Bottom, iFeCo: the same early features are aligned with the model's own deep features at a cleaner view, which the flow-map training step already computes. REPA noisy view student clean image DINOv2 aligns with frozen pretrained encoder, extra forward pass iFeCo noisier view student cleaner view same model aligns with already computed by the training step: no encoder, no extra pass
Where the alignment target comes from. Top, REPA: the student's early features of a noisy view are aligned with a frozen DINOv2 encoder that reads the clean image, in an extra forward pass. Bottom, iFeCo: the same early features are aligned with the model's own deep features at a cleaner view, which the flow-map training step already computes. REPA noisy view student clean image DINOv2 aligns with frozen pretrained encoder, extra forward pass iFeCo noisier view student cleaner view same model aligns with already computed by the training step: no encoder, no extra pass
Shortcut DiT-B/2, 1 step 30 40 60 80 0 400k 800k 1.2M 1-step FID Baseline, 100k steps: FID 80.35 Baseline, 200k steps: FID 60.88 Baseline, 300k steps: FID 51.78 Baseline, 400k steps: FID 47.75 Baseline, 500k steps: FID 45.16 Baseline, 600k steps: FID 43.20 Baseline, 700k steps: FID 41.44 Baseline, 801k steps: FID 39.83 Baseline, 900k steps: FID 39.62 Baseline, 1000k steps: FID 37.99 Baseline, 1100k steps: FID 37.11 Baseline, 1200k steps: FID 36.95 iFeCo, 100k steps: FID 69.15 iFeCo, 200k steps: FID 48.86 iFeCo, 300k steps: FID 40.61 iFeCo, 400k steps: FID 37.32 iFeCo, 500k steps: FID 33.93 iFeCo, 600k steps: FID 32.63 iFeCo, 700k steps: FID 30.93 iFeCo, 800k steps: FID 29.75 iFeCo, 900k steps: FID 28.95 iFeCo, 1000k steps: FID 28.27 iFeCo, 1100k steps: FID 27.90 iFeCo, 1200k steps: FID 28.03 2.9× fewer steps Baseline iFeCo
REPA takes its alignment target from a frozen pretrained encoder, while iFeCo takes it from the model's own features at a cleaner view, which the flow-map training step already computes. Right: 1-step FID over training on ImageNet 256×256; the arrow is the training saved to reach the baseline's final FID.

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

Baseline
Shortcut baseline, one-step samples: four classes, four samples each.
iFeCo
Shortcut with iFeCo, one-step samples with the same classes and noise as the baseline.
Baseline
MeanFlow baseline, one-step samples: four classes, four samples each.
iFeCo
MeanFlow with iFeCo, one-step samples with the same classes and noise as the baseline.
ImageNet 256×256, one sampling step, 1.2M training steps, uncurated. Each row is one class; both grids share classes and noise, so the pictures differ only by the loss.

Deriving a free self-supervised objective from the training step

A trajectory from noise to an image. The student makes one long jump from the noisier view; two shorter jumps through the cleaner view land at the same point. Below, the student at the noisier view and the teacher at the cleaner view; the consistency loss makes the student's early features predict the teacher's deep features. noise image student jump two shorter jumps noisier view, t2 student cleaner view, t1 teacher early features predict deep features consistency loss, no extra pass
A trajectory from noise to an image. The student makes one long jump from the noisier view; two shorter jumps through the cleaner view land at the same point. Below, the student at the noisier view and the teacher at the cleaner view; the consistency loss makes the student's early features predict the teacher's deep features. noise image student jump two shorter jumps noisier view, t2 student cleaner view, t1 teacher early features predict deep features consistency loss, no extra pass
A flow map jumps along one trajectory from noise to an image. It is trained so that one long jump lands where two shorter jumps land (flow map matching). To build that target, the training step already runs the model at the point where the first short jump lands. Each training image therefore comes with two views of the same trajectory: a noisier view, where the student starts, and a cleaner view, where the teacher, the model itself or its EMA copy, reads its features. iFeCo trains the student's early features to predict the teacher's deep features.

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.

Shortcut target: two EMA half steps student jump EMA half steps noise data teacher: EMA at the start of the second half step MeanFlow target: a JVP along the path student jump first-order step noise data teacher: model features moved along the path by the JVP LSD target: EMA velocity at landing student jump EMA velocity noise data teacher: EMA at the landing point
Black dot: the noisier view, where the student starts. Amber ring: the cleaner view, where the teacher reads its deep features. Dashed: steps the training target already takes, in Shortcut Models, MeanFlow and LSD. The added cost is the small predictor and its loss: each training step takes at most about 2% more time.

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 student reads the noisier view and the EMA teacher reads the cleaner view. The flow-map loss uses the teacher's output as its target. The consistency loss maps the student's block-2 features through a predictor to the teacher's block-7 features, with no gradient into the teacher. noisedata t2t1 noisier view student cleaner view teacher target flow-map loss block 2 predictor consistency loss block 7, no gradient
One training step. The student reads the noisier view and the EMA teacher reads the cleaner view. The flow-map loss uses the teacher's output as its target. The consistency loss maps the student's block-2 features through a predictor to the teacher's block-7 features, with no gradient into the teacher. noisier view student cleaner view teacher target flow-maploss block 2 predictor consistency loss block 7, no gradient

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).

MeanFlow SiT-B/2 5 6 8 10 15 0 400k 800k 1.2M 1-step FID Baseline, 200k steps: FID 15.91 Baseline, 300k steps: FID 11.75 Baseline, 400k steps: FID 9.79 Baseline, 500k steps: FID 8.58 Baseline, 600k steps: FID 7.72 Baseline, 700k steps: FID 7.10 Baseline, 800k steps: FID 6.63 Baseline, 900k steps: FID 6.61 Baseline, 1000k steps: FID 6.40 Baseline, 1100k steps: FID 6.24 Baseline, 1200k steps: FID 6.12 REPA, 200k steps: FID 11.97 REPA, 300k steps: FID 8.64 REPA, 400k steps: FID 7.36 REPA, 500k steps: FID 6.43 REPA, 600k steps: FID 5.87 REPA, 700k steps: FID 5.63 REPA, 800k steps: FID 5.36 REPA, 900k steps: FID 5.24 REPA, 1000k steps: FID 5.04 REPA, 1100k steps: FID 4.99 REPA, 1200k steps: FID 4.86 iFeCo, 100k steps: FID 26.87 iFeCo, 200k steps: FID 13.67 iFeCo, 300k steps: FID 9.82 iFeCo, 400k steps: FID 8.03 Shortcut DiT-B/2 30 40 60 80 0 400k 800k 1.2M 1-step FID Baseline, 100k steps: FID 80.35 Baseline, 200k steps: FID 60.88 Baseline, 300k steps: FID 51.78 Baseline, 400k steps: FID 47.75 Baseline, 500k steps: FID 45.16 Baseline, 600k steps: FID 43.20 Baseline, 700k steps: FID 41.44 Baseline, 801k steps: FID 39.83 Baseline, 900k steps: FID 39.62 Baseline, 1000k steps: FID 37.99 Baseline, 1100k steps: FID 37.11 Baseline, 1200k steps: FID 36.95 REPA, 100k steps: FID 81.26 REPA, 200k steps: FID 61.68 REPA, 300k steps: FID 52.91 REPA, 400k steps: FID 47.26 REPA, 500k steps: FID 44.46 REPA, 600k steps: FID 41.99 REPA, 700k steps: FID 40.09 REPA, 800k steps: FID 38.75 REPA, 900k steps: FID 38.04 REPA, 1000k steps: FID 36.87 REPA, 1100k steps: FID 36.89 REPA, 1200k steps: FID 36.11 iFeCo, 100k steps: FID 69.15 iFeCo, 200k steps: FID 48.86 iFeCo, 300k steps: FID 40.61 iFeCo, 400k steps: FID 37.32 iFeCo, 500k steps: FID 33.93 iFeCo, 600k steps: FID 32.63 iFeCo, 700k steps: FID 30.93 iFeCo, 800k steps: FID 29.75 iFeCo, 900k steps: FID 28.95 iFeCo, 1000k steps: FID 28.27 iFeCo, 1100k steps: FID 27.90 iFeCo, 1200k steps: FID 28.03 2.9× sooner LSD SiT-B/2 10 15 20 30 40 0 400k 800k 1.2M 1-step FID Baseline, 100k steps: FID 41.13 Baseline, 200k steps: FID 26.91 Baseline, 300k steps: FID 20.88 Baseline, 400k steps: FID 18.27 Baseline, 500k steps: FID 16.19 Baseline, 600k steps: FID 15.35 Baseline, 700k steps: FID 14.76 Baseline, 800k steps: FID 14.09 Baseline, 900k steps: FID 13.80 Baseline, 1000k steps: FID 12.96 Baseline, 1100k steps: FID 12.56 Baseline, 1200k steps: FID 12.42 REPA, 100k steps: FID 37.38 REPA, 200k steps: FID 22.43 REPA, 300k steps: FID 17.52 REPA, 400k steps: FID 15.68 REPA, 500k steps: FID 13.61 REPA, 600k steps: FID 13.45 REPA, 700k steps: FID 12.74 REPA, 800k steps: FID 12.68 REPA, 900k steps: FID 12.07 REPA, 1000k steps: FID 11.95 REPA, 1100k steps: FID 12.06 REPA, 1200k steps: FID 11.44 iFeCo, 100k steps: FID 37.19 iFeCo, 200k steps: FID 21.34 iFeCo, 300k steps: FID 16.56 iFeCo, 400k steps: FID 14.41 iFeCo, 500k steps: FID 13.21 iFeCo, 600k steps: FID 12.01 iFeCo, 700k steps: FID 11.85 iFeCo, 800k steps: FID 11.21 iFeCo, 900k steps: FID 11.02 iFeCo, 1000k steps: FID 10.89 iFeCo, 1100k steps: FID 10.88 iFeCo, 1200k steps: FID 10.56 2.1× sooner SiT-XL/2 4 6 8 12 0 400k 800k 1.2M 1-step FID Baseline, 100k steps: FID 15.25 Baseline, 200k steps: FID 7.45 Baseline, 300k steps: FID 5.25 Baseline, 400k steps: FID 4.40 Baseline, 500k steps: FID 3.80 Baseline, 600k steps: FID 3.79 Baseline, 700k steps: FID 3.78 Baseline, 800k steps: FID 3.73 Baseline, 900k steps: FID 3.33 Baseline, 1000k steps: FID 3.43 Baseline, 1100k steps: FID 3.47 Baseline, 1200k steps: FID 3.50 iFeCo, 100k steps: FID 14.52 iFeCo, 200k steps: FID 7.20 iFeCo, 300k steps: FID 5.15 iFeCo, 400k steps: FID 4.42 iFeCo, 500k steps: FID 3.95 iFeCo, 600k steps: FID 4.88 iFeCo, 700k steps: FID 3.60 DiT-XL/2 15 20 30 40 60 0 400k 800k 1.2M 1-step FID Baseline, 100k steps: FID 55.64 Baseline, 200k steps: FID 37.08 Baseline, 300k steps: FID 29.43 Baseline, 400k steps: FID 25.78 Baseline, 500k steps: FID 23.35 Baseline, 600k steps: FID 21.93 Baseline, 700k steps: FID 20.87 Baseline, 800k steps: FID 20.27 Baseline, 900k steps: FID 19.74 Baseline, 1000k steps: FID 19.34 Baseline, 1100k steps: FID 19.00 Baseline, 1200k steps: FID 18.55 iFeCo, 100k steps: FID 44.42 iFeCo, 200k steps: FID 27.06 iFeCo, 300k steps: FID 21.33 iFeCo, 400k steps: FID 18.27 iFeCo, 500k steps: FID 16.55 iFeCo, 600k steps: FID 15.61 iFeCo, 700k steps: FID 14.52 iFeCo, 800k steps: FID 13.89 iFeCo, 900k steps: FID 13.66 iFeCo, 1000k steps: FID 13.17 iFeCo, 1100k steps: FID 12.89 iFeCo, 1200k steps: FID 12.71 3.1× sooner
1-step FID-50k over training steps on ImageNet 256×256 (log scale). The label gives how many times sooner iFeCo reaches the baseline's final FID. The MeanFlow iFeCo curves stop at 400k (B/2) and 700k (XL/2) steps, so MeanFlow has no label. REPA, shown at B/2, is our reference with a frozen DINOv2 encoder.
MethodBackboneSizeStepsBaselineiFeCoREPASpeedup
ShortcutDiT-B/21.2M36.9528.0336.112.9×
DiT-XL/21.2M18.5512.71–3.1×
MeanFlowSiT-B/2400k9.798.037.361.3×
SiT-XL/2700k3.783.60––
LSDSiT-B/21.2M12.4210.5611.442.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.

MethodBackboneSizeSampling stepsBaselineiFeCoREPA
ShortcutDiT-B/2823.8918.0416.14
MeanFlowSiT-B/246.726.235.54
LSDSiT-B/246.475.624.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.

MethodStepsBaselineJump rowsEvery row
Shortcut200k60.8848.8647.44
400k47.7537.3235.95
800k39.8329.7529.31
1.2M36.9528.0327.56
MeanFlow200k15.9113.6712.75
400k9.798.037.80
600k7.72–6.53
800k6.63–5.90
1.0M6.40–5.62
LSD200k26.9121.3420.93
400k18.2714.4113.85
600k15.3512.0111.59
800k14.0911.2111.07
900k13.8011.0210.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}
}