arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.03913cs.NEcs.AI
收藏

进化优化在嵌入空间探索中胜过Adam优化

Inference-Time Optimization of Prompt Embeddings in Diffusion Models: A Comparison of sep-CMA-ES and Adam

University of Coimbra(科英布拉大学)

Domício Pereira Neto, João Correia, Penousal Machado

AI总结:

本文比较了进化优化与Adam优化在Stable Diffusion XL Turbo模型中的表现,发现进化优化在美学质量与提示对齐之间取得更好的平衡,且无需模型微调。

摘要:

深度扩散模型通过生成高质量图像革新了图像生成领域。然而,实现特定目标通常需要成本高昂的微调,这可能耗费大量资源和时间。本文探索了提示嵌入搜索优化,比较了无梯度的进化方法(sep-CMA-ES)与广泛应用的梯度优化器Adam。候选图像通过结合LAION Aesthetic Predictor V2和CLIPScore的加权目标进行评估,以实现美学质量和提示-图像对齐之间的显式权衡。在36个从Parti Prompts(P2)采样的提示下,sep-CMA-ES在三种权重设置(仅美学、平衡、仅对齐)中均优于Adam。此外,通过余弦相似度和SSIM分析与未优化基线的偏差,并报告计算和内存开销。这些结果表明,sep-CMA-ES是有效的提示嵌入搜索优化器,提高了美学-对齐权衡和资源使用效率,而无需模型微调。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑