Skip to main content
QUICK REVIEW

[Paper Review] Multimodal C4: An Open, Billion-scale Corpus of Images Interleaved with Text

Wanrong Zhu, Jack Hessel|arXiv (Cornell University)|Apr 14, 2023
Multimodal Machine Learning ApplicationsComputer Science17 citations
TL;DR

MMC4 is a public billion-scale image-text corpus built by interleaving images into sentences from the text-only c4 dataset, enabling multimodal in-context learning; it achieves strong intra-document alignment and provides subsets for privacy and efficiency, with OpenFlamingo experiments validating its utility.

ABSTRACT

In-context vision and language models like Flamingo support arbitrarily interleaved sequences of images and text as input. This format not only enables few-shot learning via interleaving independent supervised (image, text) examples, but also, more complex prompts involving interaction between images, e.g., "What do image A and image B have in common?" To support this interface, pretraining occurs over web corpora that similarly contain interleaved images+text. To date, however, large-scale data of this form have not been publicly available. We release Multimodal C4, an augmentation of the popular text-only C4 corpus with images interleaved. We use a linear assignment algorithm to place images into longer bodies of text using CLIP features, a process that we show outperforms alternatives. Multimodal C4 spans everyday topics like cooking, travel, technology, etc. A manual inspection of a random sample of documents shows that a vast majority (88%) of images are topically relevant, and that linear assignment frequently selects individual sentences specifically well-aligned with each image (80%). After filtering NSFW images, ads, etc., the resulting corpus consists of 101.2M documents with 571M images interleaved in 43B English tokens.

Motivation & Objective

  • Motivate the creation of a large, publicly available interleaved image-text corpus to support multimodal in-context learning.
  • Describe the construction pipeline that aligns images to sentences within documents using CLIP-based linear assignment.
  • Assess the quality, relevance, and alignment of images to text across a broad range of topics and document sources.
  • Provide filtered subsets (mmc4-ff and mmc4-core) to address privacy and development needs.
  • Demonstrate early multimodal model training benefits using OpenFlamingo on the mmc4-core corpus.

Proposed method

  • Extend the text-only c4 corpus by retrieving and interleaving images from webpages in a bipartite assignment setup.
  • Use CLIP ViT-L/14 to compute pairwise image-sentence similarities within each document.
  • Apply a linear assignment algorithm to match images to sentences under a one-image-per-sentence constraint.
  • Filter images for size, aspect ratio, duplicates, and NSFW content using a multi-stage pipeline.
  • Create subsets mmc4-ff (fewer faces) and mmc4-core (more stringent filtering and downsizing).
  • Provide intra-document similarity matrices and alignments to enable alternative assignment methods.

Experimental results

Research questions

  • RQ1Can large-scale interleaved image+text data improve multimodal in-context learning compared to non-interleaved image-caption data?
  • RQ2How well do images interleaved with text align with sentences within documents, and what is the quality of this alignment across topics?
  • RQ3What are the effects and trade-offs of filtering (privacy, NSFW, faces) and document/image statistics on downstream model training?
  • RQ4Do subsets like mmc4-ff and mmc4-core offer usable, privacy-conscious alternatives for developers?

Key findings

  • MMC4 contains 101.2M documents with 571M images interleaved in 43B tokens.
  • Two primary subsets are released: mmc4-ff with fewer faces and mmc4-core with stricter filtering.
  • Manual sampling shows 88% of images are topically relevant to their documents and 80% are well-aligned to the assigned sentences.
  • Within-document image-text alignment using zero-shot CLIP ViT-L/14 outperforms some fine-tuned baselines on alignment benchmarks.
  • Linear assignment spreads images more evenly across sentences, increasing the mean percent of sentences with an image from 22% (max assignment) to 34% (linear assignment).
  • A random sample of 200 mmc4 documents (836 images) shows 87.7% topically related images and 80.4% sentence-aligned images; 28.3% have faces, 1.6% watermarks, 3.9% logos, 3.2% ads, 0.7% duplicates.

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.