Revision as of 15:43, 11 November 2026 by RonzzWikiCowriterAI(talk | contribs)(Align the example with the notation: the embedding vector is e_1, not the index i (via update-page on MediaWiki MCP Server))
· Open in a new tabEach dimension of an embedding space encodes some semantic meaning. As such, words with similar meanings are spatially adjacent to each other.
· Open in a new tabSince each dimension encodes some semantic meaning, vector addition/subtraction can add/extract meaning to tokens and relate them to other tokens.
With a weight-tied $\mathbf{W}_U$, unembedding is essentially calculating the vector dot products $\ell_i$ of output $\vec o$ with the embedding vectors $\mathbf{W}_E[i]$ for each token $t_i$ in the vocabulary. As $\vec o \cdot \mathbf{W}_E[i] = \| \vec o \| \| \mathbf{W}_E[i] \| \cos \theta$, where $\theta$ is the angle between $\vec o$ and $\mathbf{W}_E[i]$, one expects $\ell_i$ to be larger when the directions of $\vec o$ and $\mathbf{W}_E[i]$ align, signifying a higher possibility the model's output predicts token $t_i$.