Introduction
Standard multilingual language models (MLMs) like mBERT and XLM-R face a significant bottleneck in their vocabulary design. Typically, these models utilize a single joint vocabulary trained on a concatenated corpus of over 100 languages. This approach creates a "rich-get-richer" dynamic where high-resource languages and common scripts (like Latin) dominate subword selection. Consequently, low-resource languages or those with unique scripts suffer from "over-segmentation," where meaningful words are fragmented into numerous nonsensical pieces. This forces the model to expend excessive capacity on reconstructing meaning, often leading to degraded performance on downstream tasks.
This paper introduces a novel method to address this by clustering languages based on subword similarities and building a merged vocabulary from these clusters. This approach achieves a massive 8x reduction in out-of-vocabulary (OOV) rates and sets new state-of-the-art performance on multilingual benchmarks—all without increasing the model's parameter count.
Methodology: Language-Clustered Vocabularies
The authors propose a three-step pipeline to generate Language-Clustered Vocabularies (LCV):
- Language Vectorization: A small, language-specific vocabulary is generated for each of the 104 target languages. Each language is then represented as a high-dimensional binary vector, where each bit indicates the presence of a specific subword in that language's individual vocabulary.
- Clustering: These vectors are grouped using k-means clustering with cosine distance. This process automatically groups languages sharing linguistic features or scripts.
- Merged Vocabulary Generation: Instead of a single global vocabulary, separate vocabularies are trained for each cluster. These are then merged into a final multilingual vocabulary.
This method balances cross-lingual sharing with language-specific representation, ensuring that rare scripts receive a dedicated "budget" of subwords rather than being crowded out by high-resource languages.
Linguistic Clusters and Optimal Granularity
The researchers found that $k=8$ clusters provided the optimal balance for performance. These clusters naturally align with linguistic families and scripts, allowing for more efficient tokenization. For instance, one cluster might contain CJK languages (Chinese, Japanese, Korean), while another focuses on Cyrillic scripts.
By clustering, languages with unique scripts no longer compete directly with the massive volume of Latin-script data. For example, the OOV rate for Korean dropped by a factor of 26 under this scheme, significantly improving the model's ability to process these languages natively.
Evaluation and Key Results
The "CLUSTER" method was evaluated against the standard "JOINT" approach using 906 million sentences from Wikipedia for pre-training and several gold-standard benchmarks:
- TyDi QA: Gained +2.9 F1 points.
- XNLI: Improved accuracy by +2.1%.
- WikiAnn NER: Gained +2.8 F1 points.
- OOV Reduction: Achieved an overall 8x reduction in out-of-vocabulary rates.
A key insight from the study is the use of the Minimum Description Length (MDL) principle as a proxy for vocabulary quality. A "better" vocabulary represents text using fewer total tokens (longer, more meaningful subwords). The clustered approach consistently yielded lower description lengths, which correlated strongly with higher downstream accuracy.
Conclusion
The Language-Clustered Vocabularies approach demonstrates that while cross-lingual sharing is beneficial, providing languages with effective, script-appropriate representations is more critical for performance. By simply changing which subwords the model learns to embed, this method improves efficiency and performance across the board without adding any parameters. Future work may explore dynamic clustering or broader data domains beyond Wikipedia.
Summary updated