Skip to main content
QUICK REVIEW

[Paper Review] Unified Multi-Modal Latent Diffusion for Joint Subject and Text Conditional Image Generation

Yiyang Ma, Huan Yang|arXiv (Cornell University)|Mar 16, 2023
Multimodal Machine Learning ApplicationsComputer Science17 citations
TL;DR

UMM-Diffusion encodes joint texts and images into a unified multi-modal latent space to generate images that follow a caption while preserving a subject provided by an input image, without fine-tuning. It also fuses multi-modal and pure-text guidance during diffusion sampling.

ABSTRACT

Language-guided image generation has achieved great success nowadays by using diffusion models. However, texts can be less detailed to describe highly-specific subjects such as a particular dog or a certain car, which makes pure text-to-image generation not accurate enough to satisfy user requirements. In this work, we present a novel Unified Multi-Modal Latent Diffusion (UMM-Diffusion) which takes joint texts and images containing specified subjects as input sequences and generates customized images with the subjects. To be more specific, both input texts and images are encoded into one unified multi-modal latent space, in which the input images are learned to be projected to pseudo word embedding and can be further combined with text to guide image generation. Besides, to eliminate the irrelevant parts of the input images such as background or illumination, we propose a novel sampling technique of diffusion models used by the image generator which fuses the results guided by multi-modal input and pure text input. By leveraging the large-scale pre-trained text-to-image generator and the designed image encoder, our method is able to generate high-quality images with complex semantics from both aspects of input texts and images.

Motivation & Objective

  • Motivate and enable joint subject and text conditional image generation using unified conditioning from both input texts and subject images.
  • Develop a conditioning model that encodes texts and images into a single multi-modal latent space for diffusion guidance.
  • Mitigate overfitting to irrelevant input image regions (background/lighting) via a fusion sampling technique.
  • Initialize and train the model leveraging a pre-trained text-to-image generator to handle limited data.
  • Demonstrate diverse, semantically-aligned image generation with customizable subjects and styles.

Proposed method

  • Introduce TIUE, a Text-and-Image Unified Encoder that maps (y, x_s, p) to a unified latent h_u by inserting pseudo word embeddings derived from CLIP image embeddings into the input text sequence at the referenced word positions and replacing non-referenced tokens with pure-text embeddings.
  • Train TIUE alongside a diffusion model using a noise-prediction loss conditioned on h_u (and h_y for pure text), freezing CLIP encoders during training.
  • Propose a fusing sampling technique that combines multi-modal guidance (h_u) and pure-text guidance (h_y) through a fused noise prediction: ε_f = α ε̂_u + (1−α) ε̂_y, then integrate with classifier-free guidance during sampling.
  • Initialize the model with Stable Diffusion v1-5 and replace its unpooled CLIP Text Encoder with TIUE, training TIUE first while freezing the diffusion model, then fine-tuning jointly.
  • Data preparation uses a LAION-400M subset (x, y, x_s, p) generated via object cropping and word-position labeling, enabling training without per-subject fine-tuning.

Experimental results

Research questions

  • RQ1Can texts and images be encoded into a single unified multi-modal latent space to guide diffusion-based image generation?
  • RQ2Can a joint text-and-image encoder enable generation of images that follow a caption while faithfully preserving subjects provided by input images?
  • RQ3Does a fusion sampling strategy effectively suppress background/irrelevant details from input images while maintaining subject fidelity and caption alignment?
  • RQ4How does the proposed approach compare to fine-tuning-based methods (e.g., DreamBooth) and standard text-to-image baselines without per-subject finetuning?
  • RQ5What are the limitations when using multiple image guides or rare subjects in this framework?

Key findings

  • The method can generate new scenes described by captions that include the subject from input images without subject-specific finetuning.
  • Compared to baselines, the approach achieves comparable or better results than DreamBooth on similar tasks without online fine-tuning.
  • The fusion sampling (with α around 0.5) provides a practical trade-off between adhering to the text and preserving subject details.
  • Multiple input images can guide generation for multiple subjects, producing harmonized results with coherent lighting and scale.
  • Limitations include potential subject-feature mixing when using multiple image guides and distortions for rare or highly-fabricated subjects.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.