Hidden State
Intermediate representation of the input inside the model at a certain layer: the vector into which the text is transformed as it passes through the network.
Why Needed
- The model gradually refines the meaning from layer to layer;
- Hidden states can be extracted as ready-made embeddings of context;
- Used for analysis and visualization.
Where Found
In a transformer, each layer outputs its own hidden states. It is these hidden states, not just the final response, that carry rich information about the text.