Skip to main content
QUICK REVIEW

[Paper Review] CM3: A Causal Masked Multimodal Model of the Internet

Armen Aghajanyan, Bernie Huang|arXiv (Cornell University)|Jan 19, 2022
Topic ModelingComputer Science40 citations
TL;DR

CM3 is a family of causally masked generative models trained on large-scale hypertext and image tokens from web data, enabling zero-shot and fine-tuned uni- and cross-modal tasks including image generation, captioning, summarization, and entity linking.

ABSTRACT

We introduce CM3, a family of causally masked generative models trained over a large corpus of structured multi-modal documents that can contain both text and image tokens. Our new causally masked approach generates tokens left to right while also masking out a small number of long token spans that are generated at the end of the string, instead of their original positions. The casual masking object provides a type of hybrid of the more common causal and masked language models, by enabling full generative modeling while also providing bidirectional context when generating the masked spans. We train causally masked language-image models on large-scale web and Wikipedia articles, where each document contains all of the text, hypertext markup, hyperlinks, and image tokens (from a VQVAE-GAN), provided in the order they appear in the original HTML source (before masking). The resulting CM3 models can generate rich structured, multi-modal outputs while conditioning on arbitrary masked document contexts, and thereby implicitly learn a wide range of text, image, and cross modal tasks. They can be prompted to recover, in a zero-shot fashion, the functionality of models such as DALL-E, GENRE, and HTLM. We set the new state-of-the-art in zero-shot summarization, entity linking, and entity disambiguation while maintaining competitive performance in the fine-tuning setting. We can generate images unconditionally, conditioned on text (like DALL-E) and do captioning all in a zero-shot setting with a single model.

Motivation & Objective

  • Motivate learning from rich, structured multi-modal web documents that include text, hyperlinks, and images.
  • Develop a hybrid causal-masked objective that enables left-to-right generation with bidirectional context for infilling tasks.
  • Demonstrate zero-shot and few-shot capabilities across text-only and multimodal tasks, including image generation and captioning.
  • Evaluate CM3 on tasks such as summarization, entity linking, and entity disambiguation, and analyze scaling and ethics considerations.

Proposed method

  • Introduce a causally masked objective that generates tokens left-to-right while masking long spans that are generated at the end of the string.
  • Train CM3 on near-terabyte multi-modal data consisting of structured HTML text and VQVAE-GAN image tokens, preserving document order.
  • Train multiple model sizes (125M, 800M, 2.7B, 13B parameters) and evaluate primarily CM3-Medium and CM3-Large on downstream tasks.
  • Represent images as discrete tokens via VQVAE-GAN and include hypertext structure to enable joint text-image modeling.
  • Use zero-shot prompting to perform image generation, in-filling, captioning, and cross-modal tasks, with prompts that leverage the HTML-like document structure.
  • Discuss training setup, including data preprocessing, tokenization, sequence length, optimization, and scaling considerations.

Experimental results

Research questions

  • RQ1How can a single model learn to generate and infill both text and image tokens conditioned on multi-modal document contexts?
  • RQ2What zero-shot and few-shot capabilities does a causally masked multimodal model achieve for summarization, entity linking, and image generation/captioning?
  • RQ3How does incorporating hypertext structure and image tokens affect cross-modal transfer and prompting strategies?

Key findings

  • CM3 achieves zero-shot and few-shot capabilities across unimodal and multimodal tasks, including image generation and captioning without task-specific fine-tuning.
  • CM3 sets new state-of-the-art results in zero-shot summarization, entity linking, and entity disambiguation, and benefits from the hypertext structure present in training data.
  • Unconditional and conditional image generation via prompts show CM3 can approximate DALL-E-style functionality with a single model trained on web/Wikipedia data.
  • CM3-Large approaches the performance of established image-generation models on MS-COCO FID metrics, while using substantially less data.
  • Fine-tuning CM3 yields competitive or state-of-the-art results on GLUE-style benchmarks, indicating strong transferable representations even with the causally masked objective.

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.