NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Text2Scene: Generating Compositional Scenes From Textual Descriptions

Fuwen Tan, Song Feng, Vicente Ordonez

Abstract

In this paper, we propose Text2Scene, a model that generates various forms of compositional scene representations from natural language descriptions. Unlike recent works, our method does NOT use Generative Adversarial Networks (GANs). Text2Scene instead learns to sequentially generate objects and their attributes (location, size, appearance, etc) at every time step by attending to different parts of the input text and the current status of the generated scene. We show that under minor modifications, the proposed framework can handle the generation of different forms of scene representations, including cartoon-like scenes, object layouts corresponding to real images, and synthetic images. Our method is not only competitive when compared with state-of-the-art GAN-based methods using automatic metrics and superior based on human judgments but also has the advantage of producing interpretable results.

Introduction: Building Images One Object at a Time

Generating a realistic image from a simple sentence is one of the "holy grail" tasks of computer vision. While Generative Adversarial Networks (GANs) have dominated this space recently, they often act as "black boxes" that struggle with complex, multi-object scenes. Enter Text2Scene, a model that skips the GAN craze in favor of a more interpretable, compositional approach.

Most text-to-image models try to generate an entire scene in one go. This works well for single objects but often fails when the text describes complex interactions, such as "Jenny is running towards Mike and the duck." Text2Scene addresses these challenges by treating scene generation as a sequential process, much like how a human might draw a picture: first the background, then the main character, then the props, adjusting each based on what’s already on the canvas.

Methods

The researchers implemented a Sequence-to-Sequence (Seq-to-Seq) framework consisting of several key components:

  • Text Encoder: A bidirectional GRU that processes the input sentence into a series of latent representations.
  • Image Encoder & ConvGRU: This tracks the "state" of the current canvas. As objects are added, a Convolutional Recurrent Module remembers what has been placed and where, ensuring the model doesn't overlap objects haphazardly.
  • Dual Attention Decoders: The Object Decoder decides which object to add next, while the Attribute Decoder "zooms in" on the relevant text to decide the object's properties: location, size, aspect ratio, and even facial expressions or poses.
  • Foreground Patch Embedding: For generating realistic images, the model doesn't "paint" pixels; it learns an appearance vector to retrieve the best-matching image patches from a database, which are then stitched onto the canvas.
Text2Scene generates cartoon scenes and their corresponding semantic layouts sequentially.

Datasets

The model was evaluated on two primary benchmarks:

  1. Abstract Scenes Dataset: Contains over 1,000 sets of "clip-art" style scenes of children playing, used to test the model's ability to handle poses and expressions.
  2. COCO (Common Objects in Context): A massive dataset of real-world images. The authors used this for two distinct tasks: generating semantic layouts (bounding boxes) and creating synthetic image composites (photo-realistic collages).

Key Insights and Ideas

  • Iterative is Better: By generating scenes object-by-object, the model can attend to specific words for specific objects (e.g., focusing on "surprised" only when modifying a face).
  • Interpretability by Design: Because of the attention mechanism, researchers can visualize exactly which words triggered the placement of an object.
  • Unified Framework: Perhaps the most impressive feat is that the exact same architecture works for clip-art, abstract layouts, and photo-composites with only minor tweaks to the final output layer.
The model handles diverse scene representations, including clip-art, object layouts, and synthetic image composites.

Key Results

  • Abstract Scenes: Text2Scene outperformed previous state-of-the-art methods across nearly all metrics, including object placement accuracy and pose/expression classification.
  • Human Preference: In head-to-head comparisons for synthetic image generation, human evaluators preferred Text2Scene over powerful GAN-based models like AttnGAN and HDGAN by a wide margin (often choosing it ~75% of the time).
  • Semantic Accuracy: On the COCO layout task, the model generated layouts that were so semantically consistent that a separate "captioning" model could accurately describe the generated scene using the original input text's logic.

Limitations and Future Work

While Text2Scene excels at composition, the "synthetic composites" can sometimes look like collages with visible seams between patches. The authors currently use a "stitching network" to help, but the results aren't yet as seamless as a purely generative pixel-based model. Future work could involve combining Text2Scene’s superior compositional logic with GAN-based refinement to get the "best of both worlds": perfect object placement with flawless pixel-level blending.

Summary updated

BibTeX
@inproceedings{tan2019text,
  author = {Fuwen Tan and Song Feng and Vicente Ordonez},
  title = {{Text2Scene: Generating Compositional Scenes From Textual Descriptions}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2019},
  url = {https://openreview.net/forum?id=Ka6H_MImmy},
}
Figure