Variational methods for Conditional Multimodal Learning: Generating Human Faces from Attributes

Gaurav Pandey, Ambedkar DukkipatiarXiv 2016

Abstract

In this paper, we address the problem of conditional modality learning, whereby one is interested in generating one modality given the other. While it is straightforward to learn a joint distribution over multiple modalities using a deep multimodal architecture, we observe that such models aren't very effective at conditional generation. Hence, we address the problem by learning conditional distributions between the modalities. We use variational methods for maximizing the corresponding conditional log-likelihood. The resultant deep model, which we refer to as conditional multimodal autoencoder (CMMA), forces the latent representation obtained from a single modality alone to be 'close' to the joint representation obtained from multiple modalities. We use the proposed model to generate faces from attributes. We show that the faces generated from attributes using the proposed model, are qualitatively and quantitatively more representative of the attributes from which they were generated, than those obtained by other deep generative models. We also propose a secondary task, whereby the existing faces are modified by modifying the corresponding attributes. We observe that the modifications in face introduced by the proposed model are representative of the corresponding modifications in attributes.

Introduction

Multimodal learning involves modeling data from diverse sources, such as images and their corresponding textual descriptions. A significant challenge in this field is conditional generation—producing a realistic sample of one modality (e.g., a face image) that strictly adheres to constraints provided by another (e.g., a set of attributes like "smiling" or "wearing glasses").

Standard generative models often struggle with this task because correlations within a single modality (intra-modality) are typically much stronger than correlations across different modalities (inter-modality). Consequently, models may ignore the conditioning input, leading to outputs that are visually plausible but fail to reflect the specified attributes. This paper introduces the Conditional Multimodal Autoencoder (CMMA) to overcome these limitations by explicitly aligning latent representations.

Methodology: Conditional Multimodal Autoencoder (CMMA)

The CMMA architecture is designed to bridge the gap between modalities by forcing their respective latent representations to be similar. Unlike standard Conditional Variational Autoencoders (CVAEs) that assume a fixed prior, CMMA utilizes a learnable prior network conditioned on the input attributes.

The CMMA architecture showing the dual-path encoding and the KL divergence regularization between image and attribute representations.

As illustrated in the architecture above, the model consists of several key components:

  1. Encoder ($h_1$): Maps the primary modality (image $x$) to a latent distribution.
  2. Prior Network ($f$): Maps the conditioning modality (attributes $y$) to a latent distribution.
  3. Decoders ($g, h_2$): Reconstruct the modalities from the latent representation $z$.

The core innovation lies in the objective function, which includes a Kullback-Leibler (KL) divergence term between the latent distribution derived from the image and the one derived from the attributes. This "tilts" the latent space toward the conditioning modality, ensuring that the generated output is faithful to the input constraints. The specific parametric forms for these distributions are detailed below.

Parametric forms of the distributions used within the CMMA framework.

Experimental Evaluation

The researchers evaluated CMMA using the Labeled Faces in the Wild (LFW) dataset, which contains 13,233 images of 5,749 individuals with 73 crowdsourced attributes. LFW presents a significant challenge as most individuals appear only once, requiring the model to learn a generalized mapping rather than memorizing specific faces.

Quantitative Results

CMMA was compared against CVAE and Conditional GAN (CGAN) using Parzen-window log-likelihood estimates. CMMA achieved a score of 9,487, significantly outperforming CVAE (8,714) and CGAN (8,320), indicating a superior capture of the data distribution.

Qualitative Results

In qualitative tests, CMMA demonstrated superior control over face generation. When tasked with adding specific features like "open mouth" or "spectacles," CMMA consistently produced the requested changes across various face types. Furthermore, in face modification tasks—altering an existing photo by changing its attributes—CMMA successfully updated specific features while preserving the subject's identity and background, a task where competing models often failed to produce noticeable or identity-preserving changes.

Conclusion

The Conditional Multimodal Autoencoder (CMMA) provides a robust framework for conditional generation by aligning latent representations across modalities. By conditioning the prior on the input attributes and utilizing a variational approach, CMMA achieves state-of-the-art performance in generating and modifying human faces from attributes. Future work includes extending this framework to other modalities such as speech and text, and scaling to higher-resolution image generation.

Summary updated

BibTeX
@misc{pandey2016variational,
  author = {Gaurav Pandey and Ambedkar Dukkipati},
  title = {{Variational methods for Conditional Multimodal Learning: Generating Human Faces from Attributes}},
  year = {2016},
  eprint = {1603.01801},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1603.01801},
}
Figure