Skip to main content
QUICK REVIEW

[论文解读] ELLA: Equip Diffusion Models with LLM for Enhanced Semantic Alignment

Xiwei Hu, Rui Wang|arXiv (Cornell University)|Mar 8, 2024
Natural Language Processing TechniquesComputer Science被引用 3
一句话总结

ELLA 通过一种轻量级可训练适配器——时间步感知语义连接器(TSC),将大型语言模型(LLM)集成到预训练的扩散模型中,实现了在不微调 U-Net 或 LLM 的前提下,对长而复杂的提示词进行精确的图像生成。该方法在密集提示词遵循任务中达到最先进性能,尤其在多对象、属性丰富及关系密集的生成任务中表现优异。

ABSTRACT

Diffusion models have demonstrated remarkable performance in the domain of text-to-image generation. However, most widely used models still employ CLIP as their text encoder, which constrains their ability to comprehend dense prompts, encompassing multiple objects, detailed attributes, complex relationships, long-text alignment, etc. In this paper, we introduce an Efficient Large Language Model Adapter, termed ELLA, which equips text-to-image diffusion models with powerful Large Language Models (LLM) to enhance text alignment without training of either U-Net or LLM. To seamlessly bridge two pre-trained models, we investigate a range of semantic alignment connector designs and propose a novel module, the Timestep-Aware Semantic Connector (TSC), which dynamically extracts timestep-dependent conditions from LLM. Our approach adapts semantic features at different stages of the denoising process, assisting diffusion models in interpreting lengthy and intricate prompts over sampling timesteps. Additionally, ELLA can be readily incorporated with community models and tools to improve their prompt-following capabilities. To assess text-to-image models in dense prompt following, we introduce Dense Prompt Graph Benchmark (DPG-Bench), a challenging benchmark consisting of 1K dense prompts. Extensive experiments demonstrate the superiority of ELLA in dense prompt following compared to state-of-the-art methods, particularly in multiple object compositions involving diverse attributes and relationships.

研究动机与目标

  • 解决基于 CLIP 的扩散模型在理解包含多个对象、属性和关系的长而密集提示词时的局限性。
  • 使现有扩散模型能够在不重新训练 U-Net 或 LLM 的前提下,利用强大的 LLM 实现更优的语义对齐。
  • 设计一种轻量级、高效的适配器,基于来自 LLM 的时间步依赖语义特征,动态调节去噪过程。
  • 提出一个新的基准 DPG-Bench,用于评估文生图生成中密集提示词遵循能力。

提出的方法

  • 提出一种时间步感知语义连接器(TSC),以时间依赖方式提取 LLM 特征,适应去噪过程中的低频(早期)和高频(晚期)阶段。
  • 采用基于重采样器的架构,并结合自适应层归一化(AdaLN),注入时间步信息,实现在去噪各阶段的动态特征适配。
  • 在由最先进 MLLM 生成的高质量、密集文本-图像对上训练 TSC 适配器,以确保语义丰富性与对齐性。
  • 可无缝集成社区工具如 LoRA 和 ControlNet,实现即插即用的模型增强。
  • 采用轻量级适配器设计,避免对 U-Net 或预训练 LLM 进行微调,从而保持模型效率与兼容性。
  • 利用重采样器架构的归纳偏置,结合时间步注入,引导每个去噪步骤中的语义特征优化。

实验结果

研究问题

  • RQ1轻量级适配器能否在不微调 LLM 或扩散模型的前提下,有效连接预训练 LLM 与扩散模型,从而提升对密集提示词的理解?
  • RQ2时间步感知的条件控制如何影响不同去噪阶段生成图像的质量与语义对齐程度?
  • RQ3与基于 CLIP 的基线模型相比,TSC 模块在复杂、多实体提示词上的零样本泛化能力提升程度如何?
  • RQ4所提出的 DPG-Bench 基准与人类对提示词遵循准确性的评估之间相关性如何?
  • RQ5ELLA 框架能否有效集成到现有社区模型与工具(如 LoRA 和 ControlNet)中?

主要发现

  • ELLA 在 DPG-Bench 基准上达到最先进性能,优于 SOTA 模型如 SDXL 和 DALL-E 3,在密集提示词遵循任务中表现更优,尤其在多对象和关系丰富的场景中。
  • 采用 AdaLN 的 TSC 模块优于 AdaLN-Zero 及其他连接器设计,在相同模型规模下于 DPG-Bench 上实现 72.91% FID 和 0.5175 CLIP 分数。
  • 消融实验表明,结合时间步注入的基于 Transformer 的重采样器在语义特征迁移方面显著优于基于 MLP 的设计。
  • 注意力权重可视化显示,TSC 在适当的去噪阶段正确优先关注主要实体(如牛、树)和属性(如颜色、风格)。
  • DPG-Bench 基准与人类评估具有强相关性,验证了其在自动、可靠评估提示词对齐方面的有效性。
  • ELLA 实现了对现有模型的即插即用式增强,支持与 LoRA 和 ControlNet 的集成,且无需微调 U-Net 或 LLM。

阅读本论文

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

在 Nubint 中阅读本论文

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