LLM4GEN: Leveraging Semantic Representation of LLMs for Text-to-Image Generation

Mushui Liu, Yuhang Ma, Yang Zhen, Jun Dan, Yunlong Yu +4 more
6/30/2024
cs.CV

No official code found. Best implementation: YUHANG-Ma/LLM4GEN (42 stars, last commit 2025-01-07).

Abstract

Diffusion models have exhibited substantial success in text-to-image generation. However, they often encounter challenges when dealing with complex and dense prompts involving multiple objects, attribute binding, and long descriptions. In this paper, we propose a novel framework called \textbf{LLM4GEN}, which enhances the semantic understanding of text-to-image diffusion models by leveraging the representation of Large Language Models (LLMs). It can be seamlessly incorporated into various diffusion models as a plug-and-play component. A specially designed Cross-Adapter Module (CAM) integrates the original text features of text-to-image models with LLM features, thereby enhancing text-to-image generation. Additionally, to facilitate and correct entity-attribute relationships in text prompts, we develop an entity-guided regularization loss to further improve generation performance. We also introduce DensePrompts, which contains $7,000$ dense prompts to provide a comprehensive evaluation for the text-to-image generation task. Experiments indicate that LLM4GEN significantly improves the semantic alignment of SD1.5 and SDXL, demonstrating increases of 9.69\% and 12.90\% in color on T2I-CompBench, respectively. Moreover, it surpasses existing models in terms of sample quality, image-text alignment, and human evaluation.

View on arXivView PDF

Code Implementations(1)

YUHANG-Ma/LLM4GENCommunity71%

[AAAI 2025] LLM4GEN: Leveraging Semantic Representation of LLMs for Text-to-Image Generation

422PythonJul 2, 20241 years ago

Similar Papers

Cite this paper

@article{liu2024llmgen,
  title  = {LLM4GEN: Leveraging Semantic Representation of LLMs for Text-to-Image Generation},
  author = {Mushui Liu and Yuhang Ma and Yang Zhen and Jun Dan and Yunlong Yu and Zeng Zhao and Zhipeng Hu and Bai Liu and Changjie Fan},
  year   = {2024},
  eprint = {2407.00737},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.00737v2}
}

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

Discussion