Each token ID indexes a learned embedding vector, but that vector is only a starting point. The sequence then passes through a transformer, where self-attention lets every token look at every other token and update its own representation. The output is a sequence of contextual embeddings: the vector for "boat" already encodes that the boat is paper and that it is drifting. This is why the encoder's output is a sequence, not one vector — each position carries meaning shaped by its neighbors.
How Text-to-Video AI Works Under the Hood
From Prompt to Conditioning Signal
Tokens Become Contextual Vectors
2 / 4
Those token IDs are just addresses. Each one points to a learned vector, a list of numbers, but on its own that vector is context-free. The word "boat" would look identical whether it is a paper boat or a battleship.
0:00 / 0:00