Learn from error
The model sees text with the next token hidden, makes a prediction, and measures how far that prediction is from the observed answer. Backpropagation assigns responsibility for the error, and an optimizer adjusts billions of numerical parameters.
Repeated across large datasets, this process compresses many statistical patterns of language into the model weights.