TL;DR
EMMA introduces a flexible framework that allows pre-trained text-to-image diffusion models to seamlessly accept multi-modal prompts (such as text combined with reference faces, styles, or objects) without modifying the underlying model. By freezing the core text-to-image components and introducing an innovative gated connector, EMMA perfectly balances text fidelity with visual conditioning. Crucially, it enables the zero-shot assembly of multiple independently trained modality modules at inference time, completely bypassing the need for expensive joint multi-modal retraining.
What Problem Does This Paper Address?
While text-to-image (T2I) diffusion models have become incredibly powerful, real-world applications often require multi-modal inputs—like generating an image of a specific person (face condition) wearing a particular outfit (object condition) in a specific artistic style (style condition), all guided by a text prompt.
Existing adapter-based methods struggle to balance these conditions. They typically suffer from a strong modality bias, where the model over-indexes on the visual reference (the "easier" condition) and completely ignores details in the text prompt. Furthermore, training a model to handle combinations of multiple modalities simultaneously is severely bottlenecked by the scarcity of high-quality, multi-modal datasets. EMMA aims to solve both the balancing act and the data scarcity problem.
Methods
EMMA builds upon ELLA, a state-of-the-art text-to-image connector that integrates powerful Large Language Models (like T5) with diffusion models via a module called a Perceiver Resampler.
To introduce additional modalities without degrading text control, the authors design the Assemblable Gated Perceiver Resampler (AGPR):
- Interleaved Architecture: AGPR blocks are strategically interleaved with ELLA’s original text-processing Perceiver Resampler blocks.
- Frozen Core Strategy: During training, the entire underlying diffusion model (U-Net or DiT) and ELLA's text modules are kept completely frozen. Only the newly added AGPR layers are trained, ensuring the model's foundational text-following capabilities remain uncompromised.
- Gated Feature Integration: AGPR utilizes learnable attention gates ($AttnGate$ and $FFNGate$) to precisely regulate how much information from the supplementary modalities is injected into the latent tokens.
- Modular Assembly: Because of this gated design, separate EMMA modules can be trained independently for individual conditions (e.g., one module for faces, another for styles). At inference time, these modules can be combined via a simple linear summation of their gating mechanisms, achieving multi-condition generation without any joint training.
Datasets
The authors trained and evaluated EMMA using a mix of open-source and internal datasets:
- Common Object Dataset: Compiled from LAION and COYO, filtered for high aesthetic scores (>6) and a minimum resolution of 512 pixels. Random masks were generated to provide clear spatial guidance for the central objects.
- Portrait Dataset: An internal dataset consisting of 400,000 images across 100,000 unique human IDs, used to fine-tune EMMA for identity-preserving portrait generation.
- Evaluation Benchmarks: Quantitative evaluations were conducted on the COCO validation set (for style conditioning) and a custom portrait benchmark constructed from the ActivityNet validation set paired with portraits from Unsplash.
Key Insights and Ideas
- "Secret" Multi-Modal Receptivity: A key finding of the paper is that pre-trained T2I diffusion models inherently possess a "secret" capacity to accept multi-modal prompts. You don't need to fine-tune the heavy diffusion weights; you only need to learn how to map the new modalities into the existing text-conditioned latent space.
- Sparsity Enables Zero-Shot Composition: By visualizing the learned gate values across different layers, the authors discovered that different modalities naturally exhibit sparse attention patterns, targeting entirely different token indices. Because these modules don't compete for the same latent dimensions, they can be combined additively at inference time without interfering with one another.
Key Results
EMMA demonstrates superior performance in both maintaining text control and accurately reflecting visual conditions:
- Style Conditioning (COCO Benchmark): EMMA achieved a CLIP-Text score of 0.594 and a CLIP-Image score of 0.860, outperforming the widely used IP-Adapter (0.588 / 0.828), demonstrating a superior balance between text adherence and style transfer.
- Portrait Generation: EMMA significantly outperformed baselines in identity preservation and text control, scoring 64.00 on CLIP-T (compared to IP-Adapter's 49.54) and 29.86 on DINO (compared to IP-Adapter's 27.23).
- Narrative Consistency: Qualitatively, EMMA excels at "Story Diffusion," maintaining strong character consistency across a sequence of highly varied text prompts and actions.
Limitations and Future Work
The primary limitation acknowledged by the authors is that the current version of EMMA is strictly English-centric, as it relies on text encoders pre-trained predominantly on English data. As a next step, the authors plan to implement the same gated architecture within diffusion frameworks that natively support multilingual language models, expanding EMMA's accessibility across different languages.
Summary updated