Enhancing Unimodal Latent Representations in Multimodal VAEs through Iterative Amortized Inference

Yuta Oshima, Masahiro Suzuki, Yutaka Matsuo

Abstract

Multimodal variational autoencoders (VAEs) aim to capture shared latent representations by integrating information from different data modalities. A significant challenge is accurately inferring representations from any subset of modalities without training an impractical number ($2^M$) of inference networks. Mixture-based models simplify this but suffer from information loss when modalities are missing. Alignment-based VAEs address this by aligning unimodal models with a multimodal model but face issues due to amortization gaps. We introduce multimodal iterative amortized inference, an iterative refinement mechanism that overcomes information loss and minimizes the amortization gap by refining the multimodal inference using all available modalities. By aligning unimodal inference to this refined multimodal posterior, we achieve unimodal inferences that effectively incorporate multimodal information. Experiments show improved linear classification accuracy, competitive cosine similarity, and enhanced cross-modal generation (lower FID scores).

Introduction

In a perfect multimodal learning scenario, a shared latent space would allow an image of a bird and its text description to map to the exact same point. However, standard Multimodal VAEs face two primary hurdles:

  1. The Missing Modality Problem: When a model trained on multiple modalities is provided with only one at test time, it often loses modality-specific details because it wasn't forced to reconstruct them from that single input during training.
  2. The Amortization Gap: Standard VAEs use a single forward pass of an encoder network to approximate latent variables. This "amortized" guess is computationally efficient but often inaccurate compared to the true posterior distribution. In multimodal settings, this gap leads to blurry generations and poor cross-modal alignment.

Existing models try to aggregate unimodal encoders (mixture-based) or force them to match a multimodal one (alignment-based). However, if the target multimodal encoder is limited by the amortization gap, the unimodal encoders will be as well.

Methodology: Multimodal Iterative Amortized Inference

The proposed approach bridges these gaps using a two-step refinement and alignment process.

1. Iterative Refinement

Instead of relying on a single encoder pass, the model performs $T$ iterations of refinement. In each step, it calculates the gradient of the multimodal Evidence Lower Bound (ELBO)—which considers all available modalities—and uses that gradient to update the latent representation parameters ($\mu$ and $\sigma$). This allows the model to "recover" information from missing modalities by seeing how the latent variables should change to satisfy the requirements of the full multimodal data.

2. Distribution Alignment

Once a refined, high-quality multimodal posterior is obtained, unimodal encoders ($q_{\lambda_m}$) are trained to mimic it using Kullback–Leibler (KL) divergence. This ensures that even with unimodal inputs at inference time, the resulting representations capture significantly richer multimodal information.

Overview of the Multimodal Iterative Amortized Inference (IAI) framework. The diagram illustrates how gradients of the loss function are used to refine the latent variable Z, which then serves as a target for aligning unimodal encoders.

Experimental Results

The researchers evaluated their method on two standard benchmarks: MNIST-SVHN-Text and Caltech Birds (CUB).

  • Classification Accuracy: On the MNIST-SVHN-Text dataset, the latent representations achieved higher linear classification accuracy (e.g., 98.15% for MNIST and 99.97% for Text), indicating a cleaner, more separable latent space.
  • Generation Quality (FID): The Fréchet Inception Distance (FID) improved dramatically. On the CUB dataset (Text $\rightarrow$ Image), the proposed method achieved an FID of 207.13, compared to 268.15 for standard alignment-based models and 325.98 for mixture-based models.
  • Cross-Modal Consistency: Qualitative results show that images generated from text alone were much more detailed and consistent with the "ground truth" style of the missing image modality.

Key Insights

  • Gradients as Information Channels: The gradient of the multimodal ELBO acts as a signal that pulls in information from modalities not explicitly present in the input. By following this gradient, the latent representation "learns" what the missing modalities likely look like.
  • Iterative Refinement Scales: As the number of iterations ($T$) increases, the quality of the latent representation improves. A single pass ($T=1$) often produces generic results, while $T=8$ captures fine-grained details.

Limitations and Future Work

While the method improves distributional alignment, "numerical consistency" (pixel-for-pixel matching) is not always perfectly maintained. Additionally, performing multiple iterations of gradient-based refinement increases training costs, though this overhead is only incurred during the training phase and not at inference.

Conclusion

By applying iterative amortized inference to the multimodal setting, this framework successfully recovers missing information and provides a superior target for unimodal encoder alignment. This results in more powerful unimodal encoders that effectively bridge the gap between disparate data modalities.

Summary updated

Abstract

Multimodal variational autoencoders (VAEs) aim to capture shared latent representations by integrating information from different data modalities. A significant challenge is accurately inferring representations from any subset of modalities without training an impractical number (2^M) of inference networks for all possible modality combinations. Mixture-based models simplify this by requiring only as many inference models as there are modalities, aggregating unimodal inferences. However, they suffer from information loss when modalities are missing. Alignment-based VAEs address this by aligning unimodal inference models with a multimodal model through minimizing the Kullback-Leibler (KL) divergence but face issues due to amortization gaps, which compromise inference accuracy. To tackle these problems, we introduce multimodal iterative amortized inference, an iterative refinement mechanism within the multimodal VAE framework. This method overcomes information loss from missing modalities and minimizes the amortization gap by iteratively refining the multimodal inference using all available modalities. By aligning unimodal inference to this refined multimodal posterior, we achieve unimodal inferences that effectively incorporate multimodal information while requiring only unimodal inputs during inference. Experiments on benchmark datasets show that our approach improves inference performance, evidenced by higher linear classification accuracy and competitive cosine similarity, and enhances cross-modal generation, indicated by lower FID scores. This demonstrates that our method enhances inferred representations from unimodal inputs.
BibTeX
@article{oshima2026enhancing,
  author = {Yuta Oshima and Masahiro Suzuki and Yutaka Matsuo},
  title = {{Enhancing Unimodal Latent Representations in Multimodal VAEs through Iterative Amortized Inference}},
  journal = {New Gener. Comput.},
  year = {2026},
  doi = {10.1007/s00354-026-00321-z},
}
Figure