REPA-E: Unlocking VAE for End-to-End Tuning of Latent Diffusion Transformers

Xingjian Leng1*·Jaskirat Singh1*·Yunzhong Hou1
Zhenchang Xing2·Saining Xie3·Liang Zheng1
1 Australian National University   2Data61-CSIRO   3New York University  
*Project Lead
REPA-E: Unlocking VAE for End-to-End Tuning of Latent Diffusion Transformers

News


event [Apr 2025] Our paper, code, and pretrained models are now available on GitHub and HuggingFace.

Overview


We address a fundamental question: Can latent diffusion models and their VAE tokenizer be trained end-to-end? While training both components jointly with standard diffusion loss is observed to be ineffective — often degrading final performance — we show that this limitation can be overcome using a simple representation-alignment (REPA) loss. Our proposed method, REPA-E, enables stable and effective joint training of both the VAE and the diffusion model, achieving state-of-the-art FID scores of 1.26 and 1.83 with and without classifier-free guidance on ImageNet 256×256.

REPA-E Overview
Through extensive evaluations, we demonstrate that our end-to-end training approach REPA-E offers four key advantages:

1. Accelerated Generation Performance: REPA-E significantly speeds up diffusion training by over 17× and 45× compared to REPA and vanilla training recipes, respectively, while achieving superior quality.

2. Improved VAE Latent-Space Structure: Joint tuning adaptively enhances latent space structure across different VAE architectures, addressing their specific limitations without explicit regularization.

3. Superior Drop-in VAE Replacements: The resulting E2E-VAE serves as a drop-in replacement for existing VAEs (e.g., SD-VAE), improving convergence and generation quality across diverse LDM architectures.

4. Effective From-Scratch Training: REPA-E enables joint training of both VAE and LDM from scratch, still achieving superior performance compared to traditional training approaches.

1. End-to-End Training Leads to Accelerated Generation Performance


Combined
Qualitative comparison between REPA and REPA-E at different training iterations

2. End-to-End Training Improves VAE Latent-Space Structure


PCA Analysis of Latent Space

3. End-to-End Tuned VAEs as Superior Drop-in Replacements


Drop-in VAE Performance Comparison

4. Enables Effective From-Scratch Training


  • End-to-end training from scratch: REPA-E can jointly train both VAE and LDM from scratch in an end-to-end manner, without requiring VAE pre-training
  • Strong performance even without initialization: While initializing the VAE with pretrained weights helps slightly improve results, from-scratch training still achieves gFID of 4.34 at 80 epochs, significantly outperforming REPA (7.90)
From-Scratch Training Performance

Citation


@article{leng2025repae,
  title={REPA-E: Unlocking VAE for End-to-End Tuning with Latent Diffusion Transformers},
  author={Xingjian Leng and Jaskirat Singh and Yunzhong Hou and Zhenchang Xing and Saining Xie and Liang Zheng},
  year={2025},
  journal={arXiv preprint arXiv:2504.10483},
}