Diffusion transformers (DiTs) have become the dominant architecture for high-fidelity image synthesis, yet they suffer from slow training convergence and high computational cost. Two recent lines of work address this from complementary angles: Representation Alignment (REPA) accelerates DiT training by aligning intermediate features with a pretrained external representation model (e.g., DINOv2), while Representation Auto-Encoders (RAE) replace the pixel-space VAE with a compact representation-space tokenizer learned from self-supervised features. However, these approaches are developed and applied in isolation: REPA still relies on a pixel-space VAE for latent diffusion, and RAE does not exploit the alignment signal that accelerates the diffusion backbone. We present UniRA, a unified framework that couples representation alignment and representation auto-encoding into a single objective. UniRA learns a representation-space tokenizer whose output serves simultaneously as the diffusion target and the alignment anchor, so the tokenizer, the diffusion backbone, and the external representation model are co-optimized. We give a theoretical result showing that this joint optimization preserves the representation quality of the external model while accelerating diffusion convergence, and we derive a principled weighting that balances the reconstruction, alignment, and generation objectives. On ImageNet class-conditional generation at 256256 and 512512, UniRA matches or surpasses state-of-the-art DiTs (SD3, REPA, RAE) in FID while reducing training steps by up to 5*. We further show that the unified representation space supports improved zero-shot classification and linear probing, confirming that generation and understanding benefit from a shared, aligned latent space.
Figures & tables
Figure 1: Motivation. REPA aligns the diffusion backbone with an external representation model but keeps a pixel-space VAE. RAE replaces the VAE with a representation tokenizer but does not align the backbone. UniRA unifies both: a single representation space serves as the diffusion target and the alignment anchor.
Method
FID-256 ↓
FID-512 ↓
IS ↑
Steps to FID 5.0
Zero-shot / Lin-probe
DiT ( Peebles and Xie, 2023 )
9.62
11.2
158
7M
— / —
SD3 ( Esser et al., 2024 )
7.83
8.9
178
4M
— / —
REPA ( Yu et al., 2024 )
5.20
6.1
201
1.2M
41.2 / 62.4
REPA-E ( Yu and others, 2025a )
5.18
6.0
203
1.0M
41.5 / 62.8
U-REPA ( Yu and others, 2025b )
5.10
5.9
205
0.9M
42.0 / 63.1
RAE ( Li and others, 2024 )
5.35
6.4
196
1.5M
40.8 / 61.5
Table 1: ImageNet class-conditional generation. FID ( ↓ ) and Inception Score ( ↑ ) at 256×256 and 512×512 , training steps to reach FID 5.0 , and zero-shot/linear-probe accuracy (%). Ours is bold.
Configuration
FID-256 ↓
Steps to FID 5.0
UniRA (full)
4.91
0.8M
w/o alignment ( α=0 )
5.35
1.5M
w/o representation tokenizer (pixel VAE)
5.20
1.2M
fixed α=0.5 (no MGDA)
5.02
0.9M
align at layer 8
5.05
0.9M
align at layer 16
4.95
0.85M
Table 2: Ablation study. Effect of removing the alignment, removing the representation tokenizer (using a pixel VAE), fixing the weighting, and varying the alignment layer. FID-256 ( ↓ ) and steps to FID 5.0.
Figure 2: UniRA architecture. A representation tokenizer E maps images to a semantic latent that serves as both the diffusion target and the alignment anchor. A projector Π aligns a middle-layer DiT feature with the tokenizer output. The tokenizer, backbone, and projector are co-optimized.
Figure 3: Ablation. Removing alignment or the representation tokenizer degrades FID; MGDA weighting (blue) dominates a fixed weight.
Figure 4: Convergence. UniRA reaches a given FID target in fewer steps than REPA, RAE, and SD3.
Figure 5: Steps to FID target. UniRA dominates across FID targets from 20 to 5 .
Figure 6: Sensitivity to α . A moderate α is Pareto-optimal; too large over-regularizes.
Figure 7: Qualitative samples. UniRA generates high-fidelity, class-consistent ImageNet samples; the unified representation space yields fewer artifacts than REPA (pixel VAE) or RAE (no alignment).
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
Figure 8: Additional analysis. Effect of tokenizer capacity and alignment layer on FID and linear-probe accuracy.
Representation Autoencoders (RAE) replace traditional VAE with pretrained vision encoders. In this paper, we systematically investigate several design choices and find three insights which simplify and improve RAE. First, we study a generalized formulation where the representation is defined as sum of the last k encoder layers rather than solely the final layer. This simple change greatly improves reconstruction without encoder finetuning or specialized data (e.g., text, faces). Second, we study the prevalent assumption that RAE (using pretrained representation as encoder) replaces representation alignment (REPA), which distills the same representation to intermediate layers instead. Through large-scale empirical analysis, we uncover a surprising finding: RAE and REPA exhibit complementary working mechanisms, allowing the same representation to be used as both encoder and target for intermediate diffusion layers. Finally, the original RAE struggles with classifier-free guidance (CFG) and requires training a second, weaker diffusion model for AutoGuidance (AG). We show that REPA itself can be viewed as x-prediction in RAE latent space. By simply re-parameterizing the output of the DiT model, it can provide guidance for "free". Overall, RAEv2 leads to more than 10x faster convergence over the original RAE, achieving a state-of-the-art gFID of 1.06 in just 80 epochs on ImageNet-256. On FDr6, RAEv2 achieves a state-of-the-art 2.17 at just 80 epochs compared to the previous best 3.26 (800 epochs) without any post-training. This motivates EPFID@k (epochs to reach unguided gFID < k) as a measure of training efficiency. RAEv2 attains an EPFID@2 of 35 epochs, versus 177 for the original RAE. We also validate our approach across diverse settings for text-to-image generation and navigation world models, showing consistent improvements. The code is available at https://raev2.github.io.
Latent diffusion models (LDMs) enable high-fidelity synthesis by operating in learned latent spaces. However, training state-of-the-art LDMs requires complex staging: a tokenizer must be trained first, before the diffusion model can be trained in the frozen latent space. We propose UNITE - an autoencoder architecture for unified tokenization and latent diffusion. UNITE consists of a Generative Encoder that serves as both image tokenizer and latent generator via weight sharing. Our key insight is that tokenization and generation can be viewed as the same latent inference problem under different conditioning regimes: tokenization infers latents from fully observed images, whereas generation infers them from noise together with text or class conditioning. Motivated by this, we introduce a single-stage training procedure that jointly optimizes both tasks via two forward passes through the same Generative Encoder. The shared parameters enable gradients to jointly shape the latent space, encouraging a "common latent language". Across image and molecule modalities, UNITE achieves near state of the art performance without adversarial losses or pretrained encoders (e.g., DINO), reaching FID 2.12 and 1.73 for Base and Large models on ImageNet 256 x 256. We further analyze the Generative Encoder through the lenses of representation alignment and compression. These results show that single stage joint training of tokenization & generation from scratch is feasible.
Representation-alignment methods effectively accelerate the diffusion transformer training. REPA, for example, uses a pretrained vision encoder to supervise an intermediate layer through an MLP projection head which is discarded after training. It aims to import semantics from the vision encoder to the diffusion backbone. While this objective is achieved at early layers by back-propagating the alignment loss, there is no guarantee that later layers, supervised by the velocity prediction loss alone, can well access such semantics. We propose a simple solution, representation conditioning (RECON), to improve semantics in later layers. During training, we feed the pretrained vision encoder tokens into later layers; during inference, because we no longer have the clean image, we reuse the MLP head (as a proxy to the vision encoder) and project its output tokens to the later layers. Our method adds no parameters and leads to much faster convergence: RECON is 63× faster than SiT and 25× faster than REPA. Code is available at https://github.com/saeidrazavi/RECON