Automated Black-box Prompt Engineering for Personalized Text-to-Image Generation (2403.19103v2)
Abstract: Prompt engineering is effective for controlling the output of text-to-image (T2I) generative models, but it is also laborious due to the need for manually crafted prompts. This challenge has spurred the development of algorithms for automated prompt generation. However, these methods often struggle with transferability across T2I models, require white-box access to the underlying model, and produce non-intuitive prompts. In this work, we introduce PRISM, an algorithm that automatically identifies human-interpretable and transferable prompts that can effectively generate desired concepts given only black-box access to T2I models. Inspired by LLM jailbreaking, PRISM leverages the in-context learning ability of LLMs to iteratively refine the candidate prompts distribution for given reference images. Our experiments demonstrate the versatility and effectiveness of PRISM in generating accurate prompts for objects, styles and images across multiple T2I models, including Stable Diffusion, DALL-E, and Midjourney.
- Yutong He (43 papers)
- Alexander Robey (34 papers)
- Naoki Murata (29 papers)
- Yiding Jiang (21 papers)
- George J. Pappas (208 papers)
- Hamed Hassani (120 papers)
- Yuki Mitsufuji (127 papers)
- Ruslan Salakhutdinov (248 papers)
- J. Zico Kolter (151 papers)
- Joshua Nathaniel Williams (4 papers)