Every transformer block has two parts, and attention is only the first.
The second is a small feed-forward network applied to each position separately.
It is the same network at every position, applied independently to each.
It expands the vector to about four times its size, applies a non-linearity, and projects back.
A 4,096-dimension model expands to roughly 16,000 in the middle of this layer.
The division of labour is clean and worth remembering.
Attention moves information between tokens.
The feed-forward layer processes what each token now holds.
Without attention, no token could learn anything from any other.
Without the feed-forward layer, the model would be little more than repeated averaging.
These layers hold roughly two thirds of the parameters in a typical language model.
That makes them the main place where knowledge appears to be stored.
Research treats them as a key-value memory, with patterns retrieving learned facts.
Editing a specific fact in a model usually means editing weights here.
Mixture-of-experts replaces this layer with many copies and routes each token to a few of them.