Project page

Align the Pair,
Not the Sample.

Representation alignment for faster and better one-step generators.

Priming trains a one-step generator on two kinds of inputs: corrupted real images that come with their clean counterpart, and pure noise that comes with nothing. The same alignment loss helps on one path and destroys diversity on the other. RePrime follows the pair.

Mingxiao Li1 · Xuantuo Huang1,2 · Encheng Su1,3 · Aoran Wang1 · Han Zhang1 · Jinouwen Zhang1 · Shixiang Tang1,4

1Shanghai Artificial Intelligence Laboratory · 2Peking University · 3University of Science and Technology of China · 4University of Oxford

One network evaluation · no guidance · class-conditional ImageNet 256×256 FID 1.155
A grid of one-step ImageNet 256×256 samples generated by RePrime-L.
One-step ImageNet 256×256 samples from RePrime-L, FID 1.155.
2×
fewer priming epochs to match the 160-epoch baseline
4×
fewer post-training updates to pass its final quality
1.155
FID at L scale, no guidance, one forward pass
24×
less compute than WF-XL/2, with better FID

Two inputs, one network

In Priming, training feeds heavily corrupted real images; inference feeds pure noise. These two paths are not interchangeable — and only one of them has a target that knows which image it came from.

Placement flips the sign

The identical loss improves fidelity and coverage on the pair. On the sample it collapses recall in all 17 configurations we tried — five target constructions, two spaces, λ down to 0.05.

An interface for noise

Alignment carves a block where noise and data features meet. Post-training then routes noise through it — and how much image semantics flows through predicts sample quality across 16 models.

01 — The puzzle

A priming model
lives two lives.

REPA made diffusion training an order of magnitude faster by aligning intermediate features with a frozen encoder. Transplanting it to a priming model looks trivial — until you ask what the target should be.

On the paired path, the priming model reconstructs a corrupted real image xs = 0.2 x0 + 0.8 ε. Its clean counterpart exists, so the target is simply the encoder's view of that same image.

On the generative path, the priming model maps pure noise to a sample. No real image corresponds to it, yet this is where the final model operates. Every target has to be invented: a random same-class image, a pool of class images, the image the OT plan matches, the sample itself, or an EMA teacher's sample.

None of these targets knows anything about this particular sample.

Interactive Placement bench
Illustration only — the axes are a schematic embedding. Every number on the right is measured.
Baseline · no auxiliary loss

Broad coverage, average fidelity.

Post-training alone. The class is covered, but the samples are only as good as the representation the OT loss already sees.

Recall coverage ↑
0.452
FD6 fidelity ↓
14.71

Same 2.5k-update protocol, Priming-B initialization.

It is not a tuning problem. At λ = 0.05 recall still falls to 0.252. Switching alignment off after 750 updates still leaves it at 0.242. In the OT ConvNeXt space the projector fits its targets almost perfectly — cosine 0.998 — and recall still collapses. A well-fit target is worthless if it says nothing about the sample.

Five rows of samples for class 207 using the same eight noise vectors: no alignment, generative-path alignment to OT-matched, random same-class, and EMA-teacher targets, and paired-path RePrime initialization. Click to enlarge
Prototype attraction. Class 207, the same eight noise vectors in every row. Generative-path alignment (rows 2–4) produces close-up, centered dogs on simpler backgrounds — typical modes, less coverage. OT-matched and random targets are nearly identical, because seen by DINOv2 the OT plan picks partners almost at random within a class.
Generative path−
17 / 17

configurations collapse recall from 0.452 to 0.149–0.252, at maintained or higher precision.

Paired path+
20 / 20

comparisons improve FD6 by 1–18%; recall never drops by more than 0.005.

02 — The idea

If the target knows nothing about you,
the best you can do is become your class.

A small proposition explains the asymmetry — and predicts it before any experiment.

Proposition 1 · Alignability
ℛ(u) = 𝔼[1 − u(X)⊤T] ≥ 1 − 𝔼‖μ(X)‖ equality at u*(X) = μ(X) / ‖μ(X)‖, with μ(X) = 𝔼[T | X]

If the target is independent of the input given the class, then μ(X) is just the class mean mc, and the optimal prediction is constant within each class.

The excess 𝒜 = 𝔼‖μ(X)‖ − 𝔼c‖mc‖ measures how much instance information the input carries about its target. When 𝒜 = 0, the loss can only pull every sample of a class toward one prototype.

i

The target carries no identity

Random, pooled, OT-matched, self, EMA — all are independent of the input given the class.

ii

The optimum is a class direction

The best possible feature is the class mean. There is nothing instance-specific left to learn.

iii

Gradient pulls everything together

Precision rises. Recall falls. The model becomes a prototype printer.

0.81 vs 0.73

After priming, the reconstruction of xs is closer in DINOv2 space to its own clean image than to its class prototype. The paired input still reveals identity.

0.221 vs 0.213

Seen by DINOv2, an OT-matched target is barely closer to the sample than a random same-class image. The plan is meaningful to OT, not to semantics.

Break the correspondence, lose the gain.

If the benefit were a generic regularizer or class-level semantics, random targets should recover most of it. They do not. The ranking tracks exactly how much of the target still describes the specific input.

No alignment
22.10
Random same-class
21.62
Random same-class (2nd run)
21.47
Own image, permuted tokens
19.94
Own image (full correspondence)
18.10
FD6 ↓ · 10-epoch priming + 5k post-training updatesbar length = share of the alignment gain recovered →
03 — The method

Align the pair.
Throw the projector away.

RePrime — representation-aligned priming — adds one term to priming. Nothing else changes: not the objective, not the architecture, not inference.

15-second explainer. A priming model, two paths — and why the same loss helps on only one of them. Every step is labeled on screen, over a quiet original music bed (mute from the player controls).
1 Corrupt
A clean ImageNet image.
x0 · clean
The same image corrupted with 80 percent Gaussian noise.
xs · 80% noise

At every priming step, mix a real image with Gaussian noise: xs = 0.2x0 + 0.8ε. Identity survives the corruption.

2 Predict
block 5 of 16 · tap hℓ

The generator reconstructs the image. From an intermediate block, take the patch tokens — the features where semantics are still forming.

3 Align
hℓ
→Pψ
DINOv2(x0)

Match each token, through a light 2-layer projector, to frozen DINOv2-L/14 features of the same clean image.

ℒStage 1 = ℒrec(Gθ(xs, c), x0) + λ · ℒalign(hℓ(xs, c), E(x0))
λ 0.5
E DINOv2-L/14
ℓ block 5 / 10
stage 2 unchanged
inference zero cost

Why a cross-space teacher?

DINOv2 is not one of the OT feature spaces (ConvNeXt, ResNet-MAE). It supplies semantics post-training cannot obtain on its own, instead of re-weighting what the OT loss already matches.

Why is the projector discarded?

It exists only to make gradients comparable. At inference it is gone, so the network is byte-for-byte the same as Priming. There is no inference-time cost and no new module to deploy.

What is RePrime-J?

A joint variant that interleaves OT updates on noise every other step with aligned reconstruction. It yields a native one-step generator without a separate post-training stage; after refinement it reaches FID 1.224 at 115M parameters.

+43%FLOPs per B priming update
+4–29%total training compute at B scale
+14%total training compute at L scale
0%inference overhead
04 — The mechanism

Alignment builds a doorway.
Post-training teaches noise to walk through it.

Post-training moves every block by only 2–4% of its norm. Whatever it exploits must already exist after priming. So we looked inside the generator.

01

An interface appears — exactly where you aligned.

The noise-vs-data feature gap is the Fréchet distance between the two feature sets, normalized by the data covariance. After 2.5k OT updates, its minimum sits precisely at the aligned block, for all four alignment depths, and it is 2.6× tighter than the best block without alignment.

0.70gap at the interface
1.81best gap, no alignment
02

But the gap is not what matters.

Generative-path alignment closes the gap too — largely by squeezing a class's noise features together. Across 16 models the gap is uncorrelated with quality. What predicts it is semantic routing: whether noise uses the interface the way real inputs do.

ρ = 0.00gap vs. FD6
ρ = −0.90routing vs. FD6
Mechanism plots: noise-versus-data gap by block for different alignment depths, and semantic routing at the interface versus FD6 for 16 models. Click to enlarge
Left: the interface moves with the aligned block — it is created by alignment, not fixed by the architecture. Right: routing, not gap size, tracks sample quality across 16 models (Spearman ρ = −0.90).
Correspondence control

Random targets build the same interface — with nothing to route.

No alignment
routing −0.01 · FD6 24.24
Random same-class
routing −0.03 · FD6 23.89
Own image, permuted tokens
routing 0.11 · FD6 21.75
Own image
routing 0.17 · FD6 20.28

All three aligned arms form an interface at block 5 — the random arm has the smallest gap. Yet its features predict held-out CLIP no better than no alignment (R² 0.361 vs. 0.360), and noise routes almost nothing through it. Instance correspondence is the active ingredient.

05 — Results

Better at every budget.
Cheaper on the frontier.

Class-conditional ImageNet 256×256, one network evaluation, no guidance. Compute counts both training stages and the frozen teacher.

Training compute vs. FID

Down and to the left is better. Down and to the left is better. Compute is on a log scale.

Swipe the chart horizontally →

24×

RePrime-B (157 EFLOPs) beats WF-XL/2 (3744 EFLOPs) on FID — and RePrime-L at 272 EFLOPs reaches 1.155, the best one-step FID among the methods compared in Priming.

Main results

Identical pipeline unless noted. “Ep.”: priming epochs. All models post-trained for 25k updates.

Method Ep. EFLOPs FID ↓ FD5 ↓ Prec. ↑ Rec. ↑
Reported in Priming (1 NFE)
pMF-H—1968.52.158.14——
iMF-XL/2—3201.11.749.75——
Drifting-L12801476.41.6112.59.815.602
WF-XL/2—3744.41.3311.07.762.674
Priming-B160124.21.3811.23.783.624
Priming-L160239.01.197.10.781.649
B · 115M parameters (our runs, identical pipeline)
Priming-B160124.21.37311.27.784.620
Priming-B200143.41.35310.91.784.625
RePrime-B120129.81.34910.76.784.627
RePrime-B160157.31.30310.20.781.639
RePrime-B200184.81.2839.66.784.631
RePrime-B, block 8160157.31.2689.82.781.641
RePrime-B, block 8200184.81.2669.66.782.635
RePrime-J-B ∗160346.81.22410.60.779.640
L · 405M parameters (our runs, identical pipeline)
Priming-L160239.01.1747.41.779.648
RePrime-L160272.11.1556.43.781.644

∗Joint training: 200k joint updates followed by 25k refinement updates. FID/FD5 average three sampling seeds (std. ≤ 0.022 / ≤ 0.035). Best one-step FID among the methods compared in Priming: 1.155.

Two stages, both faster.

The teacher adds 43% FLOPs to a B priming update. So gains per update are not enough — we also compare at matched total compute. They survive.

2×

Fewer priming epochs

80 epochs match the 160-epoch baseline (FD5 11.24 vs. 11.27); 120 epochs surpass the 200-epoch one.

4×

Fewer OT updates

From the 160-epoch initialization, 3.75k updates reach the baseline's final FD6 of 9.51; 6.25k surpass it.

9×

At low budgets

At 40 epochs, 2.5k updates equal the baseline after 22.5k — the largest practical saving, since OT dominates compute.

−2.5%

Matched compute

RePrime-B at 80 epochs uses less total compute than Priming-B at 120 (102.3 vs. 105.0 EFLOPs) and is better on every metric.

Four budget plots: FID and FD5 versus priming epochs, FD5 versus total training compute, and post-training curves. Click to enlarge
RePrime accelerates both stages. (a, b) FID and FD5 vs. priming epochs, each followed by 25k post-training updates. (c) FD5 vs. total compute — the speed-up survives the teacher's cost. (d) Post-training curves from the 160-epoch initializations.
Same noise, same class. The divider wipes from Priming-L to RePrime-L at 160 epochs, revealing each sample in place — the same noise vectors, the same classes, at native 256×256. FID 1.174 → 1.155; FD5 7.41 → 6.43. A quiet music bed plays with the wipe.
Same-noise comparison: uncurated samples from Priming and RePrime at 40, 80, and 160 epochs, each column sharing class and noise. Click to enlarge
Same noise, different initialization. Uncurated samples from Priming (top) and RePrime (bottom) after 40, 80, and 160 epochs of priming plus 25k post-training updates, and at L scale (right). Each column uses the same class and the same noise.
RePrime-J · single stage

Train both paths at once. Still align only the pair.

Interleave OT updates on noise with aligned reconstruction every other step. The generative path receives the teacher's semantics through the shared weights, not through a target on the samples. The result is a native one-step generator that needs no post-training.

1.22FID · 115M params, refined
9.75FD5 · native, no post-training
12.44FD6 · joint + alignment, 40 ep
Joint training curves for native FID and FD5, and the 2x2 factorial comparing sequential and joint training with and without alignment.
06 — The recipe

What to align with,
where, and when.

Three choices, three clear answers — one of which reverses a rule of thumb from diffusion.

Teacher

Go outside the matching spaces.

easy to align · cos → FD₆ gain ConvNeXt0.97 · +1.3% ResNet-MAE0.80 · +6.0% DINOv20.55 · +16.5%

ConvNeXt alignment fits almost perfectly (cosine 0.97) and improves FD6 by 1.3%; DINOv2 fits loosely (0.55) and improves it by 16.5%. A teacher that reinforces what OT already optimizes adds little. At full budget, MAE and ConvNeXt even hurt.

Ease of alignment is inversely related to benefit.
Depth

Mid-network is where semantics live.

FD₆ ↓ · taller is better
block 215.78
block 514.79
block 814.54
block 1114.93

Quality follows an inverted U: early blocks are too shallow for semantics, late blocks serve pixel decoding. Block 8 of 16 is best — FD6 8.28 at 160 epochs, the best with 25k post-training updates.

Default block 5 understates the gain.
Window

Do not stop early.

FD₆ ↓ · taller is better
first 25%15.89
first 50%15.52
full priming14.79

In diffusion, stopping REPA early helps. In priming, priming runs at a single high noise level, where the semantic target stays informative throughout — so the benefit grows monotonically with the window.

Opposite of the diffusion rule of thumb.
07 — Takeaways

Placement is a design choice,
not a hyper-parameter.

  1. 01

    The path decides the sign.

    The same REPA loss improves fidelity and coverage on the paired reconstruction path and collapses it on the generative path — every time, across 17 configurations.

  2. 02

    Instance correspondence is the active ingredient.

    Random same-class targets recover only 12–16% of the gain; permuted tokens recover 54%; the image's own target recovers all of it.

  3. 03

    The teacher must add what matching lacks.

    Semantic, outside the OT spaces, and imperfectly fittable. Ease of alignment is anti-correlated with benefit.

  4. 04

    One change, two stages faster, zero inference cost.

    Half the priming epochs and a quarter of the OT updates. The projector is discarded, so the deployed network is unchanged.

Limitations

Our study covers class-conditional ImageNet 256², the Priming architecture, and OT post-training; text-to-image and other objectives remain to be tested. Most configurations are trained once, though re-runs and seven budgets give a consistent sign. All generative-path targets here lack instance correspondence — objectives that create their own, such as trajectory-consistency views, remain open. The teacher adds compute; cached features would reduce it.

“Align the pair, not the sample.”

A principle for combining representation learning with distribution matching.

Paper, code & weights

One principle,
a lot of controls.

The code is available on GitHub, the manuscript as a PDF, and the weights on Hugging Face. The arXiv link will be added once the preprint is public.

BibTeX
@misc{li2026reprime,
  title  = {Align the Pair, Not the Sample:
            Representation Alignment for
            Faster and Better One-Step Generators},
  author = {Li, Mingxiao and Huang, Xuantuo and Su, Encheng and
            Wang, Aoran and Zhang, Han and Zhang, Jinouwen and
            Tang, Shixiang},
  year   = {2026},
  note   = {Project page: https://mingxiao-li.github.io/RePrime/}
}

arXiv link will be added once the preprint is public.