arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2305.13655cs.CV
收藏

LLM-grounded Diffusion:利用大型语言模型增强文本到图像扩散模型的提示理解能力

LLM-grounded Diffusion: Enhancing Prompt Understanding of Text-to-Image Diffusion Models with Large Language Models

UC Berkeley(加州大学伯克利分校);UCSF(加州大学旧金山分校)

Long Lian, Boyi Li, Adam Yala, Trevor Darrell

AI总结:

本文提出LLM-grounded Diffusion,通过LLM生成带标题边界框的场景布局,再由控制器引导现成扩散模型完成布局定位生成,显著提升复杂提示理解与图像生成准确率。

摘要:

近期,文本到图像扩散模型的进展在生成逼真且多样化图像方面取得了令人瞩目的成果。然而,这些模型在处理复杂提示时仍然存在困难,例如涉及数值推理和空间推理的提示。本工作旨在增强扩散模型的提示理解能力。我们的方法以一种新颖的两阶段流程,利用预训练大型语言模型(LLM)进行基于定位的生成。在第一阶段,LLM根据给定提示生成一个场景布局,其中包含带标题的边界框,用于描述期望生成的图像。在第二阶段,一个新颖的控制器引导现成的扩散模型进行基于布局定位的图像生成。两个阶段均使用现有的预训练模型,无需额外优化模型参数。在根据需要多种能力的提示准确生成图像方面,我们的方法显著优于基础扩散模型和若干强基线,在四个任务上的生成准确率平均提升至原来的两倍。此外,我们的方法支持基于指令的多轮场景规格设定,并能够处理底层扩散模型所不支持语言的提示。我们预计,该方法将通过准确遵循更复杂的提示来释放用户的创造力。我们的代码、演示和基准可在 https://llm-grounded-diffusion.github.io 获取。

英文摘要:

Recent advancements in text-to-image diffusion models have yielded impressive results in generating realistic and diverse images. However, these models still struggle with complex prompts, such as those that involve numeracy and spatial reasoning. This work proposes to enhance prompt understanding capabilities in diffusion models. Our method leverages a pretrained large language model (LLM) for grounded generation in a novel two-stage process. In the first stage, the LLM generates a scene layout that comprises captioned bounding boxes from a given prompt describing the desired image. In the second stage, a novel controller guides an off-the-shelf diffusion model for layout-grounded image generation. Both stages utilize existing pretrained models without additional model parameter optimization. Our method significantly outperforms the base diffusion model and several strong baselines in accurately generating images according to prompts that require various capabilities, doubling the generation accuracy across four tasks on average. Furthermore, our method enables instruction-based multi-round scene specification and can handle prompts in languages not supported by the underlying diffusion model. We anticipate that our method will unleash users' creativity by accurately following more complex prompts. Our code, demo, and benchmark are available at: https://llm-grounded-diffusion.github.io

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

↑