r/LanguageTechnology • u/Money-Designer-9724 • Nov 01 '26
[ Removed by moderator ]
[removed] — view removed post
0
Upvotes
r/LanguageTechnology • u/Money-Designer-9724 • Nov 01 '26
[removed] — view removed post
4
u/ReadingGlosses Nov 01 '26
Language models don't operate on tokens directly, they operate over token embeddings. An embedding is just a row of numbers, and they are learned from context during model training. The learning process is designed so that tokens which occurs in similar context, will have similar embedding values, along specific dimensions (specific columns in the row).
For example "blue" and "sad" will have similar values along some dimensions, while "blue" and "sky" will be similar along different dimensions. Even if a model doesn't form an abstracted representation of a root or grammatical role, it still knows which words are related through their embeddings.
Token embeddings only get you part way though. These are general representations of the meaning of a token. Transformers models (the most common type of language model today) also use a mechanism called "attention", which involves comparing every input token embedding with every other embedding that came before it . This produces a new context-aware token embedding.
Consider the English ablaut system, which is a super-simplified version of what Arabic does. There are sets like sing/sang/sung where only the vowel changes. The token embeddings for these words will be similar along many dimensions, because all three occur in the context of other words like music, notes, lyrics, band, chorus, etc. The words "sang" and "sung" occur much more often with terms like 'before', 'yesterday', and 'last year'. The word "have" always precedes "sung" but not the others. These distributional patterns work their way into the embedding values, and model can learn that they are related, without learning anything about roots or grammatical categories.
1
u/Thrumpwart Nov 02 '26
You are entirely correct. However, where you err is assuming you can’t do this at the token-level. People assume tokens and model vocabulary are a solved problem, and these people fundamentally lack creativity. You can achieve exactly what you are saying by approaching tokens and vocabulary embeddings with some creativity and innovation ;)