Reproduce “Prompt Recovery for Image Generation Models: A Comparative Study of Discrete Optimizers” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Joshua Nathaniel Williams, Avi Schwarzschild, Yutong He, J. Zico Kolter

Researchers at Carnegie Mellon University conducted the first systematic comparative study of discrete optimization techniques for prompt inversion in image generation models. The study benchmarked six methods, including discrete optimizers and learned models, demonstrating that PRISM and image captioners like BLIP-2 generally produced visually and semantically superior inverted prompts compared to direct CLIP-optimized discrete methods, with PRISM achieving an average FID of 262.015 and a text-to-text cosine similarity of 0.440.

Key insights

  • Text-image alignment models like CLIP, while useful for optimization, act as a suboptimal proxy for truly aligning prompt-image pairs in generative models, as direct CLIP optimization does not guarantee high visual similarity.
  • Discrete optimizers, particularly without a language prior, tend to generate keyword-based or less human-readable prompts compared to methods like PRISM or BLIP-2, which produce more natural language.
  • Significant information loss occurs during prompt inversion, indicating that even the best methods struggle to fully recover the detail and nuance of original prompts.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.