MM-Interleaved: Interleaved Image-Text Generative Modeling via Multi-modal Feature Synchronizer

Changyao Tian, Xizhou Zhu, Yuwen Xiong, Weiyun Wang, Zhe Chen, Wenhai Wang, Yuntao Chen, Lewei Lu, Tong Lu, Jie Zhou, Hongsheng Li, Yu Qiao, Jifeng DaiarXiv 2024 · DOI

Abstract

MM-Interleaved is an end-to-end generative model designed for interleaved image-text data. By introducing the Multi-modal Feature Synchronizer (MMFS), the model dynamically extracts high-resolution visual details from context, overcoming the information bottleneck of static visual tokens. It achieves state-of-the-art performance in multi-modal comprehension and consistent visual storytelling, effectively providing a dynamic "magnifying glass" for complex visual sequences.

Introduction

The challenge of processing interleaved image-text data lies in the trade-off between visual detail and computational efficiency. Most current multi-modal Large Language Models (MLLMs) compress images into a fixed number of tokens (e.g., 32 or 64), which often discards critical details like small text or subtle textures. This limitation is particularly evident in long-form content where multiple images must be understood in context or generated with visual consistency. MM-Interleaved addresses this by allowing the model to re-examine high-resolution features from previous images dynamically based on the current context.

Methodology

MM-Interleaved integrates a Visual Foundation Model (VFM), the Vicuna LLM, and a Stable Diffusion-based image decoder into a unified pipeline. The core innovation is the Multi-modal Feature Synchronizer (MMFS). Unlike traditional models that rely on a single pass of visual encoding, MMFS enables intermediate layers of the LLM and the image decoder to perform context-aware queries against multi-scale feature maps of all preceding images.

The MM-Interleaved architecture featuring the Multi-modal Feature Synchronizer (MMFS) integrated within the LLM and Image Decoder.

To maintain efficiency, MMFS employs deformable sparse attention, sampling only relevant points on the feature maps based on the current textual or visual state. This approach allows the model to achieve superior results with only 64 visual tokens per image, significantly reducing the context window footprint. The model is trained end-to-end using a joint objective: cross-entropy loss for next-token prediction and a diffusion-based denoising loss for next-image prediction, allowing it to switch seamlessly between reading and drawing.

Results and Discussion

MM-Interleaved was pre-trained on a massive mixture of interleaved (MMC4) and paired (LAION, CC-12M) datasets and evaluated on over 11 representative tasks.

Comparison of MM-Interleaved against state-of-the-art (SOTA) models across multiple image-to-text, text-to-image, and interleaved generation benchmarks.

The model established new SOTA records on SEED-Bench-2 for both comprehension and generation. Notably, it showed significant improvements in fine-grained tasks like TextVQA, demonstrating the efficacy of the dynamic feature extraction. In visual storytelling tasks (e.g., PororoSV and FlintstonesSV), MM-Interleaved achieved lower FID scores, indicating higher quality and better character consistency than specialized baselines. Furthermore, the model demonstrated precise spatial control in segmentation-to-image tasks, a capability often lacking in models restricted to coarse visual tokens.

Conclusion

MM-Interleaved represents a significant step toward unified multi-modal generative modeling. By allowing the model to "look back" at high-resolution visual features dynamically, it overcomes the limitations of static tokenization and improves consistency in long-form interleaved content. Future work will focus on improving the quality of interleaved training data and enhancing the safety and reliability of generated content.

Summary updated

BibTeX
@misc{tian2024mm,
  author = {Changyao Tian and Xizhou Zhu and Yuwen Xiong and Weiyun Wang and Zhe Chen and Wenhai Wang and Yuntao Chen and Lewei Lu and Tong Lu and Jie Zhou and Hongsheng Li and Yu Qiao and Jifeng Dai},
  title = {{MM-Interleaved: Interleaved Image-Text Generative Modeling via Multi-modal Feature Synchronizer}},
  year = {2024},
  eprint = {2401.10208},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.10208},
}
Figure