Enhancing the diffusion model to understand simple-prompt
team4
Hanrui Huang
Cheng Chen
21-02-2024
Timeline
2
Introduction
3
image:https://arxiv.org/pdf/2112.10752.pdf High-Resolution Image Synthesis with Latent Diffusion Models
Our project is about “Text-to-Image”
Introduction: Diffusion Model
4
There are many types of generating model.
-Generative Adversarial Networks (GANs)
-Variational Autoencoders (VAEs)
-Transformer-based Models(like DALL*E)
…
And
-Diffusion models(Autoregressive Models)
Introduction: Stable Diffusion
5
A latent text-to-image diffusion model
Input : text prompts
Output: image
Advantage:
More stable than GANs based (Training is difficult)
High quality images
Comparison between Latent diffusion Models and others
Introduction: Stable Diffusion
6
Structure
Motivation: Semantic Understanding
7
The models struggle with semantic understanding when given concise narrative prompts.
Counting
Color
Motivation:Common-sense reasoning
8
Not friendly for daily usage!
Motivation:Common-sense reasoning
9
LLM has the knowledge!
Motivation:Semantic Understanding and Reasoning
10
“If we can transfer the semantic understanding and reasoning abilities of LLMs to pre-trained diffusion models so that diffusion models can produce semantically correct and high-quality images even with simple narrative prompts.”
Related works
11
1.SUR-adapter: Enhancing Text-to-Image Pre-trained Diffusion Models with Large Language Models: https://arxiv.org/pdf/2305.05189.pdf
Task definition
Our objective is to fine-tune the pre-trained diffusion model by distilling knowledge from large language models (LLMs), thereby enabling the diffusion model to better understand and respond to simple text prompts.
12
Dataset collection
13
We decided to build a small dataset for training according to the methods described in reference paper:
1.BLIP: a pre-trained model designed for vision-language intersection tasks, focusing on generating descriptive text from images to improve the semantic match between images and texts.
2.CLIP: a multimodal pre-trained model that can understand and evaluate the semantic association between image content and textual descriptions.
Method
14
Objective 1: To ensure that the features of simple prompts are enhanced with LLM (Large Language Model) gains.(knowledge distillation )
Objective 2: To make the features of simple prompts resemble those of complex prompts.
The QKV-Attention in the adapter allows the model to notice important semantic relationships in the original features while generating new features.
Baseline and evaluation
15
Next step
Following our plan outlined in the proposal, we will progressively complete the following milestones in the remaining time:
16