Skip to main content
QUICK REVIEW

[Paper Review] MMICL: Empowering Vision-language Model with Multi-Modal In-Context Learning

Haozhe Zhao, Zefan Cai|arXiv (Cornell University)|Sep 14, 2023
Speech and dialogue systemsComputer Science18 citations
TL;DR

MMICL introduces a multi-modal in-context learning framework that enables vision-language models to handle prompts with interleaved multiple images and text, achieving state-of-the-art zero-shot performance on general vision-language tasks and reducing language bias.

ABSTRACT

Since the resurgence of deep learning, vision-language models (VLMs) enhanced by large language models (LLMs) have grown exponentially in popularity. However, while LLMs can utilize extensive background knowledge and task information with in-context learning, most VLMs still struggle with understanding complex multi-modal prompts with multiple images, making VLMs less effective in downstream vision-language tasks. In this paper, we address the limitation above by 1) introducing vision-language Model with Multi-Modal In-Context Learning(MMICL), a new approach to allow the VLM to deal with multi-modal inputs efficiently; 2) proposing a novel context scheme to augment the in-context learning ability of the VLM; 3) constructing the Multi-modal In-Context Learning (MIC) dataset, designed to enhance the VLM's ability to understand complex multi-modal prompts. Our experiments confirm that MMICL achieves new state-of-the-art zero-shot performance on a wide range of general vision-language tasks, especially for complex benchmarks, including MME and MMBench. Our analysis demonstrates that MMICL effectively tackles the challenge of complex multi-modal prompt understanding and emerges the impressive ICL ability. Furthermore, we observe that MMICL successfully alleviates language bias in VLMs, a common issue for VLMs that often leads to hallucination when faced with extensive textual context. Our code, dataset, dataset tool, and model are available at https://github.com/PKUnlp-icler/MIC

Motivation & Objective

  • Address the limited ability of vision-language models to understand complex multi-modal prompts with multiple images and text.
  • Propose MMICL to efficiently fuse multi-image and text information via a novel context scheme.
  • Create the MIC dataset to train and evaluate multi-modal in-context learning capabilities.
  • Demonstrate that MMICL achieves state-of-the-art zero-shot performance and mitigates language bias in VLMs.

Proposed method

  • Treat image and text representations equally using image declarations to reference images with unique proxy tokens.
  • Use a vision encoder and Q-former as the visual prompt generator to produce visual embeddings, projected to the LLM embedding space.
  • Introduce an image declaration mechanism that links text to specific images, enabling multi-image and text-to-image reference handling.
  • Construct a Multi-modal In-context learning (MIC) dataset by extracting multi-image data from videos and images, with 5.8 million samples.
  • Employ a two-stage training paradigm: (i) pretraining to align image and text embeddings (vision encoder and LLM frozen, VPG and projection trainable); (ii) multi-modal in-context tuning with frozen components and joint training of projection and query/value vectors.
  • Develop a unified multi-modal in-context format for various tasks by generating diverse instructions and exemplars to enrich in-context data.
Figure 1: Examples of vision-language dialogue generated by MMICLtypically contain prompts with interleaved images and text. MMICL understands spatial ( a ), logical ( b ), and temporal ( e ) relationships among images. MMICL can also grasp text-to-image references as (c) , (d) and (f) .
Figure 1: Examples of vision-language dialogue generated by MMICLtypically contain prompts with interleaved images and text. MMICL understands spatial ( a ), logical ( b ), and temporal ( e ) relationships among images. MMICL can also grasp text-to-image references as (c) , (d) and (f) .

Experimental results

Research questions

  • RQ1How can VLMs be extended to effectively understand complex multi-modal prompts containing multiple images and text references?
  • RQ2Can a new context scheme with image declarations and image proxies improve text-to-image reference understanding and inter-image relationships in VLMs?
  • RQ3Does multi-modal in-context tuning improve zero-shot and few-shot performance on diverse vision-language benchmarks while reducing language bias?

Key findings

  • MMICL achieves new state-of-the-art zero-shot performance on several vision-language benchmarks, notably MME and MMBench.
  • MMICL shows strong ability to understand text-to-image references, with improvements on Winoground and improved image-to-image relational understanding on RAVEN.
  • MMICL demonstrates effective multi-model in-context learning across tasks, including few-shot improvements on VizWiz and other datasets.
  • MMICL reduces language bias in vision-language models, maintaining performance with extensive textual context where other models falter.
  • Ablation studies show substantial gains from incorporating Stage II multi-modal in-context tuning across multiple datasets and model sizes.
Figure 2: Comparison of different VLM architectures: VLMs focused on a single image, VLMs with few-shot ability, and MMICL with equal treatment of image and text representation.
Figure 2: Comparison of different VLM architectures: VLMs focused on a single image, VLMs with few-shot ability, and MMICL with equal treatment of image and text representation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.