# Intermediate Dimension

- **Canonical URL:** https://getaimath.com/dictionary/intermediate-dimension/
- **Topics:** [Transformer Architecture](https://getaimath.com/dictionary/category/transformer-architecture/)
- **Last updated:** 2026-11-25

## 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.

![Transformers & Attention: The Smart Highlighter — Simple cartoon diagram showing how a Transformer reads a whole sentence at once and shines a bright highlighter beam from the word "IT" back to "trophy" so it knows what "IT" means.](https://getaimath.com/diagrams/transformer-architecture.png)
*Napkin Diagram (Transformer Architecture): Older AI read word-by-word and often lost track of earlier words; a Transformer highlights which words connect to which.*

## What is an example of Intermediate Dimension?

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.

## Related Concepts

- [Hidden State](https://getaimath.com/dictionary/hidden-state/): A hidden state is the list of numbers representing a token at some point inside the model.
- [Model Depth](https://getaimath.com/dictionary/model-depth/): Model depth is how many layers, or Transformer blocks, a model has stacked on top of each other.
- [Hidden Dimension](https://getaimath.com/dictionary/hidden-dimension/): The hidden dimension is the number of values used to represent each token inside the model.
- [Model Width](https://getaimath.com/dictionary/model-width/): Model width is how big each layer is, mostly set by the hidden dimension and number of attention heads.
- [Transformer Block](https://getaimath.com/dictionary/transformer-block/): A Transformer block is one repeated layer of a Transformer, usually made of attention, a feed-forward network, normalization and residual connections.
- [Architecture Configuration](https://getaimath.com/dictionary/architecture-configuration/): An architecture configuration is the list of design settings that define a model's structure, like its number of layers, hidden size and attention heads.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/intermediate-dimension/)
