Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

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

About

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.

Mingzhe Li, Kejing Xia, Gehao Zhang, Zhenting Wang, Guanhong Tao, Siqi Pan, Juan Zhai, Shiqing Ma• 2025

Related benchmarks

TaskDatasetResultRank
Image Prompt InversionFlickr
CLIP Score0.776
6
Prompt RecoveryMS-COCO
CLIP Score79.6
6
Prompt RecoveryFlickr
CLIP Score0.776
6
Prompt RecoveryLAION
CLIP Score82.6
6
Prompt RecoveryDiffusionDB
CLIP Score0.807
6
Prompt OptimizationFlickr
Mean CLIP Score77.62
4
Image Prompt InversionAdvanced Multi-encoder Models (test)
CLIP Similarity82.9
3
Showing 7 of 7 rows

Other info

Follow for update