NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

DGAE: Diffusion-Guided Autoencoder for Efficient Latent Representation Learning

Dongxu Liu, Yuang Peng, Haomiao Tang, Yuwei Chen, Chunrui Han, Zheng Ge, Daxin Jiang, Mingxue LiaoarXiv 2025 · DOI

TL;DR

This paper introduces DGAE, a novel autoencoder that uses diffusion models to guide its decoder. This approach significantly improves reconstruction quality, especially under high compression, and leads to more compact and expressive latent representations. These improved latent spaces, in turn, accelerate the training of powerful diffusion-based generative models.

What Problem Does This Paper Address?

Modern generative models, particularly for images and videos, rely heavily on autoencoders to compress high-dimensional data into a lower-dimensional "latent space." This compression is crucial for efficiency, allowing models like Latent Diffusion Models (LDMs) to operate much faster. However, a key challenge is the trade-off between compression ratio and reconstruction quality: aggressive compression often leads to a loss of detail. Existing methods, like those using Generative Adversarial Networks (GANs) to guide autoencoders, can improve reconstruction but suffer from training instability and sensitivity to hyperparameters. This paper aims to address these issues by developing an autoencoder that achieves high compression with stable training and superior reconstruction quality, ultimately leading to more efficient generative models.

Methods

The core innovation of DGAE lies in its use of a diffusion model to guide the decoder. Instead of directly reconstructing an image from the latent representation (as in traditional VAEs or GAN-guided VAEs), DGAE uses the latent code as a conditioning signal for a diffusion decoder. This diffusion decoder iteratively denoises random noise to reconstruct the image.

Here's a breakdown of the key methodological aspects:

  • Diffusion-Guided Decoder: The decoder is a conditional diffusion model that learns to reverse a noising process. The latent representation from the encoder acts as a condition, steering the denoising process towards the correct image. This leverages the strong generative capabilities of diffusion models to enhance the decoder's ability to recover fine-grained details.
  • Score Matching Loss: The training objective for the diffusion decoder is based on denoising score matching, which is a theoretically grounded way to learn the gradient of the data distribution. This replaces the traditional l2 reconstruction loss used in VAEs.
  • Perceptual Loss: To further improve visual quality, DGAE incorporates a perceptual loss (LLPIPS), adapted to work with the diffusion process by computing it between the predicted denoised image and the ground truth.
  • VAE Framework: DGAE is built upon the Variational Autoencoder (VAE) framework, meaning it still learns a probabilistic latent representation and optimizes an objective that includes a KL divergence term to regularize the latent distribution.

Datasets

The paper primarily uses the ImageNet-1K dataset for training and evaluating both reconstruction and generation tasks. Images are preprocessed to a resolution of 256x256 pixels.

Key Insights and Ideas

  • Decoder is King: The paper empirically demonstrates that the decoder's capacity plays a much more critical role in reconstruction quality than the encoder's, especially under high compression. This insight justifies focusing optimization efforts on the decoder.
  • Diffusion Models for Reconstruction: By framing visual reconstruction as a generative task and using a diffusion model as the decoder, DGAE effectively leverages the strengths of diffusion models (stable training, ability to model complex distributions) to overcome the limitations of traditional autoencoder decoders.
  • Smoother Latent Space: Visualizations suggest that DGAE learns a smoother latent space compared to GAN-guided methods like SD-VAE. This smoothness simplifies the task for generative models that use this latent space, potentially leading to faster convergence and better results.
  • Compact Latent Spaces are Beneficial: The research shows that smaller latent representations, enabled by DGAE's improved decoder, not only achieve high compression but also significantly accelerate the training of downstream diffusion-based generative models.

Key Results

  • Improved Reconstruction: DGAE consistently outperforms SD-VAE in reconstruction quality (measured by rFID, PSNR, SSIM) across various spatial compression rates and latent sizes. For instance, at a latent size of 1024, DGAE maintains good visual quality for small text and faces, where SD-VAE tends to collapse.
  • State-of-the-Art Performance with Smaller Latent Space: DGAE achieves comparable reconstruction performance to SD-VAE but with a significantly smaller latent space (e.g., 2x smaller).
  • Stable Training: DGAE benefits from the stable training dynamics of diffusion models, avoiding the mode collapse and hyperparameter sensitivity issues often encountered with GAN-based approaches.
  • Faster Diffusion Model Training: When used as a latent space for a diffusion model (DiT-XL/1), DGAE-learned representations lead to faster convergence, achieving comparable generation quality with fewer training steps compared to SD-VAE.
  • Scalability: Scaling up the decoder architecture in DGAE (DGAE-B, DGAE-M, DGAE-L) further enhances reconstruction quality, demonstrating the framework's scalability.

Limitations and Future Work

  • Computational Cost of Diffusion Decoder: While DGAE offers benefits, diffusion models are inherently more computationally intensive during inference than single-step decoders. The paper focuses on improving the autoencoder itself, not necessarily the speed of the diffusion decoder.
  • Further Exploration of Latent Space Properties: While DGAE's latent space is shown to be smoother and more effective, deeper theoretical analysis of its properties and how they specifically benefit downstream tasks could be a future direction.
  • Application to Video: The paper focuses on image generation. Extending DGAE to video generation tasks, where latent representations are even more critical for efficiency, is a natural next step.

Summary updated

BibTeX
@misc{liu2025dgae,
  author = {Dongxu Liu and Yuang Peng and Haomiao Tang and Yuwei Chen and Chunrui Han and Zheng Ge and Daxin Jiang and Mingxue Liao},
  title = {{DGAE: Diffusion-Guided Autoencoder for Efficient Latent Representation Learning}},
  year = {2025},
  eprint = {2506.09644},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.09644},
}
Figure