Prompt Refinement with Image Pivot for Text-to-Image Generation

Jingtao Zhan, Qingyao Ai, Yiqun Liu, Yingwei Pan, Ting Yao +3 more
6/28/2024
cs.CV

No official code found. Best implementation: jingtaozhan/PromptReformulate (10 stars, last commit 2024-05-20).

Abstract

For text-to-image generation, automatically refining user-provided natural language prompts into the keyword-enriched prompts favored by systems is essential for the user experience. Such a prompt refinement process is analogous to translating the prompt from "user languages" into "system languages". However, the scarcity of such parallel corpora makes it difficult to train a prompt refinement model. Inspired by zero-shot machine translation techniques, we introduce Prompt Refinement with Image Pivot (PRIP). PRIP innovatively uses the latent representation of a user-preferred image as an intermediary "pivot" between the user and system languages. It decomposes the refinement process into two data-rich tasks: inferring representations of user-preferred images from user languages and subsequently translating image representations into system languages. Thus, it can leverage abundant data for training. Extensive experiments show that PRIP substantially outperforms a wide range of baselines and effectively transfers to unseen systems in a zero-shot manner.

View on arXivView PDF

Code Implementations(1)

100PythonJan 22, 20242 years ago

Similar Papers

Cite this paper

@article{zhan2024prompt,
  title  = {Prompt Refinement with Image Pivot for Text-to-Image Generation},
  author = {Jingtao Zhan and Qingyao Ai and Yiqun Liu and Yingwei Pan and Ting Yao and Jiaxin Mao and Shaoping Ma and Tao Mei},
  year   = {2024},
  eprint = {2407.00247},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.00247v1}
}

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

Discussion