betaFeedback

WorksComputer Science

Generation as Reverse Encoding

Abstract

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×256256 \times 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

RevFlow samples on ImageNet 256×256

Figure 1. RevFlow samples on ImageNet 256×256256 \times256. Left: learn faster. After only 5 training epochs, RevFlow-H reaches 1.74 FID with 25 sampling steps per stage. Right: generate faster. After native representation matching, RevFlow-XL reaches 2.85 FID with only 2 NFE in total (one per stage). Both follow the reverse-encoding path: generating from class labels to deep representations, then to shallow representations, before finally decoding to pixels.

Introduction

Visual encoding and image reconstruction/generation can be viewed as opposite processes. A pretrained visual encoder progressively transforms an image into increasingly abstract representations, whereas image reconstruction/generation maps such representations back to concrete visual realizations. In conventional autoencoding [46, 61], the reverse problem is posed as reconstruction: a representation is paired with the particular image that produced it, and the decoder is trained to recover that image. Generation poses a harder reverse problem. Once abstraction makes different images share similar representations, the inverse becomes under-determined: a representation can correspond to multiple images rather than a fixed target.

This distinction becomes especially pronounced for representations pretrained for visual understanding1. Reconstruction-oriented representations, such as VAE latents, retain appearance and spatial detail for faithful recovery, whereas semantic representations learned for visual understanding suppress variations less relevant to semantic discrimination. Such abstraction accelerates generative learning, as exploited by REPA [63] and RAE [66], but leaves more appearance and spatial detail to be generated on the way back to pixels. In RAE-style models, this burden is delegated to a separately learned decoder, which is typically around 10×10 \times larger than those in conventional latent diffusion [48]; Figure 2 further shows that RAE can reconstruct a gray Christmas hat as red. Abstraction therefore shifts, rather than removes, the difficulty: generation in a semantic representation space is easier to learn, while decoding becomes more demanding and absorbs an increasing share of generative modeling.

Reconstruction fidelity, few-step generation, fast convergence, and reverse encoding

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.

Recent methods mitigate this tension by making the generated representation retain more appearance and spatial detail. VA-VAE [61] enriches reconstruction-oriented latents with semantic structure, while RAEv2 [51] combines multiple encoder levels into a single target containing both semantic and spatial information. These methods improve the target through alignment or feature aggregation, then learn a separate decoding path from that target to pixels.

We take a different view. Here we define the semantic encoding path as the progression of representations from pixels to abstract semantics that semantic pretraining forms within an encoder. *If generation ultimately reverses semantic encoding, why learn a separate decoding path back to pixels when the semantic encoding path already connects

pixels to semantics? We propose to reverse this path itself. Along the semantic encoding path, shallow representations retain more appearance and spatial detail, while deep representations emphasize semantics. The path thus acts like the forward process of diffusion models, which removes information gradually so that generation can recover it through simple reverse steps [21, 52]. Unlike data-agnostic Gaussian corruption, which removes information roughly by spatial frequency [47], the encoder removes it in a learned order: appearance and spatial detail first, semantics last [1, 38]. Its reverse resolves semantics first, from deep representations that largely reveal the class, leaving representation learning, a main bottleneck of diffusion training [63], to the pretrained encoder. Directly predicting clean shallow features from a class label faces an uninformative conditional mean and wide residual variance, forcing stiff jumps onto dispersed clean Dirac targets rather than smooth score refinement. Reversing the path keeps training smooth: the deep stage first models a lower-variance semantic space, and its output then provides spatial mean guidance that leaves only a narrow residual variance for the shallow stage (Appendix § 6, § 4.3). This suggests a different principle: intermediate representations along the semantic encoding path should serve as successive generation targets, defining how generation unfolds. Generating each target, from the class label or from the next deeper representation on the path, forms a stage. How to learn stages that differ in conditions and representation spaces within one model, however, remains open.

We propose RevFlow (generation as reverse encoding), which carries out multiple stages of generation along the reversed semantic encoding path with a single Transformer backbone. The generation targets of all stages are representations of the same image along the path. Generation proceeds from class labels to deep semantic representations, then shallow representations, and finally pixels. Sharing a backbone across stages requires accommodating different conditions and addressing optimization interference across representation spaces. We therefore introduce HyC-DiT, which adapts a standard DiT [42] in both architecture and training: global class conditioning is used in the first stage and spatial feature conditioning in the second, while clean-target prediction enables effective weight sharing across stages. Crucially, the deep-to-shallow stage models appearance and spatial detail before pixel decoding, reducing the generative modeling burden on the decoder. The complete pipeline pairs a lightweight decoder with better generation and reconstruction.

Beyond reverse encoding, we study native distribution matching for few-step adaptation of semantic representation generators. Existing methods such as FD-loss [59] and representation distribution matching [15] improve few-step generation by aligning generated and real samples in pretrained feature space, but conventional VAE-based generators typically need to decode latents into images and re-encode them for matching. Generating encoder representations allows native matching without this decode–encode loop. Native matching (NM) improves both single-stage RAE and two-stage RevFlow, demonstrating applicability beyond our reverse-encoding architecture.

On class-conditional ImageNet 256×256256 \times256, RevFlow with a standard DiT backbone reaches 1.96 FID with 690M parameters and 1.74 FID with 1.55B parameters after only 5 training epochs. For reconstruction, RevFlow achieves 30.25 dB PSNR with an 89M decoder, compared with 18.09 dB using the 415M RAE decoder. After a short native-matching adaptation phase, RevFlow-XL reaches 2.85 FID using one sampling step per stage and no CFG.

Our contributions:

  • We introduce generation as reverse encoding, modeling the inverse of representation encoding as a generative process that reverses the semantic encoding path of a frozen encoder from deep to shallow representations.

  • We develop HyC-DiT, a unified generative model that learns all stages of the reversed path with one shared Transformer backbone. It injects the class label as a global condition and the deep representation as a spatial condition through per-token AdaLN. Clean-target prediction avoids the degradation that velocity prediction suffers under sharing, matching separate generators with about half the parameters.

  • We show that pretrained semantic representations can serve as both generation targets and native distribution-matching spaces. Native matching enables few-step adaptation in both single-stage RAE and two-stage RevFlow without pixel decoding or re-encoding.

  • We provide a fast-converging training recipe that achieves 1.96/1.74 FID with standard DiT backbones on ImageNet 256×256256 \times256 after only five epochs, making high-quality generative modeling more accessible for rapid experimentation.

Related Work

Target spaces for generation. Diffusion and flow models [2, 21, 35, 36, 37, 42, 53] are trained either in pixel space [12, 23, 32] or in the latents of reconstruction-trained tokenizers [14, 29, 48, 56]. Recent work brings in semantics from pretrained encoders: VA-VAE [61] and REPA [63] align VAE latents or diffusion hidden states with frozen encoder features, REPA-E [30] tunes the VAE end to end, and other tokenizers are designed for generation [60, 64]. RAE [66] generates final-layer encoder features directly, and RAEv2 [51] fuses several layers into one latent. All of them generate a single target and leave the rest to a separately learned decoder, which absorbs more of the synthesis as the target becomes more abstract. RevFlow instead distributes generation across successive levels of the encoder hierarchy.

Inverting visual representations. Feature inversion [13, 38] shows that deeper layers become increasingly invariant, retaining semantics while losing appearance and spatial detail; pretrained Vision Transformers [7, 20, 39, 50] follow a similar trend. In our ImageNet retrieval examples, shallow features match color and texture, while deep features more often retrieve images of the same class. Such inversions, like autoencoder and RAE decoders, are deterministic regressions. Because encoding is many-to-one, RevFlow models each inversion step generatively and uses deterministic pixel decoding only at a shallow level that retains image detail.

Multi-stage and representation-conditioned generation. Coarse-to-fine generators decompose synthesis across resolutions [19, 22, 27, 46, 55]. Others first generate a compact representation before synthesizing the image: unCLIP [45] samples CLIP embeddings, RCG [33] generates self-supervised representations, W"urrstchen [43] generates a compressed semantic latent, and Latent Forcing [3] denoises features ahead of pixels. In these methods, the representation conditions generation in another space; in RevFlow, successive targets are paired features from a single frozen encoder, each stage reverses one segment of the encoding path, and all stages share a common backbone. For spatial conditioning, HyC-DiT follows spatially adaptive normalization [41] rather than using auxiliary control branches [65], computing adaLN-Zero parameters on a per-token basis.

Few-step generation and distribution matching. Few-step generators can be obtained through distillation [49, 62], consistency training [54], or average-velocity modeling [16]. Generators can also be trained by matching distributions in fixed feature spaces, from maximum mean discrepancy [18, 34] to recent objectives defined on pretrained representations [11, 15, 59]. For latent-space generators, such representation-based matching requires decoding generated latents to pixels and re-encoding them into the matching space; RevFlow instead generates encoder representations directly and matches them natively.

RevFlow: Generation as Reverse Encoding

A frozen semantic encoder maps an image xx to representations hℓ=Eℓ(x)h^\ell= \mathcal{E}^\ell(x) along the semantic encoding path. Deep representations emphasize semantics, while shallow representations retain more appearance and spatial detail. RevFlow divides the reversed path into multiple stages, generating deep and then shallow representations before pixel decoding (Figure 4a). We address three design questions: which representation levels define the generation targets (§ 3.1); how a unified model shares its Transformer backbone across stages through suitable conditioning and prediction parameterization (§ 3.2–§ 3.3); and how native matching enables one-step sampling per stage (§ 3.4).

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 zLz^L from class yy, Stage 2 generates the shallow target zMz^M conditioned on zLz^L, followed by pixel decoding. PtargetP_{\mathrm{target}} 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 (β\beta, γ\gamma) and residual gates α\alpha in each block.

Constructing the Reverse-encoding Path

Mean guidance and variance reduction. Unlike diffusion, which reverses a fixed corruption [4, 47], RevFlow reverses the semantic encoding path, whose order of information removal is formed by semantic pretraining. In clean-target flow matching on at=(1−t)a+tϵa_t = (1-t)a + t\epsilon, decomposing a clean target a=E[a∣u]+ra = \mathbb{E}[a \mid u] + r separates mean regression E[a∣u]\mathbb{E}[a \mid u] from residual denoising E[r∣at,u]\mathbb{E}[r \mid a_t,u], whose input gradient is 1−tt2Cov⁡(r∣at,u)\frac{1-t}{t^2}\operatorname{Cov}(r \mid a_t,u) (Prop. 1 in Appendix A). Directly predicting shallow representation hMh^M from class label yy faces an uninformative mean and wide residual variance V(hM∣y)V(h^M \mid y), averaging out detail at high noise and forcing stiff Dirac jumps as t→0t \to0. Reversing the path keeps training smooth: Stage 1 first predicts deep representation hLh^L in a lower-variance semantic space, and hLh^L then supplies spatial mean guidance E[hM∣hL]\mathbb{E}[h^M \mid h^L] so Stage 2 refines a narrow residual V(hM∣hL)V(h^M \mid h^L) before low-variance pixel decoding [6] (Figure 2).

Selecting abstraction levels. A ViT encoder contains many layers, but traversing every layer would substantially increase sampling cost and accumulate upstream mean-guidance drift across stages. We therefore select a small set of representative abstraction levels. In Figure 3, consecutive layers form high-similarity regimes separated by clear transitions, so the semantic encoding path can be summarized by a few abstraction levels.

Layer-wise similarity in frozen encoders

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.

Across the encoders we examine, the similarity structure is dominated by an earlier and a later regime. We therefore instantiate RevFlow with two generative stages (K=2K = 2, ℓ2=L\ell_2 = L, ℓ1=M\ell_1 = M). We select the deep representation hLh^L from the later regime for its semantic structure, and the shallow representation hMh^M from the earlier regime for its appearance and spatial detail. For the DINOv3-L encoder used in our main models, we take hMh^M from layer 7, at the end of the early regime, and hLh^L from layer 23, at the end of the late regime. Layer indices are zero-based. Layer 23 is the output of the final Transformer block, taken before the encoder’s final normalization.

Instantiating the reverse path. RevFlow generates an image through

y→zL→zM→x.(1)y \rightarrow z^L \rightarrow z^M \rightarrow x. \tag*{(1)}

Here, zL=hLz^L = h^L and zM=Ptarget(hM)z^M = P_{\mathrm{target}}(h^M), where PtargetP_{\mathrm{target}} projects the shallow representation into a compact target space while preserving its spatial layout. Following RAE [66], the target projection and pixel decoder are trained jointly for reconstruction with the encoder frozen, then fixed during generative training. The projection reduces the shallow feature from 1024 to 128 channels on a 16×1616 \times16 grid. A decompressor restores the channel dimension before a 12-block Transformer decoder maps the grid to pixels.

For each training image, the encoder and target projection provide paired targets (zL,zM)(z^L,z^M). Stage 1 generates zLz^L from the class condition, and Stage 2 generates zMz^M conditioned on zLz^L. The final shallow representation is decoded into pixels.

HyC-DiT Architecture: Hybrid Conditioning

Global and spatial conditioning. HyC-DiT implements both stages within a unified generative model using a standard DiT backbone [42]. The backbone is shared across stages, while the conditioning pathway accepts a global class embedding in Stage 1 and spatially aligned tokens in Stage 2. The latter preserves correspondence with the shallow target, which would be lost by collapsing the condition into a single vector. For each stage ℓ∈{L,M}\ell\in\{L,M\}, we sample t∼p(t)t \sim p(t) and ϵℓ∼N(0,I)\epsilon^\ell\sim\mathcal{N}(0,I), and form

ztℓ=(1−t)zℓ+tϵℓ.(2)z_t^\ell= (1-t)z^\ell+ t\epsilon^\ell. \tag*{(2)}

Both stages use fθ(⋅)f_\theta(\cdot) to predict clean targets z^ℓ\hat{z}^\ell:

z^ℓ=fθ(ztℓ,t,cℓ),cL=y,cM=z^L(3)\hat{z}^\ell= f_\theta(z_t^\ell,t,c^\ell), \qquad c^L = y, \qquad c^M = \hat{z}^L \tag*{(3)}

where z^L\hat{z}^L is the deep-feature condition for Stage 2.

Condition noise. Because Stage 2 is trained with deep representations extracted from real images but sampled with those generated by Stage 1, we perturb the training condition as

z~L=1−σ zL+σ ϵc,ϵc∼N(0,I),(4)\tilde{z}^L = \sqrt{1-\sigma}\,z^L + \sqrt{\sigma}\,\epsilon_c, \qquad\epsilon_c \sim\mathcal{N}(0,I), \tag*{(4)}

where σ∼Uniform⁡[σmin⁡,σmax⁡]\sigma\sim\operatorname{Uniform}[\sigma_{\min}, \sigma_{\max}]. The noise level σ\sigma is also provided to the model, mirroring noise-conditioning augmentation in cascaded diffusion [22].

Global and spatial AdaLN. Let TT denote the timestep embedding, EyE_y the class embedding, EsE_s a learned stage embedding, EσE_\sigma the condition-noise embedding, and PcondP_{\mathrm{cond}} a linear projection that maps the deep condition to the Transformer width. The two stages form

mL=T(t)+Ey(y)+Es(1),m^L = T(t) + E_y(y) + E_s(1),
miM=Pcond(ciM)+T(t+1)+Eσ(σ)+Es(2),(5)m_i^M = P_{\mathrm{cond}}(c_i^M) + T(t+1) + E_\sigma(\sigma) + E_s(2), \tag*{(5)}

where ii indexes spatial tokens in the condition and target representations. The offset T(t+1)T(t+1) places the two stages in disjoint ranges of the timestep embedding. In each DiT block, the standard adaLN-Zero projection maps mLm^L or miMm_i^M to shift, scale, and residual-gating parameters. Stage 1 therefore shares the same modulation across all tokens, whereas Stage 2 produces token-specific modulation from miMm_i^M, allowing each deep token to directly control the corresponding shallow token. The stages share attention, FFNs, and AdaLN modulation MLPs. Stage-specific input and output projections accommodate the target dimensions, while separate condition mappings handle class labels and spatial representations.

HyC-DiT Training: Clean-Target Prediction

Both stages use clean-target prediction [32] as defined in Eq. (3). For either representation target, the model could instead predict the corresponding velocity field. These parameterizations describe the same flow but differ in optimization under parameter sharing. Clean-target prediction outputs denoised representations anchored near their conditional means E[zℓ∣cℓ]\mathbb{E}[z^\ell|c^\ell] in both stages, whereas velocity prediction couples stage-specific residuals with high-dimensional noise ϵℓ\epsilon^\ell (Appendix § 6), causing interference in a shared backbone. Figure 5 shows that clean-target prediction retains comparable quality with shared and separate networks (1.96 vs. 1.92 FID), while reducing parameters from 1.361B to 690M. Velocity prediction instead degrades from 2.07 to 4.25 FID under sharing, motivating our choice of clean-target prediction.

Figure 5. Prediction target and parameter sharing. Weight sharing degrades v-prediction, whereas clean-target prediction preserves generation quality with approximately half the parameters.

Training objective. For the clean-target predictions in Eq. (3), the interpolation in Eq. (2) yields the flow-matching loss LFMℓ=E∥t−1(z^ℓ−zℓ)∥2\mathcal{L}_{\mathrm{FM}}^\ell= \mathbb{E}\lVert t^{-1}(\hat{z}^\ell- z^\ell)\rVert_2. We jointly optimize the two stages as

L=wcLFML+LFMM,(6)\mathcal{L} = w_c\mathcal{L}_{\mathrm{FM}}^L + \mathcal{L}_{\mathrm{FM}}^M, \tag*{(6)}

where wcw_c balances the two stages. Following RAEv2 [51], an auxiliary head at an intermediate Transformer block predicts the same clean target as the final head. It receives additional supervision during training and provides REPA guidance during sampling.

Sampling. Starting each stage from independent Gaussian noise, RevFlow first generates zLz^L conditioned on yy, then generates zMz^M conditioned on the generated deep representation, and finally decodes zMz^M to pixels. REPA guidance extrapolates from the auxiliary prediction toward the final prediction, using both outputs from the same backbone evaluation. For multi-step ImageNet generation, we take 25 Euler steps per stage. With AutoGuidance, each step also evaluates a weak model.

Native Representation Matching

Representation-based matching compares distributions in pretrained feature spaces [11, 15, 59]. For conventional VAE-based generators, this typically requires decoding sampled latents into images and extracting their features. RevFlow directly generates encoder representations, allowing native matching in the target representation spaces without this decode–encode process. We describe one-step-per-stage adaptation for two-stage RevFlow below and evaluate single-stage RAE in § 4.2.

Starting from independent Gaussian noise at t=1t=1, the one-step cascade produces

z^L=fθ(eL,1,y),z^M=fθ(eM,1,z^L).(7)\hat{z}^{L}=f_{\theta}(e^{L},1,y),\qquad\hat{z}^{M}=f_{\theta}(e^{M},1,\hat{z}^{L}). \tag*{(7)}

Reference representations are obtained from an exponential moving average (EMA) generator using noised real representations and are treated as stop-gradient targets. Within each class yy, we use a drifting loss [11], Lstaty\mathcal{L}_{\mathrm{stat}}^{y}, to match multiscale channel-wise window statistics, and IMQ-MMD [18], LIMQℓ,y\mathcal{L}_{\mathrm{IMQ}}^{\ell,y}, to align the marginal distribution at each level ℓ∈{L,M}\ell\in\{L,M\}. Both operate directly on the generated representations without sample-wise pairing or an additional learned feature network. We retain clean-target flow matching as a regularizer and optimize

LNM=Ey[λsLstaty+∑ℓλℓLIMQℓ,y]+λFML.(8)\mathcal{L}_{\mathrm{NM}}=\mathbb{E}_{y}\left[\lambda_s\mathcal{L}_{\mathrm{stat}}^{y}+\sum_{\ell}\lambda_{\ell}\mathcal{L}_{\mathrm{IMQ}}^{\ell,y}\right]+\lambda_{\mathrm{FM}}\mathcal{L}. \tag*{(8)}

where L\mathcal{L} is the flow-matching loss in Eq. (6) and the λ\lambda coefficients weight the terms. After adaptation, RevFlow needs one evaluation per stage plus the frozen decoder.

Experiments

We evaluate RevFlow on class-conditional ImageNet at 256×256256 \times256, and on text-to-image generation at 512×512512 \times512, covering convergence, generation quality, reconstruction, few-step sampling, and ablations.

Main results

For the five-epoch ImageNet runs, we train RevFlow-XL and RevFlow-H with Muon [26] and AdamW at a global batch size of 256. We compute FID on 50,000 generated images (50 per class) using ImageNet training-set reference statistics.

ImageNet 256×256256 \times256. Table 1 shows that RevFlow-XL (690M) and RevFlow-H (1.55B) reach 1.96 and 1.74 FID after only five epochs, using a unified generative model with a Transformer backbone shared across stages. A training example costs 1,652.92 forward GFLOPs for RevFlow-XL and 1,134.59 for RAE. Over 5 and 80 epochs, respectively, RevFlow-XL uses about one eleventh of RAE’s cumulative forward FLOPs and achieves a lower FID (1.96 vs. 2.16). At 80 epochs, RevFlow-H achieves 1.17 FID without CFG and 1.09 with AutoGuidance [28], outperforming RAE’s 800-epoch results (1.51/1.13) with 10× fewer epochs.

MethodEpochsDec. ParamsParamsFID↓IS↑Prec.↑Rec.↑FID↓IS↑Prec.↑Rec.↑
Pixel diffusion
ADM [12]4000554M10.94101.00.690.633.94215.80.830.53
SiD U-ViT/2 [23]–02B2.77–––2.44–––
SiD2 U-ViT/2 [24]–0–––––1.73–––
JiT-L [32]2000459M16.21–––2.79–––
LF-DiT-L [3]2000465M7.20–––2.48–––
RG-XL/16 [40]6000725M––––1.55293.80.800.64
Latent diffusion
DiT-XL/2 [42]140049M675M9.62121.50.670.672.27278.20.830.57
SiT-XL/2 [37]140049M675M8.61131.70.680.672.06270.30.820.59
REPA [63]80049M675M5.90157.80.700.691.42305.70.800.64
MAR + DeTok [60]80086M479M1.86238.60.820.611.35304.10.810.62
LightningDiT [61]80041M675M2.17205.60.770.651.35295.30.790.65
REPA-E [30]80041M675M1.69219.30.770.671.12302.90.790.66
MAR + UniFlow [64]400300M479M2.45228.0––1.85290.0––
LightningDiT + IG [67]68041M678M1.34229.30.780.651.19269.00.790.66
RAE [66]800415M839M1.51242.90.790.631.13262.60.780.67
LightningDiT [61]6441M675M5.14130.20.760.62––––
LightningDiT + IG [67]6041M678M2.42173.70.790.62––––
RAE [66]20415M839M3.71198.70.860.50––––
HyC-DiT-XL + RevFlow (Ours)589M690M1.96237.10.710.61––––
HyC-DiT-H + RevFlow (Ours)589M1.55B1.74238.00.710.62––––
REPA [63]8049M675M7.90122.60.700.65––––
REPA + E2E-VAE [30]8041M675M3.46159.80.770.631.67266.30.800.63
RAE [66]80415M839M2.16214.80.820.591.74235.00.810.60
HyC-DiT-XL + RevFlow (Ours)8089M690M1.36257.60.710.641.33254.00.700.65
HyC-DiT-H + RevFlow (Ours)8089M1.55B1.17253.00.700.661.09250.40.690.66

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].

Generating shallow representations enables RevFlow to combine strong generation quality with faithful reconstruction using a lightweight decoder. Decoding shallow representations extracted from ImageNet validation images yields 30.25 dB PSNR with 89M decoder parameters, compared with 18.09 dB and 415M for RAE (Figure 2). Pixel-space generation avoids autoencoder reconstruction error but can require longer training: JiT-L reaches 16.21 FID without CFG after 200 epochs.

Evaluation across representation spaces. FID evaluates only the Inception feature space. Table 2 additionally reports normalized Fréchet distances across six representation spaces and their mean, FDr6\mathrm{FDr}^{6}, following FD-loss [59]. RevFlow-XL improves from 4.52 after 5 epochs to 3.05 after 80 epochs. RevFlow-H reaches 2.40, the lowest mean among the listed methods, compared with 3.04 for REPA-E and 3.26 for RAE-XL after 800 epochs. Compared with REPA-E, RevFlow-H improves four of the six representation scores, indicating gains beyond Inception features.

MethodEp.Inc.CNXDINOMAESigLCLIPFDr6^{6}↓
SiT-XL/2 [37]8001.262.027.895.6216.1417.698.44
DDT-XL [58]8000.751.024.264.1110.1613.865.70
LightningDiT [61]8000.851.093.763.028.4710.214.57
RAE-XL [66]8000.691.792.113.303.797.873.26
REPA-E [30]8000.701.282.442.525.046.283.04
RAE (DINOv2-B)*801.322.333.146.337.56––
RAE (DINOv3-B)*801.332.823.896.808.17––
DiT + E2E-VA-VAE*802.645.908.596.3316.30––
DiT + FLUX.2-VAE*802.764.658.565.1517.41––
RevFlow-XL (Ours)51.151.282.916.428.736.634.52
RevFlow-XL (Ours)800.920.921.834.465.524.733.05
RevFlow-H (Ours)800.720.811.343.614.263.632.40

Table 2. Generation quality across representation spaces. On ImageNet 256×256256 \times256, we report normalized Representation Fréchet Distance (FDr) in six feature spaces: Inception (Inc.), ConvNeXt (CNX), DINOv2 (DINO), MAE, SigLIP (SigL), and CLIP. FDr6^{6} is their mean, following FD-loss [59]. Ep. denotes training epochs. * from NanoGen [31].

Few-step generation via native matching

Table 3 tests native representation matching (NM) on single-stage RAE and two-stage RevFlow, comparing each generator before and after adaptation at a fixed NFE. RAE uses 1 NFE and RevFlow uses 2 (one per stage), excluding the frozen pixel decoder. Adapted models use no CFG. The RevFlow-XL variant used for native matching has a deep-stage DDT head (852M generator parameters). We initialize it from an 80-epoch checkpoint and adapt it for 1,000 updates.

MethodSpaceNFEFID↓
MeanFlow [16]VAE13.43
LightningDiT (800ep)VAE1264.56
+ NMVAE1291.68
RAEEncoder1284.19
+ NMEncoder13.46
OursEncoder2281.78
+ NMEncoder22.85

Table 3. Native matching on ImageNet 256×256256 \times256. 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.

Transfer across semantic generators. NM improves RAE from 284.19 to 3.46 FID at 1 NFE and RevFlow-XL from 281.78 to 2.85 FID at 2 NFE. These gains across single-stage and two-stage generators demonstrate applicability beyond RevFlow. Both match generated representations directly, without pixel decoding or re-encoding.

Role of the representation space. Under the same recipe, directly matching the VAE latents of the 800-epoch LightningDiT checkpoint worsens FID from 264.56 to 291.68 at 1 NFE. This contrast supports semantic representations as both generation targets and matching spaces; the tested VAE control does not benefit.

Ablation studies

Table 4 examines generation paths (a), condition injection (b), condition noise (c), and prediction targets (d).

VariantDec. ParamsPSNR↑FID↓
RevFlow: z23L→z7M→xz_{23}^{L} \to z_{7}^{M} \to x89M30.251.96
(a) Generation path
Deep only: z23L→xz_{23}^{L} \to x89M19.872.65
Shallow only: z7M→xz_{7}^{M} \to x89M30.2515.94
VAE target: z23L→SD-VAEz_{23}^{L} \to\mathrm{SD\text{-}VAE}49M23.402.94
Three stages: +z16+z_{16}89M30.252.51
(b) Stage-2 condition injection
+ Pooled context tokens89M30.252.02
Spatial injection: 1/7/14/2189M30.251.96
Spatial injection: first layer89M30.252.03
(c) Condition noise
σ=0\sigma= 089M30.252.10
(d) Prediction target
vv-prediction89M30.254.25

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.

Generation path. Table 4(a) compares three paths with the same DINOv3-L encoder, DiT-XL configuration, clean-target prediction, and five-epoch training recipe. All use 89M pixel decoders and 50 total sampling steps under the common guidance protocol. Deep-only generation gives 2.65 FID and 19.87 dB reconstruction PSNR. Shallow-only generation retains 30.25 dB PSNR but yields 15.94 FID. RevFlow reduces FID to 1.96 with the same shallow target and decoder. RevFlow achieves both high-quality generation and faithful reconstruction, validating the effectiveness of its deep-to-shallow generation path. Replacing the shallow target with SD-VAE latents gives 2.94 FID; adding a third stage through layer 16 gives 2.51 FID. Both underperform the default path.

Condition injection. Table 4(b) evaluates additional pooled context tokens and the Transformer blocks at which spatial conditioning is applied. Adding pooled context tokens gives 2.02 FID, providing no improvement over 1.96. Restricting spatial injection to layers 1/7/14/21 gives 1.96 FID, matching the default; restricting it to the first layer gives 2.03.

Condition noise. During training, Stage 2 receives deep representations extracted from real images; during sampling, it receives the deep representations generated by Stage 1. Removing condition noise increases FID from 1.96 to 2.10 (Table 4(c)), supporting its use in the current recipe.

Target layers. An additional shallow-depth study scans shallow targets in DINOv3-S with the deep target fixed at L12 and an 87.12M-parameter decoder. Moving the shallow target from L1 to L3 and L5 improves FID from 4.36 to 3.14 and 2.69, while reconstruction PSNR decreases from 30.19 to 28.32 and 25.48 dB. This illustrates the trade-off between generation quality and reconstruction fidelity when selecting the shallow target.

Text-to-image generation

Setup and baseline. For text-to-image generation at 512 × 512, embeddings from a frozen Flan-T5 encoder [10] replace the class condition in the first stage; the subsequent stage remains conditioned on the generated deep representation. Because published methods use different datasets, we reproduce RAE under our training setup and compare both methods at the same resolution from 5k to 35k iterations. Table 5 includes published latent- and pixel-space models for context, with our reproduced RAE as the primary baseline.

MethodRes.GenEval↑DPG-Bench↑
SDXL [44]102421024^20.5574.7
PixArt-Σ [8]102421024^20.5480.5
FLUX.1-dev [5]102421024^20.6784.0
PixelFlow [9]5122512^20.6077.9
PixNerd [57]5122512^20.7380.9
RAE (reproduced)5122512^20.7477.6
RevFlow (Ours)5122512^20.7881.6

Table 5. Text-to-image benchmarks. Overall GenEval [17] and DPG-Bench [25] scores. Res.: evaluation resolution.

Results and convergence. RevFlow outperforms the reproduced RAE at every evaluated checkpoint on both benchmarks (Figure 6). At 35k iterations, it reaches 77.54% on GenEval and 81.55 on DPG-Bench, improving over RAE by 3.65 and 4.04 points. Both scores still rise from 30k to 35k (from 76.25% and 80.09), suggesting gains from longer training.

Figure 6. Text-to-image convergence. GenEval is reported as a percentage. Markers show measured checkpoints. Dashed lines mark RAE’s best recorded scores.

Conclusion

RevFlow models the reverse of a frozen encoder hierarchy as successive generative transitions, improving convergence and reconstruction with a Transformer backbone shared across stages and a lightweight pixel decoder. Clean-target prediction enables effective parameter sharing, while native representation matching supports one-step generation per stage without pixel decoding and re-encoding during adaptation. These results establish encoder hierarchies as useful structure for organizing image generation.

Theoretical Analysis of Reverse Encoding

This appendix examines how the deep representation guides shallow-feature generation in § 3.1. We first separate the conditional mean, which depends on the deep features alone, from the residual that must be denoised. Proposition 1 then shows how the posterior covariance of this residual governs the sensitivity of the optimal predictor to its noisy input. Finally, Sec. A.1 verifies these properties empirically on DINOv3-L features and connects them to our ablations.

Setup and definitions. Along the frozen encoder x=h0→⋯→hM→⋯→hLx = h^0 \to\cdots\to h^M \to\cdots\to h^L (M<LM < L), deterministic blocks suppress detail while retaining semantics. RevFlow reverses this path: Stage 1 generates zL=hLz^L = h^L from yy, Stage 2 generates zM=Ptarget(hM)z^M = P_{\mathrm{target}}(h^M) from zLz^L, and a decoder maps zMz^M to xx. We write a∈Rda \in\mathbb{R}^d (E∥a∥2<∞\mathbb{E}\lVert a\rVert^2 < \infty) for a clean stage target and c=hLc = h^L for the deep feature.

Definition 1 (Mean guidance and clean residual). For a target a∈Rda \in\mathbb{R}^d and condition uu, let V(a)=E∥a−Ea∥2V(a) = \mathbb{E}\lVert a - \mathbb{E}a\rVert^2 and V(a∣u)=E∥a−E[a∣u]∥2V(a\mid u) = \mathbb{E}\lVert a - \mathbb{E}[a\mid u]\rVert^2 for the conditional mean and r=a−μ(u)r = a - \mu(u) for the zero-mean clean residual, so a=μ(u)+ra = \mu(u) + r and V(a∣u)=E∥r∥2V(a\mid u) = \mathbb{E}\lVert r\rVert^2. For the forward interpolant at=(1−t)a+tϵa_t = (1-t)a + t\epsilon (t∈(0,1)t \in(0,1), ϵ∼N(0,Id)\epsilon\sim\mathcal{N}(0,I_d) independent of (a,u)(a,u)), subtracting (1−t)μ(u)(1-t)\mu(u) gives the residual interpolant rt=at−(1−t)μ(u)=(1−t)r+tϵr_t = a_t - (1-t)\mu(u) = (1-t)r + t\epsilon. Let ϕt(at∣r)=N(rt;(1−t)r,t2Id)\phi_t(a_t\mid r) = \mathcal{N}(r_t;(1-t)r,t^2I_d) be the forward Gaussian kernel, pt(at∣u)=∫ϕt(at∣r) P(dr∣u)p_t(a_t\mid u) = \int\phi_t(a_t\mid r)\,P(\mathrm{d}r\mid u) the marginal density with score st(at∣u)=∇atlog⁡pt(at∣u)s_t(a_t\mid u) = \nabla_{a_t}\log p_t(a_t\mid u), a∗(at,t,u)=E[a∣at,u]a^*(a_t,t,u) = \mathbb{E}[a\mid a_t,u] the optimal clean-target predictor (with Jacobian (∇ata∗)ij=∂ai∗/∂at,j(\nabla_{a_t}a^*)_{ij} = \partial a_i^*/\partial a_{t,j}), Cov⁡(r∣at,u)=E[rr⊤∣at,u]−E[r∣at,u]E[r∣at,u]⊤\operatorname{Cov}(r\mid a_t,u) = \mathbb{E}[rr^\top\mid a_t,u] - \mathbb{E}[r\mid a_t,u]\mathbb{E}[r\mid a_t,u]^\top the posterior residual covariance, and V(a∣at,u)=E∥a−a∗∥2=E[tr⁡Cov⁡(r∣at,u)]V(a\mid a_t,u) = \mathbb{E}\lVert a-a^*\rVert^2 = \mathbb{E}[\operatorname{tr}\operatorname{Cov}(r\mid a_t,u)].

For any fixed predictor gg, V(a∣u)≤(1−R2)V(a)V(a\mid u) \le(1-R^2)V(a), where R2=1−E∥a−g(u)∥2/V(a)R^2 = 1-\mathbb{E}\lVert a-g(u)\rVert^2/V(a), so measured R2R^2 values give upper bounds on VV.

Proposition 1 (Mean–residual separation and denoiser gradient). Under Definition 1, for every t∈(0,1)t \in(0,1), the optimal clean-target predictor satisfies

a∗(at,t,u)=μ(u)+E[r∣at,u]=μ(u)+rt+t2st(at∣u)1−t,(9)a^*(a_t,t,u) = \mu(u) + \mathbb{E}[r\mid a_t,u] = \mu(u) + \frac{r_t + t^2s_t(a_t\mid u)}{1-t}, \tag*{(9)}

and its input Jacobian and expected trace are governed by the posterior residual variance:

∇ata∗(at,t,u)=1−tt2Cov⁡(r∣at,u),E[tr⁡∇ata∗(at,t,u)]=1−tt2V(a∣at,u).(10)\begin{aligned} \nabla_{a_t}a^*(a_t,t,u) &= \frac{1-t}{t^2}\operatorname{Cov}(r\mid a_t,u),\\ \mathbb{E}\left[\operatorname{tr}\nabla_{a_t}a^*(a_t,t,u)\right] &= \frac{1-t}{t^2}V(a\mid a_t,u). \tag*{(10)} \end{aligned}

Proof. To obtain Eq. (9), substitute a=μ(u)+ra = \mu(u) + r into a∗=E[a∣at,u]a^* = \mathbb{E}[a\mid a_t,u]. Since E[μ(u)∣at,u]=μ(u)\mathbb{E}[\mu(u)\mid a_t,u] = \mu(u), linearity gives the first equality:

a∗(at,t,u)=μ(u)+E[r∣at,u].a^*(a_t,t,u) = \mu(u) + \mathbb{E}[r\mid a_t,u].

Next, take the conditional expectation of the forward relation rt=(1−t)r+tϵr_t = (1-t)r + t\epsilon given (at,u)(a_t,u) and write ϵ∗=E[ϵ∣at,u]\epsilon^* = \mathbb{E}[\epsilon\mid a_t,u]:

rt=(1−t)E[r∣at,u]+tϵ∗⟹E[r∣at,u]=rt−tϵ∗1−t.r_t = (1-t)\mathbb{E}[r\mid a_t,u] + t\epsilon^* \quad\Longrightarrow\quad \mathbb{E}[r\mid a_t,u] = \frac{r_t-t\epsilon^*}{1-t}.

Because the forward noise scale is σt=t\sigma_t=t, the score–noise identity st(at∣u)=−ϵ∗/σt=−ϵ∗/ts_t(a_t\mid u)=-\epsilon^*/\sigma_t=-\epsilon^*/t [53] gives −tϵ∗=t2st(at∣u)-t\epsilon^*=t^2s_t(a_t\mid u). Substituting this into the numerator yields the second equality in Eq. (9).

To obtain Eq. (10), note that μ(u)\mu(u) is independent of ata_t, so ∇ata∗=∇atE[r∣at,u]\nabla_{a_t}a^*=\nabla_{a_t}\mathbb{E}[r\mid a_t,u]. By Bayes’ rule, write E[r∣at,u]=N(at)/pt(at∣u)\mathbb{E}[r\mid a_t,u]=N(a_t)/p_t(a_t\mid u) with N(at)=∫rϕt(at∣r) P(dr∣u)N(a_t)=\int r\phi_t(a_t\mid r)\,P(\mathrm{d}r\mid u). Since ∇atrt=Id\nabla_{a_t}r_t=I_d, differentiating ϕt(at∣r)=(2πt2)−d/2exp⁡(−∥rt−(1−t)r∥2/(2t2))\phi_t(a_t\mid r)=(2\pi t^2)^{-d/2}\exp(-\lVert r_t-(1-t)r\rVert^2/(2t^2)) gives

∇atϕt(at∣r)=(1−t)r−rtt2ϕt(at∣r).\nabla_{a_t}\phi_t(a_t\mid r) = \frac{(1-t)r-r_t}{t^2}\phi_t(a_t\mid r).

Differentiating ptp_t and NN under the integral sign and dividing by pt(at∣u)p_t(a_t\mid u) re-expresses both ratios as posterior expectations:

∇atptpt=1−tt2E[r∣at,u]−rtt2,\frac{\nabla_{a_t}p_t}{p_t} = \frac{1-t}{t^2}\mathbb{E}[r\mid a_t,u]-\frac{r_t}{t^2},
∇atNpt=1−tt2E[rr⊤∣at,u]−1t2E[r∣at,u]rt⊤.\frac{\nabla_{a_t}N}{p_t} = \frac{1-t}{t^2}\mathbb{E}[rr^\top\mid a_t,u] -\frac{1}{t^2}\mathbb{E}[r\mid a_t,u]r_t^\top.

Applying the quotient rule ∇at(N/pt)=(∇atN)/pt−(N/pt)(∇atpt/pt)⊤\nabla_{a_t}(N/p_t)=(\nabla_{a_t}N)/p_t-(N/p_t)(\nabla_{a_t}p_t/p_t)^\top, the two −1t2E[r∣at,u]rt⊤-\frac{1}{t^2}\mathbb{E}[r\mid a_t,u]r_t^\top terms cancel out:

∇ata∗=1−tt2(E[rr⊤∣at,u]−E[r∣at,u]E[r∣at,u]⊤)=1−tt2Cov⁡(r∣at,u).\begin{aligned} \nabla_{a_t}a^* &= \frac{1-t}{t^2}\left(\mathbb{E}[rr^\top\mid a_t,u] -\mathbb{E}[r\mid a_t,u]\mathbb{E}[r\mid a_t,u]^\top\right)\\ &= \frac{1-t}{t^2}\operatorname{Cov}(r\mid a_t,u). \end{aligned}

Taking the trace and expectation over (at,u)(a_t,u) gives the second line of Eq. (10). □\square

Because targets are encoded from clean images, P(r∣y)P(r\mid y) lies on sharp noise-free Dirac points. By Proposition 1, when μ(u)\mu(u) is uninformative and V(a∣u)V(a\mid u) is wide (direct y→hMy\to h^M), clean modes overlap at high tt so residuals cancel (E[r∣at,y]≈0\mathbb{E}[r\mid a_t,y]\approx0, averaging out detail), while as t→0t\to0, Cov⁡(r∣at,y)\operatorname{Cov}(r\mid a_t,y) remains Θ(V(a∣y))\Theta(V(a\mid y)) at Dirac boundaries so ∥∇ata∗∥op∝1−tt2V(a∣y)→∞\lVert\nabla_{a_t}a^*\rVert_{\mathrm{op}}\propto\frac{1-t}{t^2}V(a\mid y)\to\infty, forcing stiff Dirac jumps rather than smooth score refinement. Conversely, when μ(u)\mu(u) is informative and V(a∣u)V(a\mid u) is narrow (local perturbation σr2Id\sigma_r^2I_d), Cov⁡(r∣at,u)=O(t2)\operatorname{Cov}(r\mid a_t,u)=O(t^2) cancels t−2t^{-2} so ∥∇ata∗∥op≲1\lVert\nabla_{a_t}a^*\rVert_{\mathrm{op}}\lesssim1, keeping the target mapping smooth around μ(u)\mu(u) [32] (also aiding backbone sharing in Figure 5). and one-step matching in § 3.4. Reversing the path therefore keeps training smooth under two measurable encoder properties (Sec. A.1):

(C1) Strong cross-level mean guidance: V(a∣c)V(a|c) is small compared with V(a∣y)V(a|y), so μ(c)\mu(c) anchors spatial structure and Stage 2 refines a narrow residual smoothly.

(C2) Low-variance, class-organized deep target: yy explains a larger fraction of the variance of cc than of aa, so predicting cc first operates at lower normalized residual variance V(c∣y)/V(c)V(c|y)/V(c). When yy is also largely recoverable from cc, V(a∣c,y)≈V(a∣c)V(a|c,y) \approx V(a|c), which justifies conditioning Stage 2 on cc alone.

Finally, since pixel variance V(x∣hℓ)V(x|h^\ell) grows with depth ℓ\ell and lower-bounds any deterministic decoder (E∥x−D(hℓ)∥2≥V(x∣hℓ)\mathbb{E}\|x-D(h^\ell)\|^2 \ge V(x|h^\ell)), a deterministic decoder from deep features must infer missing detail using its learned prior; the result may be averaged or biased toward patterns favored by the model rather than those in the original image [6, 13, 38]. This motivates a shallow final level. A shallower aa, however, weakens (C1), so the shallow level trades reconstruction against generation, and each additional level with imperfect upstream prediction c^\hat{c} adds mean-guidance drift E∥μ(c)−μ(c^)∥2\mathbb{E}\|\mu(c)-\mu(\hat{c})\|^2 (mitigated by condition noise σ>0\sigma> 0 in Eq. (4), and avoided within redundant similarity regimes in Figure 3).

Empirical Evidence from Encoder Features

Measurement protocol. We extract all 24 DINOv3-L layers for the 50K ImageNet validation images at 256×256256 \times256 and sample 64 patch tokens per image. For each pair of layers, we fit a linear map from one layer’s token to the other’s at the same position and report its R2R^2. By Definition 1, 1−R21-R^2 upper-bounds the normalized residual variance V/V(a)V/V(a); nonlinear predictors could only tighten it. The class predictor is the per-class mean. For Figure 7c, we train an LDA classifier on mean-pooled features of 40 images per class and test on the remaining 10.

Figure 7. Layer statistics of DINOv3-L on ImageNet validation (50K images; zero-based layers). R2R^2 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−R21-R^2), a proxy for what the block loses. Stage 2 restores what blocks 7–22 lose, and the decoder the rest. (b) Variance of h7h^7 explained by layer jj or by the class label. (c) Linear-probe class accuracy, and the variance of mean-pooled features explained by the class.

Condition (C1). For a=h7a=h^7 and c=h23c=h^{23}, the linear R2R^2 is 57.4%, whereas the class alone explains 4.2% (Figure 7b). Hence V(a∣c)≤0.426 V(a)V(a|c) \le0.426\,V(a), while V(a∣y)=0.958 V(a)V(a|y)=0.958\,V(a), the class mean being the optimal predictor from yy. Stage 2 thus receives strong spatial mean guidance and generates less than half of the variation that direct generation from the class must produce. The R2R^2 decreases monotonically from 96.2% for c=h8c=h^8 to 57.4% for h23h^{23}, and the variance lost per block grows from 0.6% in the first block to 15–22% in the last ones (Figure 7a). (C1) weakens as the gap between levels widens.

Condition (C2). The class explains 18.6% of the token variance of h23h^{23} but 4.2% of that of h7h^7. For mean-pooled features, the class-explained variance is 44.4% versus 23.6%, and linear-probe accuracy is 77.7% versus 23.2% (Figure 7c). The deep level is thus organized by class with substantially smaller normalized residual variance, and the class is largely recoverable from it.

Ablations. The analysis predicts the outcome of each ablation under the same five-epoch recipe (Table 4).

  • Removing the deep level (Prop. 1). Generating the same shallow target directly from the class leaves all of V(a∣y)V(a|y) to a single stage under weak mean guidance (R2=4.2%R^2=4.2\%). FID degrades from 1.96 to 15.94 with the target and decoder unchanged (Table 4a).

  • Moving the shallow level (C1). With the same decoder architecture, moving the DINOv3-S shallow target from

layer 1 to 3 and 5 narrows the gap to the deep level and raises the reconstruction floor: FID improves from 4.36 to 3.14 and 2.69, while PSNR drops from 30.19 to 28.32 and 25.48 dB.

  • Decoding the deep level. On DINOv3-L with a matched 89M decoder, decoding z23Lz^{L}_{23} directly (z23L→xz^{L}_{23} \to x) drops PSNR from 30.25 to 19.87 dB and worsens FID from 1.96 to 2.65 (Table 4a). Similarly, the final-layer RAE latent of DINOv2-B gives 18.09 dB PSNR with a 415M decoder and changes the hat color in Figure 2.

  • Adding a level and condition noise. A third stage at layer 16 (within the late regime) raises FID from 1.96 to 2.51 (Table 4a); here the accumulated guidance drift of the extra factor outweighs the shorter gaps. Removing condition noise (σ=0\sigma= 0) similarly degrades FID from 1.96 to 2.10 (Table 4c).

  • Replacing the shallow level with a VAE latent. Generating SD-VAE latents from the same deep level gives 2.94 FID (Table 4a). Unlike h7h^{7}, VAE latents are not part of the encoder path that produces h23h^{23}.

Beyond final quality, the decomposition also trains fast: RevFlow reaches 1.96 FID after five epochs (Table 1), and on text-to-image generation reaches the best GenEval and DPG-Bench scores of our RAE reproduction 1.6× and 3.1× faster (Figure 6). The optimization recipe also contributes to this speed.

References

  1. [1]Alessandro Achille and Stefano Soatto. Emergence of invariance and disentanglement in deep representations. Journal of Machine Learning Research, 19(50):1–34, 2018. 2arxiv.org/abs/1706.01350
  2. [2]Michael S Albergo and Eric Vanden-Eijnden. Building normalizing flows with stochastic interpolants. arXiv preprint arXiv:2209.15571, 2022. 3arxiv.org/abs/2209.15571
  3. [3]Alan Baade, Eric Ryan Chan, Kyle Sargent, Changan Chen, Justin Johnson, Ehsan Adeli, and Li Fei-Fei. Latent forcing: Reordering the diffusion trajectory for pixel-space image generation. arXiv preprint arXiv:2602.11401, 2026. 3, 6arxiv.org/abs/2602.11401
  4. [4]Arpit Bansal, Eitan Borgnia, Hong-Min Chu, Jie S. Li, Hamid Kazemi, Furong Huang, Micah Goldman, Jonas Geiping, and Tom Goldstein. Cold diffusion: Inverting arbitrary image transforms without noise. In Advances in Neural Information Processing Systems, 2023. 4arxiv.org/abs/2208.09392
  5. [5]Black Forest Labs. FLUX.1 [dev]. https://huggingface.co/black-forest-labs/FLUX.1-dev, 2024. 8
  6. [6]Yochai Blau and Tomer Michaeli. The perception-distortion tradeoff. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6228–6237, 2018. 4, 13DOI
  7. [7]Mathilde Caron, Hugo Touvron, Ishan Misra, Hervé Jégou, Julien Mairal, Piotr Bojanowski, and Armand Joulin. Emerging properties in self-supervised vision transformers. In Proceedings of the IEEE/CVF international conference on computer vision, pages 9650–9660, 2021. 3arxiv.org/abs/2104.14294
  8. [8]Junsong Chen, Chongjian Ge, Enze Xie, Yue Wu, Lewei Yao, Xiaozhe Ren, Zhongdao Wang, Ping Luo, Huchuan Lu, and Zhenguo Li. PixArt-Σ: Weak-to-strong training of diffusion transformer for 4k text-to-image generation. In European Conference on Computer Vision, 2024. 8
  9. [9]Shoufa Chen, Chongjian Ge, Shilong Zhang, Peize Sun, and Ping Luo. Pixelflow: Pixel-space generative models with flow. arXiv preprint arXiv:2504.07963, 2025. 8arxiv.org/abs/2504.07963
  10. [10]Hyung Won Chung, Le Hou, Shayne Longpre, Barret Zoph, Yi Tay, William Fedus, Yunxuan Li, Xuezhi Wang, Mostafa Dehghani, Siddhartha Brahma, Albert Webson, Shixiang Shane Gu, Zhuyun Dai, Mirac Suzgun, Xinyun Chen, Aakanksha Chowdhery, Alex Castro-Ros, Marie Pellat, Kevin Robinson, Dasha Valter, Sharan Narang, Gaurav Mishra, Adams Yu, Vincent Zhao, Yanping Huang, Andrew Dai, Hongkun Yu, Slav Petrov, Ed H. Chi, Jeff Dean, Jacob Devlin, Adam Roberts, Denny Zhou, Quoc V. Le, and Jason Wei. Scaling instruction-finetuned language models. Journal of Machine Learning Research, 25(70):1–53, 2024. 8
  11. [11]Mingyang Deng, He Li, Tianhong Li, Yilun Du, and Kaiming He. Generative modeling via drifting. arXiv preprint arXiv:2602.04770, 2026. 3, 6arxiv.org/abs/2602.04770
  12. [12]Prafulla Dhariwal and Alexander Nichol. Diffusion models beat gans on image synthesis. Advances in neural information processing systems, 34:8780–8794, 2021. 3, 6
  13. [13]Alexey Dosovitskiy and Thomas Brox. Inverting visual representations with convolutional networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4829–4837, 2016. 3, 13arxiv.org/abs/1506.02753
  14. [14]Patrick Esser, Robin Rombach, and Björn Ommer. Taming transformers for high-resolution image synthesis. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 12873–12883, 2021. 3arxiv.org/abs/2012.09841
  15. [15]Lan Feng, Wuyang Li, Éloi Zablocki, Matthieu Cord, and Alexandre Alahi. Representation distribution matching for one-step visual generation. arXiv preprint arXiv:2607.02375, 2026. 3, 6arxiv.org/abs/2607.02375
  16. [16]Zhengyang Geng, Mingyang Deng, Xingjian Bai, J. Zico Kolter, and Kaiming He. Mean flows for one-step generative modeling. arXiv preprint arXiv:2505.13447, 2025. 3, 7arxiv.org/abs/2505.13447
  17. [17]Dhruba Ghosh, Hanna Hajishirzi, and Ludwig Schmidt. GenEval: An object-focused framework for evaluating text-to-image alignment. arXiv preprint arXiv:2310.11513, 2023. 8arxiv.org/abs/2310.11513
  18. [18]Arthur Gretton, Karsten M. Borgwardt, Malte J. Rasch, Bernhard Schölkopf, and Alexander Smola. A kernel two-sample test. Journal of Machine Learning Research, 13(25):723–773, 2012. 3, 6DOI
  19. [19]Jiatao Gu, Shuangfei Zhai, Yizhe Zhang, Joshua Susskind, and Navdeep Jaitly. Matryoshka diffusion models. In International Conference on Learning Representations, pages 30234–30262, 2024. 3arxiv.org/abs/2310.15111
  20. [20]Kaiming He, Xinlei Chen, Saining Xie, Yanghao Li, Piotr Dollár, and Ross Girshick. Masked autoencoders are scalable vision learners. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 16000–16009, 2022. 3
  21. [21]Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. In Advances in Neural Information Processing Systems, pages 6840–6851, 2020. 2, 3arxiv.org/abs/2006.11239
  22. [22]Jonathan Ho, Chitwan Saharia, William Chan, David J. Fleet, Mohammad Norouzi, and Tim Salimans. Cascaded diffusion models for high fidelity image generation. Journal of Machine Learning Research, 23(47):1–33, 2022. 3, 5arxiv.org/abs/2106.15282
  23. [23]Emiel Hoogeboom, Jonathan Heek, and Tim Salimans. simple diffusion: End-to-end diffusion for high resolution images. In International Conference on Machine Learning, pages 13213–13232, 2023. 3, 6arxiv.org/abs/2301.11093
  24. [24]Emiel Hoogeboom, Thomas Mensink, Jonathan Heek, Kay Lamerigts, Ruiqi Gao, and Tim Salimans. Simpler diffusion: 1.5 fid on imagenet512 with pixel-space diffusion. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 18062–18071, 2025. 6DOI
  25. [25]Xiwei Hu, Rui Wang, Yixiao Fang, Bin Fu, Pei Cheng, and Gang Yu. ELLA: Equip diffusion models with LLM for enhanced semantic alignment. arXiv preprint arXiv:2403.05135, 2024. 8arxiv.org/abs/2403.05135
  26. [26]Keller Jordan, Yuchen Jin, Vlado Boza, Jiacheng You, Franz Cesista, Laker Newhouse, and Jeremy Bernstein. Muon: An optimizer for hidden layers in neural networks, 2024. 7
  27. [27]Tero Karras, Timo Aila, Samuli Laine, and Jaakko Lehtinen. Progressive growing of gans for improved quality, stability, and variation. arXiv preprint arXiv:1710.10196, 2017. 3arxiv.org/abs/1710.10196
  28. [28]Tero Karras, Miika Aittala, Tuomas Kynkäänniemi, Jaakko Lehtinen, Timo Aila, and Samuli Laine. Guiding a diffusion model with a bad version of itself. Advances in Neural Information Processing Systems, 37:52996–53021, 2024. 6, 7arxiv.org/abs/2406.02507
  29. [29]Diederik P. Kingma and Max Welling. Auto-encoding variational Bayes. In International Conference on Learning Representations, 2014. 3arxiv.org/abs/1312.6114
  30. [30]Xingjian Leng, Jaskirat Singh, Yunzhong Hou, Zhenchang Xing, Saining Xie, and Liang Zheng. Repa-e: Unlocking vae for end-to-end tuning of latent diffusion transformers. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 18262–18272, 2025. 3, 6, 7arxiv.org/abs/2504.10483
  31. [31]Xingjian Leng, Jaskirat Singh, Zhanhao Liang, Ethan Smith, Martin Bell, Aninda Saha, Yuhui Yuan, and Liang Zheng. Diffusion-fusionbench: On holistic evaluation of diffusion transformers. arXiv preprint arXiv:2606.24888, 2026. 7arxiv.org/abs/2606.24888
  32. [32]Tianhong Li and Kaiming He. Back to basics: Let denoising generative models denoise. arXiv preprint arXiv:2511.13720, 2025. 3, 5, 6, 12arxiv.org/abs/2511.13720
  33. [33]Tianhong Li, Dina Katabi, and Kaiming He. Return of unconditional generation: A self-supervised representation generation method. In Advances in Neural Information Processing Systems, 2024. 3arxiv.org/abs/2312.03701
  34. [34]Yujia Li, Kevin Swersky, and Rich Zemel. Generative moment matching networks. In International conference on machine learning, pages 1718–1727. PMLR, 2015. 3arxiv.org/abs/1502.02761
  35. [35]Yaron Lipman, Ricky TQ Chen, Heli Ben-Hamu, Maximilian Nickel, and Matt Le. Flow matching for generative modeling. arXiv preprint arXiv:2210.02747, 2022. 3arxiv.org/abs/2210.02747
  36. [36]Xingchao Liu, Chengyue Gong, and Qiang Liu. Flow straight and fast: Learning to generate and transfer data with rectified flow. arXiv preprint arXiv:2209.03003, 2022.arxiv.org/abs/2209.03003
  37. [37]Nanye Ma, Mark Goldstein, Michael S Albergo, Nicholas M Boffi, Eric Vanden-Eijnden, and Saining Xie. SiT: Exploring flow and diffusion-based generative models with scalable interpolant transformers. In European Conference on Computer Vision, pages 23–40. Springer, 2024. 3, 6, 7arxiv.org/abs/2401.08740
  38. [38]Aravindh Mahendran and Andrea Vedaldi. Understanding deep image representations by inverting them. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5188–5196, 2015. 2, 3, 13
  39. [39]Maxime Oquab, Timothée Darcet, Théo Moutakanni, Huy Vo, Marc Szafraniec, Vasil Khalidov, Pierre Fernandez, Daniel Haziza, Francisco Massa, Alaeddin El-Nouby, et al. DinoV2: Learning robust visual features without supervision. arXiv preprint arXiv:2304.07193, 2023. 3arxiv.org/abs/2304.07193
  40. [40]Zihao Pan, Mengting Chen, Cheng Shi, Taihang Hu, Zhen-grong Yue, Zikang Wang, Yuan Wang, Pei Li, and Sibei Yang. Learning representations to guide pixel diffusion transformers. arXiv preprint arXiv:2610.12978, 2026. 6arxiv.org/abs/2610.12978
  41. [41]Taesung Park, Ming-Yu Liu, Ting-Chun Wang, and Jun-Yan Zhu. Semantic image synthesis with spatially-adaptive normalization. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 2337–2346, 2019. 3arxiv.org/abs/1903.07291
  42. [42]William Peebles and Saining Xie. Scalable diffusion models with transformers. In Proceedings of the IEEE/CVF international conference on computer vision, pages 4195–4205, 2023. 3, 4, 6arxiv.org/abs/2212.09748
  43. [43]Pablo Pernias, Dominic Rampas, Mats L. Richter, Christopher J. Pal, and Marc Auberville. Würstchen: An efficient architecture for large-scale text-to-image diffusion models. In International Conference on Learning Representations, 2024. 3
  44. [44]Dustin Podell, Zion English, Kyle Lacey, Andreas Blattmann, Tim Dockhorn, Jonas Müller, Joe Penna, and Robin Rombach. SDXL: Improving latent diffusion models for high-resolution image synthesis. arXiv preprint arXiv:2307.01952, 2023. 8arxiv.org/abs/2307.01952
  45. [45]Aditya Ramesh, Prafulla Dhariwal, Alex Nichol, Casey Chu, and Mark Chen. Hierarchical text-conditional image generation with CLIP latents. arXiv preprint arXiv:2204.06125, 2022. 3arxiv.org/abs/2204.06125
  46. [46]Ali Razavi, Aaron Van den Oord, and Oriol Vinyals. Generating diverse high-fidelity images with vq-vae-2. Advances in neural information processing systems, 32, 2019. 1, 3arxiv.org/abs/1906.00446
  47. [47]Severi Rissanen, Markus Heikkonen, and Arno Solin. Generalized modelling with inverse heat dissipation. In International Conference on Learning Representations, 2023. 2, 4arxiv.org/abs/2206.13397
  48. [48]Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. High-resolution image synthesis with latent diffusion models. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 10684–10695, 2022. 2, 3arxiv.org/abs/2112.10752
  49. [49]Tim Salimans and Jonathan Ho. Progressive distillation for fast sampling of diffusion models. arXiv preprint arXiv:2202.00512, 2022. 3arxiv.org/abs/2202.00512
  50. [50]Oriane Siméoni, Huy V. Vo, Maximilian Seitzer, Federico Baldassarre, Maxime Oquab, Cijo Jose, Vasil Khalidov, Marc Szafraniec, Seungyun Yi, Michaël Ramonijsoa, et al. DINOv3. arXiv preprint arXiv:2508.10104, 2025. 3arxiv.org/abs/2508.10104
  51. [51]Jaskirat Singh, Boyang Zheng, Zongze Wu, Richard Zhang, Eli Shechtman, and Saining Xie. Improved baselines with representation autoencoders. arXiv preprint arXiv:2605.18324, 2026. 2, 3, 5arxiv.org/abs/2605.18324
  52. [52]Jascha Sohl-Dickstein, Eric Weiss, Niru Maheswaranathan, and Surya Ganguli. Deep unsupervised learning using nonequilibrium thermodynamics. In International Conference on Machine Learning, pages 2256–2265, 2015. 2
  53. [53]Yang Song, Jascha Sohl-Dickstein, Diederik P Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. Score-based generative modeling through stochastic differential equations. arXiv preprint arXiv:2011.13456, 2020. 3, 12arxiv.org/abs/2011.13456
  54. [54]Yang Song, Prafulla Dhariwal, Mark Chen, and Ilya Sutskever. Consistency models. In International Conference on Machine Learning, pages 32211–32252, 2023. 3arxiv.org/abs/2303.01469
  55. [55]Keyu Tian, Yi Jiang, Zehuan Yuan, Bingyue Peng, and Liwei Wang. Visual autoregressive modeling: Scalable image generation via next-scale prediction. Advances in neural information processing systems, 37:84889–84865, 2024. 3arxiv.org/abs/2404.02905
  56. [56]Aaron van den Oord, Oriol Vinyals, and Koray Kavukcuoglu. Neural discrete representation learning. In Advances in Neural Information Processing Systems, 2017. 3arxiv.org/abs/1711.00937
  57. [57]Shuai Wang, Ziteng Gao, Chenhui Zhu, Weilin Huang, and Limin Wang. Pixnerd: Pixel neural field diffusion. arXiv preprint arXiv:2507.23268, 2025. 8arxiv.org/abs/2507.23268
  58. [58]Shuai Wang, Zhi Tian, Weilin Huang, and Limin Wang. Ddt: Decoupled diffusion transformer. arXiv preprint arXiv:2504.05741, 2025. 7arxiv.org/abs/2504.05741
  59. [59]Jiawei Yang, Zhengyang Geng, Xuan Ju, Yonglong Tian, and Yue Wang. Representation Fréchet loss for visual generation. arXiv preprint arXiv:2604.28190, 2026. 3, 6, 7arxiv.org/abs/2604.28190
  60. [60]Jiawei Yang, Tianhong Li, Lijie Fan, Yonglong Tian, and Yue Wang. Latent denoising makes good tokenizers. In International Conference on Learning Representations, pages 61642–61668, 2026. 3, 6arxiv.org/abs/2507.15856
  61. [61]Jingfeng Yao, Bin Yang, and Xinggang Wang. Reconstruction vs. generation: Taming optimization dilemma in latent diffusion models. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 15703–15712, 2025. 1, 2, 3, 6, 7arxiv.org/abs/2501.01423
  62. [62]Tianwei Yin, Michaël Gharbi, Richard Zhang, Eli Shechtman, Frédó Durand, William T. Freeman, and Taesung Park. One-step diffusion with distribution matching distillation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 6613–6623, 2024. 3arxiv.org/abs/2311.18828
  63. [63]Sihyun Yu, Sangkyung Kwak, Huiwon Jang, Jongheon Jeong, Jonathan Huang, Jinwoo Shin, and Saining Xie. Representation alignment for generation: Training diffusion transformers is easier than you think. arXiv preprint arXiv:2410.06940, 2024. 2, 3, 6arxiv.org/abs/2410.06940
  64. [64]Zhengrong Yue, Haiyu Zhang, Xiangyu Zeng, Boyu Chen, Chenting Wang, Shaobin Zhuang, Lu Dong, Yi Wang, Limin Wang, and Yali Wang. Uniflow: A unified pixel flow tokenizer for visual understanding and generation. In International Conference on Learning Representations, pages 84741–84772, 2026. 3, 6arxiv.org/abs/2510.10575
  65. [65]Lvmin Zhang, Anyi Rao, and Maneesh Agrawala. Adding conditional control to text-to-image diffusion models. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 3836–3847, 2023. 3arxiv.org/abs/2302.05543
  66. [66]Boyang Zheng, Nanye Ma, Shengbang Tong, and Saining Xie. Diffusion transformers with representation autoencoders. arXiv preprint arXiv:2510.11690, 2025. 2, 3, 4, 6, 7arxiv.org/abs/2510.11690
  67. [67]Xingyu Zhou, Qifan Li, Xiaobin Hu, Hai Chen, and Shuhang Gu. Guiding a diffusion transformer with the internal dynamics of itself. arXiv preprint arXiv:2512.24176, 2025. 6arxiv.org/abs/2512.24176

Paper details

vlnc:W_uydct8qf
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents