paper-with-me

홈 › Papers

Exploring the Role of Large Language Models in Prompt Encoding for Diffusion Models

2024-06-17 · Bingqi Ma, Zhuofan Zong, Guanglu Song, Hongsheng Li, Yu Liu

Large language models (LLMs) based on decoder-only transformers have demonstrated superior text understanding capabilities compared to CLIP and T5-series models. However, the paradigm for utilizing current advanced LLMs in text-to-image diffusion models remains to be explored. We observed an unusual phenomenon: directly using a large language model as the prompt encoder significantly degrades the prompt-following ability in image generation. We identified two main obstacles behind this issue. One is the misalignment between the next token prediction training in LLM and the requirement for discriminative prompt features in diffusion models. The other is the intrinsic positional bias introduced by the decoder-only architecture. To deal with this issue, we propose a novel framework to fully harness the capabilities of LLMs. Through the carefully designed usage guidance, we effectively enhance the text representation capability for prompt encoding and eliminate its inherent positional bias. This allows us to integrate state-of-the-art LLMs into the text-to-image generation model flexibly. Furthermore, we also provide an effective manner to fuse multiple LLMs into our framework. Considering the excellent performance and scaling capabilities demonstrated by the transformer architecture, we further design an LLM-Infused Diffusion Transformer (LI-DiT) based on the framework. We conduct extensive experiments to validate LI-DiT across model size and data size. Benefiting from the inherent ability of the LLMs and our innovative designs, the prompt understanding performance of LI-DiT easily surpasses state-of-the-art open-source models as well as mainstream closed-source commercial models including Stable Diffusion 3, DALL-E 3, and Midjourney V6. The LLM-Infused Diffuser framework is also one of the core technologies powering SenseMirage, a highly advanced text-to-image model.

📄 PDF Abstract BibTeX arXiv:2406.11831

Code (0)

등록된 구현이 없습니다.

Tasks

DecoderImage GenerationLanguage ModellingLarge Language ModelText to Image GenerationText-to-Image Generation

Methods 이 논문이 사용한 방법론

Residual Connection 설명 없음
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
CLIP Contrastive Language-Image Pre-training (CLIP), consisting of a simplified version of ConVIRT trained from scratch, is an efficient method of image representation learning…
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
Diffusion Diffusion models generate samples by gradually removing noise from a signal, and their training objective can be expressed as a reweighted variational lower-bound…
Adam 설명 없음

Similar Papers 제목 키워드 기반

Identifying and Analyzing Task-Encoding Tokens in Large Language Models

2024-01-20 · Yu Bai, Heyan Huang, Cesare Spinoso-Di Piano, Marc-Antoine Rondeau 외

In-context learning (ICL) has become an effective solution for few-shot learning in natural language processing. However, our understanding of ICL's working mechanisms is limited, specifically regarding how models learn …

Computational EfficiencyFew-Shot LearningIn-Context Learning

Automated assessment of non-native learner essays: Investigating the role of linguistic features

2016-12-02 · Sowmya Vajjala

Automatic essay scoring (AES) refers to the process of scoring free text responses to given prompts, considering human grader scores as the gold standard. Writing such essays is an essential component of many language an…

Exploring the Encoding Layer and Loss Function in End-to-End Speaker and Language Recognition System

2018-04-14 · Weicheng Cai, Jinkun Chen, Ming Li

In this paper, we explore the encoding/pooling layer and loss function in the end-to-end speaker and language recognition system. First, a unified and interpretable end-to-end system for both speaker and language recogni…

Speaker Verification

Encoding and Understanding Astrophysical Information in Large Language Model-Generated Summaries

2025-11-18 · Kiera McCormick, Rafael Martínez-Galarza arxiv

Large Language Models have demonstrated the ability to generalize well at many levels across domains, modalities, and even shown in-context learning capabilities. This enables research questions regarding how they can be…

Serialized Output Prompting for Large Language Model-based Multi-Talker Speech Recognition

2025-09-01 · Hao Shi, Yusuke Fujita, Tomoya Mizumoto, Lianbo Liu 외 arxiv

Prompts are crucial for task definition and for improving the performance of large language models (LLM)-based systems. However, existing LLM-based multi-talker (MT) automatic speech recognition (ASR) systems either omit…

Information ExtractionSpeech Recognition