[Paper Review] One Transformer Fits All Distributions in Multi-Modal Diffusion at Scale
UniDiffuser presents a single transformer-based diffusion model that jointly learns marginal, conditional, and joint distributions for multi-modal data (image-text), enabling diverse generation tasks with competitive quality.
This paper proposes a unified diffusion framework (dubbed UniDiffuser) to fit all distributions relevant to a set of multi-modal data in one model. Our key insight is -- learning diffusion models for marginal, conditional, and joint distributions can be unified as predicting the noise in the perturbed data, where the perturbation levels (i.e. timesteps) can be different for different modalities. Inspired by the unified view, UniDiffuser learns all distributions simultaneously with a minimal modification to the original diffusion model -- perturbs data in all modalities instead of a single modality, inputs individual timesteps in different modalities, and predicts the noise of all modalities instead of a single modality. UniDiffuser is parameterized by a transformer for diffusion models to handle input types of different modalities. Implemented on large-scale paired image-text data, UniDiffuser is able to perform image, text, text-to-image, image-to-text, and image-text pair generation by setting proper timesteps without additional overhead. In particular, UniDiffuser is able to produce perceptually realistic samples in all tasks and its quantitative results (e.g., the FID and CLIP score) are not only superior to existing general-purpose models but also comparable to the bespoken models (e.g., Stable Diffusion and DALL-E 2) in representative tasks (e.g., text-to-image generation).
Motivation & Objective
- Motivate a general multi-modal generative framework that can cover marginal, conditional, and joint distributions.
- Develop a unified diffusion-based approach that handles multiple modalities with a single model.
- Demonstrate that a transformer backbone can efficiently model interactions across modalities at scale.
- Show that the unified model can perform various generation tasks (unconditional, conditional, joint) without extra training overhead.
Proposed method
- Reformulate diffusion modeling so learning the marginal, conditional, and joint distributions reduces to predicting the noise in perturbed data across modalities.
- Perturb all modalities with potentially different timesteps, and train a joint noise predictor that outputs noise for all modalities.
- Parameterize the model with a transformer backbone (U-ViT) operating on latent embeddings of image and text encodings.
- Encode images via a two-part latent: AE-based embedding and CLIP semantic embedding; encode text via CLIP plus a GPT-2 decoder, all in a shared latent space.
- Use a single regression loss to train a joint noise predictor across modalities and potentially different timesteps; enable classifier-free guidance for free during sampling.
- Demonstrate sampling for unconditional, conditional, and joint generation by adjusting timesteps and leveraging the unified noise predictor.
Experimental results
Research questions
- RQ1Can a single diffusion model capture marginal, conditional, and joint distributions for multi-modal data without task-specific architectures?
- RQ2How should timesteps be handled across modalities to realize different conditioning scenarios in a unified framework?
- RQ3Does a transformer-based backbone scale effectively to large image-text datasets while delivering competitive sample quality across diverse generation tasks?
Key findings
- UniDiffuser achieves perceptually realistic samples across image, text, text-to-image, image-to-text, and image-text pair generation by setting appropriate timesteps.
- On zero-shot MS-COCO FID, UniDiffuser reaches 9.71, competitive with several bespoken models and better than Versatile Diffusion in the reported setup.
- UniDiffuser consistently outperforms Versatile Diffusion in both text-to-image and image-to-text generation across CFG scales and metrics like CLIP and FID.
- Classifier-free guidance can be applied for free in both conditional and joint sampling, improving image-text alignment and sample quality without additional training.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.