Reproduce “UNCAGE: Contrastive Attention Guidance for Masked Generative Transformers in Text-to-Image Generation” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

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

About this paper

Wonjun Kang, Byeongkeun Ahn, Minjae Lee, Kevin Galim, Seunghyuk Oh, Hyung Il Koo, Nam Ik Cho

Researchers from Seoul National University, FuriosaAI, and Ajou University developed UNCAGE, a training-free method that improves compositional fidelity and attribute binding in text-to-image generation by Masked Generative Transformers (MGTs). It guides the token unmasking order using contrastive attention, leading to improved CLIP-based metrics and user preference on compositional benchmarks with negligible inference overhead.

Key insights

  • The unmasking order in Masked Generative Transformers, especially during early generation steps, critically dictates the final compositional accuracy and attribute binding of the generated image.
  • Intrinsic attention maps within a pretrained MGT can be effectively leveraged as a training-free guidance signal to steer the generative process towards better compositional outcomes.
  • A contrastive approach, which simultaneously promotes distinct positive text-image alignments and suppresses negative ones, is effective in mitigating issues like attribute leakage and object mixture.

Summary by alphaXiv.

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