liveBook · Manning

Generative modeling

As explained in Deep Learning with R, Third Edition

Generative AI comprises computational models that produce new content such as text, images, audio, or code from learned patterns.

Generative modeling uses learned patterns to produce new content, such as text, images, video, or sound. A model can learn the statistical structure of images, music, or stories and sample from what it has learned to create new outputs. section 16.0 section 20.1.1

An image from a prompt

An image generator can turn a prompt describing a hand-drawn science-fiction landscape into a new image. The prompt steers the output without special-purpose programming or retraining. section 16.0 section 1.8

Figure 16.1 An image generated with the generative image software Midjourney. The prompt was “A hand-drawn, sci-fi landscape of residents living in a building shaped like a red letter K.”
figure

Compare the generated image with the prompt describing its landscape and letter-shaped building. section 16.0

Many generative AI applications use large foundation models trained through self-supervised learning. Their training targets come from the input itself: a model might predict the next word in a sentence or reconstruct a sharp image from a noisy one. This allows training on large amounts of unlabeled data. section 1.8 section 20.1.1

The resulting models can be prompted for many tasks, including chatbot responses and image generation. Generative tools can augment human creative work, but a generated output still needs human interpretation and direction. section 1.8 section 16.0

How Deep Learning with R, Third Edition covers it

How deep it goes
Explains self-supervised reconstruction and sampling from learned structure, without deriving the underlying mathematics.
Examples
Illustrates generation with a prompted Midjourney image, next-word prediction, and image denoising.
What you can do after
Evaluate and understand how generative models learn patterns and produce content in response to prompts.
How it connects
Connects generative modeling to deep learning, foundation models, self-supervised learning, and latent spaces.

Also explained in

Compare how 29 books explain generative modeling →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Deep Learning with R, Third Edition. The section links point to the parts of the book it draws on.