Generative Models of Visually Grounded Imagination

Ramakrishna Vedantam, Ian Fischer, Jonathan Huang, Kevin Murphy

TL;DR

This paper introduces a framework for "visually grounded imagination"—the ability of a machine learning model to generate images of novel or partially specified semantic concepts (e.g., "a smiling person" without specifying gender). By combining a novel Triple ELBO (TELBO) training objective with a Product-of-Experts (PoE) inference network, the authors enable Variational Autoencoders (VAEs) to navigate a hierarchy of abstraction and compose never-before-seen attribute combinations.

The Challenge of Visual Imagination

While standard conditional generative models can produce images based on specific labels, they typically struggle with two human-like cognitive abilities:

  1. Abstraction: Generating a diverse set of images when only a few attributes are provided. For instance, asking a model to "imagine a person with black hair" should result in a diverse output of various genders, ages, and expressions, rather than a single average face.
  2. Compositionality: Imagining novel combinations of attributes that were never seen together during training (e.g., "a man with pink hair").
Hierarchy of abstraction for visual concepts

Existing joint image-attribute models often "collapse to the mean," producing blurry, non-diverse images, or they strictly require every single attribute to be specified at test time. The authors aim to bridge this gap by creating a model that intrinsically understands a compositional abstraction hierarchy.

Proposed Method: TELBO and Product-of-Experts

The authors extend the standard Variational Autoencoder (VAE) framework through two primary innovations designed to handle multi-modal data (images and text attributes):

The TELBO Objective

Standard VAEs maximize the Evidence Lower Bound (ELBO). To handle multiple modalities (images $x$ and attributes $y$), the authors propose the Triple ELBO (TELBO). This objective trains the model on paired data $(x, y)$ while simultaneously optimizing unimodal inference networks ($q(z|x)$ and $q(z|y)$). This ensures that images and text descriptions are embedded into the same shared latent space, allowing for seamless translation between visual and semantic representations.

Product-of-Experts (PoE) Inference

To handle partially specified concepts, the model treats each attribute as an "expert" that provides a Gaussian distribution in the latent space. The final latent representation is the product of these Gaussians.

Product of Experts inference mechanism
  • If an attribute is specified, its expert "votes" on a specific region of the latent space.
  • If an attribute is missing (a "don't care" state), it contributes nothing to the product, naturally resulting in a broader, higher-entropy distribution.

This mechanism allows the model to generate a diverse range of images that satisfy only the few provided constraints, effectively acting as a veto system where experts rule out incompatible latent regions.

Evaluation: The 3 C’s of Imagination

To rigorously test their model, the authors propose a formal evaluation framework for generative models based on three criteria:

  • Correctness: Do the generated images actually possess the requested attributes?
  • Coverage: Does the model generate a diverse set of images for unspecified attributes?
  • Compositionality: Can the model handle "zero-shot" combinations of attributes?

The models were evaluated on two datasets: CelebA (using 18 visually distinctive binary attributes) and a newly introduced benchmark, MNIST-with-attributes (MNIST-A), which adds scale, orientation, and location attributes to standard digits to create a hierarchy of 240 unique concepts.

Key Results and Insights

  • Quantitative Performance: On the MNIST-A dataset, TELBO achieved a correctness score of ~82%, significantly outperforming the BiVCCA baseline (~67%) and matching the more restrictive JMVAE model.
  • Superior Coverage: Qualitative results on CelebA show that when asked for an abstract concept like "black hair," TELBO successfully generates a diverse mix of genders and expressions. In contrast, competing models often suffer from poor coverage, producing a single "average" face. TELBO maintains this higher diversity by regularizing against the prior, which is essential for true "imagination."
  • Concept Naming: The authors also tested the model on a "reverse" task: given a set of images, can the model infer the most specific common concept? Their approach reached ~54% accuracy, far exceeding the random baseline (~0.28%).
  • Latent Space Organization: The paper demonstrates that joint training with labels is superior to purely unsupervised "disentanglement" (like $\beta$-VAE). Labels provide the necessary supervision to organize the latent space into convex, linearly separable regions corresponding to high-level semantic concepts.

Limitations and Future Work

While a significant step forward, the approach has limitations typical of VAEs from its era, such as generating somewhat blurry images compared to Generative Adversarial Networks (GANs). Furthermore, the current model relies on a fixed vector of discrete attributes. The authors suggest that moving toward natural language descriptions (sentences) would be a more flexible way to describe imagination, and future work should address compositional descriptions of complex scenes with multiple interacting objects.

Summary updated

Abstract

It is easy for people to imagine what a man with pink hair looks like, even if they have never seen such a person before. We call the ability to create images of novel semantic concepts visually grounded imagination. In this paper, we show how we can modify variational auto-encoders to perform this task. Our method uses a novel training objective, and a novel product-of-experts inference network, which can handle partially specified (abstract) concepts in a principled and efficient way. We also propose a set of easy-to-compute evaluation metrics that capture our intuitive notions of what it means to have good visual imagination, namely correctness, coverage, and compositionality (the 3 C’s). Finally, we perform a detailed comparison of our method with two existing joint image-attribute VAE methods (the JMVAE method of Suzuki et al., 2017 and the BiVCCA method of Wang et al., 2016) by applying them to two datasets: the MNIST-with-attributes dataset (which we introduce here), and the CelebA dataset (Liu et al., 2015).
BibTeX
@inproceedings{vedantam2018generative,
  author = {Ramakrishna Vedantam and Ian Fischer and Jonathan Huang and Kevin Murphy},
  title = {{Generative Models of Visually Grounded Imagination}},
  booktitle = {International Conference on Learning Representations},
  year = {2018},
  url = {https://openreview.net/forum?id=HkCsm6lRb},
}
Figure