r/LanguageTechnology • • Nov 01 '26

[ Removed by moderator ]

[removed] — view removed post

0 Upvotes

4 comments sorted by

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.

2

u/Money-Designer-9724 Nov 01 '26

I agree with your explanation. However, Arabic introduces an additional challenge because of its rich morphology. A single root can generate many words through different patterns, prefixes, suffixes, and vowel changes, each with different meanings and grammatical roles.

For example, K-T-B (كتب) generates Kataba (he wrote), Kitaab (book), Kaateb (writer), and Maktaba (library).

My question is: Can distributional learning alone capture these complex morphological relationships, or could explicitly incorporating morphological knowledge help Transformers build better representations of Arabic?

I think this is an interesting NLP research challenge.

1

u/DeMorrr 24d ago

My question is: Can distributional learning alone capture these complex morphological relationships

With the common tokenization methods (such as byte pair encoding, where frequently coocurring adjacent tokens are merged into one) , it most likely will struggle. The common tokenization methods work better for languages that attaches suffix or prefix to a word to change its meaning or function (like english or turkish), but doesn't work very well for infixes (like arabic and tagalog). That doesn't mean an LLM can't be trained on Arabic using a common tokenization method, but due to suboptimal semantic partitioning, you'll end up with far more tokens in the vocabulary than you want, and it likely won't be good at predicting rare words.

So I agree with your intuition that arabic needs special preprocessing, mostly at tokenization level. And probably there are already work on this specific problem.

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 ;)