Feb 2026· arXiv.org· Vol abs/2602.17655· 2 citations· 40 references
Computer Science
TL;DR
UniLID, a simple and efficient LID method based on the UnigramLM tokenization algorithm, is introduced, which supports incremental addition of new languages without retraining existing models, and can naturally be integrated into existing language model tokenization pipelines.
Abstract
Language Identification (LID) is an important component of many multilingual natural language processing pipelines, where it facilitates corpus curation, training data analysis, and cross-lingual evaluation of large language models. Despite near-perfect performance on high-resource languages, existing systems remain brittle in low-resource and closely related language settings. We introduce UniLID, a simple and efficient LID method based on the UnigramLM tokenization algorithm. In short, to predict a string's language label, we simply ask: under which language's unigram distribution is this string most likely? Our formulation is data- and compute-efficient, supports incremental addition of new languages without retraining existing models, and can naturally be integrated into existing language model tokenization pipelines. Empirical evaluations against widely used baselines, including fasttext, GlotLID-M, and CLD3, show that UniLID achieves competitive performance on standard benchmarks, reaches 69% accuracy with five labeled samples per language and 89% with 25, and delivers large gains on fine-grained dialect identification.
Large language models rely on a single tokenizer that is chosen at training time and fixed thereafter. Most tokenizers are trained on English-dominant corpora, making them under-serve morphologically rich and non-Latin-script languages, where they can produce fragmented representations, longer sequence lengths, and red...
Multilingual Large Language Models (LLMs) traditionally rely on a single vocabulary shared by all supported languages, which can lead to uneven compression across them. Moreover, their large embedding and output matrices increase memory usage and slow inference, notably for small-scale models. It is also wasteful as mo...
Franck Signe Talla, Hippolyte Pilchen, François Yvon et al.· Conference on Empirical Meth...· 0 citations
Language Identification (LID) is a key component of multilingual NLP pipelines and multilingual corpus construction. LID errors can create spurious text–language associations, harming downstream model quality, especially for low-resource languages and fine-grained taxonomies involving closely related languages and di...
Rocco Tripodi· Transactions of the Associat...· 0 citations
Tokenization is a critical component of the language modeling pipeline, but it is poorly understood. Tokenizers can impact downstream performance, but there is currently mixed evidence about which tokenizer features predict a better language model without requiring a full training run. In this paper, we analyze approxi...
Antonio Lopardo, Luis Frentzen Salim, Shikhar Srivastava et al.· Conference on Empirical Meth...· 0 citations
This work introduces RunyaNER, the first publicly available NER benchmark for the East African language Runyankore, and uses it to investigate the choice of which languages to use for transfer and provides a systematic analysis of auxiliary language selection strategies.
Prosper Arineitwe Asiimwe, Francois Meyer, Jan Buys· Proceedings of the 6th Works...· 0 citations
Related blog posts
MIT News · Artificial Intelligence· news.mit.eduNov 23, 2026
Senior Research Scientist Jim Glass discusses how his MIT-IBM Computing Research Lab collaboration connects perception and language, and addresses the shortcoming of current models.
MIT News · Artificial Intelligence· news.mit.eduNov 19, 2026
An MIT and Dana-Farber Institute-led team used large language models to examine nearly 4,000 studies and hundreds of code repositories, revealing gaps in the information needed to scrutinize and reuse published research.