EDITOR: Effective and Interpretable Prompt Inversion for Text-to-Image Diffusion Models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Li, Mingzhe, Xia, Kejing, Zhang, Gehao, Wang, Zhenting, Tao, Guanhong, Pan, Siqi, Zhai, Juan, Ma, Shiqing
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917314934341632
author Li, Mingzhe
Xia, Kejing
Zhang, Gehao
Wang, Zhenting
Tao, Guanhong
Pan, Siqi
Zhai, Juan
Ma, Shiqing
author_facet Li, Mingzhe
Xia, Kejing
Zhang, Gehao
Wang, Zhenting
Tao, Guanhong
Pan, Siqi
Zhai, Juan
Ma, Shiqing
contents Text-to-image generation models~(e.g., Stable Diffusion) have achieved significant advancements, enabling the creation of high-quality and realistic images based on textual descriptions. Prompt inversion, the task of identifying the textual prompt used to generate a specific artifact, holds significant potential for applications including data attribution, model provenance, and watermarking validation. Recent studies introduced a delayed projection scheme to optimize for prompts representative of the vocabulary space, though challenges in semantic fluency and efficiency remain. Advanced image captioning models or visual large language models can generate highly interpretable prompts, but they often lack in image similarity. In this paper, we propose a prompt inversion technique called \sys for text-to-image diffusion models, which includes initializing embeddings using a pre-trained image captioning model, refining them through reverse-engineering in the latent space, and converting them to texts using an embedding-to-text model. Our experiments on the widely-used datasets, such as MS COCO, LAION, Flickr and DiffusionDB, show that our method outperforms existing methods in terms of image similarity, textual alignment, prompt interpretability and generalizability. We further illustrate the application of our generated prompts in tasks such as cross-concept image synthesis, concept manipulation, evolutionary multi-concept generation and unsupervised segmentation.
format Preprint
id arxiv_https___arxiv_org_abs_2506_03067
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle EDITOR: Effective and Interpretable Prompt Inversion for Text-to-Image Diffusion Models
Li, Mingzhe
Xia, Kejing
Zhang, Gehao
Wang, Zhenting
Tao, Guanhong
Pan, Siqi
Zhai, Juan
Ma, Shiqing
Computer Vision and Pattern Recognition
Text-to-image generation models~(e.g., Stable Diffusion) have achieved significant advancements, enabling the creation of high-quality and realistic images based on textual descriptions. Prompt inversion, the task of identifying the textual prompt used to generate a specific artifact, holds significant potential for applications including data attribution, model provenance, and watermarking validation. Recent studies introduced a delayed projection scheme to optimize for prompts representative of the vocabulary space, though challenges in semantic fluency and efficiency remain. Advanced image captioning models or visual large language models can generate highly interpretable prompts, but they often lack in image similarity. In this paper, we propose a prompt inversion technique called \sys for text-to-image diffusion models, which includes initializing embeddings using a pre-trained image captioning model, refining them through reverse-engineering in the latent space, and converting them to texts using an embedding-to-text model. Our experiments on the widely-used datasets, such as MS COCO, LAION, Flickr and DiffusionDB, show that our method outperforms existing methods in terms of image similarity, textual alignment, prompt interpretability and generalizability. We further illustrate the application of our generated prompts in tasks such as cross-concept image synthesis, concept manipulation, evolutionary multi-concept generation and unsupervised segmentation.
title EDITOR: Effective and Interpretable Prompt Inversion for Text-to-Image Diffusion Models
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2506.03067