Menu

1 / 17

Tracing Contextual Token Representations Through Transformer Layers

HackerNoon·Lian Kim·about 4 hours ago
#LKYlgCd6
#hackernoon#technology#token#output#model
Reading 0:00
15s threshold

The same token can begin with the same embedding and develop different representations. Calling a word “a vector” hides this transformation: inside a Transformer, the initial embedding is only the starting point of a computation shaped by context. Here, light refers to weight in one sentence and color in the other. By holding its token ID and position fixed while changing the preceding words, we can follow its hidden state through successive layers. Where does contextual separation emerge — and what happens to it near the output?

Following that transformation requires deciding what counts as a difference. Do we care about the vectors’ directions, their magnitudes, or the distances between them? These measurements capture different properties of the same representations and can reveal different patterns across depth.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.