Designing Chinese Tokenizers under Data Constraints: A White-Box Empirical Study of Character Fragmentation
Abstract
Chinese text requires substantially more tokens than English in large language models (LLMs), increasing API costs and context-window consumption. Most prior work measures this premium using off-the-shelf tokenizers, but the underlying mechanism—where the additional tokens actually arise—remains poorly understood, particularly under data-constrained training, which is common in domain-specific and small-scale models. We implement BPE, WordPiece, and Unigram from scratch (approximately 1,000 lines of standard-library code), train them on 20,000 Chinese news documents, and quantify per-character tokenization across vocabulary sizes from 8K to 128K. Characters are grouped by frequency, and evaluation uses a held-out test set with clustered-bootstrap confidence intervals. The central result is a low-frequency fragmentation effect: at an 8K vocabulary, byte-level BPE splits characters appearing fewer than 100 times in training into an average of 2.04 tokens per character, compared with 1.00 for high-frequency characters; enlarging the vocabulary 16-fold reduces this value to 1.10 at a fixed training scale. Comparison with production tokenizers reveals a spectrum from 2.24 (OpenAI's cl100k) and 2.04 (our 8K implementation) to 1.02 (DeepSeek's Chinese-optimized 128K vocabulary), indicating that the effect depends on vocabulary allocation and training scale rather than being an inherent property of Chinese. A semantic-equivalence experiment further supports this conclusion: for equivalent Chinese-English sentence pairs, an English-centric tokenizer uses 65% more tokens for Chinese, whereas a balanced byte-level BPE trained on 20,000 documents (10K Chinese + 10K English) uses 27% fewer. The paper concludes with configuration guidance for Chinese-focused tokenizers under data constraints.
References
- Ahia, O., Kumar, S., Gonen, H., Kasai, J.,et al.(2023). Do all languages cost the same? Tokenization in the era of commercial language models. InEMNLP.
- Gage, P. (1994). A new algorithm for data compression.C Users Journal, 12(2), 23–38.
- Sennrich, R., Haddow, B., & Birch, A. (2016). Neural machine translation of rare words with subword units. InACL.
- Lee, K. S. J. W., Qorib, M. R., Soegeng, A. I., & Ng, H. T. (2026). Equity with efficiency: An empirical study of tokenizers for multilingual large language models.
- Bostrom, K., & Durrett, G. (2020). Byte pair encoding is suboptimal for language model pretraining. InFindings of EMNLP.
- Sun, Y., Yang, H., Lin, Z., & Zhang, M. (2026). LiteToken: Removing intermediate merge residues from BPE tokenizers.
- Chizhov, P., Arnett, C., Korotkova, E., & Yamshchikov, I. P. (2024). BPE gets picky: Efficient vocabulary refinement during tokenizer training. InEMNLP.
- Shao, K. (2026). Pruned BPE: Post-training visibility pruning and token reallocation for byte pair encoding.
- Schuster, M., & Nakajima, K. (2012). Japanese and Korean voice search. InICASSP.
- Wu, Y., Schuster, M., Chen, Z.,et al.(2016). Google's neural machine translation system.
- Kudo, T., & Richardson, J. (2018). SentencePiece: A simple and language independent subword tokenizer. InEMNLP (system demonstrations).
- Kudo, T. (2018). Subword regularization: Improving neural network translation models with multiple subword candidates. InACL.
- Rust, P., Pfeiffer, J., Vulić, I., Ruder, S., & Gurevych, I. (2021). How good is your tokenizer? On the monolingual performance of multilingual language models.
- Mielke, S. J., Alyafeai, Z., Salesky, E.,et al.(2021). Between words and characters: A brief history of open-vocabulary modeling and tokenization in NLP.Computational Linguistics.
- Cui, Y., Yang, Z., & Yao, X. (2023). Efficient and effective text encoding for Chinese LLaMA and Alpaca.
- Si, C., Zhang, Z., Chen, Y.,et al.(2021). Sub-character tokenization for Chinese pretrained language models.
- Ren, S., Shen, X., Zhou, Y., Ng, D., & Raj, A. (2026). Chinese language is not more efficient than English in vibe coding.
- Won, I., Yoo, H., Cho, M., Park, J., Song, H., & Lim, K. (2026). TREX: Tokenizer regression for optimal data mixture.
- Clark, J. H., Garrette, D., Turc, I., & Wieting, J. (2022). CANINE: Pre-training an efficient tokenization-free encoder for language representation.TACL, 10, 73–91.
- Xue, L.,et al.(2022). ByT5: Towards a token-free future with pre-trained byte-to-byte models.TACL, 10, 291–306.
- Yu, L., Simig, D., Flaherty, C., Aghajanyan, A., Zettlemoyer, L., & Lewis, M. (2023). MEGABYTE: Predicting million-byte sequences with multiscale transformers. InNeurIPS.
- Wang, J., Gangavarapu, T., Yan, J. N., & Rush, A. M. (2024). MambaByte: Token-free selective state space model.
- Pagnoni, A., Pasunuru, R., Rodriguez, P.,et al.(2024). Byte latent transformer: Patches scale better than tokens.
- Moryossef, A., Meister, C., Stepachev, P., & Elliott, D. (2025). Back to bytes: Revisiting tokenization through UTF-8.
- Delétang, G., Ruoss, A., Duquenne, P.-A.,et al.(2023). Language modeling is compression.
- Hu, Y.,et al.(2025). Entropy-driven pre-tokenization for byte-pair encoding. InICML 2025 Tokenization Workshop.
- Wang, C., Cho, K., & Gu, J. (2020). Neural machine translation with byte-level subwords. InAAAI.
- Petrov, A., Torr, P. H. S., & Bibi, A. (2024). Tokenization is more than compression.
- Nayeem, M. T., Alqahtani, S., Laskar, M. T. R., Mohiuddin, T., & Bari, M. S. (2025). Beyond fertility: Analyzing STRR as a metric for multilingual tokenization evaluation.
- Sun, M.,et al.(2016). THUCTC: An efficient Chinese text classifier.
- Barrault, L., et al. (2019). Findings of the 2019 conference on machine translation (WMT19). InProceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1)(pp. 1–61).
- Merity, S., Xiong, C., Bradbury, J., & Socher, R. (2016). Pointer sentinel mixture models.