Abstract
India is a multilingual society with 1369 rationalized languages and dialects. Of these, the 22 scheduled languages have a total of 1.17 billion speakers. Despite India having the second largest digital footprint, state-of-the-art multilingual systems perform suboptimally on Indian (IN) languages. This is largely because multilingual language models (LMs) are often trained on 100+ languages, leading to a small representation of IN languages in their vocabulary and training data. We propose MuRIL, a multilingual LM specifically built for IN languages, trained on significantly larger amounts of IN text corpora and augmented with translated and transliterated pairs. MuRIL significantly outperforms mBERT on the XTREME benchmark and demonstrates high efficacy in handling transliterated data.
What Problem Does This Paper Address?
Despite India's massive digital footprint and linguistic diversity, state-of-the-art multilingual models often fail to serve Indian languages effectively. The authors identify three primary hurdles:
- The "Curse of Multilinguality": Models like mBERT are trained on over 100 languages simultaneously. This dilutes the representation of IN languages in the model's vocabulary. As shown in the figure below, mBERT's vocabulary is overwhelmingly dominated by the Latin script, leaving very little room for native Indian scripts. Comparison of script representation in mBERT vs. MuRIL vocabularies. Source, p. 3
- Resource Scarcity: Many IN languages are "resource-lean," lacking enough high-quality digital text to capture linguistic nuances.
- Transliteration and Code-Mixing: In informal settings, users frequently write IN languages using the Latin alphabet (Romanization) or mix English words into native sentences. Standard models struggle with this as they are trained primarily on formal native-script text.
Methods
MuRIL adopts the BERT-base architecture but introduces strategic changes to its training regime to better support the Indian linguistic landscape.
- Focused Vocabulary: Instead of a global vocabulary, MuRIL uses a 197,285-token WordPiece vocabulary tuned for 17 target languages. This results in a lower fertility ratio—the number of sub-words per word. A lower ratio means the model retains more semantic meaning per token rather than fragmenting words into meaningless characters. Fertility ratio comparison: MuRIL achieves lower sub-word fragmentation than mBERT across all target languages. Source, p. 3
- Dual Training Objectives: MuRIL utilizes Masked Language Modeling (MLM) for unsupervised learning on monolingual text and Translation Language Modeling (TLM) using parallel data (translated and transliterated pairs) to align representations across different languages and scripts.
- Data Augmentation: The researchers used the
indic-translibrary for synthetic transliterations and in-house systems for massive parallel English-IN data generation. - Upsampling: An exponential smoothing factor ($\alpha=0.3$) was applied to upsample data from lower-resource languages, preventing high-resource languages like Hindi from dominating the model.
Datasets and Evaluation
The model was trained on a massive corpus of approximately 16 billion tokens, comprising:
- Monolingual: Wikipedia and Common Crawl (OSCAR).
- Parallel/Translated: PMINDIA and internally translated versions of Wikipedia/Common Crawl.
- Transliterated: The Dakshina Dataset and synthetically generated transliterations.
Evaluation was conducted on the XTREME benchmark, covering tasks such as Named Entity Recognition (PANX), Part-of-Speech tagging (UDPOS), Sentiment Analysis (XNLI), and Question Answering (XQuAD, MLQA, TyDiQA).
Key Insights and Results
MuRIL establishes a new state-of-the-art for Indian languages:
- Specialization Drives Performance: By limiting the language set, MuRIL allocates more capacity to each language, leading to an average XTREME (IN) score of 68.6, significantly higher than mBERT’s 59.1.
- Robustness to Transliteration: The most dramatic gains occurred on transliterated test sets (XTREME IN-tr), where MuRIL scored 48.9 vs. mBERT’s 21.1.
- Semantic Preservation: The specialized vocabulary and lower fertility ratio ensure that Indian words are processed with better semantic integrity.
Limitations and Future Work
While MuRIL covers 17 major languages, hundreds of other Indian dialects remain unsupported. Additionally, true "code-mixing" (switching languages mid-sentence) remains a complex challenge. Despite upsampling, a data gap still exists between high-resource languages like Hindi and low-resource ones like Kashmiri.
MuRIL is publicly available on TensorFlow Hub and HuggingFace, providing a foundation for localized NLP tools in the Indian subcontinent.
Summary updated