MetaMorph: Multimodal Understanding and Generation via Instruction Tuning

Shengbang Tong, David Fan, Jiachen Li, Yunyang Xiong, Xinlei Chen, Koustuv Sinha, Michael Rabbat, Yann LeCun, Saining Xie, Zhuang Liu

TL;DR

This paper introduces MetaMorph, a unified multimodal model that can both understand and generate images and text. By extending visual instruction tuning to predict continuous visual tokens, MetaMorph demonstrates that visual generation capabilities can emerge efficiently from existing LLMs, requiring minimal additional data and training.

What Problem Does This Paper Address?

Current multimodal large language models (MLLMs) primarily focus on visual understanding, generating text outputs from image and text inputs. While some models attempt to bridge the gap towards unified understanding and generation, they often require significant architectural changes, extensive pretraining, or separate training objectives. This paper addresses the challenge of creating a single, efficient model that can seamlessly handle both visual understanding and generation tasks, leveraging the inherent capabilities of pre-trained LLMs without requiring massive datasets or complex training pipelines.

Methods

The core contribution is Visual-Predictive Instruction Tuning (VPiT), an extension of existing visual instruction tuning methods. Instead of just predicting text tokens, VPiT trains a pre-trained LLM to predict both discrete text tokens and continuous visual tokens. This is achieved by:

  • Unified Autoregressive Model: The LLM is finetuned to accept both text and encoded visual tokens as input and to output a sequence that can include both text and visual tokens.
  • Visual Tokenization: Pre-trained vision encoder embeddings are treated as continuous "visual tokens."
  • Separate Heads: The model uses the original LLM head for text prediction and attaches a separate vision head (a projection layer) for predicting visual tokens.
  • Special Tokens: Special tokens like (image_start) and (image_end) are introduced to signal the boundaries of visual token sequences.
  • Diffusion Model for Visualization: A separately finetuned diffusion model is used to convert the generated visual tokens back into pixel space for visualization.

Datasets

The paper utilizes a diverse range of datasets, categorized as follows:

  • Visual Understanding Data:
    • ImageQA: Cambrian-7M
    • VideoQA: VideoStar, ShareVideo
  • Visual Generation Data:
    • MetaCLIP (curated for text-to-image generation prompts)
  • Other Visual Data:
    • Video Data: SomethingSomethingV2, HowTo100M
    • Visual Thinking Data: Visualization-of-Thought, VStar
    • Image-to-Image Data: InstructPix2Pix, Aurora

Key Insights and Ideas

  • Visual Generation as a Byproduct: Visual generation ability emerges naturally from improved visual understanding and can be unlocked efficiently with a surprisingly small amount of generation data when combined with understanding data.
  • Synergy Between Understanding and Generation: Understanding and generation are mutually beneficial. Increasing data for either capability enhances both simultaneously, though understanding data has a disproportionately larger impact.
  • LLMs Possess Prior Visual Knowledge: Pre-trained LLMs already contain significant "prior" visual knowledge that can be efficiently adapted for both understanding and generation through simple instruction tuning.
  • Understanding-Centric Training is More Effective: Training focused on visual understanding contributes more effectively to both understanding and generation capabilities than generation-centric training.
  • Implicit Reasoning: MetaMorph can implicitly perform multi-step reasoning to solve visual puzzles and generate images for specialized concepts, demonstrating a transfer of LLM reasoning capabilities to the multimodal domain.

Key Results

  • Efficient Generation: Joint training with visual understanding data allows for high-quality visual generation with as little as 5k generation data, stabilizing around 200k samples, compared to training solely on generation data which requires millions of pairs for inferior results.
  • Competitive Performance: MetaMorph achieves competitive performance on both visual understanding and generation benchmarks, outperforming other unified models, even those trained on more data or from scratch.
  • Leveraging LLM Knowledge: MetaMorph successfully leverages LLM world knowledge to generate images for specialized terms (e.g., "Chhogori," "Oncilla") where other text-to-image models struggle.
  • Handling Semantic Nuances: MetaMorph demonstrates better handling of semantic nuances (e.g., "slightly" vs. "very") compared to models relying solely on text embeddings.
  • Correlation Findings: General, vision-centric, and text VQA tasks show strong correlations with visual generation performance, while knowledge-intensive tasks show weaker correlations.

Limitations and Future Work

  • Data Imbalance: The paper notes that while understanding data is more impactful, a balance is still crucial. The optimal ratio of understanding to generation data is an area for further exploration.
  • Diffusion Model Dependency: The visualization of generated visual tokens relies on a separately finetuned diffusion model, which adds a component to the overall pipeline.
  • Future Work: The authors suggest that their findings inspire further exploration into developing more general intelligence models by leveraging the inherent capabilities of LLMs through unified multimodal training. They also highlight that advancements in LLMs and instruction tuning techniques for understanding may implicitly improve generation capabilities.

Summary updated

BibTeX
@inproceedings{tong2025metamorph,
  author = {Shengbang Tong and David Fan and Jiachen Li and Yunyang Xiong and Xinlei Chen and Koustuv Sinha and Michael Rabbat and Yann LeCun and Saining Xie and Zhuang Liu},
  title = {{MetaMorph: Multimodal Understanding and Generation via Instruction Tuning}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure