TL;DR
Emu is a multimodal foundation model that treats images, text, and video as a single interleaved sequence, trained via a unified autoregressive objective. By predicting the next text token or regressing the next visual embedding, Emu acts as a "multimodal generalist" capable of both understanding and generating content—enabling tasks from video question answering to in-context image generation.
What Problem Does This Paper Address?
Most Large Multimodal Models (LMMs), such as Flamingo, follow a "frozen vision, trainable language" paradigm. They are typically trained to predict the next text token given a visual input, but they lack the ability to generate images themselves. Furthermore, these models often rely on static image-text pairs, overlooking the rich, temporal, and interleaved nature of data found in videos and complex webpages.
The authors of Emu seek to bridge this gap by creating an "omnivore" model. They designed a single framework that can handle any combination of modalities as input and produce any modality as output, all while leveraging massive amounts of interleaved data (like videos with subtitles) to learn stronger cross-modal correlations.
Methods
Emu utilizes a "one-model-for-all" autoregressive training process. Its architecture consists of four primary components:
- Visual Encoder: A pretrained EVA-CLIP model that converts raw pixels into dense visual features.
- Causal Transformer: This key novelty transforms the 2D spatial features from the encoder into a 1D sequence of $N$ "causal embeddings" that the language model can digest.
- Multimodal Modeling (LLM): A LLaMA-13B backbone that processes the interleaved sequence of text tokens and visual embeddings.
- Visual Decoder: A fine-tuned Stable Diffusion model used during inference to "de-render" predicted visual embeddings back into realistic images.
The Unified Objective: Unlike models that discretize images into discrete tokens (which can lose information), Emu uses a hybrid approach. It applies standard cross-entropy loss for discrete text tokens and $L_2$ regression loss for continuous visual embeddings. This allows the model to learn to "predict the next image" in a sequence just as easily as it predicts the next word.
Datasets
The model was pretrained on a massive scale (150B tokens total) using:
- Standard Pairs: LAION-2B and LAION-COCO for image-text; WebVid-10M for video-text.
- Interleaved Web Data: MMC4 (75 million documents with interleaved images and text).
- New Dataset (YT-Storyboard-1B): Introduced by the authors, this dataset consists of 18 million YouTube videos. Instead of raw video, they used storyboard thumbnails and subtitles to create a naturally interleaved sequence of 1.8 billion images and text, ordered by timestamps.
For evaluation, the authors used a battery of benchmarks including MS-COCO (captioning), VQAv2, OKVQA, VizWiz (image QA), and MSVDQA/MSRVTTQA (video QA).
Key Insights and Ideas
- Regression over Discretization: By regressing continuous embeddings rather than predicting discrete image tokens (like VQ-VAE), Emu preserves more visual nuance, which is critical for high-quality image generation.
- Video as Interleaved Data: The paper argues that video is essentially just a high-density interleaved document. Training on "storyboards" allows the model to learn temporal causality without the massive computational overhead of processing raw video files.
- In-Context Multimodal Generation: Because the model is autoregressive, it can perform "in-context" image generation. You can provide a prompt like
[Image of Cat] -> [Oil Painting of Cat]; [Image of Dog] -> [?]and the model will generate an oil painting of a dog by following the pattern in the sequence. - Generalist Interface: Emu doesn't need task-specific heads. The same weights are used for image captioning (outputting text) and image blending (outputting visual embeddings).
Key Results
- Zero-shot Understanding: Emu significantly outperformed previous state-of-the-art models like Flamingo-9B and Kosmos-1 on COCO captioning, achieving a 112.4 CIDEr score.
- Video QA: On the MSVDQA benchmark, Emu reached 37.0% accuracy, surpassing Flamingo-80B despite having far fewer parameters.
- Image Generation: Emu achieved a zero-shot FID of 11.66 on MS-COCO, showing it is a competitive text-to-image generator in addition to being a vision-language understander.
- Instruction Tuning: After being fine-tuned on human instructions (Emu-I), the model showed a "state-of-the-art" ability to follow complex prompts, such as identifying characters in an image or explaining the humor in a meme.
Limitations and Future Work
- Hallucinations: Like all LLM-based models, Emu is susceptible to "hallucinating" facts or visual details that aren't present.
- Inference Speed: The autoregressive generation of visual embeddings is computationally expensive and slower than non-autoregressive diffusion models.
- Language Scope: The current version is primarily focused on English-language data.
- Future Directions: The authors suggest exploring faster inference techniques and expanding the model's multilingual capabilities. They also note that Emu's knowledge is static and does not update after the pretraining phase.
Summary updated