Auto-Encoding Morph-Tokens for Multimodal LLM

Kaihang Pan, Siliang Tang, Juncheng Li, Zhaoyu Fan, Wei Chow, Shuicheng Yan, Tat-Seng Chua, Yueting Zhuang, Hanwang Zhang

Abstract

Current multimodal large language models (MLLMs) struggle to balance image understanding with image generation due to the conflicting representational requirements of abstraction versus detail. We introduce Morph-Tokens, a dual-purpose representation that allows a single model to "morph" abstract visual prompts into detailed tokens for high-fidelity image reconstruction. By decoupling pre- and post-model visual tokens, we achieve state-of-the-art performance in both comprehension and generation simultaneously.

Introduction

The development of a unified multimodal model capable of both "seeing" (comprehension) and "drawing" (generation) with equal proficiency is a central goal in AI. However, these two tasks are fundamentally at odds. To understand an image, an LLM needs to abstract it—stripping away pixel-level noise to find high-level concepts. Conversely, to generate an image, the model needs to preserve every minute detail to ensure visual fidelity.

Most existing MLLMs use a "one-token-fits-all" approach, forcing the same visual tokens to serve both purposes. This creates a dilemma: if tokens are too abstract, generation quality suffers; if they are too detailed, the LLM gets bogged down in "visual noise," hindering its reasoning capabilities.

Comparison between existing MLLMs and the proposed Morph-Tokens approach.

Methodology: The Morph-Tokens Framework

The proposed framework treats visual tokens as "morphable" entities. The key components include:

  1. Deconfounded Encoder: Instead of simply flattening image patches, the model uses a "deconfounder dictionary" to initialize query embeddings. This helps break spatial correlations and makes visual tokens behave more like causal natural language.
  2. The Morphing Process: In this architecture, pre-MLLM tokens (used for comprehension) are not required to be equal to post-MLLM tokens (used for generation). The MLLM acts as a reasoning engine that recovers the visual details lost during the initial abstraction phase.
  3. Three-Stage Training Strategy:
    • Stage 1 (Initialization): Expands the LLM's vocabulary to include morph-tokens using ~30M image-text pairs.
  4. Stage 2 (Auto-encoding): Trains the model to use morph-tokens as abstract prompts for text generation while simultaneously learning to reconstruct the original image from those same tokens.
  5. Stage 3 (Instruction Tuning): Fine-tunes the entire system on diverse tasks like Visual Question Answering (VQA) and multi-turn image editing.

Key Insights and Results

The most significant breakthrough is realizing that forcing pre- and post-model tokens to be identical is a bottleneck. By allowing them to differ, the model can be a "generalist" without compromising on specific task performance.

Synergy over Conflict

In many models, adding generation data actually hurts comprehension scores. Morph-Tokens exhibit a rare positive synergy where more data in one domain actually helps the other. As training data increases, performance in both generation and comprehension improves steadily.

Performance trends and perplexity analysis for Morph-Tokens across comprehension and generation tasks.

Quantitative Benchmarks

  • Comprehension: The model achieved a new SOTA on the DEMON benchmark, outperforming specialized models like InstructBlip. It showed a 5.6% improvement in multi-modal cloze tasks.
  • Generation: On MS-COCO, it surpassed existing unified models like GILL and Emu in CLIP similarity scores, indicating better alignment between text prompts and generated images.
  • Efficiency: By quantizing visual features into discrete tokens and using a deconfounder, the authors make images "look" more like text to the LLM. This significantly lowers the perplexity of the model compared to previous methods.

Conclusion

Morph-Tokens represent a major step forward in unified multimodal modeling. By breaking the equality constraint between input and output visual representations, the model achieves superior performance in both understanding and creation. Future work will address current limitations such as fixed token lengths and the high computational intensity of the 3-stage training process.

Summary updated

BibTeX
@inproceedings{pan2024auto,
  author = {Kaihang Pan and Siliang Tang and Juncheng Li and Zhaoyu Fan and Wei Chow and Shuicheng YAN and Tat-Seng Chua and Yueting Zhuang and Hanwang Zhang},
  title = {{Auto-Encoding Morph-Tokens for Multimodal LLM}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=U97MIrs35l},
}
Figure