Generative AI and Language Models
Next-token Prediction
The basic mechanism behind writing, summarization, and reasoning behavior.
In this lesson
Lesson goals
- Probabilities over alternatives
- Token-by-token generation
- Sampling affects outputs
Core idea
The basic mechanism behind writing, summarization, and reasoning behavior.
1. Probabilities over alternatives: understand it in context, identify inputs and outputs, and define how the result will be verified.
2. Token-by-token generation: understand it in context, identify inputs and outputs, and define how the result will be verified.
3. Sampling affects outputs: understand it in context, identify inputs and outputs, and define how the result will be verified.
Practical example
Consider a real application of “Next-token Prediction.” Start small, identify available data, and compare the system with a clear baseline before expanding it.
Check your understanding
- Explain “Next-token Prediction” in your own words.
- Give one appropriate and one misleading application.
- What risk or limitation should be monitored?

