Next-Token Prediction
Domain: LLM Concepts
π― Motivation
The core task of LLM pre-training: given a sequence of tokens, predict what token comes next. This simple task teaches grammar, facts, and reasoning.
π Concrete Example
Given βThe sky isβ, the model predicts blue with high probability. Given β1, 1, 2, 3, 5, β, it predicts β8β (Fibonacci). It learns patterns by always guessing the next piece.
π Analogy
Autocomplete on your phone - you type βSee youβ and it suggests tomorrow or soon or there. The model predicts the most likely next word based on what youβve typed so far.