GuaVAE: Guidance-Aligned End-to-End VAE Training for Latent Diffusion

Andrey Chugunov, Maksim Nakhodnov, Aibek AlanovarXiv 2026

TL;DR

To generate high-resolution images efficiently, diffusion models work inside the compressed latent space of a Variational Autoencoder (VAE). Recently, researchers have improved these latent spaces by aligning them with external vision models like DINO—but that ties generative models to recognition-oriented encoders. GuaVAE cuts out the middleman: it uses a frozen diffusion transformer (DiT) itself as a teacher to supervise and tune the VAE, producing cleaner, more "generation-friendly" latent spaces that rival DINO-supervised methods and scale naturally with larger diffusion models.

What Problem Does This Paper Address?

Latent diffusion models (LDMs) rely on a VAE to compress images into a smaller latent space, where a diffusion model learns to generate samples before the VAE decoder reconstructs them into pixels. However, not all latent spaces are equally easy for a diffusion model to learn—a property known as diffusability.

To make latent spaces more diffusable, methods like VA-VAE and REPA-E align VAE latents or intermediate diffusion features with representations from pretrained visual encoders such as DINO. While effective, this introduces a catch: external encoders are trained for visual recognition, not generation, and can suppress details that matter for synthesis. They also create an external dependency that shows diminishing returns as generative models grow larger. GuaVAE asks a natural question: can internal diffusion representations themselves provide the supervision needed to improve a VAE's latent space?

Figure 1: Representation supervision for improving VAE latent spaces. (a) REPA-E aligns dif- fusion features with a pretrained visual encoder and backpropagates the alignment loss through the diffusion model to the VAE. (b) VA-VAE aligns VAE latents with a pretrained visual encoder. (c) GuaVAE replaces the external visual encoder with a diffusion teacher. Snowflakes denote frozen modules; dashed arrows show alignment gradients to the VAE encoder. Projection heads, noising, feature guidance, and other objectives are omitted; Figure 2 details the diffusion alignment pathway.

Methods

GuaVAE (Guidance-Aligned VAE) tunes a VAE end-to-end using a teacher–student setup built entirely from diffusion models (specifically, Scalable Interpolant Transformers, or SiTs):

  1. A Prepared Diffusion Teacher: Following Self-Transcendence, the authors first prepare a frozen SiT teacher with an auxiliary head that predicts diffusion velocity from an early layer. To sharpen the class-specific semantic signal in the teacher's intermediate features, they apply Classifier-Free Guidance (CFG) directly to those features: $h_{\text{cfg}} = h_u + \omega(h_c - h_u)$.
  2. Independent Low-Noise Timesteps: Rather than matching the teacher's noise level to the student's, GuaVAE samples the teacher's timestep $\tau$ independently from a low-noise interval $\mathcal{U}(0, 0.3)$, while the student sees the full noise range $t \sim \mathcal{U}(0, 1)$.
  3. Alternating Updates: A trainable SiT student takes noisy latents from the trainable VAE encoder and aligns its projected intermediate features with the teacher's CFG-enhanced targets ($\mathcal{L}_{\text{align}}$). Crucially, the standard diffusion loss ($\mathcal{L}_{\text{diff}}$) only updates the student (latents are detached), while $\mathcal{L}_{\text{align}}$ backpropagates through the student to update the VAE encoder—alongside standard VAE reconstruction and regularization losses ($\mathcal{L}_{\text{reg}}$).

After tuning, the VAE can be frozen to train new diffusion models from scratch, or the existing student can simply continue training with $\mathcal{L}_{\text{diff}}$ alone to form a complete generator.

Figure 2: GuaVAE tuning. The prepared teacher supplies CFG-enhanced targets at independently sampled low-noise timesteps. Red dashed arrows trace alignment gradients; blue dashed arrows trace diffusion gradients. The cross marks the diffusion-gradient boundary; snowflakes and flames denote frozen and trainable modules. VAE and student updates alternate (Section 3.3); normalization and reconstruction objectives are omitted.

Datasets

  • ImageNet ($256 \times 256$): Used for all VAE tuning, ablations, and class-conditional generation evaluations (measuring gFID, IS, and reconstruction metrics like PSNR and rFID).
  • COCO: Used to test whether improvements from ImageNet-tuned VAEs transfer to text-to-image generation by training an MMDiT from scratch on the frozen VAEs.

Key Insights and Ideas

  • Why timestep independence matters: If the teacher and student share the same timestep ($\tau = t$), the student can satisfy the alignment loss on its own, giving the VAE little incentive to change. Sampling $\tau$ independently from a low-noise interval $(0, 0.3)$ forces the VAE to organize its latents more cleanly, dropping downstream gFID from $35.02$ (shared) to $23.89$.
  • Feature guidance is essential: Using conditional teacher features without guidance ($\omega = 1$) yields no improvement over the original SD-VAE ($37.27$ vs. $37.02$ gFID). Amplifying the class-conditional signal with $\omega = 30$ drives gFID down to $23.89$.
  • Supervision scales with model size: When scaling both the teacher and student from SiT-B to SiT-2XL, downstream generation improves monotonically (from $23.88$ to $20.59$ gFID), closing in on DINO-supervised REPA-E ($19.40$–$20.02$).
  • Better spatial and semantic structure: PCA visualizations show that GuaVAE-tuned latents have clearer object boundaries and less checkerboard-like noise. Quantitative metrics confirm higher semantic-region self-similarity (SRSS) and more class-consistent feature neighborhoods (LNC@10).
Figure 3: PCA comparison of VAE latents. Three examples compare the original SD-VAE and IN- VAE with our tuned VAEs and REPA-E. Both + Ours columns use SiT-XL tuning with λV = 0.05.

Key Results

  • Frozen-VAE Generation (ImageNet $256 \times 256$, without CFG):
  • Tuning SD-VAE ($f8d4$) lowers gFID from $37.02 \to 22.53$ with SiT-B, and from $17.46 \to 10.29$ with SiT-XL.
  • Tuning IN-VAE ($f16d32$) lowers gFID from $39.31 \to 19.30$ with SiT-B, and from $18.00 \to 8.13$ with SiT-XL.
  • Complete Generative System (ImageNet $256 \times 256$, 800 epochs):
  • Without CFG: Achieves 3.73 gFID (IN-VAE) and 3.76 gFID (SD-VAE), outperforming self-contained baselines like Self-Transcendence ($6.73$) and LayerSync ($6.32$), as well as DINO-guided REPA ($5.90$).
  • With CFG: Achieves a competitive 1.43 gFID (IN-VAE) and 1.58 gFID (SD-VAE).
  • Transfer to Text-to-Image (COCO): An MMDiT trained on the ImageNet-tuned SD-VAE improves gFID from $12.82 \to 6.76$ without CFG, and from $5.92 \to 4.95$ with CFG—matching REPA-E ($6.62$ / $4.96$).

Limitations and Future Work

  • Reconstruction vs. Generation Trade-off: Increasing the VAE alignment weight $\lambda_V$ improves downstream generation up to a point, but consistently degrades reconstruction quality (lower PSNR, higher rFID), requiring careful tuning (e.g., $\lambda_V = 0.05$ for SiT-XL).
  • Gap to DINO-Supervised Systems: While GuaVAE narrows the gap, DINO-supervised systems like REPA-E ($1.83$ unguided, $1.26$ guided) and VA-VAE ($2.17$ unguided, $1.35$ guided) still hold an edge in system-level ImageNet-256 benchmarks.
  • Scaling Direction: Because larger diffusion teachers produce better VAEs, scaling diffusion-based supervision further is a promising direction for tokenizer learning without external visual encoders.

Summary updated

BibTeX
@misc{chugunov2026guavae,
  author = {Andrey Chugunov and Maksim Nakhodnov and Aibek Alanov},
  title = {{GuaVAE: Guidance-Aligned End-to-End VAE Training for Latent Diffusion}},
  year = {2026},
  eprint = {2611.41506},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.41506},
}
Figure