DreamLLM: Synergistic Multimodal Comprehension and Creation

Runpei Dong, Chunrui Han, Yuang Peng, Zekun Qi, Zheng Ge, Jinrong Yang, Liang Zhao, Jianjian Sun, Hongyu Zhou, Haoran Wei, Xiangwen Kong, Xiangyu Zhang, Kaisheng Ma, Li Yi

Abstract

This paper presents DreamLLM, a learning framework that first achieves versatile Multimodal Large Language Models (MLLMs) empowered with frequently overlooked synergy between multimodal comprehension and creation. DreamLLM operates on two fundamental principles. The first focuses on the generative modeling of both language and image posteriors by direct sampling in the raw multimodal space. This approach circumvents the limitations and information loss inherent to external feature extractors like CLIP, and a more thorough multimodal understanding is obtained. Second, DreamLLM fosters the generation of raw, interleaved documents, modeling both text and image contents, along with unstructured layouts. This allows DreamLLM to learn all conditional, marginal, and joint multimodal distributions effectively. As a result, DreamLLM is the first MLLM capable of generating free-form interleaved content. Comprehensive experiments highlight DreamLLM's superior performance as a zero-shot multimodal generalist, reaping from the enhanced learning synergy.

Introduction

In the landscape of Multimodal Large Language Models (MLLMs), a persistent divide exists between comprehension—interpreting images to generate text—and creation—generating images from textual descriptions. Most existing models treat these as separate tasks, often relying on intermediate representations like CLIP embeddings that discard fine-grained visual details.

DreamLLM, introduced at ICLR 2024, challenges this dichotomy. Inspired by Richard Feynman’s principle, “What I cannot create, I do not understand,” the framework posits that understanding and generating multimodal content are intrinsically linked. By unifying these processes, DreamLLM achieves a powerful synergy that enhances both capabilities.

Addressing the Modality Gap

Current MLLMs, such as LLaVA or Flamingo, primarily focus on visual comprehension. When tasked with creation, they typically output specialized embeddings for external models like Stable Diffusion. This approach suffers from two major drawbacks:

  1. The Modality Gap: Models often align outputs with CLIP features. Since CLIP is optimized for finding commonalities between text and images, it intentionally filters out modality-specific details, leading to significant information loss.
  2. Interleaved Complexity: Real-world data is rarely just image-caption pairs; it is interleaved, with text and images flowing together. Modeling this joint distribution of text, images, and layouts remains a significant hurdle for traditional architectures.
Comparison of DreamLLM with existing multimodal paradigms. DreamLLM (d) avoids the CLIP alignment bottleneck seen in (c) by modeling in raw space.

The DreamLLM Framework

DreamLLM is built upon two core principles designed to bridge these gaps: generative modeling in raw space and interleaved generative pre-training.

1. Generative Modeling in Raw Space

Instead of mimicking CLIP features, DreamLLM produces "dream queries"—learnable embeddings that capture the intended semantics for visualization. These queries are processed by a frozen Stable Diffusion (SD) model. By utilizing SD as a score function via score distillation, the LLM learns to generate semantics that result in high-quality raw pixels, effectively bypassing the CLIP bottleneck and retaining fine-grained information.

2. Interleaved Generative Pre-Training ($\mathcal{I}$-GPT)

To master complex layouts, DreamLLM is trained on a massive corpus of interleaved documents. The authors introduced a special <dream> token; when the LLM predicts this token, it signals the need for an image at that specific location. This allows the model to learn conditional, marginal, and joint distributions of text and images in any sequence, making it the first MLLM capable of generating free-form interleaved content.

Overview of the DreamLLM framework showing the processing of interleaved documents and the use of the <dream> token for image generation.

Architecture and Training

The model utilizes a Vicuna-7B causal decoder-only LLM, a CLIP-Large visual encoder for input comprehension, and Stable Diffusion v2.1 for output creation. The training pipeline consists of three stages: alignment training on 30M image-text pairs, $\mathcal{I}$-GPT pre-training on 4M mixed documents/pairs, and supervised fine-tuning (SFT) on visual instructions and curated interleaved synthesis tasks.

Key Results and Insights

DreamLLM-7B demonstrates superior performance across both comprehension and creation benchmarks:

  • Comprehension: It achieved state-of-the-art (SOTA) scores for 7B-scale models on MMBench (49.9) and MM-Vet (35.9), outperforming LLaVA and MiniGPT-4.
  • Creation: It reached an 8.46 FID on MS-COCO, significantly outperforming concurrent models like Emu (11.66) and GILL (12.20).
  • Hallucination Resistance: On the POPE benchmark, DreamLLM showed lower rates of visual hallucination, suggesting that its creative training grounded its object knowledge more deeply than models trained solely on comprehension.

Conclusion and Future Work

DreamLLM proves that learning to create images fundamentally improves a model's ability to understand them. While currently limited by the 7B parameter scale and noise in web-scale datasets, the framework provides a blueprint for future universal multimodal generalists. Future research may extend this synergistic approach to video and audio modalities, further closing the gap between AI comprehension and creation.

Summary updated

Abstract

This paper presents DreamLLM, a learning framework that first achieves versatile Multimodal Large Language Models (MLLMs) empowered with frequently overlooked synergy between multimodal comprehension and creation. DreamLLM operates on two fundamental principles. The first focuses on the generative modeling of both language and image posteriors by direct sampling in the raw multimodal space. This approach circumvents the limitations and information loss inherent to external feature extractors like CLIP, and a more thorough multimodal understanding is obtained. Second, DreamLLM fosters the generation of raw, interleaved documents, modeling both text and image contents, along with unstructured layouts. This allows DreamLLM to learn all conditional, marginal, and joint multimodal distributions effectively. As a result, DreamLLM is the first MLLM capable of generating free-form interleaved content. Comprehensive experiments highlight DreamLLM's superior performance as a zero-shot multimodal generalist, reaping from the enhanced learning synergy.
BibTeX
@inproceedings{dong2024dreamllm,
  author = {Runpei Dong and Chunrui Han and Yuang Peng and Zekun Qi and Zheng Ge and Jinrong Yang and Liang Zhao and Jianjian Sun and Hongyu Zhou and Haoran Wei and Xiangwen Kong and Xiangyu Zhang and Kaisheng Ma and Li Yi},
  title = {{DreamLLM: Synergistic Multimodal Comprehension and Creation}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=y01KGvd9Bw},
}
Figure