TL;DR
Standard subword tokenizers are heavily optimized for English, leading to severe oversegmentation and poor performance when applied to morphologically rich and script-diverse Indic languages. This paper presents a comprehensive study of 17 Indic languages, demonstrating that linguistically informed choices—such as script-specific normalization, choosing Unigram LM over BPE, and clustering vocabularies by language family—significantly improve tokenization efficiency and downstream model performance.
What Problem Does This Paper Address?
Tokenization is the foundational step for any Large Language Model (LLM), yet popular subword algorithms like Byte Pair Encoding (BPE) are fundamentally biased toward high-resource, Latin-script languages. When applied to the Indian subcontinent—a region home to diverse language families, rich inflectional morphologies, and unique orthographic variations—these tokenizers struggle.
In a multilingual model, a single shared vocabulary must be distributed across multiple languages. Without careful design, high-resource languages dominate the vocabulary space. Low-resource or morphologically complex languages get shortchanged, forcing the tokenizer to fracture words into arbitrary, meaningless characters. This increases sequence lengths (inflating training costs) and degrades the model's ability to capture semantic and grammatical structures. The authors systematically investigate how normalization, vocabulary size, subword algorithms, and vocabulary grouping strategies can fix this imbalance.
Methods
The authors evaluate tokenization along four main axes:
- Subword Algorithms: They compare the frequency-based, bottom-up Byte Pair Encoding (BPE) against the probabilistic, top-down Unigram Language Model (ULM), alongside recent variants like PickyBPE and Overlap BPE (OBPE).
- Orthographic Normalization: They introduce a "fifth-case normalization" rule using the IndicNLP library. This standardizes regional typing variations by converting words containing an anusvāra (ं) into their corresponding nasal consonant equivalents (e.g., standardizing variations of the word andara / inside).
- Vocabulary Size: Testing scales from 32k to 256k tokens to find the optimal capacity.
- Vocabulary Combination Strategies: They contrast the standard Joint Method (naively concatenating all language data) against Cluster-based Methods. The cluster approaches group typologically or script-similar languages either automatically (via K-means clustering on vocabulary overlap vectors) or manually by language family (Cluster_lf).
Datasets
- Training: The Sangraha corpus, a high-quality verified dataset of Indic languages. The authors sampled 10% of the verified data, filtering out heavily code-mixed sentences to retain 17 distinct languages spanning 11 scripts and 2 language families (Indo-European and Dravidian).
- Intrinsic Evaluation: The Flores-200 dev set is used to measure tokenizer fertility and character-per-token (CPT) metrics. Morphological alignment is evaluated using MorphScore datasets for Gujarati, Tamil, Hindi, and Marathi.
- Extrinsic Evaluation: Downstream performance is benchmarked using the IndicXtreme suite, specifically focusing on Natural Language Inference (IndicXNLI) and Named Entity Recognition (Naampadam), alongside secondary evaluations on IndicQA, IndicCOPA, IndicSentiment, and Amazon Massive.
Key Insights and Ideas
- The 128k Vocabulary Sweet Spot: Interestingly, the vocabulary overlap between BPE and ULM increases steadily from 32k up to 128k, but drops sharply at 256k. This suggests that beyond 128k, the tokenizers begin adding highly arbitrary, language-specific subwords rather than clean, shared linguistic units.
- Unigram Understands Grammar Better: Unigram LM consistently outperforms BPE at preserving true morphological boundaries. Because Unigram treats tokenization probabilistically, it avoids the rigid, frequency-driven mistakes that cause BPE to slice prefixes and suffixes aggressively.
- The Zero-Shot vs. Fine-Tuning Trade-off: While naively training a joint vocabulary across all languages performs best in zero-shot settings, grouping vocabularies by language family (Cluster_lf) yields superior results during fine-tuning. Clustering prevents high-resource languages from crowding out low-resource tokens, preserving essential language-specific subwords.
Key Results
- Normalization Reduces Bloat: Applying script-specific normalization successfully lowered the tokenizer fertility score (the average number of subwords a word is split into) across all vocabulary sizes. For a 128k vocabulary, BPE fertility dropped from 1.717 to 1.664, and ULM dropped from 1.695 to 1.663. Up to 6% of unique words in the dataset benefited from this standardization.
- Morphological Superiority: As shown in the authors' MorphScore analysis, ULM consistently achieves higher alignment with ground-truth morphemes in Hindi and Marathi compared to BPE.
- Downstream Performance Boosts: In fine-tuned settings, the language-family-based cluster tokenizer (Cluster_lf) consistently beat the joint baseline, yielding an average improvement of +1.23 F1 on IndicXNLI and +1.08 F1 on Naampadam.
Limitations and Future Work
While comprehensive, the study is geographically limited to languages primarily spoken in India. The authors note that evaluating an even larger, more typologically diverse set of language families is an important next step. Additionally, high-quality morphological alignment datasets were only available for 4 out of the 17 languages, highlighting a critical gap in evaluation resources for Indic NLP. Finally, the exact dynamics of how these tokenization choices influence cross-lingual knowledge transfer during massive LLM pre-training remain an open and promising area for future research.
Summary updated