Mantis: Interleaved Multi-Image Instruction Tuning

Dongfu Jiang, Xuan He, Huaye Zeng, Cong Wei, Max Ku, Qian Liu, Wenhu Chen

Abstract

Large multimodal models (LMMs) have achieved remarkable success in single-image tasks, yet their performance on multi-image scenarios remains a significant challenge. Traditional approaches rely on massive, noisy pre-training on hundreds of millions of image-text pairs. This paper introduces Mantis, a family of LMMs trained via efficient instruction tuning on the meticulously curated Mantis-Instruct dataset (721K instances). Mantis demonstrates that sophisticated multi-image capabilities—including co-reference, comparison, reasoning, and temporal understanding—can be achieved with academic-level resources. Mantis-Idefics2 achieves state-of-the-art results across eight multi-image benchmarks, outperforming baselines pre-trained on 200x more data while maintaining strong single-image performance.

Addressing the Multi-Image Gap

While current LMMs excel at describing individual images, they often fail when tasks require integrating information across multiple visual inputs. These models typically struggle with four fundamental multi-image skills:

  1. Co-reference: Identifying specific objects across different images.
  2. Comparison: Detecting similarities and differences between multiple scenes.
  3. Reasoning: Synthesizing visual evidence to draw logical conclusions.
  4. Temporal Understanding: Interpreting sequences of events over time.
Mantis targets four core multi-image skills: co-reference, comparison, reasoning, and temporal understanding.

Existing models like Flamingo and Idefics attempt to solve this through "brute-force" pre-training on massive web-scraped datasets. However, this approach is computationally expensive and often ineffective due to the high noise levels in web data. Mantis proposes a more efficient path: high-quality instruction tuning.

The Mantis Framework

The Mantis family is built upon the LLaVA framework, utilizing robust backbones such as LLaMA-3 and Mistral-7B, paired with advanced vision encoders like CLIP or SigLIP. A key architectural feature is the interleaving format, which explicitly labels images (e.g., (image {i}: <BOI>embeddings</EOI>)) to help the model maintain spatial and contextual awareness across multiple inputs.

Mantis-Instruct and Mantis-Eval

The core of Mantis's success lies in its training data. The researchers compiled Mantis-Instruct, a 721K instance dataset combining ten existing datasets with four newly curated subsets:

  • LLaVA-665k-multi & LRV-multi: Focused on enhancing co-reference abilities.
  • Contrast-Caption: Training the model to distinguish which image correctly matches a given description.
  • Multi-VQA: Complex, multi-turn question-answering pairs synthesized by GPT-4V.

To rigorously test these models, the team also introduced Mantis-Eval, a manually curated benchmark designed to evaluate generalization on out-of-distribution multi-image tasks.

Experimental Results

Mantis-Idefics2 emerged as the top-performing model, setting new state-of-the-art (SoTA) benchmarks for open-source LMMs. Notably, it outperformed Idefics2-8B by an average of 13 absolute points across multi-image benchmarks, despite the latter being pre-trained on 140 million interleaved images—a dataset 200 times larger than Mantis-Instruct.

Radar chart comparing Mantis models against various baselines across multi-image and single-image benchmarks.

Key performance highlights include:

  • NLVR2: Achieved a score of 89.71, surpassing the strongest baseline by nearly 3 points.
  • Mantis-Eval: Scored 57.14, significantly leading over models like CogVLM and Emu2-Chat.
  • Single-Image Performance: Mantis maintained performance on par with single-image specialists, showing that multi-image training does not necessarily degrade core visual understanding.

Insights and Future Directions

The success of Mantis highlights that quality over quantity is a viable strategy for multimodal learning. The use of a dedicated vision encoder proved superior to raw pixel processing in language backbones, and treating multiple images as a sequence rather than a merged single image significantly improved temporal and reasoning tasks.

Future work will aim to address current limitations, such as the tendency for short answers inherited from certain training sets and the slight "single-image tax" (a ~4% performance dip compared to specialized single-image models). Researchers also plan to extend context lengths to support more than 14 images and improve token efficiency for faster inference.

Mantis demonstrates that sophisticated multimodal intelligence is accessible through targeted instruction tuning, paving the way for more efficient and capable AI systems.

Summary updated

BibTeX
@article{jiang2024mantis,
  author = {Dongfu Jiang and Xuan He and Huaye Zeng and Cong Wei and Max Ku and Qian Liu and Wenhu Chen},
  title = {{Mantis: Interleaved Multi-Image Instruction Tuning}},
  journal = {Accepted by TMLR},
  year = {2024},
  url = {https://openreview.net/forum?id=skLtdUVaJa},
}
Figure