RevFlow runs generation backward along a DINO encoder's layers: 1.74 FID on ImageNet in 5 epochs

Generation as Reverse Encoding

Cheng Shi, Sibei Yang, Hanzhong Guo, Yipeng Qin, Pietro Lio, Yizhou Yu

cs.CV

2026-11-26

RevFlow uses a frozen DINOv3 encoder's layer-wise features as staged generation targets, deep to shallow, reaching 1.96 FID on ImageNet 256 in 5 epochs on about 1/11 of RAE's training compute.

What problem this solves

The RAE line of work showed that generating the final-layer features of a DINO-style encoder is easy to learn: the semantic space is smooth and convergence is fast. The bill arrives at the decoder. Semantic features discard appearance and spatial detail, so a separately trained decoder has to reinvent all of it on the way back to pixels. RAE's decoder has 415M parameters, roughly 10x a conventional latent-diffusion decoder, yet reconstructs at only 18.09 dB PSNR, and Figure 2 shows it painting a gray Christmas hat red. The difficulty survived abstraction; it just moved into the decoder.

The University of Hong Kong-led team asks a blunt question: the encoder already contains a learned pixel-to-semantics path, with layer-wise features grading from detail-preserving to semantic. Why learn a separate way back? RevFlow reverses that path and treats it as the generative trajectory (generation as reverse encoding).

Method

The pipeline is y → zL → zM → pixels: generate a deep semantic representation from the class label, then a shallow representation conditioned on it, then decode.

Results

Class-conditional ImageNet 256×256, FID-50K:

SettingMethodFID
5 epochsRevFlow-XL (690M)1.96
5 epochsRevFlow-H (1.55B)1.74
20 epochsRAE3.71
80 epochsRevFlow-H, no CFG1.17
800 epochsRAE, no CFG1.51

A training example costs 1,652.92 forward GFLOPs for RevFlow-XL versus 1,134.59 for RAE, but 5 epochs against 80 puts cumulative compute at about 1/11 of RAE's, at lower FID (1.96 vs 2.16). At 80 epochs, RevFlow-H with AutoGuidance reaches 1.09, beating RAE's 800-epoch 1.13. The headline numbers sample with 25 Euler steps per stage plus REPA guidance, no CFG.

Reconstruction: 30.25 dB PSNR with an 89M decoder, against 18.09 dB for RAE's 415M decoder and 23.40 dB for SD-VAE's 49M; the hat stays gray. Few-step: after adaptation, RAE improves from 284.19 to 3.46 FID at 1 NFE and RevFlow-XL from 281.78 to 2.85 at 2 NFE (no CFG). A control applying the same recipe to LightningDiT's VAE latents degrades from 264.56 to 291.68, so the choice of matching space is not a detail.

Ablations nail the claim: deep-only generation gives 2.65 FID at 19.87 dB reconstruction; shallow-only keeps 30.25 dB but collapses to 15.94 FID; the two-stage path lands 1.96 FID and 30.25 dB together. At 512 text-to-image, 35k iterations give 77.54 GenEval and 81.55 DPG-Bench, 3.65 and 4.04 points above a reproduced RAE under the same setup. On FDr6, the mean Fréchet distance over six pretrained feature spaces, RevFlow-H scores 2.40 versus 3.04 for REPA-E and 3.26 for RAE-XL at 800 epochs, so the gains are not an Inception-space artifact.

Why it matters

For teams with limited compute, a recipe that reaches sub-2 FID in five epochs is directly usable, and the code is released. Conceptually, it outsources representation learning, the expensive part of diffusion training, to a frozen pretrained encoder and has the generator learn only the transitions between levels. The generation-versus-reconstruction trade-off dissolves: an 89M decoder with a 30.25 dB round trip makes the pipeline friendlier to pixel-space downstream work such as inversion and editing than RAE's large-decoder setup, though the paper does not test those. It is also not a drop-in tweak; hybrid conditioning, condition noise and clean-target prediction are each load-bearing, and borrowing one piece in isolation may not hold up.

Limitations

The shallow-target position is an explicit trade-off: on DINOv3-S, moving it from layer 1 to layer 5 improves FID from 4.36 to 2.69 while PSNR drops from 30.19 to 25.48, so generation and reconstruction cannot both be optimal at one setting.

Per-example training cost is higher than RAE (1,652.92 vs 1,134.59 GFLOPs); everything saved comes from epoch count. Whether the fast convergence survives beyond class-conditional ImageNet is only lightly tested: the text-to-image run stops at 35k iterations and 512 resolution with scores still climbing, and its baseline is the authors' own reproduction of RAE rather than published numbers under matched settings.

The few-step variant carries conditions of its own: adaptation starts from an 80-epoch checkpoint, and that variant swaps in a DDT head (852M generator parameters), a different structure from the main results. Per-class statistical matching is untested at very large class counts or for unconditional generation, and the failed VAE control could be a tuning issue rather than proof that semantic spaces are universally better.

Terms

Source

Related papers

All paper explainers