Abstract
Most successful image synthesis models today utilize multi-stage processes to combine the strengths of different architectures. Typically, this involves a VAE-like model for reconstructing embeddings into images and a prior model to generate those embeddings. While diffusion models have demonstrated an exceptional capacity for high-quality synthesis, their computational cost in pixel space is high. This paper proposes DiVAE (Denoising Diffusion VAE), a VQ-VAE architecture that employs a diffusion decoder as the reconstruction component. By optimizing how latent embeddings are injected into the diffusion process, DiVAE achieves state-of-the-art results on ImageNet and produces significantly more photorealistic samples in conditional synthesis tasks.
Introduction: The Reconstruction Bottleneck
High-performance text-to-image systems like DALL-E or NUWA generally rely on a two-stage pipeline: a Stage 1 VAE for compression and reconstruction, and a Stage 2 prior (such as an auto-regressive transformer) for latent prediction. However, the traditional CNN-based decoders used in Stage 1—even those enhanced with GAN losses like VQ-GAN—often become a bottleneck. At high compression ratios, these decoders struggle to recover fine-grained details, leading to "uncanny" artifacts in complex textures like human eyes or hair. DiVAE addresses this by replacing the standard decoder with a powerful denoising diffusion engine.
Methods: The Denoising Diffusion Decoder
The core innovation of DiVAE is the integration of a Denoising Diffusion Decoder within the VQ-VAE framework. Instead of a single-pass CNN reconstruction, the decoder iteratively removes noise from a Gaussian distribution, conditioned on discrete latent embeddings.
A critical design choice was the conditioning strategy. Through ablation studies, the authors found that injecting latent embeddings into the middle block of the diffusion U-Net yielded the best performance. This bottleneck region of the U-Net is where semantic features are most concentrated, making it an ideal injection point for the compressed codebook representations. The model is trained using a hybrid loss function that balances the simple MSE of the diffusion process with a variational lower bound (VLB) to ensure both high sample quality and likelihood.
Key Results and Evaluation
DiVAE was evaluated on ImageNet for reconstruction and MSCOCO for text-to-image (T2I) synthesis.
State-of-the-Art Reconstruction
On the ImageNet (256×256) benchmark, DiVAE demonstrated superior reconstruction fidelity, particularly at high compression rates. At a compression factor of $f=16$, DiVAE achieved a Fréchet Inception Distance (FID) of 4.07, significantly outperforming VQ-GAN's 4.98. At $f=8$, the performance improved further to a stellar FID of 1.24.
Enhanced Text-to-Image Synthesis
When paired with an auto-regressive transformer for T2I tasks on MSCOCO, DiVAE reached an FID of 11.53, surpassing established models such as NUWA (12.9) and VQ-Diffusion (13.86). Qualitatively, DiVAE produces much sharper and more "human-feeling" details. It excels at hallucinating missing information in complex areas like animal fur and intricate backgrounds that GAN-based decoders often distort.
Discussion and Limitations
While DiVAE sets a new bar for photorealism, it introduces a trade-off in inference speed. Because diffusion is an iterative process, DiVAE is slower than standard one-pass CNN decoders. Using DDIM with 25 steps can accelerate the process, though it results in a quality drop (FID increasing to 7.07). Additionally, the current model is optimized for a fixed 256×256 resolution. Future work will focus on improving inference efficiency and extending the architecture to support variable aspect ratios and resolutions.
Conclusion
DiVAE demonstrates that diffusion models are not just powerful generators but also exceptional "super-decoders." By leveraging diffusion for reconstruction, DiVAE overcomes the limitations of traditional VAEs, delivering state-of-the-art photorealism and fine-grained detail in both reconstruction and conditional image synthesis.
Summary updated