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.