Discriminative versus Generative AI in 60 seconds
Every AI model in the world is doing one of two things: drawing a line between things, or creating new things. Once you see this split, model choice becomes obvious.
A bouncer at a club is discriminative: looks at you and decides "in" or "out". An artist drawing a portrait is generative: produces something new that did not exist before.
- Discriminative models answer: "What category does this input belong to?" or "What is the predicted value?". Examples: spam or not spam, house price, image of a cat or dog.
- Generative models answer: "Given this prompt, produce a plausible new sample." Examples: write an essay, draw a logo, compose music.
Mathematically, discriminative models learn P(label | input). Generative models learn P(input) and then sample from it. You do not need to compute this, but knowing the framing helps you read papers.
Quick recall
3 prompts · think before you flip
Prompt 1 of 3
Define discriminative vs generative in one sentence each.
Quiz time
1 question · tap an answer to check it
1. A model that decides if a tweet is positive or negative is
Finished lesson 1.3?
Mark complete to update your module progress and unlock the streak.