Skip to content
Learn Netverks

Lesson

Step 3/36 8% through track

gen-ai-vs-discriminative-preview

Generative vs Discriminative ML

Last reviewed Jun 1, 2026 Content v20260601
Track mode
none
Means
Read / quiz
Reading
~1 min
Level
beginner

This lesson

This lesson teaches Generative vs Discriminative ML: generative AI patterns—LLMs, prompting, retrieval, safety, and integration habits for real assistants and copilots.

Teams apply Generative vs Discriminative ML in every serious Generative AI project—skipping it leaves blind spots in analysis and reviews.

You will apply Generative vs Discriminative ML in contexts like: Chat products, code assistants, search augmentation, and internal knowledge tools.

Study explanations, case studies, and MCQs—this topic is read/quiz focused without a code runner.

At the start of the track—complete before lessons that assume transformer and token vocabulary.

Product teams mix both: a classifier routes tickets; a generator drafts replies. Knowing which paradigm you need saves months of misfit tooling.

When to use discriminative models

  • Fixed labels with abundant labeled data (fraud, churn, intent ID)
  • Need calibrated probabilities for thresholds
  • Smaller, cheaper models on tabular or vision features

See AI track supervised learning lessons for baselines.

When to use generative models

  • Open-ended language, code, or creative variation
  • Few-shot instructions instead of thousands of labels
  • Assistants that must synthesize prose from many sources (with RAG)

Hybrid pattern

# Pseudocode: route then generate
intent = classifier("user message")  # discriminative
if intent == "billing":
    draft = llm.generate(policy_prompt + user_message)  # generative
else:
    draft = template_fallback(intent)

Important interview questions and answers

  1. Q: Can one product use both?
    A: Yes—routing, safety classifiers, and RAG rerankers are often discriminative around a generative core.

Self-check

  1. When would you refuse an LLM for a churn model?
  2. What does the hybrid pseudocode optimize?

Tip: Sketch a flowchart: route (discriminative) → draft (generative) before buying GPU hours.

Interview prep

When classifier?

Fixed labels, need calibrated probabilities, tabular features—classic ML often wins.

Hybrid pattern?

Discriminative router picks workflow; generative model drafts language.

Interview tip Lesson completion confidence

Can you explain this lesson in 30 seconds without reading notes?

Not saved yet.

Check yourself

Multiple choice — immediate feedback.

Discussion

Past discussion is visible to everyone. Only logged-in users can post comments and replies.

Starter discussion topics

  • When classic ML?
  • Hybrid route+draft?

Sign up or log in to post comments and sync lesson progress across devices.

No discussion yet. Be the first to ask a question.

Jump