TLDR: This research introduces a novel approach to multilingual tokenizer design, focusing on Indic languages. It systematically studies vocabulary size, pre-tokenization, and proposes “AdaptMix,” an adaptive data mixture algorithm. AdaptMix dynamically balances language representation during tokenizer training based on token-to-word ratios, significantly improving tokenization efficiency, model performance, and fairness for diverse languages, especially morphologically complex ones.
Large Language Models (LLMs) have transformed how we interact with technology, but a crucial, often overlooked, component is how these models “break down” words into smaller units, a process known as tokenization. While much research focuses on model architecture and training, the design of tokenizers, especially for languages beyond English, has received less attention. This is particularly true for multilingual contexts, where existing tokenizers often lead to inefficiencies like high token-to-word ratios, poor use of context length, and slower processing speeds.
A recent research paper, “The Art of Breaking Words: Rethinking Multilingual Tokenizer Design,” delves deep into these challenges, particularly focusing on Indic scripts. Indian languages present unique complexities due to their vast linguistic diversity, multiple native scripts (like Devanagari and Dravidian), and the common practice of code-mixing (using both native and Latin scripts in communication). Current multilingual models, such as Bloom, LLaMA, and Gemma, often perform suboptimally on Indian languages because their vocabularies are heavily skewed towards Latin-based languages.
Addressing the Tokenization Gap
The researchers conducted a systematic study to understand how factors like vocabulary size, pre-tokenization rules, and the composition of the training corpus influence both token-to-word efficiency and the overall quality of the language model. Their goal was to develop tokenizer strategies that can efficiently handle both native and transliterated Indic scripts.
The study adopted the SentencePiece algorithm for tokenizer training and curated a highly diverse dataset. This dataset included over 35 open-source datasets (like Sangraha, Samanantar, NLLB), web-scraped data, OCR data, and even synthetically generated text. The synthetic data was crucial for addressing the underrepresentation of many Indic languages, such as Maithili and Sindhi, in publicly available corpora. This ensured a broad coverage of domains, dialects, and linguistic styles.
Key Innovations and Findings
One significant aspect of their work involved extensive experiments to determine the optimal vocabulary size. They found that a 128K vocabulary size, using Byte-Pair Encoding (BPE), offered the best balance between token-to-word ratio and model efficiency, even with the inclusion of mathematical symbols and programming language tokens. While larger vocabularies (e.g., 256K) showed marginal improvements in token-to-word ratio, they significantly increased memory consumption and impacted model performance.
The team also explored various pre-tokenization strategies, which involve standardizing input text before tokenization. Surprisingly, their experiments showed that aggressive pre-tokenization, like separating all diacritics, actually worsened the token-to-word ratio for most languages. However, when evaluating the downstream impact on language models, these pre-tokenization strategies led to substantially better perplexity scores, indicating improved model performance despite the increased token fragmentation. This highlights a trade-off between tokenization efficiency and the model’s ability to comprehend linguistic nuances.
Perhaps the most novel contribution is their “AdaptMix” algorithm, an adaptive data mixture strategy for tokenizer training. Traditional methods often sample data based on language availability, which can disproportionately favor high-resource languages and lead to poor performance for morphologically complex, low-resource languages like Sanskrit or Malayalam. AdaptMix dynamically adjusts language-wise sampling proportions based on the current token-to-word ratio. This iterative feedback loop ensures that languages with higher token fragmentation (indicating inefficiency) receive increased representation in the training data, gradually steering the tokenizer towards a more balanced state. This approach significantly reduced the average token-to-word ratio by approximately 6% compared to conventional methods and achieved over 40% improvement against state-of-the-art multilingual Indic models.
Also Read:
- A Universal Framework for LLM Scaling
- ESNERA: A New Approach to Merging Named Entity Datasets for Better AI Performance
Impact and Future Outlook
The improvements achieved by this novel tokenizer design translate into measurable gains in both model performance (lower perplexity) and inference speed. The AdaptMix strategy consistently outperformed static baselines in achieving balanced tokenization and demonstrated better fairness across languages, particularly for those historically suffering from high token fragmentation. This research underscores that tokenization is not just a preliminary step but a critical lever, on par with model architecture and training objectives, for building efficient, scalable, and fair multilingual LLMs.


