Reproduce “Localized Text-to-Image Generation for Free via Cross Attention Control” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Yutong He, Ruslan Salakhutdinov, J. Zico Kolter

Cross Attention Control (CAC) is introduced as a training-free method for localized text-to-image generation, which manipulates cross-attention maps during inference. This approach successfully places objects within user-specified regions, improving spatial control while maintaining overall image quality across various diffusion models.

Key insights

  • Cross-attention maps within pre-trained diffusion models inherently contain spatial information that can be directly manipulated to control object placement.
  • By constraining cross-attention maps to specific spatial regions during inference, localized generation can be achieved without requiring any additional training or model modifications.
  • The method demonstrates that precise spatial control can be integrated into existing text-to-image pipelines, leveraging the models' existing capabilities.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.