Module 1 Lesson 3: Discriminative vs. Generative AI
Predicting labels vs. creating new data. Understanding the fundamental shift in how AI assists us.
Discriminative vs Generative AI
To understand the current "AI Revolution," you need to understand the shift from Discriminative AI (which we've had for decades) to Generative AI (the new frontier).
1. Discriminative AI (The Classifier)
Discriminative models are essentially labeling machines. They answer questions like:
- "Is this email spam or not spam?"
- "Is this a picture of a dog or a cat?"
- "Will this customer churn next month (Yes/No)?"
Input: Data $\rightarrow$ Output: A Label or Probability.
2. Generative AI (The Creator)
Generative models are content machines. They answer prompts like:
- "Write an email to my boss about my promotion."
- "Draw a cat riding a surfboard in the style of Van Gogh."
- "Write a Python script to calculate Fibonacci numbers."
Input: A Prompt $\rightarrow$ Output: New, synthetic data (Text, Image, Code).
Side-by-Side Comparison
| Feature | Discriminative AI | Generative AI |
|---|---|---|
| Primary Goal | Classify or Predict | Create and Synthesis |
| Output Type | Discrete Labels / Numbers | Complex Content (Text/Image) |
| Example Use | Spam Filter | ChatGPT Writing a Resume |
| Thinking Mode | "Which bucket does this go in?" | "What would be a likely next word?" |
Visualizing the Shift
graph LR
subgraph Discriminative
D_In[1,000 Cat Photos] --> D_Model[Model]
D_Model --> D_Out[Label: 'CAT']
end
subgraph Generative
G_In[Prompt: 'Draw a Blue Cat'] --> G_Model[Model]
G_Model --> G_Out[Image: New Blue Cat]
end
💡 Guidance for Learners
Discriminative AI is great for automation and decision-making. Generative AI is great for brainstorming, creation, and communication. Most modern apps use both!
Summary
- Discriminative AI focuses on boundaries and categories.
- Generative AI focuses on the distribution of data to create new instances.
- Moving from "Predicting" to "Creating" is why AI feels so different today.