Improving Explicit Spatial Relationships in Text-to-Image Generation through an Automatically Derived Dataset
Not on the map. Why?
Abstract (arXiv)
Existing work has observed that current text-to-image systems do not accurately reflect explicit spatial relations between objects such as 'left of' or 'below'. We hypothesize that this is because explicit spatial relations rarely appear in the image captions used to train these models. We propose an automatic method that, given existing images, generates synthetic captions that contain 14 explicit spatial relations. We introduce the Spatial Relation for Generation (SR4G) dataset, which contains 9.9 millions image-caption pairs for training, and more than 60 thousand captions for evaluation. In order to test generalization we also provide an 'unseen' split, where the set of objects in the train and test captions are disjoint. SR4G is the first dataset that can be used to spatially fine-tune text-to-image systems. We show that fine-tuning two different Stable Diffusion models (denoted as SDSR4G) yields up to 9 points improvements in the VISOR metric. The improvement holds in the 'unseen' split, showing that SDSR4G is able to generalize to unseen objects. SDSR4G improves the state-of-the-art with fewer parameters, and avoids complex architectures. Our analysis shows that improvement is consistent for all relations. The dataset and the code will be publicly available.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 18 of its 27 references that are in the map. First posted on arXiv 1 Mar 2024.
Builds on
18 of 27 references.
References · 18
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
- 2014Microsoft COCO: Common Objects in Contextcited by 17,498
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2021Zero-Shot Text-to-Image Generationcited by 4,276
- 2022LAION-5B: An open large-scale dataset for training next generation image-text modelscited by 4,131
- 2021GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Modelscited by 3,595
- 2015Flickr30k Entities: Collecting Region-to-Phrase Correspondences for Richer Image-to-Sentence Modelscited by 1,352
- 2021Conceptual 12M: Pushing Web-Scale Image-Text Pre-Training To Recognize Long-Tail Visual Conceptscited by 1,209
- 2022Imagic: Text-Based Real Image Editing with Diffusion Modelscited by 1,172
- 2022OFA: Unifying Architectures, Tasks, and Modalities Through a Simple Sequence-to-Sequence Learning Frameworkcited by 742
6 more
- 2023Attend-and-Excite: Attention-Based Semantic Guidance for Text-to-Image Diffusion Modelscited by 696
- 2018Image Generation from Scene Graphscited by 324
- 2022CogView2: Faster and Better Text-to-Image Generation via Hierarchical Transformerscited by 305
- 2022DALL-Eval: Probing the Reasoning Skills and Social Biases of Text-to-Image Generation Modelscited by 230
- 2022ReCo: Region-Controlled Text-to-Image Generationcited by 177
- 2023Visual Programming for Text-to-Image Generation and Evaluationcited by 53
Built on by
Citing papers per year: 2025: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2024Getting it Right: Improving Spatial Consistency in Text-to-Image Models
- 2025ESPLoRA: Enhanced Spatial Precision with Low-Rank Adaption in Text-to-Image Diffusion Models for High-Definition Synthesis
- 2023Unlocking Spatial Comprehension in Text-to-Image Diffusion Models
- 2026Circuit Mechanisms for Spatial Relation Generation in Diffusion Transformers
- 2024CoMPaSS: Enhancing Spatial Understanding in Text-to-Image Diffusion Models
- 2023A Picture is Worth a Thousand Words: Principled Recaptioning Improves Image Generation
- 2022SpaText: Spatio-Textual Representation for Controllable Image Generation
- 2023Image Captioning with Multi-Context Synthetic Data