Compresses images into a small latent space where diffusion actually happens, then decodes the result back to pixels.
Introduced inDec 2013Auto-Encoding Variational Bayes
Latent diffusion models never diffuse pixels directly. A variational autoencoder first compresses the image into a compact latent tensor, typically 8× smaller per side (16× in newer models such as Qwen-Image 2.1), the diffusion process denoises in that space, and the VAE decoder renders the final latent back into pixels. This is the trick that made high-resolution diffusion affordable, and it is why generation graphs end with a VAE decode stage.
Share of new models that have included a VAE over time.
Open any of these on hfviewer to find this block in the interactive architecture graph.
View 362 catalog matches for VAE (latent autoencoder) →
hfviewer renders the full architecture of 6,700+ Hugging Face models as interactive graphs. Hover any block to see what it does, with this model’s real numbers.
Browse all model graphs →