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

TL;DR

DreamLLM is a novel learning framework that bridges the gap between multimodal comprehension (understanding) and creation (generation) within a single Large Language Model. By training on raw, interleaved documents and using direct pixel-space sampling instead of lossy intermediate features, it becomes the first MLLM capable of generating free-form interleaved content while simultaneously achieving state-of-the-art performance in visual understanding.

What Problem Does This Paper Address?

While Multimodal Large Language Models (MLLMs) have made massive strides in understanding images (e.g., answering questions about a photo), their ability to create content remains fragmented. Most existing models are "comprehension-heavy," treating images as inputs but struggling to produce them as outputs.

When models do attempt image generation, they typically try to align their internal representations with external feature extractors like CLIP. However, CLIP focuses on "modality-shared" information, often discarding fine-grained, modality-specific details. This creates a "modality gap" that leads to information loss and prevents a true synergy between understanding and creating. Furthermore, generating "interleaved" content—where text and images are naturally mixed, like in a news article or a blog post—remains a significant challenge for current architectures.

Methods

DreamLLM operates on two fundamental design principles to overcome these hurdles:

  1. Direct Pixel-Space Sampling: Rather than forcing the MLLM to match CLIP embeddings, DreamLLM uses dream queries. These are learnable embeddings that capture the MLLM’s internal semantics and are used to condition a frozen Stable Diffusion (SD) model. By using Score Distillation Sampling (SDS), the model learns to model the image posterior by sampling directly in the pixel space, circumventing the limitations of external feature extractors.
  2. Interleaved Generative Pre-training (I-GPT): The authors treat images as part of a unified, auto-regressive sequence. They introduce a special <dream> token that the model learns to predict whenever an image should appear in a document. This allows the model to learn the joint distribution of text, images, and unstructured layouts.

The architecture consists of a causal decoder-only LLM (Vicuna/LLaMA), a CLIP-Large visual encoder for inputs, and a Stable Diffusion decoder for image outputs. The training follows a three-stage recipe: Alignment Training (aligning modalities), I-GPT Pre-training (learning interleaved structures), and Supervised Fine-tuning (instruction following).

Figure 1: Conceptual comparison of vision-language (VL) foundation models. (a) CLIP-like models (Radford et al., 2021; Yu et al., 2022a; Li et al., 2023e) take advantage of two towers that explicitly align VL representations. (b) Flamingo/BLIP-like models (Alayrac et al., 2022; Li et al., 2022; 2023d; Huang et al., 2023) encode VL representations into a unified manifold space using a singular MLLM. However, these models lack full autoregressivity, as they only output language. (c) Concurrent MLLMs (Koh et al., 2023; Sun et al., 2023b) align visual outputs with CLIP representations, but this alignment occurs in an intermediate space, not a raw data space. Consequently, models such as Emu necessitate a second-stage fine-tuning of Stable Diffusion (Rombach et al., 2022) for raw image generation. These models also fall short in generating raw interleaved documents. (d) Our DREAMLLM, instead, generates raw language and image inputs in a unified auto-regressive manner, inherently enabling interleaved generation. Only non-autoregressive generation loss is noted.

Datasets

The model was trained and evaluated using a diverse array of datasets:

  • Training: Approximately 30M image-text pairs (including LAION-400M and LAION-COCO) for alignment, 2M interleaved documents from MMC4-Core, and 120K instruction-following samples (including LLaVAInstruct and the newly curated InstructMMC4).
  • Comprehension Evaluation: Standard benchmarks like VQAv2, OKVQA, VizWiz, and TextVQA, along with comprehensive benchmarks like MMBench and MM-Vet.
  • Creation Evaluation: Zero-shot FID scores on MS-COCO and LN-COCO (Localized Narratives).
  • Hallucination Benchmarking: The POPE dataset was used to test the model's robustness against generating non-existent objects.

Key Insights and Ideas

  • The Synergy Effect: The most striking finding is that learning to create images actually improves the model's ability to understand them. The joint learning objective grounds the model’s comprehension in the generative process, leading to better spatial and relational reasoning.
  • Layout as a Token: By treating the placement of an image as a predictable token (<dream>), the model gains the "free will" to decide where illustrations should go in a generated document, making it a much more flexible content creator than previous models that required manual image placement.
  • Beyond CLIP: By avoiding explicit alignment with CLIP's intermediate output space, DreamLLM avoids the "semantically reduced" information trap, allowing the LLM to retain its full expressive power for both text and vision.
Figure 2: Overview of of our DREAMLLM framework. Interleaved documents serve as input, decoded to produce outputs. Both text and images are encoded into sequential, discrete token embeddings for the MLLM input. A special <dream> token predicts where to generate images. Subsequently, a series of dream queries are fed into the MLLM, capturing holistic historical semantics. The images are synthesized by the SD image decoder conditioned on queried semantics. The synthesized images are then fed back into the MLLM for subsequent comprehension.

Key Results

  • State-of-the-Art Comprehension: DreamLLM-7B achieved a score of 49.9 on MMBench and 35.9 on MM-Vet, outperforming all other 7B-parameter MLLMs and even some 13B models.
  • Superior Image Synthesis: On the MS-COCO benchmark, it achieved an FID of 8.46, significantly outperforming concurrent MLLMs like Emu-13B (11.66) despite having fewer parameters.
  • Robustness to Hallucination: The model showed high accuracy on the POPE benchmark, suggesting that its generative training helps it better understand which objects are actually present in a scene.
  • Qualitative Success: The model successfully generates coherent, multi-round dialogues and free-form interleaved articles (e.g., a travel guide for Vienna with logically placed, high-quality photos).

Limitations and Future Work

  • Model Scale: The current study focuses on 7B models. The authors suggest that scaling up to 65B or 130B parameters could yield even more significant benefits.
  • Data Noise: The MMC4 dataset contains "noisy" web data (like advertisements), which can sometimes bleed into the model's output style.
  • Compositional Challenges: In complex image generation tasks (e.g., "A and B"), the model occasionally struggles with attribute mixing, a common issue in diffusion-based models.
  • Future Directions: The authors plan to extend the framework to video data and 3D content creation, leveraging the model's inherent ability to handle long-term temporal context.

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. Project page: https://dreamllm.github.io.
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