Magnet: We Never Know How Text-to-Image Diffusion Models Work, Until We Learn How Vision-Language Models Function

Chenyi Zhuang, Ying Hu, Pan Gao
9/1/2024
33 citations
diffusion-flow

Official code: I2-Multimedia-Lab/Magnet (31 stars, Jupyter Notebook, last commit 2024-12-02).

Abstract

Text-to-image diffusion models particularly Stable Diffusion, have revolutionized the field of computer vision. However, the synthesis quality often deteriorates when asked to generate images that faithfully represent complex prompts involving multiple attributes and objects.

Show full abstract

While previous studies suggest that blended text embeddings lead to improper attribute binding, few have explored this in depth. In this work, we critically examine the limitations of the CLIP text encoder in understanding attributes and investigate how this affects diffusion models. We discern a phenomenon of attribute bias in the text space and highlight a contextual issue in padding embeddings that entangle different concepts. We propose \textbf{Magnet}, a novel training-free approach to tackle the attribute binding problem. We introduce positive and negative binding vectors to enhance disentanglement, further with a neighbor strategy to increase accuracy. Extensive experiments show that Magnet significantly improves synthesis quality and binding accuracy with negligible computational cost, enabling the generation of unconventional and unnatural concepts.

View on arXivView PDF

Code Implementations(1)

Official Implementation of "Magnet: We Never Know How Text-to-Image Diffusion Models Work, Until We Learn How Vision-Language Models Function" [NeurIPS 2024]

311Jupyter Notebook, PythonSep 23, 20241 years ago

Similar Papers

Cite this paper

@article{zhuang2024magnet,
  title  = {Magnet: We Never Know How Text-to-Image Diffusion Models Work, Until We Learn How Vision-Language Models Function},
  author = {Chenyi Zhuang and Ying Hu and Pan Gao},
  year   = {2024},
  eprint = {2409.19967},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2409.19967},
  url    = {https://arxiv.org/abs/2409.19967},
  journal = {NEURIPS 2024 2024}
}

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/2409.19967.svg)](https://codeofpaper.com/paper/2409.19967)

Discussion