liveBook · Manning

Multimodal

As explained in Build a Text-to-Image Generator (from Scratch)

A generative model that processes or connects two or more data modalities, such as text, images, audio, or video.

A multimodal model processes or connects two or more data modalities, including text, images, audio, and video. Unlike a unimodal model, it can transform one modality into another, such as generating an image from text or captions from an image. section 1.1 section 1.1.1

Common multimodal generation paths follow different input, transformation, and output patterns:

  • Text-to-image models interpret a text prompt and produce a corresponding image. section 1.1
  • Image-editing systems combine text and an existing image to produce a modified image. section 1.1.1
  • Image-captioning transformers encode an image, combine its representation with caption tokens, and decode tokens until an end marker. section 4.1
  • Transformer-based image generators divide images into patches and predict those patches as a sequence conditioned on text. section 1.7
  • Diffusion-based generators begin with noise and iteratively denoise it according to a text prompt; latent diffusion performs this process in a lower-dimensional space before decoding the result. section 1.7

Captioning an image

After training on image-caption pairs, an image-to-text transformer receives an image and begins generation with <start>. It predicts one token at a time, appends each prediction to the input sequence, and stops at <end>. section 4.1

Figure 1.1 Comparison of unimodal and multimodal models

Compare unimodal pipelines, where input and output share one data type, with multimodal pipelines that connect different modalities. section 1.1.1

How Build a Text-to-Image Generator (from Scratch) covers it

How deep it goes
Explains modality contrasts and generation pipelines, including patches, denoising, latent spaces, and autoregressive caption decoding.
Examples
Uses Stable Diffusion image editing, text-to-image generation, patch prediction, and image captioning from image-caption pairs.
What it assumes
Assumes familiarity with data modalities and introduces the distinction between unimodal and multimodal processing.
What you can do after
Evaluate/understand how multimodal systems map inputs across modalities through transformers or diffusion processes.
How it connects
Connects unimodal models, natural language processing, computer vision, transformers, diffusion models, latent diffusion, and variational autoencoders.

Also explained in

Compare how 11 books explain multimodal →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build a Text-to-Image Generator (from Scratch). The section links point to the parts of the book it draws on.