Generaling Multimodal Variational Methods to Sets

Jinzhao Zhou, Yiqun Duan, Zhihong Chen, Yu-Cheng Chang, Chin-teng Lin

TL;DR

Existing multimodal variational autoencoders (VAEs) scale to missing modalities by factorizing the joint posterior into uni-modal distributions (e.g., Product-of-Experts or Mixture-of-Experts), which mistakenly imposes conditional independence and loses inter-modality correlations. The Set Multimodal VAE (SMVAE) addresses this by treating input modalities as an unordered set and directly modeling the joint posterior via an attention-based set aggregation function. This enables permutation-invariant, scalable multimodal inference while capturing rich inter-modality correlations.

What Problem Does This Paper Address?

In real-world multimodal machine learning (e.g., robotics, vision-language), systems frequently encounter missing modalities at test time. Training $2^M$ separate models for all possible subsets of $M$ modalities is computationally intractable.

To achieve scalability, prior multimodal VAEs (like MVAE, MMVAE, and MoPoE) assume the joint posterior can be factorized as an aggregation (product or mixture) of independent, uni-modal inference networks. The authors point out two fundamental flaws with this paradigm:

  1. Conditional Independence: Factorization assumes modalities are conditionally independent given the latent variable $z$, preventing the model from capturing cross-modal correlations.
  2. Late-Fusion Drawback: Merging uni-modal posterior parameters after the fact does not learn a true, unified co-representation at the feature level.

Methods

Instead of late-fusion factorization, SMVAE formulates multimodal inference as a set-input problem:

  • Set-Based Invariant Encoder: Given any subset of modalities $X_s \subseteq \{x_1, \dots, x_M\}$, each modality is first mapped to a common embedding space via a modality-specific network $E_i$.
  • Attention Aggregation: Drawing inspiration from Set Transformers, SMVAE aggregates these embeddings using a multi-head cross-attention mechanism where a single learned query vector $I$ attends over all available modality tokens: $$H = I + \text{MultiHead}(I, X_s, X_s)$$ This guarantees permutation invariance, handles arbitrary numbers of missing modalities without altering the architecture, and compresses available inputs into a fixed-size representation.

  • Direct Joint Posterior Estimation: A feedforward network maps $H$ directly to the Gaussian parameters $(\mu, \sigma)$ of the latent posterior $q_\phi(z \mid X_s)$.

  • Total Correlation Objective: By avoiding the factorization of the variational bound, the objective explicitly optimizes the conditional total correlation, directly capturing the mutual dependencies shared among modalities.
  • Modality Decoders: Generation is handled by modality-specific decoders $D_1, \dots, D_M$ conditioned on the latent vector $z$.

Datasets

The authors evaluated SMVAE across synthetic pairs, vision tasks, and physical robotics:

  • Bimodal Benchmarks: Standard benchmarks adapted to image + one-hot label pairings:
  • MNIST
  • FashionMNIST
  • CelebA (faces paired with attribute vectors)
  • CelebA Multi-Transformation Setup: A 6-modality vision case study derived from CelebA (original RGB image, grayscale, edge map, facial landmarks, occluded image, and watermarked image).
  • Vision&Touch Dataset: A contact-rich robotics dataset containing 4 distinct continuous modalities: RGB images, depth images, 6-axis force-torque sensor data, and robot control actions during a peg-in-box task.

Key Insights and Ideas

  • Early Fusion via Sets Beats Late Fusion of Experts: Factorized aggregation methods (PoE/MoE) enforce rigid mathematical forms onto distributions. Using neural set functions directly on modality representations enables the model to pool shared information before computing distribution parameters.
  • The Objective Captures Total Correlation: Mathematical analysis shows that optimizing the standard ELBO on un-factorized joint sets yields an extra conditional total correlation term $\mathbb{E}[\log \frac{p(X \mid z)}{\prod p(x_i \mid z)}]$, rewarding the model for discovering inter-modality dependencies.
  • Robust Latent Clustering Under Partial Observation: t-SNE visualizations reveal that MVAE's latent space degrades when a modality goes missing, while MMVAE produces less distinct clusters overall. SMVAE preserves clean, discriminative category clusters whether conditioning on one or multiple modalities.

Key Results

  • Log-Likelihood Metrics: Across test evaluations measuring joint and marginal log-likelihoods, SMVAE consistently outperformed JMVAE, MVAE, MMVAE, and MoPoE:
  • MNIST joint likelihood $\log p(x, y)$: -83.41 (vs. -90.85 for MVAE, -91.53 for MMVAE, and -90.16 for MoPoE).
  • FashionMNIST $\log p(x, y)$: -225.10 (vs. -233.01 for MVAE and -235.37 for MMVAE).
  • CelebA $\log p(x, y)$: -6000.95 (vs. -6241.62 for MVAE and -6513.43 for MMVAE).
  • Cross-Modal Image Synthesis: In the 6-modality CelebA benchmark, SMVAE performed high-quality cross-modal translation, including landmark extraction, colorization from grayscale, watermark removal, and inpainting.
  • Robotics Scene Prediction: Conditioning only on non-visual sensor readings (action and tactile force), SMVAE reconstructed realistic RGB and depth frames reflecting the physical contact state of the robotic arm.

Limitations and Future Work

  • Blurry Image Reconstructions: Decoders are standard VAE architectures and suffer from typical blurriness compared to GAN or diffusion-based generative decoders.
  • Static Modalities Only: The current framework treats inputs as static snapshots; it does not explicitly handle temporal dynamics or continuous time-series multimodal sequences.
  • Scaling to Massive Modalities: While theoretically scalable, testing was limited to setups with 4 to 6 modalities.

Summary updated

BibTeX
@inproceedings{zhou2023generaling,
  author = {Jinzhao Zhou and Yiqun Duan and Zhihong Chen and Yu-Cheng Chang and Chin-teng Lin},
  title = {{Generaling Multimodal Variational Methods to Sets}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=_uR2KmSfU8g},
}

Loading related content...

Figure