Models in the world / 5 of 6

Understanding generative AI

8 minOpening your notebook…

What you’ll learn

  • Explain the main idea of “Understanding generative AI” in your own words.
  • Trace a concrete example and identify the assumptions behind it.
  • Apply the principle in a practice problem and recognize a common failure.

The idea, intuitively

Generative AI creates samples such as text, images, or audio from learned patterns. A prompt conditions the output but does not turn a model into a database of verified facts. The same input can produce different samples depending on the decoding method and random seed.

Start by describing an input, an output, and a useful success criterion in your own words. You do not need programming experience for this school. Keep a distinction between the model, the data it learned from, and the application that uses its output. This distinction will make later topics much easier to reason about.

Under the hood

An autoregressive model factors a sequence probability into conditional next-token probabilities. Generation repeatedly predicts a distribution, selects a token, appends it, and continues until a stopping rule. This predicts plausible continuations, not guaranteed truths.

P(x1:n)=∏t=1nP(xt∣x<t)P(x_{1:n})=\prod_{t=1}^{n}P(x_t\mid x_{<t})
xₜ is the token at position t. The product combines the probability of each token given all the tokens that came before it.
A useful caution

Generated citations and numbers need independent verification.

A worked example

A drafting assistant can suggest three email openings. A person still checks names, factual claims, and tone before using the draft.

How to use this way of thinking

When considering a new AI use case, write down a non-AI baseline, identify a realistic failure, and decide how to measure it. If the system cannot express uncertainty or offer a useful fallback, improve the surrounding workflow before adding a more complex model.

Try it yourself

Write two checks before using a generated product description.

Key takeaways

  • A distribution conditioned on preceding tokens.
  • Generated citations and numbers need independent verification.
  • Check the assumptions with a small example before applying this idea to a larger system.

Check your understanding

0/2 checked

Use feedback to learn. Quiz scores and lesson completion are tracked separately.

1What does next-token prediction estimate?
2True or false: Next-token prediction guarantees factual truth.
Go to lesson completion

Further reading

Original papers and reference material for this school. External resources may be in English and require internet access.

Google: Introduction to machine learning (opens a new tab)

Finish this lesson

Mark this lesson complete when you’re ready to continue.

Start with a question

Introduction to AIAI FoundationsA brief history of AIAI FoundationsTypes of AIAI FoundationsAI, ML, and deep learningAI FoundationsUnderstanding generative AIAI FoundationsEthics, limitations, and responsibilityAI FoundationsLinear algebra for learning systemsMathematics for AIVectors, matrices, and similarityMathematics for AICalculus: measuring changeMathematics for AIDerivatives and gradientsMathematics for AIProbability and statisticsMathematics for AIOptimization and objectivesMathematics for AI
K to open · Escape to close