How Many Bytes Has a BPE Model Seen? Estimating Byte-Token Exposure in Pretraining from Corpus Statistics and Embedding Norms
Liwei Zhang, ZhiMing Tong, Mochen Guan, Linzhe Li
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.
Create a lesson
Related papers
Hy-MT3: More Accurate, Robust and Practical Multilingual Translation Models in the Wild
Mao Zheng, Zheng Li, Fangxu Liu et al.
Auditing Post-Training Unlearning in Diffusion Language Models using Sparse Autoencoders
Yunha Seo, Changhoon Kim
Tasklets: A Unit-Test Benchmark for Language Model Architectures
Zayd Muhammad Kawakibi Zuhri, Munachiso Samuel Nwadike, Kentaro Inui et al.
Alliance Rupture and Repair in Simulating Cognitive Behavioral Therapy Dialogues
Jian Chai, Yitian Yang, Siqi Liu et al.
Open CDLM: A Benchmark and Library for Continuous Diffusion Language Models
Hao Jiang, Ruixi Chen, Jiayi Han et al.
The Assistant Persona Differs Across Languages in Activation Space
Daniel Yoo, Naama Rozen, Evan Harris