BPE 模型见过多少字节?基于语料库统计数据和嵌入范数估算预训练中的字节词元接触量

arXiv cs.CL 论文

摘要

本文通过语料统计与 embedding 行范数两条独立路线,估算 Qwen3.8 等模型在预训练中单字节 token 的曝光次数,发现非法 UTF-8 字节从未被训练,而范数-频次曲线可作为逐模型的数量级推断工具。

arXiv:2611.27506v1 Announce Type: new Abstract: Byte-level BPE vocabularies retain 256 single-byte fallback tokens. When converting such a model into a pure byte-level model, these tokens provide the starting embeddings. How much training have they received? We estimate byte-token exposure in Qwen3.8 using two independent routes. First, we tokenize 540 MB of public corpora covering 40 domains and 33 languages, then combine per-domain token shares with assumed pretraining mixtures. Single-byte tokens account for 13 to 36% of tokens, mostly ASCII; genuine UTF-8 fallback bytes (0x80-0xFF) account for 0.15 to 0.27% under mainstream mixtures, or about 2 billion occurrences per trillion pretraining tokens. Fallback rates vary by four orders of magnitude across languages, reflecting how well each script is covered by the vocabulary. Second, we analyze embedding and output-matrix row norms for four open models, using untrained padding rows as a zero-exposure baseline and ordinary tokens with known frequencies for calibration. In all four models, the 13 bytes that cannot occur in valid UTF-8 remain at initialization, while every legal high byte lies in a high-frequency band. For Qwen3.8, the norm-based estimate agrees with the corpus estimate within a factor of four. The norm-frequency relation eventually folds, so inversion is useful only as a model-specific, order-of-magnitude estimate. No private data were used.
查看原文
查看缓存全文

缓存时间: 2026/11/23 09:20

# How Many Bytes Has a BPE Model Seen? Estimating Byte-Token Exposure in Pretraining from Corpus Statistics and Embedding Norms
Source: [https://arxiv.org/html/2611.27506](https://arxiv.org/html/2611.27506)
\\xeCJKsetup

CJKmath=true\\CJK@envStartUTF8rm\\CJKtilde

Liwei Zhang ZhiMing Tong Mochen Guan Linzhe Li∗ Landi Lab∗Corresponding author z@metiy\.xyzmynameistong@163\.comgmc@antiy\.cnlilinzhe@antiy\.cn

November 2026

###### 摘要

byte\-level BPE 词表都保留 256 个单字节 token 作为回退;把这样的模型改造成纯字节模型\(我们此前对 Qwen3\.8\-27B 做过\),起点正是这 256 行 embedding。它们在预训练里究竟被训练了多少?本文对 Qwen3\.8 用两条独立路线回答并互证。路线一用 Qwen3\.8 tokenizer 切分 33 个语种、40 个域、共 540 MB 的公开语料\(维基、FineWeb/FineWeb\-2、WildChat、OASST2、GitHub 代码、FineMath\),再按几套假设的预训练配比加权。单字节 token 占全部 token 的 13–36%,但几乎全是 ASCII\(数字逐位切开、标点\);真正的 UTF\-8 回退字节 0x80–0xFF 在主流配比下只占 0\.15–0\.27%\(长尾语种占 10% 时 0\.66%\),即每101210^\{12\}个预训练 token 里约2×1092\\times 10^\{9\}次,按 Qwen3 公告的 36T 规模折算,每个合法高位字节10810^\{8\}–10910^\{9\}次。回退率跨语种相差四个数量级\(俄文 0\.003%、中文 0\.44%、韩文 1\.3%、阿姆哈拉文 45%\),由词表对各文字系统的覆盖决定。路线二读四个开源模型\(Qwen3\.8\-27B、Qwen3\.5\-9B、MiniCPM5\-2B、MiniMax\-M3\.1\-Flash\)embedding 与输出矩阵的行范数,以从未训练的补齐行为零曝光基线、以频次已知的普通 token 为校准曲线。四个模型里停在初始化上的,正好都是合法 UTF\-8 中不可能出现的 13 个字节\(0xC0、0xC1、0xF5–0xFF\),其余合法高位字节全部落在高频段;从范数读出的等效频次与语料估计在 Qwen3\.8\-27B 上相差不到 4 倍,在 MiniMax 上相差 0\.05 dex。范数–频次曲线只在模型各异的拐点以下单调,所以范数反推是逐模型、到数量级的工具。全部脚本公开;未使用任何私有数据。

This document contains the full paper in English followed by the full paper in Chinese \(p\.How Many Bytes Has a BPE Model Seen? Estimating Byte\-Token Exposure in Pretraining from Corpus Statistics and Embedding Norms\)\. Both versions describe the same experiments and report the same numbers\.

## 1Introduction

Every GPT\-2\-style byte\-level BPE vocabulary\[[16](https://arxiv.org/html/2611.27506#bib.bib6),[18](https://arxiv.org/html/2611.27506#bib.bib14)\]contains 256 single\-byte tokens\. They guarantee that any UTF\-8 string can be encoded: a character that has no token of its own is split into its bytes\. In our earlier work\[[22](https://arxiv.org/html/2611.27506#bib.bib22)\]we converted Qwen3\.8\-27B into a pure byte\-level model by discarding all other rows of the embedding and output matrices and keeping exactly these 256 \(plus special symbols\), and we observed that the conversion did not start “from scratch”: ASCII content lost almost nothing, and even Chinese recovered within a few hundred million bytes of training\. The natural question is*how much training these 256 rows had already received*\. The pretraining corpora of production models are not public, so the question cannot be answered by counting; it has to be estimated\.

This report makes the estimate in two independent ways and checks whether they agree\.

1. 1\.Corpus route\.We tokenize 540 MB of public text from 40 domains in 33 languages with the model’s own tokenizer, measure how often each of the 256 byte tokens appears, classify the Unicode characters that trigger a fallback, and multiply the per\-domain shares by several assumed pretraining mixtures\. Where a total pretraining size has been disclosed we convert shares to counts; where it has not, we report counts per101210^\{12\}tokens\.
2. 2\.Weight route\.We read the row norms of the token embedding and output \(lm\_head\) matrices of four open models\. Vocabulary rows that were padded for alignment and never appeared in any batch give a clean zero\-exposure baseline; the ordinary tokens, whose corpus frequencies we know from the first route, give a norm–frequency calibration curve; and the 256 byte rows are placed on that curve\.

Two distinctions organise the results\. The first is between*ASCII single\-byte tokens*\(0x00–0x7F\), which are ordinary tokens for digits, punctuation, spaces and rare letters, and*high bytes*\(0x80–0xFF\), which appear only when a multi\-byte UTF\-8 character is split—the genuine “byte\-level” signal\. The second is between the 243*legal*high bytes and the 13 byte values that cannot occur in valid UTF\-8 at all \(0xC0, 0xC1, 0xF5\-\-0xFF\)\.1110xC0 and 0xC1 would be overlong two\-byte lead bytes; 0xF5–0xFF would lead sequences beyond U\+10FFFF\. All 128 continuation bytes 0x80–0xBF, the lead bytes 0xC2–0xDF, 0xE0–0xEF and 0xF0–0xF4 are legal\.

Our main findings:

- •Single\-byte tokens are 13–36% of all tokens in every domain, because Qwen splits digits one per token and most ASCII punctuation is a single\-byte token; across mixtures the share is a stable 18\.5–21\.9%\. This is ASCII, not UTF\-8 fallback \(Section[4](https://arxiv.org/html/2611.27506#S4a)\)\.
- •Genuine fallback \(high bytes\) is 0\.15–0\.27% of tokens under mainstream mixtures and 0\.66% if 10% of the mixture is long\-tail scripts\. Per101210^\{12\}pretraining tokens that is1\.51\.5–6\.6×1096\.6\\times 10^\{9\}high\-byte tokens; at the 36T\-token scale disclosed for Qwen3\[[20](https://arxiv.org/html/2611.27506#bib.bib5)\], the median legal high byte is seen∼7×108\\sim 7\\times 10^\{8\}times, with a spread from<107<10^\{7\}to\>109\>10^\{9\}\.
- •Fallback rates differ by four orders of magnitude across languages and are determined by vocabulary coverage: 0\.003% for Russian, 0\.44% for Chinese \(rare characters\), 1\.3% for Korean \(uncovered syllables\), 6–16% for Burmese, Khmer and Lao, 45% for Amharic\. MiniMax\-M3\.1\-Flash and MiniCPM5\-2B, with smaller vocabularies, run many more scripts entirely in bytes \(Section[4\.2](https://arxiv.org/html/2611.27506#S4.SS2a)\)\.
- •In all four models, exactly the 13 illegal bytes are still at their initialization norm, and every legal high byte has a norm in the high\-frequency band of the calibration curve \(Section[5](https://arxiv.org/html/2611.27506#S5a)\)\. This is the hardest point of agreement between the two routes: the corpus never produces these bytes, and the weights confirm that the model never saw them\.
- •The norm\-based equivalent frequency agrees with the corpus estimate to 0\.6 dex for Qwen3\.8\-27B and 0\.05 dex for MiniMax, but the norm–frequency curve folds at a model\-dependent point \(Qwen3\.5\-9B and MiniCPM5\-2B fold earlier\), so norm inversion is only an order\-of\-magnitude, per\-model instrument\.

## 2Related work

#### Byte fallback in subword vocabularies\.

GPT\-2\[[16](https://arxiv.org/html/2611.27506#bib.bib6)\]introduced the byte\-to\-unicode mapping that lets BPE\[[18](https://arxiv.org/html/2611.27506#bib.bib14)\]operate on bytes; Qwen, MiniCPM and MiniMax all inherit it\. Pure byte\-level models\[[19](https://arxiv.org/html/2611.27506#bib.bib1),[10](https://arxiv.org/html/2611.27506#bib.bib2)\]and byteification of trained models\[[8](https://arxiv.org/html/2611.27506#bib.bib3),[22](https://arxiv.org/html/2611.27506#bib.bib22)\]make the byte rows the whole vocabulary; our question is what those rows contain before conversion\.

#### Under\-trained and glitch tokens\.

[Rumbelow and Watkins \[17\]](https://arxiv.org/html/2611.27506#bib.bib8)found tokens that elicit anomalous behaviour;[Land and Bartolo \[5\]](https://arxiv.org/html/2611.27506#bib.bib7)showed that such tokens can be detected automatically from the embedding matrix, because under\-trained rows keep their initialization norm \(or shrink under weight decay\), and that the norm indicator correlates with training frequency;[Li et al\. \[6\]](https://arxiv.org/html/2611.27506#bib.bib9)categorise the phenomenon\. We use the same signal in the opposite direction: instead of searching a vocabulary for under\-trained tokens, we take a fixed, structurally interesting set of 256 tokens and ask how much exposure each has had, using the padding rows as a reference set that needs no manual selection\.

#### Embedding norm and frequency\.

The relationship between token frequency and embedding geometry has been studied as representation degeneration\[[3](https://arxiv.org/html/2611.27506#bib.bib10)\]and as the rare\-token gradient problem\[[21](https://arxiv.org/html/2611.27506#bib.bib11)\]: frequent tokens receive more gradient and move further from initialization, while rare tokens are pushed in a common direction\. We observe the monotone part of this relationship directly and also its fold at high frequency\.

#### Tokenizer fairness across languages\.

[Petrov et al\. \[13\]](https://arxiv.org/html/2611.27506#bib.bib12)and[Ahia et al\. \[1\]](https://arxiv.org/html/2611.27506#bib.bib13)documented that the same text costs several times more tokens in some languages\. Our per\-language fallback table is the extreme end of that spectrum: for scripts a vocabulary does not cover, the model is already a byte\-level model\.

## 3Setup

### 3\.1Tokenizers and byte\-token layout

We study three tokenizers: Qwen3\.8 \(248,320 rows including padding; 248,077 used\), MiniMax\-M3\.1\-Flash \(200,064 rows; 200,061 used\) and MiniCPM5\-2B \(130,560 rows, all assigned, of which 478 are<unused\_token\_\*\>reserved symbols\)\. All three are GPT\-2\-style byte\-level BPE with the same byte\-to\-unicode mapping, so each has exactly 256 single\-character vocabulary entries that decode to one byte\. Their ids differ: Qwen puts them at ids 0–255 and MiniCPM5 at ids 22–277, in both cases in GPT\-2’s byte\-to\-unicode order rather than by byte value; MiniMax puts them at ids 0–255 with id equal to the byte value\. All scripts map ids to byte values explicitly\. Qwen and MiniMax split numbers \(Qwen one digit per token, MiniMax in groups of up to three digits\); none of the three uses SentencePiece\-style<0xNN\>fallback\.

### 3\.2Corpora \(route one\)

All corpora are public open datasets; no private or user data were used\. Each domain contributes a sample read by streaming Parquet row groups from the Hugging Face Hub \(30 MB for the eight main domains, 10 MB for each additional language\):

- •Wikipedia: Chinese \(a filtered 2023\-07\-20 dump\) and English \(10 MB sample\)\.
- •Web: English from FineWeb\[[11](https://arxiv.org/html/2611.27506#bib.bib15)\]\(sample\-10BT\); Chinese and 31 other languages from the per\-language test shards of FineWeb\-2\[[12](https://arxiv.org/html/2611.27506#bib.bib16)\]: de, fr, es, pt, it, pl, tr, id, vi, ru, uk, el, he, ar, fa, ur, hi, bn, ta, te, kn, ml, si, th, lo, km, my, ja, ko, ka, hy, am\.
- •Dialogue: WildChat\-1M\[[23](https://arxiv.org/html/2611.27506#bib.bib17)\]\(real multilingual user–model logs; user and assistant turns joined as text\) and OASST2\[[4](https://arxiv.org/html/2611.27506#bib.bib18)\]\(human\-written conversation trees\)\.
- •Code:codeparrot/github\-code\-clean\.Mathematics: FineMath\-4\+\[[2](https://arxiv.org/html/2611.27506#bib.bib19)\]\.

Each sample is tokenized without special tokens\. For every token id we count occurrences; for every high\-byte token we use the tokenizer’s character offsets to recover the Unicode character that was split and classify it \(CJK basic block, CJK extensions, Hangul, emoji, private\-use area, control characters, individual scripts\)\.

### 3\.3Mixtures and totals

Pretraining mixtures are not disclosed, so we form six scenarios over six buckets \(English, Chinese, code, mathematics, dialogue, other languages\) and report the spread \(Table[2](https://arxiv.org/html/2611.27506#S4.T2a)\)\. The “other” bucket is the equal\-weight average of ten major languages; thelong\_tailscenario additionally gives 10% to the equal\-weight average of the 22 further languages\. Within a bucket, web text is weighted 0\.8 and Wikipedia 0\.2\.

Totals: Qwen3\.8 has not disclosed its pretraining size; the model card gives no token count or technical report\[[15](https://arxiv.org/html/2611.27506#bib.bib4)\]\. The Qwen3 report\[[20](https://arxiv.org/html/2611.27506#bib.bib5)\]states 36T tokens over 119 languages for the earlier generation, which used a smaller \(151k\) vocabulary\. We therefore report counts*per101210^\{12\}pretraining tokens*as the primary quantity and use 36T only as a scale, marked as such\. MiniMax\-M3\.1\-Flash\[[7](https://arxiv.org/html/2611.27506#bib.bib21)\]and MiniCPM5\-2B\[[9](https://arxiv.org/html/2611.27506#bib.bib20)\]disclose no total either and are reported per101210^\{12\}tokens only\.

### 3\.4Weights \(route two\)

We take the official bf16 checkpoints and read only theembed\_tokensandlm\_headtensors \(for MiniMax, via HTTP range requests into the safetensors shards, 4\.9 GB, without downloading the model\)\. For every row we compute theℓ2\\ell\_\{2\}norm and the norm after subtracting the column mean\. Four models: Qwen3\.8\-27B \(hidden 5120\), Qwen3\.5\-9B \(same vocabulary, hidden 4096\[[14](https://arxiv.org/html/2611.27506#bib.bib23)\]\), MiniCPM5\-2B \(hidden 2048, untied\), MiniMax\-M3\.1\-Flash \(hidden 6144; embedding and output matrices are excluded from its MXFP8 quantization and stored in bf16\)\.

Zero\-exposure baseline\.Qwen’s vocabulary is padded from 248,077 to 248,320 rows; the 243 padding rows exist in the matrix but can never be selected, so they are the model’s untouched initialization \(possibly shrunk by weight decay\)\. MiniMax has 3 such rows; MiniCPM5 has none, but its 478<unused\_token\_\*\>rows play the same role\. We call the median norm of these rows the baseline and its 99th percentile the baseline ceiling\.

Calibration curve\.For ordinary multi\-byte tokens we know the mixture frequencyppfrom route one \(base scenario\)\. We binlog10⁡p\\log\_\{10\}pin 0\.5\-dex steps and take the median norm per bin\.Equivalent frequency\.For a byte token with normnn, we take all ordinary tokens whose norm is within±0\.01\\pm 0\.01ofnnand report the median of theirlog10⁡p\\log\_\{10\}p\(“neighbourhood inversion”\); this is robust to a curve that is not strictly monotone, but it is only meaningful on the monotone segment\. We also report Spearman rank correlations between norm andlog10⁡p\\log\_\{10\}p\.

## 4Route one: corpus statistics

### 4\.1Single\-byte tokens are mostly ASCII

Table[1](https://arxiv.org/html/2611.27506#S4.T1a)lists bytes per token, the share of single\-byte tokens and the share of high bytes for every domain and all three tokenizers\. With the Qwen3\.8 tokenizer, single\-byte tokens are 18% of English web text, 13% of Chinese web text, 31% of code and 36% of mathematics\. Digits alone are 4\.7% \(English web\) to 14\.9% \(mathematics\) of all tokens because Qwen splits every number into single digits, and ASCII punctuation adds 7–11%\. These 128 ASCII byte tokens are among the most frequent tokens in the vocabulary: the newline byte 0x0A alone would be seen∼1012\\sim 10^\{12\}times at the 36T scale\. Across the six mixtures the single\-byte share is 18\.5–21\.9%, i\.e\. about2×10112\\times 10^\{11\}occurrences per101210^\{12\}pretraining tokens\.

### 4\.2High bytes: 0\.003% to 45% depending on the script

High bytes appear only when a character is not in the vocabulary\. For the Qwen3\.8 tokenizer the rate is 0\.003% for Russian, 0\.005–0\.015% for French, Italian, Turkish, German, Portuguese and English web text, 0\.44% for Chinese web text and 0\.59% for Chinese Wikipedia, 0\.63% for mathematics, 1\.3% for Korean, 1\.6% for Bengali, 1\.9% for Persian, 2\.0% for Kannada, 4\.5% for Sinhala, 6\.4% for Burmese, 9\.8% for Armenian, 12% for Khmer, 16% for Lao and 45% for Amharic \(Figure[1](https://arxiv.org/html/2611.27506#S4.F1a)\)\. The triggers differ by domain:

- •Chinese: 82–86% of fallbacks are rare characters of the CJK basic block that have no token \(e\.g\. 讷, 厝, 冢, 腓, 谥, 祯\); CJK extension characters are second\.
- •Korean: 71% are Hangul syllables not in the vocabulary \(e\.g\. U\+D53C, U\+D0C0, U\+D50C\); Korean has the highest fallback rate of the major languages\.
- •Mathematics: private\-use\-area code points \(remnants of the Symbol font, e\.g\. U\+F02B\) 25%, other symbols, mathematical operators and C1 control characters\.
- •Code: C1 control characters U\+0080–U\+009F \(39%; typically Windows\-1252 mis\-decoding\), then emoji\.
- •Dialogue: emoji \(25% in WildChat\), rare CJK, and pinyin tone letters \(ǎ, ǐ, ǒ\)\.

表 1:Per\-domain tokenization statistics for three tokenizers on the same public samples \(Qwen3\.8 / MiniMax\-M3\.1\-Flash / MiniCPM5\-2B\)\. B/tok: UTF\-8 bytes per token; 1\-byte%: share of all tokens that are single\-byte tokens \(mostly ASCII\); high%: share that are UTF\-8 fallback bytes 0x80–0xFF\. Domain sizes: 30 MB for the first eight rows, 10 MB otherwise \(English Wikipedia 10 MB\)\.English WikipediaEnglish webChinese WikipediaChinese webGitHub codeFineMathWildChat\-1MOASST2GermanFrenchSpanishPortugueseItalianPolishTurkishIndonesianVietnameseRussianUkrainianGreekHebrewArabicPersianUrduHindiBengaliTamilTeluguKannadaMalayalamSinhalaThaiLaoKhmerBurmeseJapaneseKoreanGeorgianArmenianAmharic0\.010\.010\.10\.1111010100100high\-byte tokens, % of all tokens \(log\)Qwen3\.8MiniMax\-M3\.1\-FlashMiniCPM5\-2B图 1:Share of UTF\-8 fallback bytes \(0x80–0xFF\) among all tokens, per domain, for three tokenizers \(log scale; 540 MB of public text, 33 languages\)\. Rates span four orders of magnitude\. Where a script is absent from a vocabulary, the language becomes effectively byte\-level \(right side of the plot; Lao and Burmese give identical numbers for MiniMax and MiniCPM5 because both tokenizers fall back on every character\)\.The same samples under the MiniMax and MiniCPM5 tokenizers show that the fallback rate is a property of vocabulary coverage, not of the language\. MiniMax covers Arabic \(0\.14%\) but not Hebrew \(12%\), Urdu \(34%\), the Indic scripts \(5–46%\), Thai \(13%\), Georgian \(45%\) or Armenian \(82%\); MiniCPM5 additionally lacks Arabic \(22%\), Persian \(19%\) and Hebrew \(44%\), and Vietnamese \(13%\) and Ukrainian \(5\.6%\) fall back frequently\. For Lao, Khmer, Burmese, Armenian and Amharic all three tokenizers encode most characters byte by byte; for Lao and Burmese the MiniMax and MiniCPM5 numbers coincide exactly because neither vocabulary has a single token for those scripts and the pre\-tokenizers agree\. For such scripts these models are byte\-level models already, and whatever they know about the script is stored through the high\-byte embeddings\.

### 4\.3Mixture scenarios

Table[2](https://arxiv.org/html/2611.27506#S4.T2a)gives the single\-byte and high\-byte shares under the six scenarios\. For Qwen3\.8 the high\-byte share is 0\.146% \(English\-heavy\) to 0\.268% \(Chinese\-heavy\) when the “other” bucket contains only major languages—a spread of less than2×2\\times—and 0\.663% when 10% of the mixture is long\-tail scripts\. Per101210^\{12\}pretraining tokens that is1\.51\.5–2\.7×1092\.7\\times 10^\{9\}\(mainstream\) to6\.6×1096\.6\\times 10^\{9\}\(long tail\) high\-byte tokens\. At the 36T scale:5\.25\.2–9\.7×10109\.7\\times 10^\{10\}\(mainstream\) or2\.4×10112\.4\\times 10^\{11\}\(long tail\) in total\. For MiniMax the shares are 2–3×\\timeshigher \(0\.31–0\.84%, long tail 3\.4%\) and for MiniCPM5 5×\\timeshigher \(0\.64–1\.7%, long tail 5\.3%\), because their vocabularies cover fewer scripts\.

表 2:Shares of single\-byte tokens and of high bytes under six mixture scenarios \(buckets en/zh/code/math/chat/other in %: base 40/25/15/5/5/10; en\_heavy 60/15/12/5/3/5; zh\_heavy 30/40/12/5/5/8; code\_heavy 35/20/30/5/3/7; multilingual 35/20/12/5/3/25; long\_tail 35/20/12/5/3/15 plus 10 for 22 long\-tail languages\)\. Multiply by101010^\{10\}for counts per101210^\{12\}pretraining tokens\.
### 4\.4Per\-byte distribution

Exposure is very uneven across the 128 high bytes\. Under the base scenario and the Qwen3\.8 tokenizer, the continuation bytes 0x80–0xBF receive 88% of all high\-byte occurrences \(6\.6×10106\.6\\times 10^\{10\}at the 36T scale\), two\-byte lead bytes 0xC2–0xDF 7\.6%, three\-byte lead bytes 0xE0–0xEF 4\.3% and four\-byte lead bytes 0xF0–0xF4 0\.2%\. Grouped by count at the 36T scale: 27 bytes are seen10910^\{9\}–101010^\{10\}times, 55 bytes10810^\{8\}–10910^\{9\}, 19 bytes10710^\{7\}–10810^\{8\}, 11 bytes fewer than10710^\{7\}\(rare two\-byte leads 0xD1–0xDF, 0xE0, 0xF4\), and 16 bytes never occur in the 540 MB sample: the 13 illegal bytes plus the four\-byte leads 0xF1–0xF3, which only occur for code points above U\+40000 \(CJK Extension B and beyond\)\. The median legal high byte is seen6\.8×1086\.8\\times 10^\{8\}times at the 36T scale, i\.e\.1\.9×1071\.9\\times 10^\{7\}per101210^\{12\}tokens\. For MiniMax and MiniCPM5 the corresponding medians per101210^\{12\}tokens are2\.8×1072\.8\\times 10^\{7\}and7\.7×1077\.7\\times 10^\{7\}; their never\-seen sets are the 13 illegal bytes plus 0xE6, 0xE7, 0xF1–0xF3 \(MiniMax\) and 0xE7, 0xF1–0xF3 \(MiniCPM5\), i\.e\. lead bytes whose code\-point ranges those vocabularies cover completely\.

## 5Route two: embedding norms

### 5\.1Baseline, curve, and the thirteen untouched bytes

Table[3](https://arxiv.org/html/2611.27506#S5.T3a)summarises the four models and Figure[2](https://arxiv.org/html/2611.27506#S5.F2a)shows the calibration curves with the 256 byte tokens overlaid\.

表 3:Weight\-side summary\. rows: embedding rows;n0n\_\{0\}: zero\-exposure reference rows \(padding, or unused reserved tokens for MiniCPM5\);‖e‖0\\\|e\\\|\_\{0\},‖h‖0\\\|h\\\|\_\{0\}: their median embedding / output\-row norm; “high bytes still at init”: number of high bytes whose embedding norm is below half the median norm of ordinary tokens \(in parentheses: below the 99th percentile of the reference rows\)\. In all four models the set is the same 13 bytes 0xC0, 0xC1, 0xF5–0xFF\.ρe\\rho\_\{e\},ρh\\rho\_\{h\}: Spearman correlation between corpuslog10⁡p\\log\_\{10\}pand embedding / output norm within the high bytes that occur in the corpus;log⁡p^\\hat\{\\log p\}: median neighbourhood\-invertedlog10⁡p\\log\_\{10\}pof those bytes from the embedding norm;log⁡pobs\\log p\_\{\\rm obs\}: their median corpuslog10⁡p\\log\_\{10\}p\.−9\-9−8\-8−7\-7−6\-6−5\-5−4\-4−3\-3−2\-2000\.50\.511embedding row normQwen3\.8\-27Bordinary tokens \(bin median\)high bytes 0x80–0xFFASCII byteszero\-exposure baseline−9\-9−8\-8−7\-7−6\-6−5\-5−4\-4−3\-3−2\-2000\.50\.511Qwen3\.5\-9B−9\-9−8\-8−7\-7−6\-6−5\-5−4\-4−3\-3−2\-2000\.20\.20\.40\.40\.60\.60\.80\.811log10⁡p\\log\_\{10\}pembedding row normMiniCPM5\-2B−9\-9−8\-8−7\-7−6\-6−5\-5−4\-4−3\-3−2\-2000\.50\.5111\.51\.522log10⁡p\\log\_\{10\}pMiniMax\-M3\.1\-Flash图 2:Embedding row norm versus corpus frequency \(log10\\log\_\{10\}of the base\-mixture token probability\)\. Blue: median of ordinary multi\-byte tokens per 0\.5\-dex bin; red circles: the 128 high bytes; grey crosses: the 128 ASCII bytes; dashed: the never\-trained padding rows\. Bytes that never occur in the corpus sample are drawn at the left edge only in the tables \(noxxvalue here\)\. The curve is monotone up to a model\-dependent fold \(log10⁡p≈−4\\log\_\{10\}p\\approx\-4for Qwen3\.8\-27B,−5\-5for Qwen3\.5\-9B and MiniCPM5\-2B, none visible for MiniMax\)\.Baseline\.The reference rows are extremely tight: Qwen3\.8\-27B 0\.2277 \(99th percentile 0\.233\), Qwen3\.5\-9B 0\.1992, MiniMax 0\.0191, and MiniCPM5 exactly 0 \(its unused rows were zeroed, and all 478 share one identical output row of norm 0\.385\)\. Ordinary tokens have medians of 0\.93 \(Qwen3\.8\-27B\), 0\.89 \(Qwen3\.5\-9B\), 0\.81 \(MiniCPM5\) and 1\.60 \(MiniMax\)\.

Thirteen bytes\.In all four models the high bytes whose embedding norm is far below the trained population are exactly 0xC0, 0xC1 and 0xF5–0xFF—the 13 values that cannot appear in valid UTF\-8\. In Qwen3\.8\-27B twelve of them are below the baseline ceiling and 0xFE is marginally above it \(0\.2332 vs 0\.2330\); in Qwen3\.5\-9B and MiniMax all thirteen are at the baseline; in MiniCPM5 their norms are 0\.03–0\.33 against a trained population above 0\.78 \(and against 0 for the zeroed reserved rows, which suggests the byte rows were initialised normally and then shrank under weight decay without ever receiving a gradient\)\. Every legal high byte, including the four\-byte leads 0xF1–0xF3 that never appear in our 540 MB sample, has a norm in the trained band \(Qwen3\.8\-27B: median 1\.07 for the 112 legal bytes seen in the sample, 0\.70–0\.95 for 0xF1–0xF3; MiniMax: 1\.52–1\.58 for the five unseen\-but\-legal bytes 0xE6, 0xE7, 0xF1–0xF3\)\. The weights thus see further into the tail than a 540 MB sample does, and they confirm the one set of bytes the corpus route predicts to be absent\.

Calibration curve\.For Qwen3\.8\-27B the median embedding norm of ordinary tokens rises monotonically from 0\.78 atlog10⁡p=−8\.25\\log\_\{10\}p=\-8\.25to 1\.11 at−3\.75\-3\.75\(Spearman 0\.68 over all ordinary tokens\) and then falls to 1\.05 for the most frequent tokens\. The output\-row norm is uncorrelated with frequency \(0\.03\)\. Qwen3\.5\-9B peaks earlier, at 0\.96 aroundlog10⁡p=−5\.25\\log\_\{10\}p=\-5\.25, and falls to 0\.79 by−2\.75\-2\.75; MiniCPM5 peaks at 0\.86 around−4\.75\-4\.75; MiniMax rises throughout the observed range \(1\.57 to 1\.75\) with no visible fold\. The fold is the frequency\-dependent part of representation degeneration\[[3](https://arxiv.org/html/2611.27506#bib.bib10),[21](https://arxiv.org/html/2611.27506#bib.bib11)\]: the most frequent tokens are pulled toward the mean direction and lose norm\. Its position differs between models that share a vocabulary \(Qwen3\.8\-27B vs Qwen3\.5\-9B\), so it is not a property of the tokenizer\.

### 5\.2Equivalent frequency of the legal high bytes

Placing the legal high bytes on their own model’s curve: for Qwen3\.8\-27B the neighbourhood inversion gives a medianlog10⁡p=−5\.30\\log\_\{10\}p=\-5\.30against a corpus value of−4\.69\-4\.69\(base scenario\), a difference of 0\.6 dex \(factor 4\); for MiniMax−4\.44\-4\.44against−4\.39\-4\.39\(0\.05 dex\)\. For Qwen3\.5\-9B and MiniCPM5 the legal high bytes lie on the falling side of the fold, so inversion returns−6\.41\-6\.41and−5\.81\-5\.81against−4\.69\-4\.69and−4\.03\-4\.03—under\-estimates by 1\.7–1\.8 dex, and the within\-group rank correlation between embedding norm and frequency turns negative \(−0\.65\-0\.65,−0\.35\-0\.35\)\. The output\-row norm behaves differently: within the high bytes its rank correlation with frequency is 0\.55 in both Qwen models and 0\.64 in MiniCPM5 \(but 0\.06 in MiniMax, where the embedding is the informative side\)\. So each model has one matrix whose norm still tracks frequency in the high\-byte band, but which one it is must be checked per model\.

The ASCII bytes are the most frequent tokens of all and sit beyond the fold in every model; their norms \(median 1\.00 in Qwen3\.8\-27B\) say only “fully trained”\. The eight ASCII control bytes that never occur in our samples \(0x04, 0x07, 0x17–0x19, 0x1B, 0x1E, 0x1F\) are also in the trained band in all models except MiniCPM5 \(0\.51, between its baseline 0 and its trained median 0\.81\), presumably because binary or mis\-encoded content in pretraining contains them\.

## 6Discussion

#### What the two routes agree on\.

Both routes say that in Qwen3\.8 the 128 ASCII byte tokens are among the best\-trained tokens in the vocabulary, that each legal high byte has been seen of order10810^\{8\}–10910^\{9\}times at the 36T scale \(10710^\{7\}–10810^\{8\}per101210^\{12\}tokens\), and that the 13 illegal bytes have never been seen\. This is why byteification\[[22](https://arxiv.org/html/2611.27506#bib.bib22)\]did not start from random embeddings: the 256 rows it keeps had, with 13 harmless exceptions, already received between10710^\{7\}and101210^\{12\}gradient updates each\. It also explains why ASCII content survived the conversion almost untouched while multi\-byte scripts needed continued training: the high bytes had been seen often, but almost always as fragments of*rare*characters, so the embeddings encode “this is the second byte of an uncommon CJK character” rather than the identity of common characters, which the model had always read as whole tokens\.

#### What this means for low\-resource scripts\.

For Amharic, Lao, Khmer, Burmese and Armenian, Qwen3\.8 is effectively a byte\-level model, and for a dozen more scripts so are MiniMax\-M3\.1\-Flash and MiniCPM5\-2B\. The per\-byte exposure of these scripts is then exactly the share of such text in pretraining—tiny—and it is spread over the same 128 embeddings that also carry rare Chinese characters, emoji and Symbol\-font remnants\. The fairness literature\[[13](https://arxiv.org/html/2611.27506#bib.bib12),[1](https://arxiv.org/html/2611.27506#bib.bib13)\]measures the cost of this in tokens; the weight route shows the other cost, that a script’s entire representation has to be carried by embeddings whose gradient history is dominated by other scripts\.

#### Limitations\.

\(i\) The mixture is assumed; the sensitivity is<2×<2\\timesfor mainstream mixtures but3×3\\timesif long\-tail scripts reach 10%\. \(ii\) Qwen3\.8’s pretraining size is not disclosed; all absolute counts at “36T scale” are the Qwen3 figure used as a scale\. \(iii\) Samples are 10–30 MB per domain; bytes rarer than∼10−7\\sim 10^\{\-7\}are not resolved by the corpus route \(the weights resolve them qualitatively\)\. \(iv\) The weights reflect pretraining and post\-training together; the two cannot be separated\. \(v\) Norm inversion is valid only on the monotone segment of a per\-model curve; we report it to one significant figure inlog10⁡p\\log\_\{10\}p\.

## 7Conclusion

A BPE model’s 256 byte tokens are not a uniform group\. The 128 ASCII bytes are ordinary, extremely frequent tokens \(13–36% of all tokens\)\. The 115 legal high bytes are genuine UTF\-8 fallback, seen in Qwen3\.8 at a rate of about 0\.2% of tokens—10710^\{7\}–10810^\{8\}times per101210^\{12\}pretraining tokens each—and triggered mostly by rare Chinese characters, uncovered Hangul syllables, emoji, control characters and scripts the vocabulary does not cover at all\. The 13 bytes that valid UTF\-8 cannot contain have never been seen, and all four models we examined say so in their weights\. The two estimation routes agree to within a factor of 4 where the norm–frequency curve is monotone, and the padding rows of a vocabulary are a free, exact zero\-exposure reference that any such analysis can use\. Scripts, per\-domain statistics and the row\-norm extraction tool are released with this report\.

## References

- \[1\]\(2023\)Do all languages cost the same? tokenization in the era of commercial language models\.InProceedings of the 2023 Conference on Empirical Methods in Natural Language Processing \(EMNLP\),Note:arXiv:2305\.13707Cited by:[§2](https://arxiv.org/html/2611.27506#S2.SS0.SSS0.Px4.p1.1),[§2](https://arxiv.org/html/2611.27506#S2.SS0.SSS0.Px4a.p1.1),[§6](https://arxiv.org/html/2611.27506#S6.SS0.SSS0.Px2.p1.1),[§6](https://arxiv.org/html/2611.27506#S6.SS0.SSS0.Px2a.p1.1)\.
- \[2\]L\. Ben Allal, A\. Lozhkov, E\. Bakouch, G\. M\. Blázquez, G\. Penedo, L\. Tunstall, A\. Marafioti, H\. Kydlíček,et al\.\(2025\)SmolLM2: when smol goes big – data\-centric training of a small language model\.arXiv preprint arXiv:2502\.02737\.Note:Introduces the FineMath datasetCited by:[4th item](https://arxiv.org/html/2611.27506#S3.I1.i4.p1.1),[4th item](https://arxiv.org/html/2611.27506#S3.I1.i4a.p1.1)\.
- \[3\]J\. Gao, D\. He, X\. Tan, T\. Qin, L\. Wang, and T\. Liu\(2019\)Representation degeneration problem in training natural language generation models\.InInternational Conference on Learning Representations \(ICLR\),Note:arXiv:1907\.12009Cited by:[§2](https://arxiv.org/html/2611.27506#S2.SS0.SSS0.Px3.p1.1),[§2](https://arxiv.org/html/2611.27506#S2.SS0.SSS0.Px3a.p1.1),[§5\.1](https://arxiv.org/html/2611.27506#S5.SS1.p4.1),[§5\.1](https://arxiv.org/html/2611.27506#S5.SS1a.p4.1)\.
- \[4\]A\. Köpf, Y\. Kilcher, D\. von Rütte, S\. Anagnostidis, Z\. R\. Tam, K\. Stevens, A\. Barhoum, N\. M\. Duc, O\. Stanley, R\. Nagyfi,et al\.\(2023\)OpenAssistant conversations – democratizing large language model alignment\.InAdvances in Neural Information Processing Systems \(NeurIPS\) Datasets and Benchmarks Track,Note:arXiv:2304\.07327Cited by:[3rd item](https://arxiv.org/html/2611.27506#S3.I1.i3.p1.1),[3rd item](https://arxiv.org/html/2611.27506#S3.I1.i3a.p1.1)\.
- \[5\]S\. Land and M\. Bartolo\(2024\)Fishing for Magikarp: automatically detecting under\-trained tokens in large language models\.InProceedings of the 2024 Conference on Empirical Methods in Natural Language Processing \(EMNLP\),Note:arXiv:2405\.05417Cited by:[§2](https://arxiv.org/html/2611.27506#S2.SS0.SSS0.Px2.p1.1),[§2](https://arxiv.org/html/2611.27506#S2.SS0.SSS0.Px2a.p1.1)\.
- \[6\]Y\. Li, Y\. Liu, G\. Deng, Y\. Zhang, W\. Song, L\. Shi, K\. Wang, Y\. Li, Y\. Liu, and H\. Wang\(2024\)Glitch tokens in large language models: categorization taxonomy and effective detection\.Proceedings of the ACM on Software Engineering \(FSE\)\.Note:arXiv:2404\.09894Cited by:[§2](https://arxiv.org/html/2611.27506#S2.SS0.SSS0.Px2.p1.1),[§2](https://arxiv.org/html/2611.27506#S2.SS0.SSS0.Px2a.p1.1)\.
- \[7\]MiniMax\(2026\)MiniMax M3\.1 Flash: redefining agent performance and cost\.Note:Blog post and Hugging Face model cardMiniMaxAI/MiniMax\-M3\.1\-FlashExternal Links:[Link](https://minimax.io/blog/minimax-m31f)Cited by:[§3\.3](https://arxiv.org/html/2611.27506#S3.SS3.p2.1),[§3\.3](https://arxiv.org/html/2611.27506#S3.SS3a.p2.1)\.
- \[8\]B\. Minixhofer, T\. Murray, T\. Limisiewicz, A\. Korhonen, L\. Zettlemoyer, N\. A\. Smith, E\. M\. Ponti, L\. Soldaini, and V\. Hofmann\(2025\)Bolmo: byteifying the next generation of language models\.arXiv preprint arXiv:2512\.15586\.Cited by:[§2](https://arxiv.org/html/2611.27506#S2.SS0.SSS0.Px1.p1.1),[§2](https://arxiv.org/html/2611.27506#S2.SS0.SSS0.Px1a.p1.1)\.
- \[9\]OpenBMB\(2026\)MiniCPM5\-2B\.Note:Hugging Face model cardopenbmb/MiniCPM5\-2B, Apache\-2\.0External Links:[Link](https://huggingface.co/openbmb/MiniCPM5-2B)Cited by:[§3\.3](https://arxiv.org/html/2611.27506#S3.SS3.p2.1),[§3\.3](https://arxiv.org/html/2611.27506#S3.SS3a.p2.1)\.
- \[10\]A\. Pagnoni, R\. Pasunuru, P\. Rodriguez, J\. Nguyen, B\. Muller, M\. Li, C\. Zhou, L\. Yu, J\. Weston, L\. Zettlemoyer, G\. Ghosh, M\. Lewis, A\. Holtzman, and S\. Iyer\(2025\)Byte latent transformer: patches scale better than tokens\.InProceedings of the 63rd Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\),pp\. 9238–9258\.Note:arXiv:2412\.09871External Links:[Document](https://dx.doi.org/10.18653/v1/2025.acl-long.453)Cited by:[§2](https://arxiv.org/html/2611.27506#S2.SS0.SSS0.Px1.p1.1),[§2](https://arxiv.org/html/2611.27506#S2.SS0.SSS0.Px1a.p1.1)\.
- \[11\]G\. Penedo, H\. Kydlíček, L\. Ben allal, A\. Lozhkov, M\. Mitchell, C\. Raffel, L\. Von Werra, and T\. Wolf\(2024\)The FineWeb datasets: decanting the web for the finest text data at scale\.InAdvances in Neural Information Processing Systems \(NeurIPS\) Datasets and Benchmarks Track,Note:arXiv:2406\.17557Cited by:[2nd item](https://arxiv.org/html/2611.27506#S3.I1.i2.p1.1),[2nd item](https://arxiv.org/html/2611.27506#S3.I1.i2a.p1.1)\.
- \[12\]G\. Penedo, H\. Kydlíček, V\. Sabolčec, B\. Messmer, N\. Foroutan, M\. Jaggi, L\. von Werra, T\. Wolf,et al\.\(2025\)FineWeb2: one pipeline to scale them all – adapting pre\-training data processing to every language\.arXiv preprint arXiv:2506\.20920\.Cited by:[2nd item](https://arxiv.org/html/2611.27506#S3.I1.i2.p1.1),[2nd item](https://arxiv.org/html/2611.27506#S3.I1.i2a.p1.1)\.
- \[13\]A\. Petrov, E\. La Malfa, P\. H\. S\. Torr, and A\. Bibi\(2023\)Language model tokenizers introduce unfairness between languages\.InAdvances in Neural Information Processing Systems \(NeurIPS\),Note:arXiv:2305\.15425Cited by:[§2](https://arxiv.org/html/2611.27506#S2.SS0.SSS0.Px4.p1.1),[§2](https://arxiv.org/html/2611.27506#S2.SS0.SSS0.Px4a.p1.1),[§6](https://arxiv.org/html/2611.27506#S6.SS0.SSS0.Px2.p1.1),[§6](https://arxiv.org/html/2611.27506#S6.SS0.SSS0.Px2a.p1.1)\.
- \[14\]Qwen Team\(2026\)Qwen3\.5\-9B\.Note:Hugging Face model cardQwen/Qwen3\.5\-9BCited by:[§3\.4](https://arxiv.org/html/2611.27506#S3.SS4.p1.1),[§3\.4](https://arxiv.org/html/2611.27506#S3.SS4a.p1.1)\.
- \[15\]Qwen Team\(2026\)Qwen3\.8\-Max: a new bar for coding and cowork\.Note:Blog post; citation as given on the Hugging Face model cardQwen/Qwen3\.8\-27BNo technical report on arXiv for the Qwen3\.8 family as of Nov\. 2026External Links:[Link](https://qwen.ai/blog?id=qwen3.8)Cited by:[§3\.3](https://arxiv.org/html/2611.27506#S3.SS3.p2.1),[§3\.3](https://arxiv.org/html/2611.27506#S3.SS3a.p2.1)\.
- \[16\]A\. Radford, J\. Wu, R\. Child, D\. Luan, D\. Amodei, and I\. Sutskever\(2019\)Language models are unsupervised multitask learners\.Technical reportOpenAI\.External Links:[Link](https://cdn.openai.com/better-language-models/language_models_are_unsupervised_multitask_learners.pdf)Cited by:[§1](https://arxiv.org/html/2611.27506#S1.p1.1),[§1](https://arxiv.org/html/2611.27506#S1a.p1.1),[§2](https://arxiv.org/html/2611.27506#S2.SS0.SSS0.Px1.p1.1),[§2](https://arxiv.org/html/2611.27506#S2.SS0.SSS0.Px1a.p1.1)\.
- \[17\]J\. Rumbelow and M\. Watkins\(2023\)SolidGoldMagikarp \(plus, prompt generation\)\.Note:LessWrong / AI Alignment Forum blog postExternal Links:[Link](https://www.lesswrong.com/posts/aPeJE8bSo6rAFoLqg/solidgoldmagikarp-plus-prompt-generation)Cited by:[§2](https://arxiv.org/html/2611.27506#S2.SS0.SSS0.Px2.p1.1),[§2](https://arxiv.org/html/2611.27506#S2.SS0.SSS0.Px2a.p1.1)\.
- \[18\]R\. Sennrich, B\. Haddow, and A\. Birch\(2016\)Neural machine translation of rare words with subword units\.InProceedings of the 54th Annual Meeting of the Association for Computational Linguistics \(ACL\),Note:arXiv:1508\.07909Cited by:[§1](https://arxiv.org/html/2611.27506#S1.p1.1),[§1](https://arxiv.org/html/2611.27506#S1a.p1.1),[§2](https://arxiv.org/html/2611.27506#S2.SS0.SSS0.Px1.p1.1),[§2](https://arxiv.org/html/2611.27506#S2.SS0.SSS0.Px1a.p1.1)\.
- \[19\]L\. Xue, A\. Barua, N\. Constant, R\. Al\-Rfou, S\. Narang, M\. Kale, A\. Roberts, and C\. Raffel\(2022\)ByT5: towards a token\-free future with pre\-trained byte\-to\-byte models\.Transactions of the Association for Computational Linguistics10\.Note:arXiv:2105\.13626Cited by:[§2](https://arxiv.org/html/2611.27506#S2.SS0.SSS0.Px1.p1.1),[§2](https://arxiv.org/html/2611.27506#S2.SS0.SSS0.Px1a.p1.1)\.
- \[20\]A\. Yanget al\.\(2025\)Qwen3 technical report\.arXiv preprint arXiv:2505\.09388\.Cited by:[2nd item](https://arxiv.org/html/2611.27506#S1.I2.i2.p1.1),[2nd item](https://arxiv.org/html/2611.27506#S1.I2.i2a.p1.1),[§3\.3](https://arxiv.org/html/2611.27506#S3.SS3.p2.1),[§3\.3](https://arxiv.org/html/2611.27506#S3.SS3a.p2.1)\.
- \[21\]S\. Yu, J\. Song, H\. Kim, S\. Lee, W\. Ryu, and S\. Yoon\(2022\)Rare tokens degenerate all tokens: improving neural text generation via adaptive gradient gating for rare token embeddings\.InProceedings of the 60th Annual Meeting of the Association for Computational Linguistics \(ACL\),Note:arXiv:2109\.03127Cited by:[§2](https://arxiv.org/html/2611.27506#S2.SS0.SSS0.Px3.p1.1),[§2](https://arxiv.org/html/2611.27506#S2.SS0.SSS0.Px3a.p1.1),[§5\.1](https://arxiv.org/html/2611.27506#S5.SS1.p4.1),[§5\.1](https://arxiv.org/html/2611.27506#S5.SS1a.p4.1)\.
- \[22\]L\. Zhang, Z\. Tong, M\. Guan, and L\. Li\(2026\)One byte, one token: byteifying a 27b hybrid\-attention LLM with self\-generated data\.Note:arXiv preprint arXiv:2611\.13607; code and task suite at[https://huggingface\.co/datasets/leiwhere/ld3\-byte\-eval](https://huggingface.co/datasets/leiwhere/ld3-byte-eval)Cited by:[§1](https://arxiv.org/html/2611.27506#S1.p1.1),[§1](https://arxiv.org/html/2611.27506#S1a.p1.1),[§2](https://arxiv.org/html/2611.27506#S2.SS0.SSS0.Px1.p1.1),[§2](https://arxiv.org/html/2611.27506#S2.SS0.SSS0.Px1a.p1.1),[§6](https://arxiv.org/html/2611.27506#S6.SS0.SSS0.Px1.p1.1),[§6](https://arxiv.org/html/2611.27506#S6.SS0.SSS0.Px1a.p1.1)\.
- \[23\]W\. Zhao, X\. Ren, J\. Hessel, C\. Cardie, Y\. Choi, and Y\. Deng\(2024\)WildChat: 1m ChatGPT interaction logs in the wild\.InInternational Conference on Learning Representations \(ICLR\),Note:arXiv:2405\.01470Cited by:[3rd item](https://arxiv.org/html/2611.27506#S3.I1.i3.p1.1),[3rd item](https://arxiv.org/html/2611.27506#S3.I1.i3a.p1.1)\.

BPE 模型在预训练里见过多少字节?从语料统计与 embedding 范数两路估计字节 token 的曝光量

张栗伟\(Liwei Zhang\) 童志明\(ZhiMing Tong\)

关墨辰\(Mochen Guan\) 李林哲\(Linzhe Li\)∗

澜砥实验室\(Landi Lab\)∗通讯作者

z@metiy\.xyzmynameistong@163\.comgmc@antiy\.cnlilinzhe@antiy\.cn

2026 年 11 月

本文为同一篇论文的中文版;英文版在前\(第 1 页起\)。两版实验与数字完全一致,参考文献见英文版末。

## 1引言

每一个 GPT\-2 式的 byte\-level BPE 词表\[[16](https://arxiv.org/html/2611.27506#bib.bib6),[18](https://arxiv.org/html/2611.27506#bib.bib14)\]都含有 256 个单字节 token。它们保证任何 UTF\-8 字符串都能被编码:没有自己 token 的字符会被拆成字节。在此前的工作\[[22](https://arxiv.org/html/2611.27506#bib.bib22)\]里,我们把 Qwen3\.8\-27B 改造成了纯字节模型:丢掉 embedding 与输出矩阵的其他所有行,只保留这 256 行\(加特殊符号\)。我们当时就注意到改造并不是”从零开始”:ASCII 内容几乎没有损失,连中文也在几亿字节的训练内恢复。自然的问题是:*这 256 行到底已经被训练了多少?*生产模型的预训练语料不公开,这个问题没法靠数,只能估。

本报告用两条独立路线做估计,并检查两者是否一致。

1. 1\.语料路线。用模型自己的 tokenizer 切分 33 个语种、40 个域、共 540 MB 的公开文本,统计 256 个字节 token 各出现多少次,归类触发回退的 Unicode 字符,再按几套假设的预训练配比加权。公告了预训练总量的,把占比换成次数;没公告的,按每101210^\{12\}token 报。
2. 2\.权重路线。读四个开源模型 token embedding 与输出矩阵\(lm\_head\)的行范数。为对齐而补齐、从未进入任何 batch 的词表行给出干净的零曝光基线;频次已由路线一给出的普通 token 给出范数–频次校准曲线;再把 256 个字节行放到曲线上。

两组区分贯穿全文。其一是*ASCII 单字节 token*\(0x00–0x7F\)与*高位字节*\(0x80–0xFF\):前者是数字、标点、空格和罕见字母的普通 token,后者只在多字节 UTF\-8 字符被拆开时出现,才是真正的”字节级”信号。其二是 243 个*合法*字节值与 13 个在合法 UTF\-8 里根本不可能出现的字节值\(0xC0、0xC1、0xF5\-\-0xFF\)。1110xC0、0xC1 会是超长的两字节首字节;0xF5–0xFF 会引出超过 U\+10FFFF 的序列。128 个续字节 0x80–0xBF、首字节 0xC2–0xDF、0xE0–0xEF 与 0xF0–0xF4 都合法。

主要结论:

- •每个域里单字节 token 都占全部 token 的 13–36%,因为 Qwen 把数字逐位切开、大多数 ASCII 标点就是单字节 token;各配比下这一比例稳定在 18\.5–21\.9%。这是 ASCII,不是 UTF\-8 回退\(第[4](https://arxiv.org/html/2611.27506#S4a)节\)。
- •真正的回退\(高位字节\)在主流配比下占 token 的 0\.15–0\.27%,长尾文字占配比 10% 时为 0\.66%。每101210^\{12\}个预训练 token 对应1\.51\.5–6\.6×1096\.6\\times 10^\{9\}个高位字节 token;按 Qwen3 公告的 36T 规模\[[20](https://arxiv.org/html/2611.27506#bib.bib5)\]折算,合法高位字节的中位数约被见过7×1087\\times 10^\{8\}次,分布从<107<10^\{7\}到\>109\>10^\{9\}。
- •回退率跨语种相差四个数量级,由词表覆盖决定:俄文 0\.003%,中文 0\.44%\(生僻字\),韩文 1\.3%\(未收录音节\),缅甸文、高棉文、老挝文 6–16%,阿姆哈拉文 45%。词表更小的 MiniMax\-M3\.1\-Flash 与 MiniCPM5\-2B 对更多文字系统完全按字节运行\(第[4\.2](https://arxiv.org/html/2611.27506#S4.SS2a)节\)。
- •四个模型里停在初始化范数上的,正好都是那 13 个非法字节;所有合法高位字节的范数都在校准曲线的高频段\(第[5](https://arxiv.org/html/2611.27506#S5a)节\)。这是两条路线最硬的互证:语料里产生不出这些字节,权重确认模型也没见过它们。
- •范数反推的等效频次与语料估计在 Qwen3\.8\-27B 上相差 0\.6 dex、在 MiniMax 上相差 0\.05 dex;但范数–频次曲线在模型各异的位置折返\(Qwen3\.5\-9B 与 MiniCPM5\-2B 折返更早\),所以范数反推只是逐模型、到数量级的工具。

## 2相关工作

#### 子词词表里的字节回退。

GPT\-2\[[16](https://arxiv.org/html/2611.27506#bib.bib6)\]引入了字节到 unicode 的映射,让 BPE\[[18](https://arxiv.org/html/2611.27506#bib.bib14)\]可以在字节上运行;Qwen、MiniCPM、MiniMax 都继承了它。纯字节模型\[[19](https://arxiv.org/html/2611.27506#bib.bib1),[10](https://arxiv.org/html/2611.27506#bib.bib2)\]和把已训好模型字节化\[[8](https://arxiv.org/html/2611.27506#bib.bib3),[22](https://arxiv.org/html/2611.27506#bib.bib22)\]把字节行当成整个词表;我们问的是改造之前这些行里有什么。

#### 欠训练 token 与 glitch token。

[Rumbelow and Watkins \[17\]](https://arxiv.org/html/2611.27506#bib.bib8)发现有些 token 会引出异常行为;[Land and Bartolo \[5\]](https://arxiv.org/html/2611.27506#bib.bib7)证明可以从 embedding 矩阵自动检测这类 token,因为欠训练的行保留初始化范数\(或在权重衰减下收缩\),且范数指标与训练频次相关;[Li et al\. \[6\]](https://arxiv.org/html/2611.27506#bib.bib9)对现象做了分类。我们把同一信号反过来用:不是在词表里搜欠训练 token,而是取一组固定的、结构上有意义的 256 个 token,问每个被曝光了多少,并用补齐行做无需人工挑选的参照集。

#### embedding 范数与频次。

token 频次与 embedding 几何的关系被当作表示退化\[[3](https://arxiv.org/html/2611.27506#bib.bib10)\]和罕见 token 梯度问题\[[21](https://arxiv.org/html/2611.27506#bib.bib11)\]研究过:高频 token 得到更多梯度、离初始化更远,低频 token 被推向同一方向。我们直接观测到这一关系的单调段,也观测到它在高频端的折返。

#### tokenizer 的跨语种公平。

[Petrov et al\. \[13\]](https://arxiv.org/html/2611.27506#bib.bib12)和[Ahia et al\. \[1\]](https://arxiv.org/html/2611.27506#bib.bib13)记录了同一段文本在某些语言里要花几倍的 token。我们的分语种回退表是这一谱系的极端:词表不覆盖的文字系统,模型已经就是字节模型。

## 3设置

### 3\.1tokenizer 与字节 token 的布局

我们研究三家 tokenizer:Qwen3\.8\(含补齐 248,320 行,已用 248,077\)、MiniMax\-M3\.1\-Flash\(200,064 行,已用 200,061\)、MiniCPM5\-2B\(130,560 行全部分配,其中 478 个是<unused\_token\_\*\>保留符号\)。三者都是 GPT\-2 式 byte\-level BPE,字节到 unicode 的映射相同,所以各有恰好 256 个解码为单字节的单字符词条。id 不同:Qwen 放在 id 0–255,MiniCPM5 放在 id 22–277,两者都按 GPT\-2 的字节到 unicode 顺序而非字节值排列;MiniMax 放在 id 0–255 且 id 等于字节值。所有脚本都显式地把 id 映射到字节值。Qwen 与 MiniMax 都切分数字\(Qwen 一位一个 token,MiniMax 最多三位一组\);三者都不用 SentencePiece 式的<0xNN\>回退。

### 3\.2语料\(路线一\)

所有语料都是公开数据集;不含任何私有或用户数据。每个域从 Hugging Face Hub 按 Parquet row group 流式抽样\(8 个主要域各 30 MB,其余每个语种 10 MB\):

- •维基:中文\(2023\-07\-20 过滤 dump\)与英文\(10 MB 样本\)。
- •网页:英文取 FineWeb\[[11](https://arxiv.org/html/2611.27506#bib.bib15)\]\(sample\-10BT\);中文与另外 31 个语种取 FineWeb\-2\[[12](https://arxiv.org/html/2611.27506#bib.bib16)\]的分语种 test 分片:de、fr、es、pt、it、pl、tr、id、vi、ru、uk、el、he、ar、fa、ur、hi、bn、ta、te、kn、ml、si、th、lo、km、my、ja、ko、ka、hy、am。
- •对话:WildChat\-1M\[[23](https://arxiv.org/html/2611.27506#bib.bib17)\]\(真实多语种人机日志;用户轮与助手轮拼成文本\)与 OASST2\[[4](https://arxiv.org/html/2611.27506#bib.bib18)\]\(人写对话树\)。
- •代码:codeparrot/github\-code\-clean。数学:FineMath\-4\+\[[2](https://arxiv.org/html/2611.27506#bib.bib19)\]。

每个样本不加特殊 token 切分。对每个 token id 计数;对每个高位字节 token,用 tokenizer 的字符偏移找回被拆开的 Unicode 字符并归类\(CJK 基本区、CJK 扩展区、谚文、emoji、私用区、控制符、各文字系统\)。

### 3\.3配比与总量

预训练配比不公开,所以我们在六个桶\(英文、中文、代码、数学、对话、其他语种\)上设六套情景,报告区间\(表[2](https://arxiv.org/html/2611.27506#S4.T2a)\)。”其他”桶是 10 个主要语种的等权平均;long\_tail情景再把 10% 给另外 22 个语种的等权平均。桶内网页权 0\.8、维基权 0\.2。

总量:Qwen3\.8 没有公告预训练规模,模型卡没有 token 数也没有技术报告\[[15](https://arxiv.org/html/2611.27506#bib.bib4)\]。Qwen3 报告\[[20](https://arxiv.org/html/2611.27506#bib.bib5)\]给出上一代 119 个语种共 36T token,而那一代用的是更小的 151k 词表。因此我们以*每101210^\{12\}预训练 token*的次数为主量,36T 只作尺度并标明。MiniMax\-M3\.1\-Flash\[[7](https://arxiv.org/html/2611.27506#bib.bib21)\]与 MiniCPM5\-2B\[[9](https://arxiv.org/html/2611.27506#bib.bib20)\]也都没公告总量,只按每101210^\{12\}token 报。

### 3\.4权重\(路线二\)

取官方 bf16 检查点,只读embed\_tokens与lm\_head两个张量\(MiniMax 经 HTTP Range 直接读 safetensors 分片中的 4\.9 GB,不下载整个模型\)。每行算ℓ2\\ell\_\{2\}范数以及减去列均值后的范数。四个模型:Qwen3\.8\-27B\(隐层 5120\)、Qwen3\.5\-9B\(同词表,隐层 4096\[[14](https://arxiv.org/html/2611.27506#bib.bib23)\]\)、MiniCPM5\-2B\(隐层 2048,不绑定\)、MiniMax\-M3\.1\-Flash\(隐层 6144;embedding 与输出矩阵不在其 MXFP8 量化范围内,以 bf16 存放\)。

零曝光基线。Qwen 的词表从 248,077 补齐到 248,320 行;这 243 行存在于矩阵里却永远不会被选中,所以是模型未动过的初始化\(可能被权重衰减收缩\)。MiniMax 有 3 行;MiniCPM5 没有,但它的 478 个<unused\_token\_\*\>行起同样作用。我们把这些行范数的中位数叫基线,第 99 百分位叫基线上限。

校准曲线。普通多字节 token 的配比频次pp来自路线一\(base 情景\)。把log10⁡p\\log\_\{10\}p按 0\.5 dex 分箱,取每箱范数中位数。等效频次。对范数为nn的字节 token,取所有范数在n±0\.01n\\pm 0\.01内的普通 token,报其log10⁡p\\log\_\{10\}p的中位数\(”邻域反推”\);这对不严格单调的曲线也稳,但只在单调段有意义。同时报范数与log10⁡p\\log\_\{10\}p的 Spearman 秩相关。

## 4路线一:语料统计

### 4\.1单字节 token 基本都是 ASCII

表[1](https://arxiv.org/html/2611.27506#S4.T1a)列出每个域在三家 tokenizer 下的每 token 字节数、单字节 token 占比与高位字节占比。在 Qwen3\.8 tokenizer 下,单字节 token 占英文网页 18%、中文网页 13%、代码 31%、数学 36%。仅数字就占全部 token 的 4\.7%\(英文网页\)到 14\.9%\(数学\),因为 Qwen 把每个数拆成单个数字;ASCII 标点再加 7–11%。这 128 个 ASCII 字节 token 是词表里最高频的 token 之一:换行字节 0x0A 一个,在 36T 尺度下就约被见101210^\{12\}次。六套配比下单字节占比 18\.5–21\.9%,即每101210^\{12\}预训练 token 约2×10112\\times 10^\{11\}次。

### 4\.2高位字节:随文字系统从 0\.003% 到 45%

高位字节只在字符不在词表里时出现。Qwen3\.8 tokenizer 下,俄文 0\.003%,法、意、土、德、葡与英文网页 0\.005–0\.015%,中文网页 0\.44%,中文维基 0\.59%,数学 0\.63%,韩文 1\.3%,孟加拉文 1\.6%,波斯文 1\.9%,卡纳达文 2\.0%,僧伽罗文 4\.5%,缅甸文 6\.4%,亚美尼亚文 9\.8%,高棉文 12%,老挝文 16%,阿姆哈拉文 45%\(图[1](https://arxiv.org/html/2611.27506#S4.F1a)\)。触发成因按域不同:

- •中文:82–86% 的回退来自 CJK 基本区里没有 token 的生僻字\(如 讷、厝、冢、腓、谥、祯\);其次是 CJK 扩展区。
- •韩文:71% 是词表未收的谚文音节\(如 U\+D53C、U\+D0C0、U\+D50C\);韩文是主要语种里回退率最高的。
- •数学:私用区码位\(Symbol 字体残留,如 U\+F02B\)25%,其他符号、数学运算符与 C1 控制符。
- •代码:C1 控制符 U\+0080–U\+009F\(39%;多为 Windows\-1252 误解码\),其次 emoji。
- •对话:emoji\(WildChat 中 25%\)、生僻汉字、拼音声调字母\(ǎ、ǐ、ǒ\)。

表 1:三家 tokenizer\(Qwen3\.8 / MiniMax\-M3\.1\-Flash / MiniCPM5\-2B\)在同一批公开样本上的分域统计。B/tok:每 token 的 UTF\-8 字节数;1\-byte%:单字节 token 占全部 token 的比例\(基本是 ASCII\);high%:UTF\-8 回退字节 0x80–0xFF 的比例。前 8 行每域 30 MB\(英文维基 10 MB\),其余每语种 10 MB。English WikipediaEnglish webChinese WikipediaChinese webGitHub codeFineMathWildChat\-1MOASST2GermanFrenchSpanishPortugueseItalianPolishTurkishIndonesianVietnameseRussianUkrainianGreekHebrewArabicPersianUrduHindiBengaliTamilTeluguKannadaMalayalamSinhalaThaiLaoKhmerBurmeseJapaneseKoreanGeorgianArmenianAmharic0\.010\.010\.10\.1111010100100高位字节 token 占全部 token 的 %\(对数\)Qwen3\.8MiniMax\-M3\.1\-FlashMiniCPM5\-2B图 1:三家 tokenizer 在同一批公开语料\(540 MB,33 个语种\)上,UTF\-8 回退字节\(0x80–0xFF\)占全部 token 的比例\(对数坐标\)。跨语种相差四个数量级;词表完全不覆盖的文字系统实际上就是按字节编码\(图右侧;老挝文与缅甸文在 MiniMax 与 MiniCPM5 上数字完全相同,因为两家词表都对每个字符回退\)。同一批样本换成 MiniMax 与 MiniCPM5 的 tokenizer,说明回退率是词表覆盖的属性而不是语言的属性。MiniMax 覆盖阿拉伯文\(0\.14%\)但不覆盖希伯来文\(12%\)、乌尔都文\(34%\)、各印度系文字\(5–46%\)、泰文\(13%\)、格鲁吉亚文\(45%\)、亚美尼亚文\(82%\);MiniCPM5 还缺阿拉伯文\(22%\)、波斯文\(19%\)、希伯来文\(44%\),越南文\(13%\)和乌克兰文\(5\.6%\)也频繁回退。老挝文、高棉文、缅甸文、亚美尼亚文、阿姆哈拉文在三家 tokenizer 下都基本按字节编码;老挝文与缅甸文在 MiniMax 和 MiniCPM5 上数字完全一致,因为两家词表都没有一个覆盖这些文字的 token、而预切分规则相同。对这些文字,这些模型已经是字节模型,它们关于这些文字的全部知识都存放在高位字节的 embedding 里。

### 4\.3配比情景

表[2](https://arxiv.org/html/2611.27506#S4.T2a)给出六套情景下的单字节与高位字节占比。Qwen3\.8 在”其他”桶只含主要语种时,高位字节占 0\.146%\(英文偏重\)到 0\.268%\(中文偏重\),差距不到2×2\\times;长尾文字占 10% 时为 0\.663%。每101210^\{12\}预训练 token 对应1\.51\.5–2\.7×1092\.7\\times 10^\{9\}\(主流\)到6\.6×1096\.6\\times 10^\{9\}\(长尾\)个高位字节 token。36T 尺度下合计5\.25\.2–9\.7×10109\.7\\times 10^\{10\}\(主流\)或2\.4×10112\.4\\times 10^\{11\}\(长尾\)。MiniMax 高 2–3 倍\(0\.31–0\.84%,长尾 3\.4%\),MiniCPM5 高 5 倍\(0\.64–1\.7%,长尾 5\.3%\),因为它们的词表覆盖更少文字。

表 2:六套配比情景下单字节 token 与高位字节的占比\(桶 en/zh/code/math/chat/other 的 %:base 40/25/15/5/5/10;en\_heavy 60/15/12/5/3/5;zh\_heavy 30/40/12/5/5/8;code\_heavy 35/20/30/5/3/7;multilingual 35/20/12/5/3/25;long\_tail 35/20/12/5/3/15 另加 10 给 22 个长尾语种\)。乘101010^\{10\}即每101210^\{12\}预训练 token 的次数。
### 4\.4逐字节分布

128 个高位字节之间的曝光极不均匀。base 情景、Qwen3\.8 tokenizer 下,续字节 0x80–0xBF 拿走全部高位字节出现次数的 88%\(36T 尺度6\.6×10106\.6\\times 10^\{10\}\),两字节首 0xC2–0xDF 7\.6%,三字节首 0xE0–0xEF 4\.3%,四字节首 0xF0–0xF4 0\.2%。按 36T 尺度的次数分档:27 个字节10910^\{9\}–101010^\{10\},55 个10810^\{8\}–10910^\{9\},19 个10710^\{7\}–10810^\{8\},11 个少于10710^\{7\}\(罕用的两字节首 0xD1–0xDF、0xE0、0xF4\),16 个在 540 MB 样本里一次没出现:13 个非法字节加四字节首 0xF1–0xF3\(只在 U\+40000 以上的码位出现,即 CJK 扩展 B 及之后\)。合法高位字节的中位数在 36T 尺度下被见6\.8×1086\.8\\times 10^\{8\}次,即每101210^\{12\}token1\.9×1071\.9\\times 10^\{7\}次。MiniMax 与 MiniCPM5 的对应中位数为每101210^\{12\}token2\.8×1072\.8\\times 10^\{7\}与7\.7×1077\.7\\times 10^\{7\};它们未出现的集合是 13 个非法字节加 0xE6、0xE7、0xF1–0xF3\(MiniMax\)和 0xE7、0xF1–0xF3\(MiniCPM5\),即那些词表把对应码位区完全覆盖了的首字节。

## 5路线二:embedding 范数

### 5\.1基线、曲线与十三个没动过的字节

表[3](https://arxiv.org/html/2611.27506#S5.T3a)汇总四个模型,图[2](https://arxiv.org/html/2611.27506#S5.F2a)画出校准曲线并叠上 256 个字节 token。

表 3:权重侧汇总。rows:embedding 行数;n0n\_\{0\}:零曝光参照行\(补齐行,MiniCPM5 为未用保留 token\);‖e‖0\\\|e\\\|\_\{0\}、‖h‖0\\\|h\\\|\_\{0\}:其 embedding / 输出行范数中位数;”high bytes still at init”:embedding 范数不到普通 token 中位数一半的高位字节个数\(括号内:低于参照行第 99 百分位的个数\)。四个模型里这一集合都是同样的 13 个字节 0xC0、0xC1、0xF5–0xFF。ρe\\rho\_\{e\}、ρh\\rho\_\{h\}:语料里出现过的高位字节内部,语料log10⁡p\\log\_\{10\}p与 embedding / 输出范数的 Spearman 相关;log⁡p^\\hat\{\\log p\}:这些字节由 embedding 范数邻域反推的log10⁡p\\log\_\{10\}p中位数;log⁡pobs\\log p\_\{\\rm obs\}:它们的语料log10⁡p\\log\_\{10\}p中位数。−9\-9−8\-8−7\-7−6\-6−5\-5−4\-4−3\-3−2\-2000\.50\.511embedding 行范数Qwen3\.8\-27B普通 token\(箱中位数\)高位字节 0x80–0xFFASCII 字节零曝光基线−9\-9−8\-8−7\-7−6\-6−5\-5−4\-4−3\-3−2\-2000\.50\.511Qwen3\.5\-9B−9\-9−8\-8−7\-7−6\-6−5\-5−4\-4−3\-3−2\-2000\.20\.20\.40\.40\.60\.60\.80\.811log10⁡p\\log\_\{10\}pembedding 行范数MiniCPM5\-2B−9\-9−8\-8−7\-7−6\-6−5\-5−4\-4−3\-3−2\-2000\.50\.5111\.51\.522log10⁡p\\log\_\{10\}pMiniMax\-M3\.1\-Flash图 2:embedding 行范数与语料频次\(base 配比下 token 概率的log10\\log\_\{10\}\)。蓝线:普通多字节 token 每 0\.5 dex 一箱的中位数;红圈:128 个高位字节;灰叉:128 个 ASCII 字节;虚线:从未训练的补齐行。语料样本里未出现的字节没有横坐标,只在表中列出。曲线只在模型各异的拐点以下单调\(Qwen3\.8\-27B 约log10⁡p≈−4\\log\_\{10\}p\\approx\-4,Qwen3\.5\-9B 与 MiniCPM5\-2B 约−5\-5,MiniMax 在观测范围内没有拐点\)。基线。参照行极紧:Qwen3\.8\-27B 0\.2277\(第 99 百分位 0\.233\),Qwen3\.5\-9B 0\.1992,MiniMax 0\.0191,MiniCPM5 恰为 0\(其未用行被清零,478 行共用同一条范数 0\.385 的输出行\)。普通 token 的中位数分别为 0\.93\(Qwen3\.8\-27B\)、0\.89\(Qwen3\.5\-9B\)、0\.81\(MiniCPM5\)、1\.60\(MiniMax\)。

十三个字节。四个模型里 embedding 范数远低于已训练群体的高位字节,恰好都是 0xC0、0xC1 与 0xF5–0xFF 这 13 个合法 UTF\-8 不可能出现的值。Qwen3\.8\-27B 中其中 12 个低于基线上限,0xFE 略高于上限\(0\.2332 对 0\.2330\);Qwen3\.5\-9B 与 MiniMax 中 13 个全在基线上;MiniCPM5 中它们的范数在 0\.03–0\.33,而已训练群体高于 0\.78\(被清零的保留行为 0,这说明字节行是正常初始化后在权重衰减下收缩、从未收到过梯度\)。每一个合法高位字节,包括在我们 540 MB 样本里从未出现的四字节首 0xF1–0xF3,范数都在已训练区间\(Qwen3\.8\-27B:样本里出现过的 112 个合法字节中位 1\.07,0xF1–0xF3 为 0\.70–0\.95;MiniMax:样本里未出现但合法的 0xE6、0xE7、0xF1–0xF3 五个字节 1\.52–1\.58\)。可见权重比 540 MB 的样本看得更远,并且恰好确认了语料路线预测为缺席的那一组字节。

校准曲线。Qwen3\.8\-27B 普通 token 的 embedding 范数中位数从log10⁡p=−8\.25\\log\_\{10\}p=\-8\.25处的 0\.78 单调升到−3\.75\-3\.75处的 1\.11\(全体普通 token 上 Spearman 0\.68\),再在最高频 token 上降到 1\.05。输出行范数与频次无关\(0\.03\)。Qwen3\.5\-9B 见顶更早,在log10⁡p≈−5\.25\\log\_\{10\}p\\approx\-5\.25处 0\.96,到−2\.75\-2\.75降至 0\.79;MiniCPM5 在−4\.75\-4\.75处见顶 0\.86;MiniMax 在整个观测范围内单调上升\(1\.57 到 1\.75\),看不到拐点。折返是表示退化\[[3](https://arxiv.org/html/2611.27506#bib.bib10),[21](https://arxiv.org/html/2611.27506#bib.bib11)\]中与频次有关的那部分:最高频的 token 被拉向均值方向而失去范数。共用词表的两个模型\(Qwen3\.8\-27B 与 Qwen3\.5\-9B\)拐点位置不同,所以它不是 tokenizer 的属性。

### 5\.2合法高位字节的等效频次

把合法高位字节放到各自模型的曲线上:Qwen3\.8\-27B 邻域反推的log10⁡p\\log\_\{10\}p中位数为−5\.30\-5\.30,语料值\(base 情景\)为−4\.69\-4\.69,差 0\.6 dex\(4 倍\);MiniMax 为−4\.44\-4\.44对−4\.39\-4\.39\(0\.05 dex\)。Qwen3\.5\-9B 与 MiniCPM5 的合法高位字节落在拐点的下降侧,反推得−6\.41\-6\.41与−5\.81\-5\.81,对应语料值−4\.69\-4\.69与−4\.03\-4\.03,低估 1\.7–1\.8 dex,组内 embedding 范数与频次的秩相关也变成负的\(−0\.65\-0\.65、−0\.35\-0\.35\)。输出行范数表现不同:高位字节内部它与频次的秩相关在两个 Qwen 模型里都是 0\.55,MiniCPM5 为 0\.64\(但 MiniMax 只有 0\.06,那里是 embedding 一侧有信息\)。所以每个模型都有一侧矩阵的范数在高位字节区间仍跟着频次走,但是哪一侧必须逐模型检查。

ASCII 字节是所有 token 中最高频的,在每个模型里都在拐点之外;它们的范数\(Qwen3\.8\-27B 中位 1\.00\)只能说明”训练充分”。样本里从未出现的 8 个 ASCII 控制字节\(0x04、0x07、0x17–0x19、0x1B、0x1E、0x1F\)在除 MiniCPM5\(0\.51,介于其基线 0 与已训练中位 0\.81 之间\)外的所有模型里也都在已训练区间,推测预训练里的二进制或错误编码内容含有它们。

## 6讨论

#### 两条路线的共识。

两条路线都说:Qwen3\.8 里 128 个 ASCII 字节 token 是词表里训练得最充分的 token 之一;每个合法高位字节在 36T 尺度下被见过10810^\{8\}–10910^\{9\}次\(每101210^\{12\}token10710^\{7\}–10810^\{8\}次\);13 个非法字节从未被见过。这就是字节化\[[22](https://arxiv.org/html/2611.27506#bib.bib22)\]没有从随机 embedding 起步的原因:它保留的 256 行,除 13 个无害的例外,每行已经收到过10710^\{7\}到101210^\{12\}次梯度更新。它也解释了为什么 ASCII 内容几乎原样挺过了改造,而多字节文字需要续训:高位字节虽被见过很多次,但几乎总是作为*生僻*字符的碎片,所以 embedding 编码的是”这是某个不常见 CJK 字的第二个字节”,而不是常用字的身份\\CJK@punctchar\\CJK@uniPunct0”80”94\\CJK@punctchar\\CJK@uniPunct0”80”94常用字模型一向是整 token 读的。

#### 对低资源文字的含义。

对阿姆哈拉文、老挝文、高棉文、缅甸文、亚美尼亚文,Qwen3\.8 实际上是字节模型;MiniMax\-M3\.1\-Flash 与 MiniCPM5\-2B 对另外十几种文字也是。这些文字的逐字节曝光就是它们在预训练里的份额\\CJK@punctchar\\CJK@uniPunct0”80”94\\CJK@punctchar\\CJK@uniPunct0”80”94极小\\CJK@punctchar\\CJK@uniPunct0”80”94\\CJK@punctchar\\CJK@uniPunct0”80”94而且分摊在同样承载生僻汉字、emoji 与 Symbol 字体残留的那 128 个 embedding 上。公平性文献\[[13](https://arxiv.org/html/2611.27506#bib.bib12),[1](https://arxiv.org/html/2611.27506#bib.bib13)\]用 token 数衡量这一代价;权重路线显示了另一种代价:一种文字的全部表示要靠一组梯度历史被其他文字主导的 embedding 来承载。

#### 局限。

\(i\)配比是假设;主流配比下敏感性<2×<2\\times,长尾文字达到 10% 时3×3\\times。\(ii\)Qwen3\.8 的预训练规模未公告;所有”36T 尺度”的绝对次数都是借 Qwen3 的数字做尺度。\(iii\)每域样本 10–30 MB;稀于∼10−7\\sim 10^\{\-7\}的字节语料路线分辨不出\(权重能定性分辨\)。\(iv\)权重反映预训练与后训练之和,两者不可分。\(v\)范数反推只在逐模型曲线的单调段有效;我们只报log10⁡p\\log\_\{10\}p的一位有效数字。

## 7结论

BPE 模型的 256 个字节 token 不是一个均匀的群体。128 个 ASCII 字节是普通的、极高频的 token\(占全部 token 的 13–36%\)。115 个合法高位字节是真正的 UTF\-8 回退,在 Qwen3\.8 里约占 token 的 0\.2%\\CJK@punctchar\\CJK@uniPunct0”80”94\\CJK@punctchar\\CJK@uniPunct0”80”94每101210^\{12\}预训练 token 每个字节10710^\{7\}–10810^\{8\}次\\CJK@punctchar\\CJK@uniPunct0”80”94\\CJK@punctchar\\CJK@uniPunct0”80”94主要由生僻汉字、未收录的谚文音节、emoji、控制符以及词表完全不覆盖的文字触发。合法 UTF\-8 不可能含有的 13 个字节从未被见过,我们检查的四个模型都在权重里这样说。两条估计路线在范数–频次曲线单调的地方相差不到 4 倍;而词表的补齐行是任何此类分析都可以使用的、免费且精确的零曝光参照。脚本、分域统计与行范数提取工具随本报告公开。

相似文章

Pruned BPE: Post-training Visibility Pruning and Token Reallocation for Byte Pair Encoding

arXiv cs.CL

This paper proposes Pruned BPE, a post-training method that prunes low-exposure tokens from a BPE vocabulary and reallocates slots to better-exposed candidates, reducing encoded length without increasing model-visible vocabulary size. Experiments on English and Chinese corpora show approximately 0.27–0.36% encoded length reduction over standard BPE.

面向字节级BPE的书写系统级分词器适配

arXiv cs.CL

本文介绍了BPE引导插入,用于对字节级BPE模型进行事后分词器适配,在保持词汇表大小固定的同时保留大多数token-ID分配。该方法将乌克兰语的token数量减少约33-36%,同时将对英语和其他欧洲语言的影响降至最低。

TempQuant:为量化语言模型学习自适应温度

arXiv cs.LG

TempQuant 提出自适应学习量化语言模型的温度与 top-p 设置,通过校准使量化模型的下一词元概率分布更接近全精度模型,在 3-bit Qwen3-4B 上将 MATH 准确率从 34% 提升至 51%。

tencent/WeMM-Embedding 9B/4B/2B

Reddit r/LocalLLaMA

腾讯推出 WeMM-Embedding,这是一系列基于 Qwen3.5 构建的通用多模态嵌入模型,提供 9B、4B 和 2B 尺寸,支持文本、图像、视频和视觉文档的嵌入生成。

Qwen3.8-Flash-Next

Simon Willison's Blog

Qwen 发布了 Qwen3.8-Flash-Next,这是一款开放权重的多模态 MoE 模型,拥有 125B tokens,但只有 6B 活跃参数,提供了性能提升,并作为 Qwen4 架构的早期预览。