Mantis: Interleaved Multi-Image Instruction Tuning
One-line decision
Use this skill when you want to create instruction data for multi-image understanding tasks like comparison, reasoning across images, and temporal understanding. Avoid it when you only need single-image instruction data.
Skill metadata
- Skill type: multi-image-instruction-data
- Paper kind: operational-method
- Actionability: high
- Evidence quality: full_paper
Goal
Create multi-image instruction tuning data for training VLMs that can understand relationships, comparisons, and reasoning across multiple images in a single conversation.
Problem signature
- Modality: multiple images with instruction data requiring cross-image understanding.
- Data state: instruction data generated for multi-image tasks (comparison, temporal, spatial reasoning).
- Scale regime: 721K multi-image instruction samples.
- Model requirement: VLM with multi-image input support.
Use when
- You want a VLM that understands relationships between multiple images.
- You need training data for image comparison, temporal, or multi-view tasks.
- Your VLM supports multi-image input.
Do not use when
- Single-image understanding is sufficient.
- Your VLM cannot handle multiple images.
- You do not need cross-image reasoning.
Required inputs
- multi_image_sources: Sources of related image sets (temporal, comparison, multi-view).
- instruction_generator: Pipeline for generating multi-image instruction data.
- vlm_architecture: VLM supporting multiple image inputs.
Optional inputs
- image_relationship_labels: Labels describing relationships between images.
Outputs
- mantis_instruct_data: 721K multi-image instruction samples.
- mantis_model: VLM trained for multi-image understanding.
Assumptions and prerequisites
- Multi-image understanding is a distinct capability from single-image.
- Specialized instruction data is needed for cross-image reasoning.
- 721K samples provide sufficient multi-image training signal.
Procedure
- Curate multi-image sources
Action: Collect sets of related images from diverse sources.
Why: Related images enable cross-image reasoning tasks.
Note: See paper for details.
- Generate multi-image instructions
Action: Create instruction-response pairs requiring understanding across images.
Why: Cross-image instructions teach multi-image reasoning.
Note: See paper for details.
- Cover diverse task types
Action: Include comparison, temporal, spatial, and logical reasoning tasks.
Why: Diverse tasks build comprehensive multi-image understanding.
Note: See paper for details.
- Train multi-image VLM
Action: Fine-tune a VLM on the 721K multi-image instruction data.
Why: Specialized training enables multi-image capabilities.
Note: See paper for details.
Parameters to set
- image_pairs — Role: Number and type of image relationships. How to set: Include comparison, temporal, and multi-view pairs. Default/range: Diverse. Effect: More relationship types improve flexibility.
- instruction_types — Role: Types of multi-image instructions. How to set: Cover comparison, change detection, temporal, and reasoning. Default/range: Multiple types. Effect: Diverse types build comprehensive capability.
Validation checks
- The model should correctly reason across multiple images.
- Multi-image benchmarks should show improvement.
- Single-image performance should not degrade.
Failure modes
- The model may not distinguish relevant from irrelevant images.
- Multi-image data generation is more complex than single-image.
- Interleaved image-text formatting may be inconsistent.
Adaptation notes for VLM training
- Multi-image instruction data is essential for document comparison, temporal understanding, etc.
- Combine with single-image data for balanced training.
- The multi-image approach extends to video understanding.
Implementation notes
- Use consistent image ordering conventions.
- Track per-task multi-image performance.
- Handle variable numbers of images per instruction.
Evidence from the paper
- Mantis creates 721K multi-image instruction samples for cross-image understanding.
- The model handles comparison, temporal, and spatial reasoning across images.
- Multi-image instruction tuning is a distinct and important capability.
- Mantis achieves state-of-the-art on multi-image benchmarks.
Source paper
- Title: Mantis: Interleaved Multi-Image Instruction Tuning
- Year: 2024
- Venue: arXiv
- Paper ID: arxiv-2405.01483v2
- URL: http://arxiv.org/abs/2405.01483v2
- arXiv ID: 2405.01483v2
1---2name: mantis-interleaved-multi-image-instruction-tuning-arxiv-24053description: Mantis: Interleaved Multi-Image Instruction Tuning4---5# Mantis: Interleaved Multi-Image Instruction Tuning67## One-line decision8Use this skill when you want to create instruction data for multi-image understanding tasks like comparison, reasoning across images, and temporal understanding. Avoid it when you only need single-image instruction data.910## Skill metadata11- **Skill type**: multi-image-instruction-data12- **Paper kind**: operational-method13- **Actionability**: high14- **Evidence quality**: full_paper1516## Goal17Create multi-image instruction tuning data for training VLMs that can understand relationships, comparisons, and reasoning across multiple images in a single conversation.1819## Problem signature20- Modality: multiple images with instruction data requiring cross-image understanding.21- Data state: instruction data generated for multi-image tasks (comparison, temporal, spatial reasoning).22- Scale regime: 721K multi-image instruction samples.23- Model requirement: VLM with multi-image input support.2425## Use when26- You want a VLM that understands relationships between multiple images.27- You need training data for image comparison, temporal, or multi-view tasks.28- Your VLM supports multi-image input.2930## Do not use when31- Single-image understanding is sufficient.32- Your VLM cannot handle multiple images.33- You do not need cross-image reasoning.3435## Required inputs36- **multi_image_sources**: Sources of related image sets (temporal, comparison, multi-view).37- **instruction_generator**: Pipeline for generating multi-image instruction data.38- **vlm_architecture**: VLM supporting multiple image inputs.3940## Optional inputs41- **image_relationship_labels**: Labels describing relationships between images.4243## Outputs44- **mantis_instruct_data**: 721K multi-image instruction samples.45- **mantis_model**: VLM trained for multi-image understanding.4647## Assumptions and prerequisites48- Multi-image understanding is a distinct capability from single-image.49- Specialized instruction data is needed for cross-image reasoning.50- 721K samples provide sufficient multi-image training signal.5152## Procedure531. **Curate multi-image sources**54 Action: Collect sets of related images from diverse sources.55 Why: Related images enable cross-image reasoning tasks.56 Note: See paper for details.572. **Generate multi-image instructions**58 Action: Create instruction-response pairs requiring understanding across images.59 Why: Cross-image instructions teach multi-image reasoning.60 Note: See paper for details.613. **Cover diverse task types**62 Action: Include comparison, temporal, spatial, and logical reasoning tasks.63 Why: Diverse tasks build comprehensive multi-image understanding.64 Note: See paper for details.654. **Train multi-image VLM**66 Action: Fine-tune a VLM on the 721K multi-image instruction data.67 Why: Specialized training enables multi-image capabilities.68 Note: See paper for details.6970## Parameters to set71- **image_pairs** — Role: Number and type of image relationships. How to set: Include comparison, temporal, and multi-view pairs. Default/range: Diverse. Effect: More relationship types improve flexibility.72- **instruction_types** — Role: Types of multi-image instructions. How to set: Cover comparison, change detection, temporal, and reasoning. Default/range: Multiple types. Effect: Diverse types build comprehensive capability.7374## Validation checks75- The model should correctly reason across multiple images.76- Multi-image benchmarks should show improvement.77- Single-image performance should not degrade.7879## Failure modes80- The model may not distinguish relevant from irrelevant images.81- Multi-image data generation is more complex than single-image.82- Interleaved image-text formatting may be inconsistent.8384## Adaptation notes for VLM training85- Multi-image instruction data is essential for document comparison, temporal understanding, etc.86- Combine with single-image data for balanced training.87- The multi-image approach extends to video understanding.8889## Implementation notes90- Use consistent image ordering conventions.91- Track per-task multi-image performance.92- Handle variable numbers of images per instruction.9394## Evidence from the paper95- Mantis creates 721K multi-image instruction samples for cross-image understanding.96- The model handles comparison, temporal, and spatial reasoning across images.97- Multi-image instruction tuning is a distinct and important capability.98- Mantis achieves state-of-the-art on multi-image benchmarks.99100## Source paper101- **Title**: Mantis: Interleaved Multi-Image Instruction Tuning102- **Year**: 2024103- **Venue**: arXiv104- **Paper ID**: arxiv-2405.01483v2105- **URL**: http://arxiv.org/abs/2405.01483v2106- **arXiv ID**: 2405.01483v2