3.5 What "generative" AI means

Week 3
Pick a depth · ✨ generates it for this lecture

What "generative" AI means

Most of the AI in weeks 1 and 2 was discriminative: it takes an input and outputs a label or a number — is this spam, what is this price. Generative AI does something different and newer: it creates new content — text, images, audio, video, code — that did not exist before.

Discriminative vs. generative

The distinction is worth stating crisply. A discriminative model judges: given an email, is it spam? A generative model produces: given a prompt, write an email. One sorts existing things into categories; the other generates new examples. Generative AI is what powers chatbots, image generators, voice cloning, and code assistants.

How generation works

A generative model has learned the statistical patterns of its training data so thoroughly that it can produce new samples consistent with those patterns. A language model generates text token by token (3.4). An image generator, often a diffusion model, starts from random noise and repeatedly refines it, guided by your text prompt, until a coherent image emerges. Because generation involves sampling — making probabilistic choices — the same prompt can yield different outputs each time. That randomness is why generative AI feels creative, and why it is not perfectly repeatable.

Foundation models

Many generative systems are foundation models: very large models trained on broad data that can then be adapted to many specific tasks. One base model can summarize, translate, answer questions, and write code, because the general-purpose patterns it learned transfer across tasks. This generality is a defining feature of the current AI wave.

A worked example

Ask an image generator for "a watercolor painting of a fox reading a book in a library." It has never seen that exact image, but from millions of captioned images it learned what foxes, watercolor style, books, and libraries look like, and it composes a brand-new image matching the description. It is not retrieving a stored picture; it is generating one. Ask again and you get a different fox — generation, not lookup.

Tip: highlight any passage above to ask the tutor about it, or to generate practice problems specifically on what you selected.
Ask the tutor for an explanation, a worked example, or a hint. Highlight a passage on the left to ground the question in that text.