How AI Understands Meaning
Think of a starting embedding as an initial location in a city of meaning. The model then updates that representation using the surrounding context.
Use the arrows below, the dots above, or your keyboard arrow keys to move through the stages.
First, the Word Becomes a Token ID
A token ID is a lookup number created by a tokenizer. Here, 9827 is an illustrative value; another tokenizer may assign a different ID.
Then, the Token ID Selects a Starting Embedding
The token ID selects one row from the model's embedding table. That list of numbers is the token's starting embedding, before context updates it.
Visualize the Starting Embedding
Simplified example: the numbers place a token in a meaning space before the model uses the surrounding context.
Similar starting embeddings can appear near one another. This 2D view uses illustrative values; real embeddings have many more dimensions.
Starting Embeddings Form Neighborhoods
Click any word to lock the lines, see distances, and inspect a clear sample embedding. Click the background to reset.
In this simplified projection, 'cat' and 'dog' are closer than 'cat' and 'airplane'. Real relationships are more complex.
Watch the Pattern Form
Same Token, Different Contextual Representation
The token starts with the same embedding, then context changes its internal representation. That helps the model distinguish fruit from a company name.