Pretrained visual representations accelerate generative learning by abstracting away appearance and spatial detail. Yet the same abstraction makes the return to pixels far harder, shifting much of the burden onto a larger decoder. We ask why the representation-to-pixel path should be learned independently when the encoder already provides a learned pixel-to-semantics path (the semantic encoding path). We introduce RevFlow, based on the principle of generation as reverse encoding. RevFlow uses intermediate representations of a frozen encoder as successive generative targets, first generating deep semantic representations, then shallow representations that retain appearance and spatial detail, before decoding to pixels. To learn these transitions without training a separate generator for each stage, we develop HyC-DiT, a unified generative model with a standard DiT backbone shared across stages and stage-specific condition injection. We further show that native matching in semantic representation space enables few-step generation. RevFlow accelerates both learning and sampling. On ImageNet 256×256, RevFlow reaches 1.96 FID at 690M and 1.74 FID at 1.55B after only 5 training epochs. It also achieves 30.25 dB reconstruction PSNR with an 89M decoder. After a short native-matching adaptation phase, RevFlow-XL achieves 2.85 FID using a single sampling step in each stage. Our code repository is at https://github.com/ChengShiest/RevFlow
Figures & tables
Figure 2: Reconstruction fidelity, few-step generation, fast convergence, and reverse encoding. Left: ImageNet validation reconstructions from SD-VAE, RAE, and RevFlow, with PSNR in parentheses and decoder sizes of 49M, 415M, and 89M. RAE changes the gray hat to red; RevFlow preserves its color. Middle: RAE without matching (1 NFE) and RevFlow-XL with native matching (2 NFE, one per stage). Table 3 reports results without CFG for both adaptations. Right: ImageNet convergence of RevFlow-XL (690M) and RevFlow-H (1.55B) with standard DiT backbones. Far right: RAE generates the encoder’s endpoint, while RevFlow uses the semantic encoding path to generate deep and then shallow representations before pixel decoding.
Figure 3: Layer-wise similarity in frozen encoders. Each entry reports the cosine similarity between CLS representations from two transformer layers, averaged over images. Consecutive layers form high-similarity regimes separated by clear transitions. RevFlow selects one representative generation target from each regime rather than traversing every encoder layer.
Figure 4: Reverse encoding with HyC-DiT. (a) Reverse encoding. A frozen encoder defines the semantic encoding path from shallow to deep representations. RevFlow reverses this path: Stage 1 generates the deep target zL from class y , Stage 2 generates the shallow target zM conditioned on zL , followed by pixel decoding. Ptarget maps shallow encoder features to the Stage 2 target. Gray and red arrows denote encoding and generation, respectively. (b) HyC-DiT. The Transformer blocks are shared across both stages, while the target input/output projections and condition mappings are stage-specific. Stage 1 uses global class conditioning, whereas Stage 2 uses token-wise spatial conditioning from the aligned deep representation. The conditions modulate AdaLN shift and scale (β,γ) and residual gates α in each block.
Without CFG guidance
With CFG or Autoguidance
Method
Epochs
Dec. Params
Params
FID ↓
IS ↑
Prec. ↑
Rec. ↑
FID ↓
IS ↑
Prec. ↑
Rec. ↑
Pixel diffusion
ADM [ 12 ]
400
0
554M
10.94
101.0
0.69
0.63
3.94
215.8
0.83
0.53
SiD U-ViT/2 [ 23 ]
–
0
2B
2.77
–
–
–
2.44
–
–
–
SiD2 U-ViT/2 [ 24 ]
–
0
–
–
–
–
–
1.73
–
–
–
JiT-L [ 32 ]
200
0
459M
16.21
–
–
–
2.79
–
–
–
Table 1: Class-conditional ImageNet 256 × 256. Lower blocks compare our 5-epoch models with 20–64-epoch baselines and all 80-epoch models together. RevFlow-XL achieves better FID than RAE (1.96 vs. 2.16) with approximately 11 × lower cumulative forward compute. Dec. Params counts pixel-decoder parameters (0 for pixel-space models). RevFlow-XL/H share a Transformer backbone across generation stages and use REPA guidance without CFG; the right columns additionally use AutoGuidance [ 28 ] .
Figure 5: Prediction target and parameter sharing. Weight sharing degrades v -prediction, whereas clean-target prediction preserves generation quality with approximately half the parameters.
Method
Ep.
Inc.
CNX
DINO
MAE
SigL
CLIP
FDr6↓
SiT-XL/2 [ 37 ]
800
1.26
2.02
7.89
5.62
16.14
17.69
8.44
DDT-XL [ 58 ]
800
0.75
1.02
4.26
4.11
10.16
13.86
5.70
LightningDiT [ 61 ]
800
0.85
1.09
3.76
3.02
8.47
10.21
4.57
RAE-XL [ 66 ]
800
0.69
1.79
2.11
3.30
3.79
7.87
3.26
REPA-E [ 30 ]
800
0.70
1.28
2.44
2.52
5.04
6.28
3.04
RAE (DINOv2-B) ∗
80
1.32
2.33
3.14
6.33
7.56
–
–
Table 2: Generation quality across representation spaces. On ImageNet 256 × 256, we report normalized Representation Fréchet Distance ( FDr ) in six feature spaces: Inception (Inc.), ConvNeXt (CNX), DINOv2 (DINO), MAE, SigLIP (SigL), and CLIP. FDr6 is their mean, following FD-loss [ 59 ] . Ep. denotes training epochs. ∗ from NanoGen [ 31 ] .
Method
Space
NFE
FID ↓
MeanFlow [ 16 ]
VAE
1
3.43
LightningDiT (800ep)
VAE
1
264.56
+ NM
VAE
1
291.68
RAE
Encoder
1
284.19
+ NM
Encoder
1
3.46
Ours
Encoder
2
281.78
Table 3: Native matching on ImageNet 256 × 256. NM enables few-step generation in both RAE and RevFlow. Each pair fixes NFE before and after adaptation. NFE excludes the decoder; adapted models use no CFG. MeanFlow is an external reference.
Variant
Dec. Params
PSNR ↑
FID ↓
RevFlow : z23L→z7M→x
89M
30.25
1.96
(a) Generation path
Deep only: z23L→x
89M
19.87
2.65
Shallow only: z7M→x
89M
30.25
15.94
VAE target: z23L→ SD-VAE
49M
23.40
2.94
Three stages: +z16
89M
30.25
2.51
Table 4: Ablations on ImageNet 256 × 256. All variants use DINOv3-L, DiT-XL, five-epoch training, and 50 NFE with windowed REPA guidance. RevFlow’s deep-to-shallow path combines the lowest FID among generation paths with faithful reconstruction. Dec. Params counts pixel-decoder parameters; PSNR measures ImageNet validation reconstruction.
Figure 6: Text-to-image convergence. GenEval is reported as a percentage. Markers show measured checkpoints. Dashed lines mark RAE’s best recorded scores.
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
Figure 7: Layer statistics of DINOv3-L on ImageNet validation (50K images; zero-based layers). R2 is the fraction of a feature’s variance explained by a linear prediction. (a) Variance of each layer that the next layer cannot explain ( 1−R2 ), a proxy for what the block loses. Stage 2 restores what blocks 7–22 lose, and the decoder the rest. (b) Variance of h7 explained by layer j or by the class label. (c) Linear-probe class accuracy, and the variance of mean-pooled features explained by the class.
Generative models learn visual structure through denoising, yet their internal states are entangled with both noise level and network depth, making it difficult to obtain a stable visual representation from the generator itself. We introduce RepFlow, which learns such a representation from the generator's evolving computation and uses it to guide generation. Specifically, a separate timestep-free encoder is trained, through a timestep-conditioned predictor, to recover generator states across depths and noise levels from masked clean images. By excluding the reference noise and masked-out content from the encoder's input, we encourage the encoder to distill visual information that is recoverable from the visible image context and predictive of generator states. The representation learned from the generator's evolving states is then fed back to guide and improve the generator, whose updated states provide supervision for further representation learning, forming a reciprocal learning process. This reciprocal process improves multi-step generation and representation quality, as measured by frozen linear probing on ImageNet with latent-space SiT and pixel-space JiT, without an externally pretrained representation teacher. Across the two unconditional settings, FID decreases by 19.2--40.8% relative to native training, while linear-probe accuracy improves by 6.80--10.04 percentage points over the best searched raw generator features. The learned representation also serves as a distributional metric for one-step JiT post-training, extending its role from instance-level alignment to distribution-level supervision.
Most diffusion and flow-matching generators define the prior, probability path, and prediction target in the same representation space. Latent diffusion improves efficiency by moving this path into an autoencoder latent space, but the final sample is still produced by a separately trained decoder. This separation creates a mismatch: the generator is optimized for latent-space prediction, while final quality depends on how the decoder handles generated latents that may differ from clean encoder outputs. We introduce CrossFlow, a cross-space flow formulation that maps noisy latent inputs directly to pixel-space images. The key technical step is a velocity-free one-step objective: the latent trajectory defines the training path, but the supervised prediction is an image rather than a latent displacement. This lets one model act both as a one-step latent-to-pixel generator and as a decoder replacement for latent diffusion pipelines. On class-conditional ImageNet-1k at 256×256, CrossFlow-XL achieves 1.62 FID with one function evaluation. Ablations show that the latent encoder and pixel-space perceptual and adversarial losses are important for fidelity. These results indicate that cross-space flow objectives can combine the efficiency of latent representations with direct pixel-space supervision, without requiring a separate decoder at inference.
Xiyuan Wang, Xiao Zhang, Yang Li +4
Institute for Artificial Intelligence, Peking University · Tencent · Fudan University
Co-denoising pretrained representations such as DINO can substantially improve the training speed and quality of flow matching models, but it introduces a second denoising trajectory and requires carefully designed schedules. We propose a simpler alternative: predict the pretrained representation directly, then condition the model on its own prediction. This removes the need for a second ODE and any representation-specific denoising schedules, while retaining the benefits of representation guidance. Our approach converges substantially faster and achieves better generation quality as measured by FID score. On ImageNet, it outperforms the state of the art in latent space at 2x fewer epochs than prior methods; in pixel space, it improves FID over comparable prior methods by more than 20%. These results support a simple principle: do not denoise what you can predict. Our code is openly available at https://github.com/arijit-hub/dino_forcing.
Arijit Ghosh, Lucas Degeorge, Paul Couairon +3
ENPC, IP Paris · Ecole Polytechnique, IP Paris · AMIAD +1