What Does GPT Actually Learn?
By Dr. Hira Benish
People often say that GPT has billions of parameters. The phrase sounds impressive—but what is a parameter, and what does it mean for one to learn?
We can understand the central idea without starting with billions. Let’s begin with only two, then carefully scale the same idea toward language models.
Two numbers can define a behavior
Imagine a tiny model that receives a number x and produces a prediction ŷ. Its complete behavior is controlled by a weight and a bias.
Turn “wrong” into a direction
Suppose the hidden rule is y = 2x + 1, and we observe five examples: (0,1), (1,3), (2,5), (3,7), and (4,9). Our model begins badly at w = −1 and b = 0.
At x = 2 it predicts −2 instead of 5. Training measures these errors over the examples and adjusts the weight and bias to reduce their mean square.
GPT learns transformations, not sentences
A language model does not store a little dictionary of answers. It repeatedly transforms numerical representations, using learned matrices and biases.
The same idea—now one vector is transformed by a whole matrix of learned weights.
Scale the same principle
Modern language models contain many kinds of learned numbers: token embeddings, attention projections, feed-forward layers, normalization scales, and output weights. The count grows quickly because high-dimensional vectors are repeatedly transformed by large matrices across many layers.
If a layer maps a 4,096-dimensional vector to another 4,096-dimensional vector, one dense weight matrix alone contains 4,096 × 4,096 ≈ 16.8 million values. Repeat several matrices across many Transformer blocks and the total rapidly reaches billions.
Learning is adjustment at scale
A parameter is just a number. But billions of jointly trained parameters can build rich representations of language and turn context into a probability distribution over what comes next.
It learns a large distributed system of numerical transformations: how to represent tokens, how to combine information across context, how to build increasingly useful internal representations, and how to assign scores to possible next tokens. Training repeatedly adjusts those parameters so that the model gives higher probability to appropriate continuations.