Trained and random weights
The same architecture can produce very different predictions. What changes when a model learns?
In this investigation you will compare two sets of weights in the same two-layer transformer. Your target is mat after the cat sat on the. Change the prompt and target, run the comparison, and inspect where the trained model and random reference differ.
What this experiment can tell you
Section titled “What this experiment can tell you”Both runs use the same 4,496-parameter architecture and vocabulary. The trained weights learned from a small synthetic grammar; the untrained weights come from a fixed random seed. The comparison measures probabilities directly, without sampling a word.
Lower loss for the baseline mat target shows that these trained weights better predict that target; a different target can favor the random reference. It does not show the path training took, nor that the model is better on every possible prompt. To follow actual gradient updates, open the training microscope in the backpropagation chapter.
Spotted a mistake, a confusing explanation or a broken widget? Report a problem with this page