Unity by Diversity: Improved Representation Learning in Multimodal VAEs

Thomas M. Sutter, Yang Meng, Norbert Fortin, Julia E Vogt, Babak Shahbaba, Stephan Mandt

TL;DR

Existing multimodal Variational Autoencoders (VAEs) typically force modalities into a single shared latent space using rigid aggregation functions, often losing modality-specific nuances. The authors introduce MM-VAMP VAE, which replaces hard aggregation with a data-dependent, mixture-of-experts prior across modalities. This creates a soft regularizer that mathematically minimizes the Jensen-Shannon divergence between modality representations, drastically improving representation learning and cross-modal imputation.

What Problem Does This Paper Address?

In multimodal learning, models must balance two conflicting goals: capturing shared patterns across modalities (e.g., matching a spoken word to an image) while preserving modality-specific traits (e.g., speaker accent or image background).

Standard multimodal VAEs handle this by combining unimodal latent encodings into a single joint posterior using hard-coded operations (such as products or mixtures of experts). However, these architectures impose overly rigid constraints. In practice, forcing encoders into a shared bottleneck creates a harsh trade-off: models either lose modality-specific details or suffer from poor cross-modal coherence and low sample quality.

Methods

Rather than hard-wiring information sharing through a joint posterior or shared network weights, MM-VAMP VAE keeps separate encoders $q_\phi^m(z_m | x_m)$ and decoders $p_\theta^m(x_m | z_m)$ for each modality $m$, coupling them solely through an input-dependent prior:

  • Multimodal Mixture-of-Experts Prior: Drawing inspiration from the VampPrior (which builds priors from an aggregate posterior over data points), the authors define a prior over modalities: $$h(z_m | X) = \frac{1}{M} \sum_{\tilde{m}=1}^M q_\phi^{\tilde{m}}(z_m | x_{\tilde{m}})$$ Each modality's prior is a mixture of all unimodal posterior approximations from that data sample.

  • Connection to Jensen-Shannon Divergence: The resulting KL divergence regularization term naturally simplifies to $M \times \text{JS}(q_\phi^1, \dots, q_\phi^M)$. Maximizing the variational objective acts like contrastive learning on positive pairs, softly pulling unimodal representations toward each other without forcing them into an identical bottleneck.

  • Theoretical Optimality: The authors prove that this mixture-of-posteriors formulation is the unique theoretical maximizer of the expected log-prior cross-entropy term in the ELBO.

Datasets

The authors evaluated MM-VAMP VAE against two baselines—a set of independent VAEs and a joint-posterior aggregated VAE—across three diverse domains:

  1. Translated PolyMNIST: A synthetic benchmark where 3 modalities share digit identities but feature modality-specific backgrounds and random translations.
  2. Bimodal CelebA: Paired face images and synthetic text descriptions built from 40 facial attributes (with randomized starting indices).
  3. Hippocampal Neural Activity: A real-world neuroscience dataset recording CA1 spiking activity from five different rats exposed to a sequence of four odor stimuli (A, B, C, D). Each rat was treated as a separate "modality" to uncover shared neural dynamics across individual biological variability.

Key Insights and Ideas

  • Soft Alignment Beats Hard Fusion: Enforcing shared representation via a prior (soft constraint) lets each encoder retain uncompressed, modality-specific information while still aligning shared concepts.
  • Generative Contrastive Learning: The rate term acts as a soft regularizer directly linked to the multi-distribution Jensen-Shannon divergence, offering a probabilistic bridge to contrastive multi-view methods.
  • Robustness Under Missing Modalities: Unlike aggregated VAEs, which see their reconstruction degrade sharply when evaluated on single modalities at test time ("self-reconstruction"), MM-VAMP preserves strong unimodal encoding performance.

Key Results

  • PolyMNIST: Across multiple values of the rate weighting hyperparameter $\beta$, MM-VAMP significantly outperformed baselines on both downstream linear classification accuracy of unimodal representations and cross-modal conditional generation coherence, without sacrificing reconstruction error.
  • Bimodal CelebA: Achieved superior Mean Average Precision (AP) for attribute classification across both image and text representations, outperforming baselines on almost all 40 individual facial attributes.
  • Neuroscience Rat Data: MM-VAMP successfully pulled representations from all five rats into a shared coordinate space where the four odor categories cleanly separated. In contrast, the aggregated VAE completely failed—grouping data points into five distant clusters corresponding to the individual rats rather than the shared odors.

Limitations and Future Work

  • No Unconditional Generation: Because the prior $h(z | X)$ is strictly data-dependent, the base model cannot generate samples out of thin air. The authors note that incorporating a hyperprior (e.g., hierarchical VAE setups) could restore this capability.
  • Full Modality Assumption During Training: While the model gracefully handles missing inputs at test time, the training formulation assumes all modalities are present for every training instance. Adapting the mixture prior to partially observed multimodal datasets remains an open direction.

Summary updated

BibTeX
@inproceedings{sutter2024unity,
  author = {Thomas M. Sutter and Yang Meng and Norbert Fortin and Julia E Vogt and Babak Shahbaba and Stephan Mandt},
  title = {{Unity by Diversity: Improved Representation Learning in Multimodal VAEs}},
  booktitle = {AABI},
  year = {2024},
  url = {https://openreview.net/forum?id=ZgGIM0MXWA},
}
Figure