A Self-Supervised Free Lunch for Flow Map Training

December 1, 2026 · flow-matching, one-step-generation, representation-learning
iFeCo: an early block of the student on the noisier view predicts a deep block of the teacher on the cleaner view of the same image, which the flow-map training step already computes. student teacher predicts flow-map step noisier view cleaner view
An early block on the noisier view predicts a deep block on the cleaner view. The teacher is the same model (or its EMA), and training already computes that view.

Generating an image with a flow-matching model usually takes many small steps. At each step the network predicts which way to move from noise toward the image. A flow map learns to jump between two points on that path, sometimes going all the way from noise to an image in one step. I covered how that works in my earlier post on one-step generative models. This post is about making them faster to train.

Representation alignment (REPA) speeds up diffusion training by having early layers predict features from DINOv2, a pretrained image encoder. My goal was the same effect without the encoder, using features the flow map learns for itself. A flow map has a natural pair of views for self-supervision. One long jump should land where two shorter jumps land. Partway through, the image is still noisy, but more of its content is visible. The model already uses that relationship for self-distillation when it learns where to land.

My idea was to use the same pair to learn features. Given the noisier view, an early layer tries to predict a deeper layer's features for the cleaner view. I call this internal feature consistency (iFeCo). The cleaner view comes from a pass that training already runs, so iFeCo needs no pretrained encoder and no extra forward pass.

I tried this on three families of flow maps: Shortcut, Lagrangian self-distillation (LSD), and MeanFlow. It cuts training time on Shortcut and LSD. A comparison with LayerSync, where the deeper layer sees the same image, then made me question whether the cleaner view is what matters.

What I still don't understand is why asking an early layer to predict a later one helps the model generate better images. I'm now working on denoising embedding models, which I find a more elegant way to learn representations and generate images in the same model.

TL;DR: With iFeCo, the model learns to predict its own features on a cleaner view of the same image. On Shortcut and LSD, it reaches the vanilla model's final one-step FID in about a third to half as many training steps. Each step takes under 2% longer.

One-step samples

Vanilla
Shortcut vanilla model, one-step samples: four classes, four samples each.
iFeCo
Shortcut with iFeCo, one-step samples with the same classes and noise as the vanilla model.
Vanilla
MeanFlow vanilla model, one-step samples: four classes, four samples each.
iFeCo
MeanFlow with iFeCo, one-step samples with the same classes and noise as the vanilla model.
Compare the same position in the two grids. Both models start from the same noise and class label and generate an image in one step. These are uncurated ImageNet 256×256 samples after 1.2M training steps.

The representation alignment target

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
In flow map matching, one long jump should land where two shorter jumps land. The first short jump gives a cleaner view of the same image. iFeCo uses deep features from that view as a target for the student's early layers.

In Shortcut and LSD, the teacher is an exponential moving average (EMA) of the model's weights. Shortcut runs that teacher twice to take two half steps. I read its features at the start of the second step, when the image is already cleaner. LSD runs its teacher where the student's jump lands, so I take the features there.

MeanFlow estimates what the features would be a little farther along the path. Its training step already computes a Jacobian-vector product, which measures how fast the features change along that path. I use that rate for a first-order estimate and stop the gradient through it.1

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.

A nearly free feature consistency loss

The loss itself is the same for all three models. The student still learns where its jump should land. A small predictor attached to an early block also learns to match the deeper features from the cleaner view.

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. For each token, the loss is the cosine distance between its prediction and the teacher's features. The predictor is only used during training. Across all three families I used a loss weight of 0.25, a student block at a quarter of the depth (block 2 of 12 at B/2), and a teacher block at 70% (block 7 of 12).

Experiments and results

I trained Shortcut, LSD, and MeanFlow with and without iFeCo on ImageNet-1k at 256×256 resolution, using a batch size of 256.2 For the main comparison, I measured FID on 50,000 images generated in one sampling step each.

To measure training speed, I took the final one-step FID from each vanilla run and counted how many training steps iFeCo needed to reach it. On Shortcut and LSD, it took about a third to half as many steps, with under 2% extra time per step.3 The dashed curves include the feature loss on training examples without a jump. This costs no extra forward pass and helps most early on, especially on MeanFlow. On LSD the two settings finish about even.

MeanFlow SiT-B/2 5 6 8 10 15 0 400k 800k 1.2M 1-step FID Vanilla, 200k steps: FID 15.91 Vanilla, 300k steps: FID 11.75 Vanilla, 400k steps: FID 9.79 Vanilla, 500k steps: FID 8.58 Vanilla, 600k steps: FID 7.72 Vanilla, 700k steps: FID 7.10 Vanilla, 800k steps: FID 6.63 Vanilla, 900k steps: FID 6.61 Vanilla, 1000k steps: FID 6.40 Vanilla, 1100k steps: FID 6.24 Vanilla, 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 iFeCo, all rows, 200k steps: FID 12.75 iFeCo, all rows, 300k steps: FID 9.22 iFeCo, all rows, 400k steps: FID 7.80 iFeCo, all rows, 500k steps: FID 7.09 iFeCo, all rows, 600k steps: FID 6.53 iFeCo, all rows, 700k steps: FID 6.04 iFeCo, all rows, 800k steps: FID 5.90 iFeCo, all rows, 900k steps: FID 5.70 iFeCo, all rows, 1000k steps: FID 5.62 1.8× sooner, all rows Shortcut DiT-B/2 30 40 60 80 0 400k 800k 1.2M 1-step FID Vanilla, 100k steps: FID 80.35 Vanilla, 200k steps: FID 60.88 Vanilla, 300k steps: FID 51.78 Vanilla, 400k steps: FID 47.75 Vanilla, 500k steps: FID 45.16 Vanilla, 600k steps: FID 43.20 Vanilla, 700k steps: FID 41.44 Vanilla, 801k steps: FID 39.83 Vanilla, 900k steps: FID 39.62 Vanilla, 1000k steps: FID 37.99 Vanilla, 1100k steps: FID 37.11 Vanilla, 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 iFeCo, all rows, 100k steps: FID 67.55 iFeCo, all rows, 200k steps: FID 47.44 iFeCo, all rows, 300k steps: FID 39.73 iFeCo, all rows, 400k steps: FID 35.95 iFeCo, all rows, 500k steps: FID 33.21 iFeCo, all rows, 600k steps: FID 31.60 iFeCo, all rows, 700k steps: FID 30.04 iFeCo, all rows, 800k steps: FID 29.31 iFeCo, all rows, 900k steps: FID 28.53 iFeCo, all rows, 1000k steps: FID 28.04 iFeCo, all rows, 1100k steps: FID 27.42 iFeCo, all rows, 1200k steps: FID 27.56 LayerSync, 100k steps: FID 67.43 LayerSync, 200k steps: FID 49.19 LayerSync, 300k steps: FID 41.85 LayerSync, 400k steps: FID 38.64 LayerSync, 500k steps: FID 35.42 LayerSync, 600k steps: FID 34.65 LayerSync, 700k steps: FID 35.67 LayerSync, 800k steps: FID 33.95 LayerSync, 900k steps: FID 33.22 LayerSync, 1000k steps: FID 32.68 LayerSync, 1100k steps: FID 32.18 LayerSync, 1200k steps: FID 31.92 LSD SiT-B/2 10 15 20 30 40 0 400k 800k 1.2M 1-step FID Vanilla, 100k steps: FID 41.13 Vanilla, 200k steps: FID 26.91 Vanilla, 300k steps: FID 20.88 Vanilla, 400k steps: FID 18.27 Vanilla, 500k steps: FID 16.19 Vanilla, 600k steps: FID 15.35 Vanilla, 700k steps: FID 14.76 Vanilla, 800k steps: FID 14.09 Vanilla, 900k steps: FID 13.80 Vanilla, 1000k steps: FID 12.96 Vanilla, 1100k steps: FID 12.56 Vanilla, 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 iFeCo, all rows, 100k steps: FID 36.97 iFeCo, all rows, 200k steps: FID 20.93 iFeCo, all rows, 300k steps: FID 15.90 iFeCo, all rows, 400k steps: FID 13.85 iFeCo, all rows, 500k steps: FID 12.66 iFeCo, all rows, 600k steps: FID 11.59 iFeCo, all rows, 700k steps: FID 11.73 iFeCo, all rows, 800k steps: FID 11.07 iFeCo, all rows, 900k steps: FID 10.74 iFeCo, all rows, 1000k steps: FID 10.97iFeCo, all rows, 1100k steps: FID 10.82 SiT-XL/2 4 6 8 12 0 400k 800k 1.2M 1-step FID Vanilla, 100k steps: FID 15.25 Vanilla, 200k steps: FID 7.45 Vanilla, 300k steps: FID 5.25 Vanilla, 400k steps: FID 4.40 Vanilla, 500k steps: FID 3.80 Vanilla, 600k steps: FID 3.79 Vanilla, 700k steps: FID 3.78 Vanilla, 800k steps: FID 3.73 Vanilla, 900k steps: FID 3.33 Vanilla, 1000k steps: FID 3.43 Vanilla, 1100k steps: FID 3.47 Vanilla, 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 Vanilla, 100k steps: FID 55.64 Vanilla, 200k steps: FID 37.08 Vanilla, 300k steps: FID 29.43 Vanilla, 400k steps: FID 25.78 Vanilla, 500k steps: FID 23.35 Vanilla, 600k steps: FID 21.93 Vanilla, 700k steps: FID 20.87 Vanilla, 800k steps: FID 20.27 Vanilla, 900k steps: FID 19.74 Vanilla, 1000k steps: FID 19.34 Vanilla, 1100k steps: FID 19.00 Vanilla, 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
one-step FID-50k over training steps on ImageNet 256×256 (log scale). The label gives how many times sooner iFeCo reaches the vanilla model's final FID. Dashed: iFeCo with the loss on all rows. The default MeanFlow iFeCo curves stop at 400k (B/2) and 700k (XL/2) steps, so the MeanFlow B/2 label uses the all-rows model. REPA, shown at B/2, is my reference with a frozen DINOv2 encoder; LayerSync, shown on Shortcut B/2, aligns a weaker block with a deeper block of the same forward pass.
Frozen encoderEncoder-free
Model stepsVanillaREPALayerSynciFeCoAll rows
Shortcut
B/2 1.2M36.9536.1131.9228.0327.56
XL/2 1.2M18.55··12.71·
LSD
B/2 1.2M12.4211.44·10.5610.82 1.1M
XL/2 100k21.87··17.47·
MeanFlow
B/2 400k9.797.36·8.037.80
B/2 1.0M6.405.04··5.62
XL/2 700k3.78··3.60·

one-step FID-50k on ImageNet 256×256 (lower is better), at the latest training step of each model; bold is the best in each row. All rows: iFeCo with the loss also on the rows without a jump. LSD XL/2 and MeanFlow XL/2 are still training; at MeanFlow XL/2 iFeCo crosses the vanilla model (behind at 500k and 600k), so the gain there is not reliable.

Representation quality

FID measures the quality of the generated images. To see what changed inside the model, I tested how well a linear classifier could predict the ImageNet class from the features of each frozen block.

Shortcut, B/2 20 30 40 50 2 4 5 7 8 block probe top-1 (%) REPA, block 2: 54.2% REPA, block 4: 52.7% REPA, block 5: 50.8% REPA, block 7: 47.5% REPA, block 8: 45.5% Vanilla, block 2: 23.0% Vanilla, block 4: 36.8% Vanilla, block 5: 41.1% Vanilla, block 7: 45.3% Vanilla, block 8: 44.9% iFeCo, block 2: 39.9% iFeCo, block 4: 47.8% iFeCo, block 5: 48.5% iFeCo, block 7: 46.8% iFeCo, block 8: 45.1% +17 points at block 2 MeanFlow, B/2 20 30 40 50 2 4 5 7 8 block probe top-1 (%) REPA, block 2: 48.6% REPA, block 4: 50.6% REPA, block 5: 49.6% REPA, block 7: 48.4% REPA, block 8: 48.0% Vanilla, block 2: 22.8% Vanilla, block 4: 35.7% Vanilla, block 5: 38.8% Vanilla, block 7: 46.3% Vanilla, block 8: 46.6% iFeCo, block 2: 33.8% iFeCo, block 4: 43.9% iFeCo, block 5: 45.7% iFeCo, block 7: 47.2% iFeCo, block 8: 46.9% +11 points at block 2 LSD, B/2 20 30 40 50 2 4 5 7 8 block probe top-1 (%) Vanilla, block 2: 24.6% Vanilla, block 4: 35.5% Vanilla, block 5: 40.8% Vanilla, block 7: 45.6% Vanilla, block 8: 45.2% iFeCo, block 2: 39.4% iFeCo, block 4: 48.0% iFeCo, block 5: 48.4% iFeCo, block 7: 47.8% iFeCo, block 8: 46.2% +15 points at block 2
The shaded block is the one trained to predict block 7. With iFeCo, the class is easier to predict from early blocks. On Shortcut, REPA scores higher at block 2, but iFeCo gives better one-step FID (28.03 versus 36.11). All probes use B/2 models at a noise fraction of 0.25. The MeanFlow and LSD probes use an earlier iFeCo variant with an extra teacher pass.

REPA's frozen DINOv2 target still does better on MeanFlow and when sampling takes several steps.4 Pretrained encoders give strong features, and some work leans on them even harder, generating directly in the encoder's feature space (representation autoencoders) or sampling the features before the image (representation generation). I wanted to see how far a flow map could get without one.

Cleaner-view ablation

I came across LayerSync after I'd started working on iFeCo. Like iFeCo, it trains an early block to predict a deeper one, but both blocks see exactly the same input. That made it a good test of how much the cleaner view mattered.5

Model stepsVanillaLayerSynciFeCo
Shortcut B/2 1.2M36.9531.9228.03
Shortcut XL/2 700k20.8713.4514.52
LSD B/2 900k13.8010.3711.02
LSD XL/2 300k11.178.309.03

one-step FID-50k on ImageNet 256×256, latest step both models share; bold is the best in each row.

LayerSync improves one-step FID over vanilla in every row above. iFeCo does better on Shortcut B/2 and at four sampling steps on LSD and MeanFlow. On MeanFlow, I also tried giving the teacher the student's input. It worked just as well as the cleaner view.6

I started this project to see whether a flow map could learn useful features from its own training signal. That worked. What I hadn't expected was how well LayerSync would do with both layers seeing the same image. I don't have the compute to run the comparisons I'd want to do next, so I'm sharing what I have here.

  1. In MeanFlow the teacher is the model itself with a stop-gradient, not an EMA copy, because only the model runs the Jacobian-vector product pass. ↩

  2. Each family uses its reference optimizer, EMA decay and guidance settings, and trains for 1.2M steps. Shortcut's published budget is 800k steps; I continued it to 1.2M to see whether the vanilla model catches up. FID uses the ADM reference statistics and the EMA weights. ↩

  3. Measured on one H100 at each family's training batch: +1.1% on MeanFlow, +1.7% on Shortcut and +1.1% on LSD at B/2, and at most +0.5% at XL/2. The predictor is under 1% of the model's parameters and is dropped after training. ↩

  4. My REPA reference regresses DINOv2-B/14 features of the clean image at block 2 with REPA's cosine loss and weight 0.5. It is not tuned for flow maps and does not reproduce the published REPA numbers. ↩

  5. Following the LayerSync paper, my reference aligns block 3 with a detached block 6 at B/2 (blocks 7 and 15 at XL/2), with a negative cosine loss on every row and weight 0.3 (0.2 at XL/2), counting blocks from 0. ↩

  6. I trained each model once, so I'd read little into gaps under 1 FID. ↩