liveBook · Manning

Multimodal

As explained in Introduction to Generative AI, Second Edition

A multimodal interface supports interaction through multiple data modalities, such as text, images, audio, speech, or code.

An AI assistant might describe a photograph, respond to a spoken question, or generate an image from a written prompt. A multimodal system supports more than one type of information, or modality, as input or output. Modalities can include text, images, audio, video, and code. A particular model need not support every modality or every combination. section 2.4 section 10.2

Unlike a text-only model, a multimodal model must connect representations of concepts across different modalities. One training approach uses separate encoders to turn images and text into representations, then aligns them using paired examples such as images and captions. section 2.17 section 2.4

Figure 2.4 During contrastive learning, similar image–text pairs are encoded close together in a shared embedding space, while dissimilar pairs are mapped farther apart.
A diagram of a cat and a snowball

AI-generated content may be incorrect.

This figure illustrates contrastive learning: related image–text pairs are brought closer together in a shared representation space, while unrelated pairs are pushed apart. section 2.4

From images to conversation and video

GPT-4 accepts text and image inputs. GPT-4o supports interactions mixing voice, images, and text. Sora generates video from text prompts, such as a description of a papercraft coral reef, although its outputs can contain physics violations and spatial inconsistencies. section 1.16

Multimodal interfaces can make interaction more flexible, but fluent output is not necessarily accurate. As AI interfaces increasingly mediate access to information, their design also affects which answers people receive and raises questions about transparency, influence, and agency. section 1.16 section 10.2

How Introduction to Generative AI, Second Edition covers it

How deep it goes
Explains separate encoders and contrastive alignment intuitively, without implementation details.
Examples
Illustrates image description with a dog, image–caption pairs, and text-to-video generation with a coral reef prompt.
What you can do after
Evaluate multimodal capabilities and limitations, including visual inconsistencies and the influence of interfaces on access to information.
How it connects
Connects multimodal models with transformers, contrastive learning, embeddings, and autoregressive generation.

Also explained in

Compare how 11 books explain multimodal →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Introduction to Generative AI, Second Edition. The section links point to the parts of the book it draws on.