[论文解读] LLM-grounded Diffusion: Enhancing Prompt Understanding of Text-to-Image Diffusion Models with Large Language Models
本论文提出一个两阶段、无需训练的方法(LLM-grounded Diffusion,LMD),利用大语言模型生成场景布局,并通过一个布局引导控制器来指引扩散模型,在提示理解和多轮场景指定方面显著提升。
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
研究动机与目标
- 在不需要额外训练的情况下提高文本到图像扩散模型的提示理解能力。
- 利用预训练的 LLM 根据提示生成结构化的图像布局。
- 引导现成的扩散模型按照 LLM 生成的布局进行渲染。
- 实现基于指令的多轮场景指定与跨语言的图像生成。
- 提供基准评估扩散模型对提示的遵循能力。
提出的方法
- Stage 1: 使用一个冻结的 LLM 根据输入提示生成一个场景布局,作为带有标题的边界框以及一个背景标题。
- Stage 2: 应用一种新颖的布局引导控制器,在不重新训练的情况下引导现有扩散模型生成遵循 LLM 产生的布局的图像。
- 通过每个框的掩码潜在变量和基于注意力的去噪实现定实例级控制以实现“落地化”。
- 合成阶段将每个框的潜在变量生成整合为一个连贯且有落地性的最终图像。
- 可选与基于训练的方法(如 GLIGEN)集成,以进一步增强实例/属性控制(LMD+)。
- 支持对来自非基础扩散模型所不支持语言的提示进行指令化的多轮场景指定与生成。
实验结果
研究问题
- RQ1一个由 LLM 生成的布局是否能提高扩散模型对复杂提示(否定、数值、空间关系、属性绑定)的遵循程度?
- RQ2一个无需训练、两阶段的 LLM 引导流程是否在提示遵循任务上超过基础扩散模型和基线?
- RQ3该方法是否可以在不重新训练的情况下实现多轮场景指定和非原生语言提示?
- RQ4将训练型适配器(如 GLIGEN)与 LMD 集成的影响是什么?
主要发现
- LMD 在四个提示遵循任务上显著优于基础 Stable Diffusion 模型,平均生成准确性提升一倍以上。
- 在基准任务中:Negation—SD 28% vs LMD 100% (3.6x);Generative Numeracy—SD 39% vs LMD 62% (1.6x) 和 LMD+ 86% (2.2x);Attribute Binding—SD 52% vs LMD 65% (1.3x) 和 LMD+ 69% (1.3x);Spatial Relationships—SD 28% vs LMD 79% (2.8x) 和 LMD+ 67% (2.4x);Average—SD 37% vs LMD 77% (2.1x) 和 LMD+ 81% (2.2x)。
- LMD+(结合 GLIGEN 适配器)在若干任务上进一步提升,超过 GLIGEN 单独基线。
- 布局生成阶段(阶段 1)可稳定地产出与提示对齐的布局,瓶颈出现在布局到图像阶段而非布局生成。
- 在更换基础扩散模型(如 SDv1.5 到 SDv2.1)且不进行超参数微调时,LMD 仍然有效,显示其与未来扩散模型的兼容性。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。