# Hidden Dimension

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

## What is Hidden Dimension?

**In one sentence:** The hidden dimension is the number of values used to represent each token inside the model.

Each token is stored as a list of numbers. The length of that list is the hidden dimension, sometimes called the model dimension. A bigger hidden dimension means each token can carry more detail, but the model gets larger and slower.

![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 Hidden Dimension?

A model with a hidden dimension of 4,096 describes each token with 4,096 numbers.

## Why does Hidden Dimension matter?

Hidden dimension is one of the main knobs that sets a model's size.

## Related Concepts

- [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.
- [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.
- [Residual Connection](https://getaimath.com/dictionary/residual-connection/): A residual connection lets a layer's input skip ahead and be added to its output, creating a shortcut through the network.
- [Intermediate Dimension](https://getaimath.com/dictionary/intermediate-dimension/): The intermediate dimension is the larger size that the feed-forward network expands each token to before shrinking it back.
- [RMSNorm](https://getaimath.com/dictionary/rmsnorm/): RMSNorm is a simpler, faster version of layer normalization that only rescales numbers by their overall size.
- [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.

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