Skip to main content
QUICK REVIEW

[论文解读] Improving Text-to-Image Consistency via Automatic Prompt Optimization

Oscar Mañas, Pietro Astolfi|arXiv (Cornell University)|Mar 26, 2024
Handwritten Text Recognition TechniquesComputer Science被引用 6
一句话总结

OPT2I 是一个推理时的提示优化框架,使用一个 LLM 迭代性地改写用户提示,以最大化文本到图像模型的提示-图像一致性得分,而不对 T2I 模型进行微调。它在 MSCOCO 和 PartiPrompts 数据集上改进一致性,同时保持图像质量。

ABSTRACT

Impressive advances in text-to-image (T2I) generative models have yielded a plethora of high performing models which are able to generate aesthetically appealing, photorealistic images. Despite the progress, these models still struggle to produce images that are consistent with the input prompt, oftentimes failing to capture object quantities, relations and attributes properly. Existing solutions to improve prompt-image consistency suffer from the following challenges: (1) they oftentimes require model fine-tuning, (2) they only focus on nearby prompt samples, and (3) they are affected by unfavorable trade-offs among image quality, representation diversity, and prompt-image consistency. In this paper, we address these challenges and introduce a T2I optimization-by-prompting framework, OPT2I, which leverages a large language model (LLM) to improve prompt-image consistency in T2I models. Our framework starts from a user prompt and iteratively generates revised prompts with the goal of maximizing a consistency score. Our extensive validation on two datasets, MSCOCO and PartiPrompts, shows that OPT2I can boost the initial consistency score by up to 24.9% in terms of DSG score while preserving the FID and increasing the recall between generated and real data. Our work paves the way toward building more reliable and robust T2I systems by harnessing the power of LLMs.

研究动机与目标

  • 由于对象数量、空间关系和属性准确性,需要提升 T2I 系统中的提示-图像一致性。
  • 提出一个无需训练、基于提示的优化框架(OPT2I),利用 LLM 生成修订后的提示。
  • 在标准基线(MSCOCO 和 PartiPrompts)上评估 OPT2I,覆盖多样的 T2I 模型、LLMs 和一致性指标。
  • 证明 OPT2I 在保持或提升图像质量和召回率的同时,提升提示-图像一致性。

提出的方法

  • 框架将 T2I 模型、LLM 和一致性评分器结合起来,在不更新模型参数的情况下优化提示。
  • 一个从用户提示出发的迭代过程,生成多张图像,计算每个提示的​​一致性分数,并使用带有元提示历史的 LLM 提出修订后的提示。
  • 使用两种细粒度的一致性度量:分解的 CLIPScore (dCS) 和 Davidsonian Scene Graph (DSG) 分数,提供比单一标量更丰富的反馈。
  • LLM 的历史和任务提示引导上下文学习,产生更好的改写,同步在每次迭代中用表现最好的提示更新上下文。
  • 优化在固定的迭代预算和每次迭代的提示数量预算下进行,通过每次迭代的提示数量和采样温度在探索和利用之间取得平衡。

实验结果

研究问题

  • RQ1LLM 驱动的推理时提示优化是否能在不进行微调的情况下提升对各种 T2I 模型的提示-图像一致性?
  • RQ2不同的一致性度量(dCS 与 DSG)如何影响优化提示的质量与生成图像的保真度?
  • RQ3OPT2I 对 LLM 选择和 T2I 模型架构的变化是否具有鲁棒性,同时保持图像质量(FID)并促进召回?
  • RQ4优化后的提示采用了哪些定性策略来强调先前被忽略的元素并改善与用户提示的一致性?

主要发现

  • 与改写基线相比,OPT2I 在 MSCOCO 和 PartiPrompts 数据集上持续改善提示-图像一致性。
  • 在 MSCOCO 与 PartiPrompts 上,OPT2I 在 DSG 和 dCS 指标下相对于用户提示实现了高达 24.9% 的相对提升。
  • OPT2I 在提高生成图像与真实数据之间召回率的同时,维持或提升 Fréchet Inception Distance (FID),表明保持或提升了图像质量和多样性。
  • DSG 作为评分目标对复杂提示(PartiPrompts)比 dCS 产生了更大的改善,表明更详细、与任务相关的一致性度量的好处。
  • OPT2I 对所选的 LLM 与 T2I 模型具有鲁棒性,展示了在无需参数更新的情况下作为即插即用解决方案的广泛适用性。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。