articleJan 3, 2024Closed access

Training-Free Layout Control with Cross-Attention Guidance

University of Oxford

Indexed incrossref

Abstract

Recent diffusion-based generators can produce high-quality images from textual prompts. However, they often disregard textual instructions that specify the spatial layout of the composition. We propose a simple approach that achieves robust layout control without the need for training or fine-tuning of the image generator. Our technique manipulates the cross-attention layers that the model uses to interface textual and visual information and steers the generation in the desired direction given, e.g., a user-specified layout. To determine how to best guide attention, we study the role of attention maps and explore two alternative strategies, forward and backward guidance. We thoroughly evaluate our approach on…

Citation impact

136
total citations
FWCI
26.40
Percentile
100%
References
70
Citations per year

Authors

3

Topics & keywords

Keywords
  • Training (meteorology)
  • Computer science
  • Control (management)
  • Artificial intelligence
No related works found for this paper.

Funding