LayoutVAE: Stochastic Scene Layout Generation From a Label Set

Akash Abdu Jyothi, Thibaut Durand, Jiawei He, Leonid Sigal, Greg Mori

Abstract

LayoutVAE is a generative framework designed to produce diverse and realistic scene layouts from a simple list of object labels. By decomposing the task into two stochastic stages—predicting object counts and then their spatial arrangements—the model captures the inherent ambiguity of scene generation. This approach allows the model to imagine multiple valid configurations for a given set of objects, such as a "person," "surfboard," and "sea," effectively modeling the one-to-many relationship between labels and layouts.

Introduction

Generating a realistic image from a description is a fundamental "one-to-many" problem. A simple prompt like "a living room with a sofa and a lamp" can correspond to an infinite number of valid spatial arrangements. While existing models often rely on detailed text descriptions or complex scene graphs that explicitly define relationships (e.g., "the lamp is on the table"), real-world data often only provides a "label set"—a simple list of present objects.

Diverse real-world scenes illustrating the one-to-many mapping challenge where similar label sets (person, surfboard, water) result in vastly different spatial configurations.

To succeed with such weak supervision, a model must implicitly learn the hidden rules of the physical world: for instance, that people typically stand on surfboards rather than under them. The challenge lies in building a model that is both stochastic (capable of generating varied outputs) and context-aware (understanding spatial and numerical constraints).

Methodology

The authors propose LayoutVAE, a framework based on Conditional Variational Autoencoders (CVAEs). The model breaks the layout generation process into two distinct, autoregressive modules:

  1. CountVAE: This module predicts the number of instances for each object category. It utilizes a Poisson distribution to model count data naturally. It considers the input labels and the counts already determined for previous categories to ensure numerical consistency (e.g., ensuring the number of ties does not exceed the number of people).
  2. BBoxVAE: Once counts are established, this module predicts the coordinates and sizes $[x, y, w, h]$ for every object instance. Modeled as a quadrivariate Gaussian distribution, it is inherently autoregressive; when placing an object, it "looks" at the positions of previously placed objects to ensure the layout is plausible.
The full LayoutVAE architecture, depicting the two-stage autoregressive process: CountVAE for predicting object frequencies followed by BBoxVAE for spatial arrangement.

By utilizing latent variables ($z$), the model can sample different values from a learned distribution, leading to a diverse set of layouts for the same input label set.

Key Insights and Results

Context vs. History

A critical finding of the study is the divide in information usage: for counting objects, the overall global "context" (the full label set) is the most vital factor. Conversely, for placing bounding boxes, the "history" (the locations of previously placed objects) is more important for preventing awkward overlaps or impossible positions.

The "Gravity" Test

As a probabilistic model, LayoutVAE can calculate the likelihood of a specific layout. When researchers inverted real COCO layouts (flipping them upside down), the model’s Negative Log-Likelihood (NLL) increased significantly. This demonstrates that the model successfully learned "common sense" spatial priors, such as the sky belonging at the top and the sea at the bottom.

Performance Metrics

LayoutVAE significantly outperformed several baselines, including standard MLPs and LSTMs, on the COCO 2017 Panoptic dataset:

  • Count Accuracy: LayoutVAE achieved 78.38%, surpassing the best non-VAE baseline (74.21%).
  • Spatial Quality: It reached a Mean Intersection over Union (IoU) of 0.20, outperforming the sg2im model (0.14), despite the latter using more complex scene graph inputs.
  • Likelihood: LayoutVAE achieved an NLL score of 2.72 on COCO bounding boxes, while the standard MLP baseline lagged at 40.91.

Conclusion and Future Work

LayoutVAE demonstrates that a two-stage stochastic approach can effectively model complex scene priors from minimal supervision. Future work may involve learning dynamic label orderings to improve performance in cluttered scenes or integrating LayoutVAE with image synthesis models like GauGAN to create a complete "label-to-image" pipeline. Additionally, explicitly incorporating hierarchical relationships (e.g., "parts of a whole") could further refine the model's granular scene understanding.

Summary updated

BibTeX
@inproceedings{jyothi2019layoutvae,
  author = {Akash Abdu Jyothi and Thibaut Durand and Jiawei He and Leonid Sigal and Greg Mori},
  title = {{LayoutVAE: Stochastic Scene Layout Generation From a Label Set}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2019},
  doi = {10.1109/iccv.2019.00999},
}
Figure