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 ~8× per side into a compact latent tensor, 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.
Browse all 216 models with this in the catalog →
hfviewer renders the full architecture of 3,500+ Hugging Face models as interactive graphs. Hover any block to see what it does, with this model’s real numbers.
Browse all model graphs →