Post
The process can get partly visualized, I think, see below.
This is a fascinating deep dive by Welch Labs into how LLMs "grok", meaning to move beyond just memorization to generalization after continue to train for long time while seemingly making to progress. Turns how waves, trigonometry and identity functions are everywhere. Highly recommended. #MLSky
The part about embeddings? That is the first step in any modern transfer based model. From that point on there no tokens inside the LLM, only those embeddings and other matrices. Tokens only materialize in the last output step again.
0 reposts0 likes
The first step maps tokens to embeddings 1:1, and then from there they get passed into an attention layer. It's very reasonable to think of those embeddings, at least in early layers, as tokens. I'd have to dig up where I read it but early layers often do "token merging" so it gets fuzzy further in.
But I'm much less interested in that than I am in what you said here: bsky.app/profile/fry6.... Can you show me some data or visuals of this phenomenon in practice, just so I know what you mean?
A combination of tokens inside those embeddings plus earlier attention can easily overshadow any later tokens when LLMs calculate that those earlier ones are highly relevant. This all happens inside the embeddings and later the QKV matrices etc, completely independent from the actual tokens.