Skip to content
EshAlora · AI Behavior Lab
Česky English

Model vocabularies: the method, the numbers and all the maps

The appendix to the article on model vocabularies. It has everything needed to check the numbers from the article: the method, the models, the tables, the nearest neighbors and the images that did not fit into the article.

What was measured and how

What was downloaded. From each model, only the files with the input table (embedding) and the output table (unembedding, often called the "LM head"), not the whole weights. The measurement took place overnight from November 19 to 20, 2026. It is exploratory, with no hypotheses written down in advance.

Maps. The table of tokens was first reduced by principal component analysis (PCA) to 50 dimensions and then by UMAP to a plane (cosine distance, 30 neighbors). The color of a dot says which script the token is written in. For Latin script, a whole word and a piece of a word are told apart. The labeled map of Gemma 4 31B has 256,900 of its 262,144 tokens, with the most outlying percent left out; the labels are typical tokens of the 70 largest clusters.

Nearest neighbors. For a token, the table is searched for the tokens with the highest cosine similarity. Before the calculation, each row of the table was normalized to a length of 1; the tables were not centered and extreme dimensions were not removed (centering was done only before PCA for the map). The lists for the four illustrative words below have twelve entries each, exactly as the measurement saved them.

Scripts in the vocabulary. The share of tokens written in Chinese characters (including Japanese kanji; the scripts are not told apart) and in Cyrillic, out of the whole vocabulary.

Word in Latin script with a Chinese neighbor. From a random sample of 2,000 tokens, the ones that are a whole word in Latin script were taken, and the check was how often a token in Chinese (or in Cyrillic) is among their ten nearest neighbors. This was counted separately in the input and in the output table. How many whole words in Latin script the sample contained is not given in the saved results; a difference of one or two percentage points may therefore be chance.

Input versus output table. Two measures: the average cosine similarity of the same token in the input and output tables (close to 0 means the addresses are unrelated) and the share of identical nearest neighbors.

Agreement between models. On 63 English words that all the vocabularies have: 19 animals, 11 colors, 9 feelings, 13 kinds of food and 11 family members (the full list is in the image with the close-ups below). For each model, a matrix of distances between all pairs of words in the input table was computed, and the matrices of two models were compared by correlation. The technical name of the method is RSA. 1 means the same arrangement.

Czech as a whole token. The same list of 113 common Czech words for all models (animals, things, colors, emotions, family, time, nature, verbs, pronouns and adverbs), built by hand, not by frequency. The check was whether the word, including the space before it, is one token, and how many tokens there are per word on average. One word makes just under one percentage point. For Kimi K3 the average number of tokens per word is missing: the calculation could only search its tokenizer (tiktoken), not use it to split words. The share of whole words is measured for Kimi K3.

Models

The names are as they appear in the article. The parameter count is the total, according to the maker.

model total parameters (billions) tokens in the vocabulary address size
Qwen 3.5 0.8B 0.8 248,070 1,024
Qwen 3.5 27B 27 248,070 5,120
Qwen 3.8 27B 27 248,077 5,120
Qwen 3.5 397B-A17B 397 248,070 4,096
Qwen 3.8 2.4T-A95B 2,400 248,077 8,192
Gemma 4 E4B 8 262,144 2,560
Gemma 4 31B 30.7 262,144 5,376
GLM 5.3 753 154,856 6,144
Kimi K3 2,800 163,584 7,168
Mistral Large 4 1,050 204,800 6,144
Muse Spark Open 816 201,818 8,192

The repositories the tables were downloaded from: Qwen/Qwen3.5-0.8B, Qwen/Qwen3.5-27B, Qwen/Qwen3.8-27B, Qwen/Qwen3.5-397B-A17B, Qwen/Qwen3.8-2.4T-A95B, zai-org/GLM-5.3, moonshotai/Kimi-K3, mistralai/Mistral-Large-4-1T-A52B and meta-models/Muse-Spark-Open-816B-A42B (only the part with the input table). Gemma 4 E4B and Gemma 4 31B are the instruction-tuned versions (it), not the base ones: google/gemma-4-E4B-it and google/gemma-4-31B-it. Qwen 3.5 0.8B has no card on the site.

Two names need explaining. Qwen 3.8 2.4T-A95B is the open checkpoint that, according to the maker, Qwen 3.8 Max is based on. Muse Spark Open has the same base model as Muse Spark 1.3, but it is not the same model.

The output table is measured for seven models: Qwen 3.5 27B, Qwen 3.8 27B, Qwen 3.5 397B-A17B, Qwen 3.8 2.4T-A95B, GLM 5.3, Kimi K3 and Mistral Large 4. For Muse Spark Open, the output file was not downloaded. For Qwen 3.5 0.8B and Gemma 4 E4B, the output was not computed. Gemma 4 31B shares input and output in one table; I worked out the output by multiplying by the gain of the final normalization, and it came out as nonsense (more under Limits).

Numbers

Scripts in the vocabulary

model Chinese (%) Cyrillic (%)
Qwen 3.5 and Qwen 3.8, all five 23.7 7.5
Gemma 4 E4B and Gemma 4 31B 9.2 5.1
GLM 5.3 19.0 6.4
Kimi K3 42.7 1.3
Mistral Large 4 3.7 9.7
Muse Spark Open 6.7 11.2

A word in Latin script and its neighbors in another script

The percentage of whole words in Latin script (from a random sample of 2,000 tokens) that have a token in the given script among their ten nearest neighbors. The last column is the same in the output table.

model Chinese neighbor, input (%) Cyrillic neighbor, input (%) Chinese neighbor, output (%)
Qwen 3.5 0.8B 6.94 10.88
Qwen 3.5 27B 3.83 3.00 11.67
Qwen 3.8 27B 4.26 3.43 12.50
Qwen 3.5 397B-A17B 8.08 3.62 7.47
Qwen 3.8 2.4T-A95B 7.65 4.88 9.53
Gemma 4 E4B 2.28 2.56
Gemma 4 31B 4.36 3.13
GLM 5.3 3.61 1.96 7.20
Kimi K3 5.78 0.20 8.48
Mistral Large 4 1.24 3.35 3.91
Muse Spark Open 0.55 2.41

For Gemma 4 31B, the output came out at 4.28 %, but I consider that output a faulty conversion, so it is not in the table.

Input versus output table

model cosine of the same token identical neighbors (%)
Qwen 3.5 27B 0.0095 41.4
Qwen 3.8 27B 0.0093 41.2
Qwen 3.5 397B-A17B 0.0348 52.1
Qwen 3.8 2.4T-A95B 0.0185 50.3
GLM 5.3 0.0006 49.2
Kimi K3 0.0038 58.0
Mistral Large 4 0.0195 28.5

For Gemma 4 31B, the cosine came out at 0.3606 and identical neighbors at 3.5 %. The table is shared, so a high cosine is expected, but the low overlap of neighbors points to an error in the conversion.

Czech as a whole token

model as a whole token (%) tokens per word
Qwen 3.5 and Qwen 3.8, all five 31.9 1.83
Gemma 4 E4B and Gemma 4 31B 28.3 1.90
GLM 5.3 18.6 2.12
Kimi K3 10.6
Mistral Large 4 16.8 2.12
Muse Spark Open 31.0 1.85

Agreement between models

The full matrix is in the image in the article. Here, for each model, is the lowest, highest and average agreement with the other ten.

model lowest highest average
Qwen 3.5 0.8B 0.42 0.90 0.77
Qwen 3.5 27B 0.51 0.97 0.82
Qwen 3.8 27B 0.52 0.97 0.81
Qwen 3.5 397B-A17B 0.50 0.93 0.84
Qwen 3.8 2.4T-A95B 0.47 0.88 0.79
Gemma 4 E4B 0.47 0.92 0.82
Gemma 4 31B 0.52 0.87 0.78
GLM 5.3 0.54 0.96 0.85
Kimi K3 0.52 0.96 0.85
Mistral Large 4 0.50 0.83 0.76
Muse Spark Open 0.42 0.54 0.50

Without Muse Spark Open, the lowest pair is Gemma 4 31B and Mistral Large 4 (0.73), the highest Qwen 3.5 27B and Qwen 3.8 27B (0.97). The highest pair from two different makers is GLM 5.3 and Kimi K3 (0.96).

Nearest neighbors of four words

The words dog, love, king and pes (Czech for "dog") are an illustration, not a sample: common words where you can tell by eye whether the neighbors make sense. A space at the start of a token is not visible in the list. That is why some tokens seem to appear twice: Dog with a space and without one are two different entries in the vocabulary.

Input table

  • Qwen 3.5 0.8B. dog: Dog, dog, Dog, dogs, 狗, Dogs, 犬, 狗狗, cat, puppy, pet, 狗的. love: Love, Love, LOVE, love, loves, 爱, 愛, loved, loving, любовь, 爱的, любви. king: King, King, kings, queen, KING, 国王, emperor, Queen, kingdom, royal, 國王, prince. pes: Pes, Pes, pes, pesado, _pes, PES, pesante, peso, pesos, Peso, Peso, вес.
  • Qwen 3.5 27B. dog: Dog, dog, Dog, dogs, cat, Dogs, horse, 狗, dogs, puppy, pig, cão. love: Love, love, Love, LOVE, loves, loved, 爱, 愛, hate, 爱情, like, loving. king: King, King, king, kings, KING, queen, rey, König, Queen, Kings, 國王, emperor. pes: Pes, Pes, pes, PES, _pes, bes, пес, pe, вес, pese, pés, ес.
  • Qwen 3.8 27B. dog: Dog, dog, Dog, dogs, Dogs, cat, 狗, horse, puppy, pet, og, собака. love: Love, Love, love, LOVE, loves, loved, 爱, hate, 愛, 爱情, enjoy, amor. king: King, King, king, KING, kings, queen, rey, Queen, 國王, Kings, roi, bishop. pes: Pes, Pes, pes, PES, _pes, bes, пес, ес, pesado, pesante, вес, pese.
  • Qwen 3.5 397B-A17B. dog: Dog, dog, dogs, Dog, Dogs, 狗, dogs, DOG, 犬, 小狗, 狗的, 狗狗. love: Love, love, Love, LOVE, loves, loved, 爱, amor, Loves, 愛, 的爱, hate. king: King, King, KING, king, kings, 国王, queen, 國王, emperor, rey, Kings, Queen. pes: Pes, Pes, pes, PES, _pes, pesado, пес, peso, pesante, pese, bes, pés.
  • Qwen 3.8 2.4T-A95B. dog: Dog, Dog, dogs, dog, Dogs, DOG, perro, 犬, 狗, chien, chiens, dogs. love: Love, Love, LOVE, love, loves, loved, Loves, amour, 爱, amor, amore, ラブ. king: King, King, kings, KING, king, rey, 国王, 킹, queen, 國王, roi, Kings. pes: Pes, Pes, pes, PES, pesado, _pes, pesante, weighing, weigh, pese, weighs, peso.
  • Gemma 4 E4B. dog: Dog, dog, Dog, dogs, DOG, Dogs, canine, 狗, соба, perro, कुत्ते, dogs. love: Love, love, Love, LOVE, loves, любовь, LOVE, 사랑, amour, loved, amor, loving. king: King, King, KING, kings, king, queen, किंग, राजा, Kings, король, KING, rey. pes: Pes, pes, Pes, PES, pesado, pesante, PES, pesa, Pesh, lour, pess, pesca.
  • Gemma 4 31B. dog: Dog, dog, Dog, dogs, DOG, 狗, Dogs, dogs, соба, 犬, Dogs, 犬. love: Love, love, Love, loves, LOVE, LOVE, loved, amor, 愛, 사랑, 爱, любовь. king: King, King, king, KING, kings, KING, queen, 王, король, किंग, короля, キング. pes: Pes, pes, Pes, des, las, por, para, su, es, al, est, le.
  • GLM 5.3. dog: Dog, Dog, dog, dogs, Dogs, cat, 狗, horse, DOG, dogs, puppy, animal. love: Love, Love, loves, love, LOVE, loved, hate, 爱, adore, loving, enjoy, like. king: King, King, kings, KING, queen, king, emperor, 国王, Kings, president, Queen, prince. pes: Pes, Pes, _pes, pes, bes, Bes, pers, Bes, pec, Tes, ps, kes.
  • Kimi K3. dog: Dog, Dog, dog, dogs, Dogs, DOG, 狗, cat, horse, 狗狗, 的狗, adog. love: Love, Love, love, LOVE, loves, loved, loving, hate, 爱, adore, loves, Loved. king: King, King, king, kings, queen, 国王, Kings, King's, Queen, emperor, prince, Queen. pes: Pes, pes, ges, pec, Ges, pis, bes, Bes, Wes, es, /es, Pis.
  • Mistral Large 4. dog: Dog, Dog, dogs, dog, 狗, Dogs, дог, Дог, og, bag, drug, dock. love: Love, Love, loves, love, loved, LOVE, hate, loving, 爱, 愛, like, lov. king: King, King, KING, kings, Kings, king, 王, König, queen, koning, emperor, 王. pes: Pes, Pes, PES, pec, PES, pes, пес, pis, Пеш, ves, fes, kes.
  • Muse Spark Open. dog: Dog, DOG, dog, dogs, doc, bag, dig, horse, Dog, pig, pot, girl. love: Love, loves, LOVE, love, Love, life, loving, live, learning, hope, loan, like. king: King, kings, King, ring, queen, Lord, lord, skin, king, Kings, bird, pig. pes: Pes, Pes, PES, pul, lis, ras, cen, pel, ves, bes, tem, pep.

Output table

  • Qwen 3.5 27B. dog: Dog, dog, Dog, 狗, dogs, 狗的, Dogs, 犬, 狗狗, собака, dogs, canine. love: Love, Love, love, LOVE, loves, любовь, 愛, любви, 爱, 爱的, Liebe, 사랑. king: King, King, KING, 国王, kings, king, queen, 國王, 킹, 皇帝, الملك, キング.
  • Qwen 3.8 27B. dog: Dog, dog, Dog, 狗, dogs, 狗的, Dogs, 狗狗, 犬, собака, dogs, DOG. love: Love, Love, love, LOVE, loves, любовь, 愛, любви, 爱, 사랑, Liebe, amor. king: King, King, KING, king, 国王, kings, queen, 킹, 國王, الملك, キング, König.
  • Qwen 3.5 397B-A17B. dog: Dog, dog, Dog, 狗, dogs, собака, 狗的, соба, 犬, DOG, собаки, Dogs. love: Love, love, Love, LOVE, любовь, 사랑, любви, 愛, loves, 爱, Liebe, liefde. king: King, King, KING, king, 国王, الملك, kings, キング, 國王, 킹, 왕, queen.
  • Qwen 3.8 2.4T-A95B. dog: Dog, dog, Dog, 狗, dogs, 犬, 狗的, собака, соба, 狗狗, สุนัข, DOG. love: Love, love, Love, 사랑, любовь, любви, LOVE, 愛, Liebe, liefde, الحب, รัก. king: King, King, king, KING, 国王, الملك, キング, 킹, kings, 國王, коро, 왕.
  • GLM 5.3. dog: Dog, dog, Dog, dogs, 狗, DOG, 狗狗, Dogs, собак, dogs, дог, canine. love: love, Love, LOVE, Love, любовь, любви, loves, Liebe, любов, 爱情, 愛, loved. king: King, King, KING, 国王, kings, king, キング, queen, цар, Kings, König, kingdom.
  • Kimi K3. dog: Dog, Dog, dog, 狗, dogs, 狗狗, DOG, 狗的, 的狗, 犬, Dogs, canine. love: Love, love, Love, LOVE, loves, loves, loved, loving, 爱情, lov, 愛, adore. king: King, King, kings, 国王, king, King's, queen, kral, kingdom, Kings, (invalid character), König.
  • Mistral Large 4. dog: Dog, dog, Dog, 狗, dogs, дог, Dogs, dogm, Hunde, (invalid character), perro, honden. love: love, Love, Love, 爱, любовь, liefde, LOVE, любви, 'amour, 愛, loves, Liebe. king: King, King, KING, king, kings, koning, KING, الملك, König, 王, राजा, queen.

An "invalid character" is a token that is not a whole character on its own (part of a multibyte character), so it cannot be printed.

The output table of Gemma 4 31B gave the neighbors light, hand, glass, bad, car, coffee for dog, dark, safe, right, clean for love, and coastal, peer, peace, trial for king. That makes no sense and points to an error in the conversion, not to a property of the model.

Maps that did not fit into the article

All the input tables side by side

Eleven vocabulary maps in a grid, each a different shape, a color legend at the bottom right
The input tables of all eleven models. Colors in the legend at the bottom right. The size and position of the islands cannot be compared between maps.

Four markedly different shapes side by side. The description of the shape is an impression from the map; none of it is measured.

Map of Qwen 3.5 27B with islands and Chinese apart in orange
Qwen 3.5 27B: islands and a separate Chinese continent
Map of Gemma 4 E4B: thin bands and small islands
Gemma 4 E4B: bands and small islands by script
Map of Mistral Large 4: one large hazy cloud
Mistral Large 4: one hazy cloud
Map of Muse Spark Open: an oval on the left and a large cloud on the right
Muse Spark Open: a different shape; for three illustrative words, the neighbors look like the word itself

Input and output tables in other models

In each image, the input table is on the left and the output table on the right, with the cosine of the same token and the share of identical neighbors in the label.

Two maps of GLM 5.3, both with islands
GLM 5.3. The input map is ordered, and so is the output one.
Two maps of Kimi K3: a cloud and an orange area on the left, scattered small islands on the right
Kimi K3.
Two maps of Mistral Large 4: a hazy cloud on the left, an elongated shape with streams on the right
Mistral Large 4.

All seven pairs in one image.

Seven rows of map pairs, the input table on the left and the output table on the right
Input (left) and output (right) tables of seven models. Gemma 4 31B is not included: its output map comes from a faulty conversion.

How the models arranged the 63 words

A grid of small plots: rows animals, colors, feelings, food, family, columns eleven models
The 63 words the agreement was measured on, in the arrangement of each model. The close-ups are rotated so they can be compared with the first column.

Gemma 4 31B in full

Map of the vocabulary of Gemma 4 31B with cluster labels and a legend
The input table of Gemma 4 31B in full, including the small island of special tokens on the left and the punctuation at the bottom. The article shows a crop.

Smaller Qwen 3.5 and Gemma 4 models

Eight maps: five sizes of Qwen 3.5 at the top, three sizes of Gemma 4 at the bottom
Qwen 3.5 in 0.8B, 2B, 4B, 9B and 27B, Gemma 4 in E4B, 12B and 31B, input tables.

The percentages in the labels above the maps come from a different pass of the calculation and differ by a few tenths from the tables above (Qwen 3.5 0.8B 6.6 against 6.94, Qwen 3.5 27B 4.1 against 3.83). The tables are what counts for the numbers. Qwen 3.5 2B, 4B, 9B and Gemma 4 12B are not in the tables.

What is already known

Maps of input tables, comparisons between models and the difference between the input and output table have been studied by research for several years. This measurement only adds what it looks like in specific open models from fall 2026, and for Czech.

  • Wen-Yi and Mimno, Hyperpolyglot LLMs: Cross-Lingual Interpretability in Token Embeddings (EMNLP 2023, arXiv 2311.18034). The input tables of the multilingual models XLM-RoBERTa and mT5. In XLM-RoBERTa the scripts can be separated almost without error (99.2 %), in mT5 they are mixed: the fifty nearest neighbors of a token come from 7.6 scripts on average, and they are often translations.
  • Khatir, Kabra and Reddy, Aligned at the Start: Conceptual Groupings in LLM Embeddings (arXiv 2406.05315). In input tables they find groups that match human categories, and they report moderate to high agreement between models. That fits the finding that the models agree on what goes with what; their measure of agreement differs from the RSA used here, though.
  • Lee, Weber, Viégas and Wattenberg, Shared Global and Local Geometry of Language Model Embeddings (arXiv 2503.21073). The input tables of different models have a similar overall and local geometry.
  • Lopardo, Harish, Arnett and Gupta, Weight Tying Biases Token Embeddings Towards the Output Space (arXiv 2603.26663). In models with separate input and output tables, the cosine of the same token comes out close to zero (0.012 for OLMo 1B) and the overlap of the ten nearest neighbors at 0.37 to 0.61 (Qwen3 8B, OLMo 1B, Pythia 2.8B). Our numbers (0.0006 to 0.035 and 28.5 to 58 %) fall in the same range. According to them, a shared table looks more like an output one.
  • Guha, Representational Capacity: Geometric Limits on Feature Representation in Transformer Language Models (arXiv 2606.02765). The main topic is different (how many nearly perpendicular directions fit into the space), but an appendix describes that in models with separate tables, the input and output vectors are largely perpendicular to each other. It states this in words, based on a chart.
  • Robinson, Dey and Chiang, Token Embeddings Violate the Manifold Hypothesis (arXiv 2504.01002). A statistical test on several open models often rejects the idea that the neighborhood of tokens is smooth. UMAP assumes such smoothness, which is why the shape of the islands on the maps is not to be read literally. The link to UMAP is my conclusion, not a claim of that paper.
  • Gubler, Tokka-Bench: Evaluating Tokenizers Across 100 Natural and 20 Programming Languages (arXiv 2610.08794). For Czech and Polish it reports 2.2 to 3.7 tokens per word depending on the tokenizer, for English 1.3 (the gpt-oss tokenizer). Our 1.83 to 2.12 is lower. But it is measured differently: here it is a list of common words, not running text, and the models are different.
  • Nayeem and others, Beyond Fertility: Analyzing STRR as a Metric for Multilingual Tokenization Evaluation (arXiv 2510.09947). Proposes a measure of "how many words stay one token", which is the same as the column for Czech as a whole token here. The paper does not measure Czech.

Limits

  • A map is not a measurement. UMAP distorts distances. The size, position and density of the islands cannot be compared between maps; only the overall shape and what lies next to what can be compared. Everything the article says about fog, islands and continents is an impression from the picture. Neither the spread nor the evenness of the points is measured.
  • "Fog on the input side" does not hold for all large models. It is visible in Qwen 3.5 397B-A17B, Qwen 3.8 2.4T-A95B and Mistral Large 4. GLM 5.3 (753 billion parameters) has an ordered input map, and Kimi K3 (2.8 trillion) has Chinese clearly apart and Latin script more like a cloud.
  • Neighbors are not meaning. The input table is the model's first step. What a word means to the model gets put together only in the later layers, which were not measured here.
  • Cosine similarity is skewed. The vectors in the tables often point in a similar direction, and a few extreme dimensions (Gemma 4 has pronounced ones) can dominate the similarity. Before the measurement, each row was only normalized to a length of 1; the tables were not centered and the extreme dimensions stayed. Uncentered tables tend to have a common direction, which can affect the neighbors. So take the numbers between makers as an illustration, not as a ranking.
  • The agreement between models rests on 63 English words from five areas. It may not hold for other words, other languages or whole vocabularies.
  • Czech: the list of 113 words is the same for all models, but it was built by hand, not by frequency; a difference of one word is just under one percentage point. The number says how many words the model has as one token, not how well it writes Czech.
  • Muse Spark Open has only its input table measured. The claim that it groups words that look alike rests on its low agreement with the others and on the neighbors of three illustrative words. The explanation (a different way of training the input table) is a guess.
  • The output table of Gemma 4 31B. Gemma has input and output in one shared table. The output was worked out by multiplying by the gain of the final normalization (mean gain 11.29, variance 30.22), and the neighbors came out as nonsense. Most likely the error is in this conversion, not in the model. That is why the output of Gemma 4 31B did not go into the article and is not given in the numbers above.
  • Weight versions. The repositories are listed above; the specific file versions are not recorded in the saved results.
  • An exploratory measurement. One night (November 19 to 20, 2026), with no hypotheses written down in advance. There was one hypothesis in advance: that Qwen, because of its large share of Chinese, would mix Chinese into Latin script more than the others. It turned out only halfway: the three highest numbers belong to Qwen models, but Qwen 3.5 27B and Qwen 3.8 27B are below Kimi K3 and roughly level with Gemma 4 31B.