Skip to main content
QUICK REVIEW

[Paper Review] Benchmarking Spatial Relationships in Text-to-Image Generation

Tejas Gokhale, Hamid Palangi|arXiv (Cornell University)|Dec 20, 2022
Multimodal Machine Learning ApplicationsComputer Science25 citations
TL;DR

The paper introduces VISOR, a new automated metric for evaluating spatial understanding in text-to-image models, and SR 2D, a large-scale dataset of 25,280 sentences describing two-object spatial relations, to benchmark state-of-the-art T2I models. It finds that photorealism does not imply spatial accuracy and reveals notable biases in object generation and relational rendering.

ABSTRACT

Spatial understanding is a fundamental aspect of computer vision and integral for human-level reasoning about images, making it an important component for grounded language understanding. While recent text-to-image synthesis (T2I) models have shown unprecedented improvements in photorealism, it is unclear whether they have reliable spatial understanding capabilities. We investigate the ability of T2I models to generate correct spatial relationships among objects and present VISOR, an evaluation metric that captures how accurately the spatial relationship described in text is generated in the image. To benchmark existing models, we introduce a dataset, $\mathrm{SR}_{2D}$, that contains sentences describing two or more objects and the spatial relationships between them. We construct an automated evaluation pipeline to recognize objects and their spatial relationships, and employ it in a large-scale evaluation of T2I models. Our experiments reveal a surprising finding that, although state-of-the-art T2I models exhibit high image quality, they are severely limited in their ability to generate multiple objects or the specified spatial relations between them. Our analyses demonstrate several biases and artifacts of T2I models such as the difficulty with generating multiple objects, a bias towards generating the first object mentioned, spatially inconsistent outputs for equivalent relationships, and a correlation between object co-occurrence and spatial understanding capabilities. We conduct a human study that shows the alignment between VISOR and human judgement about spatial understanding. We offer the $\mathrm{SR}_{2D}$ dataset and the VISOR metric to the community in support of T2I reasoning research.

Motivation & Objective

  • Assess whether modern text-to-image models can accurately render spatial relationships described in text prompts.
  • Provide an automated, human-aligned metric to quantify spatial understanding in T2I outputs.
  • Create a large-scale dataset (SR 2D) capturing common objects and 2D spatial relations to benchmark models.
  • Investigate biases, failure modes, and correlations between object co-occurrence and spatial understanding.

Proposed method

  • Define VISOR metrics to verify spatial relationships between generated objects in images.
  • Construct SR 2D dataset with 25,280 prompts describing left/right/above/below relations among 80 MS-COCO objects.
  • Use an automated object detector (OWL-ViT with CLIP backbone) to detect objects and infer spatial relations in generated images.
  • Benchmark multiple leading T2I models (GLIDE, DALLE-mini, CogView2, DALLE-v2, Stable Diffusion, and variants) across four images per prompt.
  • Conduct a human study (MTurk) to validate alignment between VISOR and human judgments of spatial understanding.

Experimental results

Research questions

  • RQ1Can state-of-the-art text-to-image models reliably render specified spatial relationships between multiple objects?
  • RQ2How do existing automated multimodal metrics (e.g., CLIPScore, caption-based metrics) correlate with true spatial correctness?
  • RQ3What are the major failure modes and biases in generating multiple objects and their spatial relations?
  • RQ4How well does VISOR reflect human judgments of spatial understanding in T2I outputs?
  • RQ5What factors (e.g., object co-occurrence, prompt structure) influence spatial rendering performance?

Key findings

  • All models show strong photorealism but weak spatial understanding for multi-object relations.
  • Best model (DALLE-v2) achieves VISOR uncond around 60% and VISOR 4 about 7.5%, indicating large gaps in strict spatial correctness.
  • OA (object presence) remains low for most models when both objects must appear, highlighting a gap between object generation and relational accuracy.
  • Models exhibit biases such as favoring the first-mentioned object, higher success on common co-occurring pairs, and object merging.
  • VISOR correlates with human judgments, validating its usefulness for evaluating spatial reasoning in T2I models.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.