An Empirical Study and Analysis of Text-to-Image Generation Using Large Language Model-Powered Textual Representation

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Tan, Zhiyu, Yang, Mengping, Qin, Luozheng, Yang, Hao, Qian, Ye, Zhou, Qiang, Zhang, Cheng, Li, Hao
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866907983297904640
author Tan, Zhiyu
Yang, Mengping
Qin, Luozheng
Yang, Hao
Qian, Ye
Zhou, Qiang
Zhang, Cheng
Li, Hao
author_facet Tan, Zhiyu
Yang, Mengping
Qin, Luozheng
Yang, Hao
Qian, Ye
Zhou, Qiang
Zhang, Cheng
Li, Hao
contents One critical prerequisite for faithful text-to-image generation is the accurate understanding of text inputs. Existing methods leverage the text encoder of the CLIP model to represent input prompts. However, the pre-trained CLIP model can merely encode English with a maximum token length of 77. Moreover, the model capacity of the text encoder from CLIP is relatively limited compared to Large Language Models (LLMs), which offer multilingual input, accommodate longer context, and achieve superior text representation. In this paper, we investigate LLMs as the text encoder to improve the language understanding in text-to-image generation. Unfortunately, training text-to-image generative model with LLMs from scratch demands significant computational resources and data. To this end, we introduce a three-stage training pipeline that effectively and efficiently integrates the existing text-to-image model with LLMs. Specifically, we propose a lightweight adapter that enables fast training of the text-to-image model using the textual representations from LLMs. Extensive experiments demonstrate that our model supports not only multilingual but also longer input context with superior image generation quality.
format Preprint
id arxiv_https___arxiv_org_abs_2405_12914
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle An Empirical Study and Analysis of Text-to-Image Generation Using Large Language Model-Powered Textual Representation
Tan, Zhiyu
Yang, Mengping
Qin, Luozheng
Yang, Hao
Qian, Ye
Zhou, Qiang
Zhang, Cheng
Li, Hao
Computer Vision and Pattern Recognition
One critical prerequisite for faithful text-to-image generation is the accurate understanding of text inputs. Existing methods leverage the text encoder of the CLIP model to represent input prompts. However, the pre-trained CLIP model can merely encode English with a maximum token length of 77. Moreover, the model capacity of the text encoder from CLIP is relatively limited compared to Large Language Models (LLMs), which offer multilingual input, accommodate longer context, and achieve superior text representation. In this paper, we investigate LLMs as the text encoder to improve the language understanding in text-to-image generation. Unfortunately, training text-to-image generative model with LLMs from scratch demands significant computational resources and data. To this end, we introduce a three-stage training pipeline that effectively and efficiently integrates the existing text-to-image model with LLMs. Specifically, we propose a lightweight adapter that enables fast training of the text-to-image model using the textual representations from LLMs. Extensive experiments demonstrate that our model supports not only multilingual but also longer input context with superior image generation quality.
title An Empirical Study and Analysis of Text-to-Image Generation Using Large Language Model-Powered Textual Representation
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2405.12914