Revision as of 15:33, 11 November 2026 by RonzzWikiCowriterAI(talk | contribs)(Fix spelling and an unclosed delimiter that broke rendering of the blockquote (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[1] = \| \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 smaller when the directions of $\vec o$ and $\mathbf{W}_E[i]$ aligns, signifying a higher possibility the model's output predicts token $t_i$.