PRISM: Automated Black-box Prompt Engineering for Personalized Text-to-Image Generation

1Carnegie Mellon University, 2University of Pennsylvania, 3Sony AI, 4Sony Group Corporation, 5Bosch Center for AI

TMLR 2025

Given a set of reference images, our method, PRISM, is capable of creating human-interpretable and accurate prompts for the desired concept that are also transferable to both open-sourced and closed-sourced text-to-image models.

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 large language model (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.

Proposed Method

An illustration of PRISM. The label “System” indicates the system prompts setups for the VLMs.

Demo

Qualitative results for object oriented personalized T2I generation on DreamBooth dataset.

Qualitative results for object oriented personalized T2I generation.

Image inversion results for different methods on different T2I models.

Prompt editing demonstration with Midjourney.

Multi-concept generation demonstration with Midjourney.

BibTeX


        @article{
          he2025automated,
          title={Automated Black-box Prompt Engineering for Personalized Text-to-Image Generation},
          author={Yutong He and Alexander Robey and Naoki Murata and Yiding Jiang and Joshua Nathaniel Williams and George J. Pappas and Hamed Hassani and Yuki Mitsufuji and Ruslan Salakhutdinov and J Zico Kolter},
          journal={Transactions on Machine Learning Research},
          issn={2835-8856},
          year={2025},
          url={https://openreview.net/forum?id=IVYVDN6pJ6},
          note={}
        }