Automated Black-box Prompt Engineering for Personalized Text-to-Image Generation
Not on the map. Why?
Abstract (arXiv)
Prompt engineering is an effective but labor-intensive way to control text-to-image (T2I) generative models. Its time-intensive nature and complexity have 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, or produce non-intuitive prompts. In this work, we introduce PRISM, an algorithm that automatically produces 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 prompt distribution built upon the 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.
Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Builds on 48 of its 74 references that are in the map. First posted on arXiv 28 Mar 2024.
Builds on
48 of 74 references.
References · 48
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 8,964
- 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 7,764
- 2023BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Modelscited by 6,069
- 2023Adding Conditional Control to Text-to-Image Diffusion Modelscited by 5,466
- 2016Image-to-Image Translation with Conditional Adversarial Networkscited by 4,510
- 2022LAION-5B: An open large-scale dataset for training next generation image-text modelscited by 4,131
- 2022DreamBooth: Fine Tuning Text-to-Image Diffusion Models for Subject-Driven Generationcited by 3,286
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 2,914
36 more
- 2021Learning to Prompt for Vision-Language Modelscited by 2,269
- 2022An Image is Worth One Word: Personalizing Text-to-Image Generation using Textual Inversioncited by 2,231
- 2014Conditional Generative Adversarial Netscited by 2,152
- 2021SDEdit: Guided Image Synthesis and Editing with Stochastic Differential Equationscited by 1,903
- 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,565
- 2023IP-Adapter: Text Compatible Image Prompt Adapter for Text-to-Image Diffusion Modelscited by 1,439
- 2022Diffusion Posterior Sampling for General Noisy Inverse Problemscited by 1,375
- 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,326
- 2022Scaling Autoregressive Models for Content-Rich Text-to-Image Generationcited by 1,287
- 2020Making Pre-trained Language Models Better Few-shot Learnerscited by 1,255
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
- 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,020
- 2023Large Language Models as Optimizerscited by 830
- 2023AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Modelscited by 738
- 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 628
- 2022When and why vision-language models behave like bags-of-words, and what to do about it?cited by 603
- 2022Winoground: Probing Vision and Language Models for Visio-Linguistic Compositionalitycited by 523
- 2023SmoothLLM: Defending Large Language Models Against Jailbreaking Attackscited by 434
- 2022DiffusionDB: A Large-scale Prompt Gallery Dataset for Text-to-Image Generative Modelscited by 376
- 2023InstantBooth: Personalized Text-to-Image Generation without Test-Time Finetuningcited by 343
- 2023Hard Prompts Made Easy: Gradient-Based Discrete Optimization for Prompt Tuning and Discoverycited by 329
- 2021Do Prompt-Based Models Really Understand the Meaning of their Prompts?cited by 324
- 2023FreeDoM: Training-Free Energy-Guided Conditional Diffusion Modelcited by 290
- 2020AutoPrompt: Eliciting Knowledge from Language Models with Automatically Generated Promptscited by 246
- 2023Subject-driven Text-to-Image Generation via Apprenticeship Learningcited by 210
- 2022Optimizing Prompts for Text-to-Image Generationcited by 204
- 2023Solving Linear Inverse Problems Provably via Posterior Sampling with Latent Diffusion Modelscited by 156
- 2023Manifold Preserving Guided Diffusioncited by 153
- 2024Improving Text-to-Image Consistency via Automatic Prompt Optimizationcited by 88
- 2023Quantifying & Modeling Multimodal Interactions: An Information Decomposition Frameworkcited by 81
- 2023Prompting Hard or Hardly Prompting: Prompt Inversion for Text-to-Image Diffusion Modelscited by 40
- 2023Idea2Img: Iterative Self-Refinement with GPT-4V(ision) for Automatic Image Design and Generationcited by 38
- 2023Language Models as Black-Box Optimizers for Vision-Language Modelscited by 36
- 2023Localized Text-to-Image Generation for Free via Cross Attention Controlcited by 27
- 2023Language models are weak learnerscited by 21
- 2023Understanding prompt engineering may not require rethinking generalizationcited by 10
Built on by
Citing papers per year: 2024: 4; 2025: 5; 2026: 3.
12 papers.
- 2025Personalized Image Generation with Deep Generative Models: A Decade Surveycited by 20
- 2024ClassDiffusion: More Aligned Personalization Tuning with Explicit Class Guidancecited by 18
- 2024TIPO: Text to Image with Text Presampling for Prompt Optimizationcited by 6
- 2024Prompt Recovery for Image Generation Models: A Comparative Study of Discrete Optimizerscited by 5
- 2025Reward-Agnostic Prompt Optimization for Text-to-Image Diffusion Modelscited by 5
- 2024Jailbreaking LLM-Controlled Robotscited by 4
- 2025DeCoT: Decomposing Complex Instructions for Enhanced Text-to-Image Generation with Large Language Modelscited by 1
- 2026PromptEvolver: Prompt Inversion through Evolutionary Optimization in Natural-Language Spacecited by 1
- 2026Beyond Trial-and-Error: Agentic Optimization for Image-to-Video Adherencecited by 1
- 2025EDITOR: Effective and Interpretable Prompt Inversion for Text-to-Image Diffusion Modelscited by 0
- 2025AdaptaGen: Domain-Specific Image Generation through Hierarchical Semantic Optimization Frameworkcited by 0
- 2026FoeGlass: Simple In-Context Learning Is Enough for Red Teaming Audio Deepfake Detectorscited by 0
- 2026Beyond Trial-and-Error: Agentic Optimization for Image-to-Video Adherence12 Aug 2026
- 2026FoeGlass: Simple In-Context Learning Is Enough for Red Teaming Audio Deepfake Detectors3 Jun 2026
- 2026PromptEvolver: Prompt Inversion through Evolutionary Optimization in Natural-Language Space3 Apr 2026
- 2025DeCoT: Decomposing Complex Instructions for Enhanced Text-to-Image Generation with Large Language Models17 Aug 2025
- 2025AdaptaGen: Domain-Specific Image Generation through Hierarchical Semantic Optimization Framework8 Jul 2025
- 2025Reward-Agnostic Prompt Optimization for Text-to-Image Diffusion Models20 Jun 2025
- 2025EDITOR: Effective and Interpretable Prompt Inversion for Text-to-Image Diffusion Models3 Jun 2025
- 2025Personalized Image Generation with Deep Generative Models: A Decade Survey18 Feb 2025
- 2024TIPO: Text to Image with Text Presampling for Prompt Optimization12 Nov 2024
- 2024Jailbreaking LLM-Controlled Robots17 Oct 2024
- 2024Prompt Recovery for Image Generation Models: A Comparative Study of Discrete Optimizers12 Aug 2024
- 2024ClassDiffusion: More Aligned Personalization Tuning with Explicit Class Guidance27 May 2024
Similar, not cited
Close in wording, no citation either way
- 2026PRISM: Prompt Refinement via Image-grounded Self-rewarding Mechanism for Text-to-Image Generation
- 2024PromptCharm: Text-to-Image Generation through Multi-modal Prompting and Refinement
- 2025T2I-Copilot: A Training-Free Multi-Agent Text-to-Image System for Enhanced Prompt Interpretation and Interactive Generation
- 2023Manipulating Embeddings of Stable Diffusion Prompts
- 2024Batch-Instructed Gradient for Prompt Evolution:Systematic Prompt Optimization for Enhanced Text-to-Image Synthesis
- 2025Test-time Prompt Refinement for Text-to-Image Models
- 2025POET: Preference Optimization for Enhanced Text-to-Image Generation
- 2023DreamDistribution: Learning Prompt Distribution for Diverse In-distribution Generation