Inference-Time Optimization of Prompt Embeddings in Diffusion Models: A Comparison of sep-CMA-ES and Adam
On the map: Diffusion models → Image generation, text-to-image and editing
Abstract (arXiv)
Deep diffusion models have revolutionized image generation by producing high-quality outputs. However, achieving specific objectives with these models often requires costly adaptations such as fine-tuning, which can be resource-intensive and time-consuming. An alternative approach is inference-time control, which involves optimizing the prompt embeddings to guide the generation process without altering the model weights. We explore prompt-embedding search optimization for the Stable Diffusion XL Turbo model, comparing a gradient-free evolutionary approach, the Separable Covariance Matrix Adaptation Evolution Strategy (sep-CMA-ES), against the widely used gradient-based optimizer Adaptive Moment Estimation (Adam). Candidate images are evaluated by a weighted objective that combines LAION Aesthetic Predictor V2 and CLIPScore, enabling explicit trade-offs between aesthetic quality and prompt-image alignment. On 36 prompts sampled from Parti Prompts (P2) under three weight settings (aesthetics-only, balanced, alignment-only), sep-CMA-ES consistently achieves higher objective values than Adam. We additionally analyze divergence from the unoptimized baseline using cosine similarity and SSIM and report the compute and memory footprints. These results suggest that sep-CMA-ES is an effective inference-time optimizer for prompt-embedding search, improving aesthetics-alignment trade-offs and resource usage without model fine-tuning.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Image generation, text-to-image and editing, one of 14 directions in Diffusion models. Builds on 32 of its 48 references that are in the map. First posted on arXiv 5 Nov 2025.
Builds on
32 of 48 references.
Closest ancestors · 7
Same direction, newest first
- 2025FLUX.1 Kontext: Flow Matching for In-Context Image Generation and Editing in Latent Space17 Jun
- 2024Uncovering the Text Embedding in Text-to-Image Diffusion Models1 Apr
- 2024PromptCharm: Text-to-Image Generation through Multi-modal Prompting and Refinement6 Mar
- 2023Rich Human Feedback for Text-to-Image Generation15 Dec
- 2022Uncovering the Disentanglement Capability in Text-to-Image Diffusion Models16 Dec
- 2022DreamBooth: Fine Tuning Text-to-Image Diffusion Models for Subject-Driven Generation25 Aug
- 2021DiffusionCLIP: Text-Guided Diffusion Models for Robust Image Manipulation6 Oct
Other references · 25
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2022Scalable Diffusion Models with Transformerscited by 5,931
- 2022Classifier-Free Diffusion Guidancecited by 5,717
- 2023SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesiscited by 4,290
- 2024Scaling Rectified Flow Transformers for High-Resolution Image Synthesiscited by 4,094
- 2017Deep reinforcement learning from human preferencescited by 3,846
- 2022Prompt-to-Prompt Image Editing with Cross Attention Controlcited by 2,409
- 2021CLIPScore: A Reference-free Evaluation Metric for Image Captioningcited by 2,388
- 2014Conditional Generative Adversarial Netscited by 2,152
- 2021SDEdit: Guided Image Synthesis and Editing with Stochastic Differential Equationscited by 1,903
13 more
- 2019Semantic Image Synthesis with Spatially-Adaptive Normalizationcited by 1,295
- 2023ImageReward: Learning and Evaluating Human Preferences for Text-to-Image Generationcited by 1,010
- 2025Qwen-Image Technical Reportcited by 973
- 2023Pick-a-Pic: An Open Dataset of User Preferences for Text-to-Image Generationcited by 950
- 2023PixArt-α: Fast Training of Diffusion Transformer for Photorealistic Text-to-Image Synthesiscited by 854
- 2023Human Preference Score v2: A Solid Benchmark for Evaluating Human Preferences of Text-to-Image Synthesiscited by 847
- 2023Adversarial Diffusion Distillationcited by 741
- 2023TIFA: Accurate and Interpretable Text-to-Image Faithfulness Evaluation with Question Answeringcited by 416
- 2022Optimizing Prompts for Text-to-Image Generationcited by 204
- 2024Learning Multi-dimensional Human Preference for Text-to-Image Generationcited by 102
- 2023Prompt Evolution for Generative AI: A Classifier-Guided Approachcited by 9
- 2014A Computationally Efficient Limited Memory CMA-ES for Large Scale Optimizationcited by 4
- 2022Exploring Generative Adversarial Networks for Text-to-Image Generation with Evolution Strategiescited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025Inference-Time Alignment of Diffusion Models via Evolutionary Algorithms
- 2025Prompt-aware classifier free guidance for diffusion models
- 2024On Discrete Prompt Optimization for Diffusion Models
- 2026Evolutionary Token-Level Prompt Optimization for Diffusion Models
- 2025TPSO: Training-Free Diverse Image Generation via Semantic Prompt Embedding Optimization
- 2024Diffusion Models Need Visual Priors for Image Generation
- 2023Diffusion-TTA: Test-time Adaptation of Discriminative Models via Generative Feedback
- 2026ELROND: Exploring and decomposing intrinsic capabilities of diffusion models