Intermediate Dimension
What is Intermediate Dimension?
In one sentence: The intermediate dimension is the larger size that the feed-forward network expands each token to before shrinking it back.
The FFN usually stretches each token's numbers to several times the hidden dimension, does its work in that bigger space, then compresses back. That wider middle part gives the model more room to compute.
What does Intermediate Dimension look like?
A model with a hidden dimension of 4,096 might use an intermediate dimension of 14,336.
Why does Intermediate Dimension matter?
It strongly affects how many parameters a model has and how much it can learn.
Last updated · Fact-checked by The AI Math
Linking to this page from a lesson or article? <a href="https://getaimath.com/dictionary/intermediate-dimension/">Intermediate Dimension, explained simply</a> (The AI Math Dictionary)