arXiv:2502.04412cs.CVcs.AI2025-02被引 4

用大语言模型提升文生图模型的语义理解能力

Decoder-Only LLMs are Better Controllers for Diffusion Models

  • 用解码器结构的LLM替代传统编码器,增强文本理解
  • 在多个数据集上生成图像质量与一致性显著提升
  • 适合追求精准可控文生图的应用场景

近年来,扩散模型在文生图领域取得突破性进展,能根据文本提示生成高度艺术化且细节丰富的图像。然而,获得理想生成结果往往需要反复调试提示词,如同对着魔镜施咒,其根源在于现有图像生成模型的语义理解能力有限。当前扩散模型通常使用预训练编码器处理文本提示,而这类编码器仅在有限的图文对上训练。相比之下,基于解码器结构的大型语言模型(LLM)展现出更强的语义理解能力,因其架构更适合大规模无标注数据训练。本文提出一种简单有效的适配器模块,使扩散模型能够兼容解码器结构的LLM,从而提升语义理解能力。我们还提供了涵盖多种架构(如编码器-解码器、仅编码器、仅解码器)的理论分析,并进行了大量实证评估。实验表明,采用该适配器的模型在文本到图像生成的质量和可靠性方面均优于现有最先进方法。

原文摘要 · Abstract (English)

Groundbreaking advancements in text-to-image generation have recently been achieved with the emergence of diffusion models. These models exhibit a remarkable ability to generate highly artistic and intricately detailed images based on textual prompts. However, obtaining desired generation outcomes often necessitates repetitive trials of manipulating text prompts just like casting spells on a magic mirror, and the reason behind that is the limited capability of semantic understanding inherent in current image generation models. Specifically, existing diffusion models encode the text prompt input with a pre-trained encoder structure, which is usually trained on a limited number of image-caption pairs. The state-of-the-art large language models (LLMs) based on the decoder-only structure have shown a powerful semantic understanding capability as their architectures are more suitable for training on very large-scale unlabeled data. In this work, we propose to enhance text-to-image diffusion models by borrowing the strength of semantic understanding from large language models, and devise a simple yet effective adapter to allow the diffusion models to be compatible with the decoder-only structure. Meanwhile, we also provide a supporting theoretical analysis with various architectures (e.g., encoder-only, encoder-decoder, and decoder-only), and conduct extensive empirical evaluations to verify its effectiveness. The experimental results show that the enhanced models with our adapter module are superior to the stat-of-the-art models in terms of text-to-image generation quality and reliability.

文生图扩散模型LLM语义理解

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。