Lumina-mGPT: Illuminate Flexible Photorealistic Text-to-Image Generation with Multimodal Generative Pretraining

Dongyang Liu, Shitian Zhao, Le Zhuo, Weifeng Lin, Yi Xin, Xinyue Li, Qi Qin, Yu Qiao, Hongsheng Li, Peng Gao

TL;DR

Lumina-mGPT is a new family of decoder-only autoregressive models that match the photorealistic image generation quality of state-of-the-art diffusion models like SDXL. By introducing a novel "Unambiguous Image Representation" (Uni-Rep) and a progressive finetuning strategy, the authors demonstrate that a single transformer can unify high-resolution, flexible-aspect-ratio image generation with diverse multimodal tasks like depth estimation, segmentation, and multi-turn visual dialogue.

What Problem Does This Paper Address?

While diffusion models currently dominate the text-to-image (T2I) landscape, autoregressive (AR) models—the backbone of modern LLMs—have historically struggled to produce high-quality, high-resolution images. Previous AR attempts often suffered from four main limitations:

  1. Quality Gap: Image generation was often restricted to low-resolution academic benchmarks (e.g., ImageNet).
  2. Architectural Complexity: Many relied on cumbersome encoder-decoder frameworks that are difficult to scale.
  3. Inflexibility: They were typically locked into fixed resolutions and square aspect ratios.
  4. Poor Extensibility: They couldn't easily integrate diverse vision tasks like dense labeling or controllable generation.

Lumina-mGPT aims to bridge this gap, proving that the "next-token prediction" paradigm is sufficient for both world-class image synthesis and general multimodal reasoning.

Methods

Lumina-mGPT is built on a simple decoder-only transformer architecture, initialized from the pretrained Chameleon (mGPT) weights. The core innovations include:

  • Unambiguous Image Representation (Uni-Rep): Standard flattening of 2D image tokens into a 1D sequence creates ambiguity when handling different aspect ratios. Uni-Rep solves this by inserting <height>, <width> indicators at the start and <end-of-line> (EOL) tokens at the end of every row of image tokens. This allows the model to "understand" the 2D structure of the image it is generating.
  • Flexible Progressive Supervised Finetuning (FP-SFT): To achieve high resolution efficiently, the authors train the model in three stages, progressively increasing the target resolution from $512^2$ to $768^2$ and finally $1024^2$. This "weak-to-strong" strategy allows the model to learn general composition at low resolutions before focusing on fine-grained details.
  • Omnipotent Supervised Finetuning (Omni-SFT): This stage treats various tasks—such as image editing, pose estimation, and multiview generation—as a unified discrete modeling task. By using natural language as the interface, the model becomes a versatile generalist.
Figure 2. Illustration of Resolution-Aware Prompt (bottom left) and Unambiguous Image Representation (bottom right). These designs are used in all supervised finetuning stages to eliminate the ambiguity in image representation, enabling flexible resolution image modeling.

Datasets

The authors utilized a mix of existing and internal datasets:

  • T2I Generation: 10M high-quality image-text pairs for FP-SFT.
  • Multimodal Tasks: Data from MagicBrush and SEED (editing), NYUv2 and ScanNet (surface normals), Kitti v2 (depth), MSCOCO (pose), and RefCOCO (grounding).
  • Catastrophic Forgetting Prevention: Pure-text data from OpenHermes and image-to-text data from Mini-Gemini were mixed in during training to maintain the model's original reasoning and captioning abilities.

Key Insights and Ideas

  • AR vs. Diffusion: The paper challenges the notion that diffusion is inherently superior for image generation. With proper initialization and structural tokens, AR models can achieve comparable aesthetics and better text-rendering capabilities.
  • The "Reconstruction Paradox": Intriguingly, the authors found that Lumina-mGPT can sometimes generate images that look better than the VQ-VAE's own reconstructions of the original image. This suggests the model learns to "correct" or denoise artifacts introduced by the image tokenizer.
  • Efficiency: By starting from a pretrained multimodal LLM, the authors trained a competitive 7B model using only 32 A100 GPUs over 7 days—a remarkably low resource requirement for this level of performance.
Lumina-mGPT demonstrates superior visual quality and aesthetics compared to previous AR models like Parti and LlamaGen.

Key Results

  • T2I Benchmarks: Lumina-mGPT significantly outperforms the base Chameleon model and surpasses diffusion models like SDv1.5 and SDv2.1. It achieves an overall score of 0.56 on GenEval and 79.68 on DPG-Bench, placing it in the same league as SDXL.
  • Multimodal Generalist: The model shows massive improvements in understanding benchmarks. For instance, its MME-p score jumped from 153.10 to 976.85 after finetuning.
  • Unified Capabilities: As shown in Figure 1, the model successfully performs a wide range of tasks, from multi-turn visual dialogue to complex spatial-conditional generation, all within the same framework.
Lumina-mGPT performs a wide range of multimodal tasks in a unified next-token prediction framework.

Limitations and Future Work

  • Inference Speed: Because AR models generate tokens one by one, they are significantly slower than diffusion models for high-resolution images, sometimes taking minutes per image.
  • Visual Artifacts: The model still occasionally struggles with complex anatomy (e.g., extra limbs) compared to SOTA models trained on billions of image-text pairs.
  • Future Directions: The authors plan to integrate optimized inference engines like vLLM to speed up generation and scale the training data to further improve prompt-following and anatomical accuracy.

Summary updated

BibTeX
@misc{liu2024lumina,
  author = {Dongyang Liu and Shitian Zhao and Le Zhuo and Weifeng Lin and Yi Xin and Xinyue Li and Qi Qin and Yu Qiao and Hongsheng Li and Peng Gao},
  title = {{Lumina-mGPT: Illuminate Flexible Photorealistic Text-to-Image Generation with Multimodal Generative Pretraining}},
  year = {2024},
  eprint = {2408.02657},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.02657},
}
Figure