Reconstruction vs. Generation: Taming Optimization Dilemma in Latent Diffusion Models

Jingfeng Yao, Bin Yang, Xinggang Wang

Abstract

Latent Diffusion Models (LDMs) have become the standard for high-quality image synthesis, yet they suffer from an inherent "optimization dilemma": increasing latent dimensions improves image reconstruction but significantly hinders the diffusion model's ability to learn the generative distribution. This paper introduces VA-VAE, a novel alignment strategy that regularizes the latent space using vision foundation models, and LightningDiT, an efficient training framework. Together, these components achieve a state-of-the-art Fréchet Inception Distance (FID) of 1.35 on ImageNet 256×256 with a 21× increase in training efficiency compared to standard Diffusion Transformers.

Introduction

The two-stage pipeline of LDMs—comprising a Visual Autoencoder (VAE) for compression and a Diffusion Model for generation—faces a critical trade-off. While high-dimensional latent spaces are necessary to capture fine-grained details like text and facial features, they often result in "unconstrained" spaces that are difficult for diffusion models to navigate. This leads to a choice between blurry reconstructions or poor generative performance. This work addresses this dilemma by aligning the VAE's latent representations with pre-trained vision foundation models, creating a space that is both expressive and easy to learn.

Methods

The proposed solution, VA-VAE (Vision foundation model Aligned VAE), incorporates a Vision Foundation (VF) alignment loss. This loss utilizes pre-trained models such as DINOv2 or MAE as regularizers. Specifically, it employs a Marginal Cosine Similarity Loss for point-to-point alignment and a Marginal Distance Matrix Similarity Loss to preserve the relative structural relationships within the latent space.

Reconstruction of fine textual details in complex scenes, illustrating the challenges of high-dimensional latent spaces.

An adaptive weighting mechanism balances these alignment losses with traditional reconstruction objectives. To demonstrate the efficacy of this approach, the authors introduce LightningDiT, a Diffusion Transformer baseline optimized with modern techniques like Rectified Flow, RMSNorm, and Rotary Positional Embeddings (RoPE).

Key Results and Discussion

The combination of VA-VAE and LightningDiT yields significant improvements in both quality and efficiency. On the ImageNet 256×256 benchmark, the system achieved a SOTA FID of 1.35. Notably, the model reached an FID of 2.11 in only 64 epochs, representing a 21× speedup over the original DiT's 1400-epoch requirement.

Maintaining facial fidelity in group portraits, a key benchmark for evaluating generative model performance.

t-SNE analysis reveals that the VF Loss transforms messy, concentrated latent distributions into uniform, well-distributed spaces, facilitating faster convergence. By tapping into the priors of pre-trained vision models, the resulting latent space becomes inherently more "generation-friendly."

Limitations and Future Work

While the results on class-conditional ImageNet are impressive, the authors note that different foundation models (like MAE vs. DINOv2) require specific hyperparameter tuning to avoid over-regularization. Future research will explore how this alignment strategy scales to massive-scale text-to-image datasets and the impact of diverse foundation model priors on specialized domains like medical imaging.

Summary updated

BibTeX
@inproceedings{yao2025reconstruction,
  author = {Jingfeng Yao and Bin Yang and Xinggang Wang},
  title = {{Reconstruction vs. Generation: Taming Optimization Dilemma in Latent Diffusion Models}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.01464},
}
Figure