atlas

Research map / Image generation / Text-to-image diffusion

Prompting Hard or Hardly Prompting: Prompt Inversion for Text-to-Image Diffusion Models

CVPR 2024 · Image generation › Text-to-image diffusion · approach: Inference-time T2I improvement · 19 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Inverts a frozen latent diffusion model (Stable Diffusion v1.5) into interpretable hard text prompts by delayed-projection L-BFGS optimization restricted to later timesteps (t>=500).

Problem

Recovering interpretable text prompts that would generate a target image, since embedding-based textual inversion yields pseudo-tokens lacking semantics and readability; discrete prompt optimization through diffusion models is hard due to vanishing gradients and high-variance trajectories.

Approach

Optimize discrete vocabulary tokens directly using the diffusion denoising loss (no auxiliary image-text model), restricting the timestep range to later noisy steps (t>=500) where semantics are encoded, and using projected gradient with delayed projection and L-BFGS updates.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use PH2P hard-prompt inversion instead of PEZStable Diffusion v1.5 · COCOCLIP similarity: 0.72 -> 0.77Helped
Use PH2P hard-prompt inversion instead of PEZStable Diffusion v1.5 · COCOLPIPS similarity: 0.477 -> 0.462Helped
Use PH2P hard-prompt inversion instead of PEZStable Diffusion v1.5 · COCOLPIPS diversity: 0.417 -> 0.435Helped
Use PH2P hard-prompt inversion instead of PEZStable Diffusion v1.5 · LSUNCLIP similarity: 0.70 -> 0.77Helped
Use PH2P hard-prompt inversion instead of PEZStable Diffusion v1.5 · LSUNLPIPS similarity: 0.480 -> 0.463Helped
Use PH2P hard-prompt inversion instead of PEZStable Diffusion v1.5 · LSUNLPIPS diversity: 0.420 -> 0.422Helped
Replace the PH2P optimizer with Adam (ablation)PH2P prompt inversion · COCOCLIP similarity: 0.77 -> 0.65Hurt
Replace the PH2P optimizer with Adam (ablation)PH2P prompt inversion · COCOLPIPS similarity: 0.462 -> 0.501Hurt
Replace the PH2P optimizer with Adam (ablation)PH2P prompt inversion · COCOLPIPS diversity: 0.435 -> 0.400Hurt
Optimize over all diffusion timesteps instead of the selected timestep range (ablation)PH2P prompt inversion · COCOCLIP similarity: 0.77 -> 0.72Hurt
Optimize over all diffusion timesteps instead of the selected timestep range (ablation)PH2P prompt inversion · COCOLPIPS similarity: 0.462 -> 0.479Hurt
Optimize over all diffusion timesteps instead of the selected timestep range (ablation)PH2P prompt inversion · COCOLPIPS diversity: 0.435 -> 0.423Hurt

Surprising findings

Limitations

Experimental setup

Datasets: COCO SUN

Benchmarks: COCO LSUN

Metrics: CLIP similarity LPIPS similarity LPIPS diversity BERTScore precision BERTScore recall BERTScore F1

Baselines: PEZ LDM+adam LDM+all t

Builds on: Textual Inversion PEZ Latent Diffusion Models Projected gradient descent with delayed projections

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy