liveBook · Manning

Multimodal

As explained in Learn Generative AI with PyTorch

A generative model that accepts more than one data modality, such as text plus images or audio, as input.

A multimodal model accepts more than one data modality, such as text, images, or audio. Multimodal Transformers extend sequence modeling beyond text-only inputs and support tasks such as image understanding and text-to-image generation. section 1.3.3 section 1.3

Text-to-image models show the idea directly: a text prompt conditions a neural network that progressively transforms noise into an image. Diffusion models provide the related process of adding noise during training and learning to remove it during generation. section 1.3.3

A multimodal system commonly combines these steps:

  • Encode different inputs, such as an image and its textual description, into representations that can be compared. section 15.5.1
  • Align matching image–text pairs while separating nonmatching pairs through contrastive learning. section 15.5.1
  • Use text embeddings or other conditioning information to guide iterative generation toward a corresponding image. section 15.5.1

From prompt to image

For “an astronaut in a space suit riding a unicorn,” a text encoder produces an embedding. A conditioning vector guides a U-Net denoiser as it repeatedly removes noise until a clean image emerges.

How Learn Generative AI with PyTorch covers it

How deep it goes
Explains inputs, embeddings, contrastive alignment, and iterative denoising, while deferring fuller diffusion and text-to-image treatment.
Examples
Uses text-to-image systems, flower-image diffusion, CLIP image–text pairs, and an astronaut-riding-a-unicorn prompt.
What it assumes
Builds from Transformers and self-attention, then points toward diffusion models before developing text-to-image Transformers.
What you can do after
Understand how models align image and text representations and condition iterative image generation on language.
How it connects
Connects Transformers, self-attention, diffusion models, CLIP, contrastive learning, computer vision, and natural language processing.

Also explained in

Compare how 11 books explain multimodal →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Learn Generative AI with PyTorch. The section links point to the parts of the book it draws on.