Revising Multimodal VAEs with Diffusion Decoders

Daniel Wesego, Amirmohammad RooshenasarXiv 2024 · DOI

Abstract

Multimodal Variational Autoencoders (VAEs) are designed to learn joint representations across diverse data types, yet they frequently struggle with low-fidelity generation and a mismatch between learned posterior distributions and simple Gaussian priors. This paper introduces Diff-MVAE, a hybrid generative model that replaces traditional VAE decoders with powerful diffusion-based decoders. By incorporating an auxiliary score-based model to bridge the latent prior-posterior gap, Diff-MVAE achieves state-of-the-art performance in image quality and cross-modal coherence on benchmarks like CUB and CelebAMask-HQ.

Introduction

Multimodal VAEs aim to map different data modalities (e.g., text and images) into a shared latent space $z$. While theoretically sound for cross-modal tasks, these models face two critical challenges. First, standard VAE decoders often produce blurry, low-fidelity images because they cannot adequately model high-dimensional, complex distributions. Second, a "prior-posterior gap" exists: during unconditional generation, sampling from a simple Gaussian prior often fails to capture the intricate structure of the learned latent posterior, leading to incoherent results where generated modalities do not match.

Methodology

The Diff-MVAE framework addresses these issues through a revised architecture and training objective.

Hybrid Diffusion Decoders

The core innovation is the use of a diffusion process as the decoder for complex modalities. Unlike single-pass neural networks, the diffusion decoder iteratively refines noise into a high-quality image, conditioned on the latent code $z$. For simpler modalities like text or discrete attributes, the model retains efficient feed-forward decoders, creating a flexible hybrid system.

Figure 1: The Diff-MVAE architecture integrates diffusion decoders for complex modalities while maintaining standard decoders for simpler data.

Latent Space Refinement with ScoreNet

To resolve the prior-posterior gap, the authors introduce ScoreNet, a small auxiliary score-based model. ScoreNet learns to transform standard Gaussian noise into the actual distribution of the multimodal latent space. This ensures that unconditional samples are drawn from a distribution that accurately reflects the learned posterior, significantly improving coherence across modalities.

Figure 2: The auxiliary ScoreNet enables high-quality unconditional generation by bridging the gap between the prior and the learned latent posterior.

Information Fusion and Encoder Learning

The model employs a Mixture of Product of Experts (MoPoE) approach to fuse information from multiple modalities. This method is robust to missing data during inference. Notably, using a more powerful diffusion decoder also improves the encoder's performance; the encoder is incentivized to capture more nuanced information because the decoder is capable of utilizing it for high-fidelity reconstruction.

Experiments and Results

Diff-MVAE was evaluated on the Caltech Birds (CUB), CelebAMask-HQ, and Extended PolyMNIST datasets.

Image Fidelity

The model demonstrated a massive improvement in image quality as measured by the Frechet Inception Distance (FID). On the CUB dataset, Diff-MVAE achieved an FID of 35.5, compared to 290.6 for MoPoE and 176.3 for MVTCAE. Similarly, on CelebAMask-HQ, it reached an FID of 28.3, vastly outperforming the next best baseline (94.0).

Cross-Modal Coherence

Using Clip-Score to measure the alignment between generated images and text captions, Diff-MVAE showed significantly higher coherence than previous methods. This indicates that the diffusion decoder not only improves visual quality but also better preserves the semantic information encoded in the latent space.

Conclusion

Diff-MVAE represents a significant step forward for multimodal generative modeling by successfully marrying the structural benefits of VAEs with the generative power of diffusion models. While the iterative nature of diffusion decoders increases computational cost during sampling, the gains in fidelity and coherence are substantial. Future research will focus on accelerating the sampling process through techniques like consistency models or distillation.

Summary updated

BibTeX
@misc{wesego2024revising,
  author = {Daniel Wesego and Amirmohammad Rooshenas},
  title = {{Revising Multimodal VAEs with Diffusion Decoders}},
  year = {2024},
  eprint = {2408.16883},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.16883},
}
Figure