Tokenization is Sensitive to Language Variation

Publication date

2025

Authors

Wegmann, Anna MariaISNI 0000000493074999
Nguyen, DongISNI 0000000419527451
Jurgens, David

Editors

Che, Wanxiang
Nabende, Joyce
Shutova, Ekaterina
Pilehvar, Mohammad Taher

Advisors

Supervisors

Document Type

Part of book
Open Access logo

License

cc_by

Abstract

Variation in language is ubiquitous and often systematically linked to regional, social, and contextual factors. Tokenizers split texts into smaller units and might behave differently for less common linguistic forms. This might affect downstream LLM performance differently on two types of tasks: Tasks where the model should be robust to language variation (e.g., for semantic tasks like NLI, labels do not depend on whether a text uses British or American spelling) and tasks where the model should be sensitive to language variation (e.g., for form-based tasks like authorship verification, labels depend on whether a text uses British or American spelling). We pre-train BERT base models with the popular Byte-Pair Encoding algorithm to investigate how key tokenization design choices impact the performance of downstream models: the corpus used to train the tokenizer, the pre-tokenizer and the vocabulary size. We find that the best tokenizer varies on the two task types and that the pre-tokenizer has the biggest overall impact on performance. Further, we introduce a new approach to estimate tokenizer impact on downstream LLM performance, showing substantial improvement over metrics like Rényi efficiency. We encourage more work on language variation and its relation to tokenizers and thus LLM performance.

Keywords

Language and Linguistics, Linguistics and Language, Computer Science Applications

Citation

Wegmann, A, Nguyen, D & Jurgens, D 2025, Tokenization is Sensitive to Language Variation. in W Che, J Nabende, E Shutova & M T Pilehvar (eds), Findings of the Association for Computational Linguistics : ACL 2025. Proceedings of the Annual Meeting of the Association for Computational Linguistics, Association for Computational Linguistics (ACL), pp. 10958-10983, 63rd Annual Meeting of the Association for Computational Linguistics, ACL 2025, Vienna, Austria, 27/07/25. https://doi.org/10.18653/v1/2025.findings-acl.572, conference