进化优化比Adam更擅长在生成模型中搜索优质提示嵌入。
Evolutionary Optimization Trumps Adam Optimization on Embedding Space Exploration
- 用无梯度进化算法优化提示嵌入,不改动模型权重。
- 在36个提示上,进化法比Adam获得更高美学与对齐综合得分。
- 适合追求高效、低资源的图像生成控制场景。
深度扩散模型已革新图像生成,但实现特定目标常需耗时费力的微调。另一种方法是在推理时优化提示嵌入,无需修改模型权重。本文针对Stable Diffusion XL Turbo模型,比较无梯度的分離协方差矩阵自适应进化策略(sep-CMA-ES)与广泛使用的梯度优化器Adam。候选图像通过结合LAION美学预测器V2与CLIPScore的加权目标评估,实现美学质量与提示-图像对齐间的显式权衡。在从Parti Prompts(P2)采样的36个提示下,三种权重设置(仅美学、平衡、仅对齐),sep-CMA-ES始终优于Adam。此外,通过余弦相似度和SSIM分析与原始基线的偏离,并报告计算与内存开销。结果表明,sep-CMA-ES是有效的推理时提示嵌入搜索优化器,可在不微调模型的前提下提升美学-对齐权衡与资源效率。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。