Zero-shot spatial layout conditioning for text-to-image diffusion models

Guillaume Couairon, Marlene Careil, M. Cord, St'ephane Lathuiliere, Jakob Verbeek
2/14/2026

No confident code implementation found for this paper.

Abstract

Large-scale text-to-image diffusion models have significantly improved the state of the art in generative image modeling and allow for an intuitive and powerful user interface to drive the image generation process. Expressing spatial constraints, e.g. to position specific objects in particular locations, is cumbersome using text; and current text-based image generation models are not able to accurately follow such instructions. In this paper we consider image generation from text associated with segments on the image canvas, which combines an intuitive natural language interface with precise spatial control over the generated content. We propose ZestGuide, a "zero-shot" segmentation guidance approach that can be plugged into pre-trained text-to-image diffusion models, and does not require any additional training. It leverages implicit segmentation maps that can be extracted from cross-attention layers, and uses them to align the generation with input masks. Our experimental results combine high image quality with accurate alignment of generated content with input segmentations, and improve over prior work both quantitatively and qualitatively, including methods that require training on images with corresponding segmentations. Compared to Paint with Words, the previous state-of-the art in image generation with zero-shot segmentation conditioning, we improve by 5 to 10 mIoU points on the COCO dataset with similar FID scores.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{couairon2026zeroshot,
  title  = {Zero-shot spatial layout conditioning for text-to-image diffusion models},
  author = {Guillaume Couairon and Marlene Careil and M. Cord and St'ephane Lathuiliere and Jakob Verbeek},
  year   = {2026},
  eprint = {2306.13754},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2306.13754},
  journal = {ICCV 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2306.13754.svg)](https://codeofpaper.com/paper/2306.13754)

Discussion