LangMAP: A Language-Adaptive Approach to Tokenization

Clara Meister, Suchir Salhan, Andrzej Szablewski, Pietro Lesci, Paula Buttery, Tiago Pimentel


Abstract
Language-specific tokenizers improve tokenization quality and the downstream performance of models on those languages. Using one with an existing pretrained model requires either training a new model from scratch or adapting the vocabulary of the pretrained one. We propose Language-adaptive Maximum a Posteriori (LangMAP) Tokenization, which extends the UnigramLM algorithm to the multilingual setting by replacing its single distribution over the vocabulary with one distribution per language over the same vocabulary. LangMAP can be used to train a multilingual language model from scratch, or to adapt a pretrained model’s tokenizer to individual languages without changing its vocabulary. Language labels are required to estimate the per-language distributions; at inference, the algorithm selects the highest-probability segmentation across languages, i.e., it does not need a language label. In experiments where we adapt a pretrained tokenizer with LangMAP, we observe that LangMAP’s new segmentation has consistently higher morphological boundary recall than the original tokenizer. In code data, it improves alignment with abstract syntax tree (AST) leaf boundaries in all configurations we try. Despite ostensible improvements in segmentations, in language model fine-tuning experiments, we do not observe significant differences in performance for most language-task pairs.
Anthology ID:
2026.emnlp-main.2170
Volume:
Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing
Month:
October
Year:
2026
Address:
Budapest, Hungary
Editors:
Hung-Yi Lee, Sunipa Dev, Jessy Li, Desmond Elliott
Venue:
EMNLP
SIG:
SIGDAT
Publisher:
Association for Computational Linguistics
Note:
Pages:
49341–49362
Language:
URL:
https://aclanthology.org/2026.emnlp-main.2170/
DOI:
Bibkey:
Cite (ACL):
Clara Meister, Suchir Salhan, Andrzej Szablewski, Pietro Lesci, Paula Buttery, and Tiago Pimentel. 2026. LangMAP: A Language-Adaptive Approach to Tokenization. In Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing, pages 49341–49362, Budapest, Hungary. Association for Computational Linguistics.
Cite (Informal):
LangMAP: A Language-Adaptive Approach to Tokenization (Meister et al., EMNLP 2026)
Copy Citation:
PDF:
https://aclanthology.org/2026.emnlp-main.2170.pdf