Abstract
This study evaluates the effectiveness of monolingual versus multilingual BERT-based models for Marathi, a major Indo-Aryan language with over 80 million speakers. Despite its large speaker base, Marathi remains relatively low-resource in the NLP landscape. We compare the performance of the "Maha" family of monolingual models (MahaBERT, MahaALBERT, and MahaRoBERTa) against prominent multilingual models (mBERT, IndicBERT, and XLM-RoBERTa) across five diverse tasks, including hate speech detection and sentiment analysis. Our results demonstrate a consistent "Maha" advantage, showing that specialized monolingual pre-training captures linguistic nuances more effectively than broad multilingual approaches, particularly when fine-tuned for specific downstream tasks.
Introduction
In contemporary Natural Language Processing (NLP), the prevailing trend has been the development of massive multilingual models like mBERT and XLM-RoBERTa, which are trained on over 100 languages simultaneously. While these models offer impressive cross-lingual transfer capabilities, they often suffer from "language dilution," where the specific syntactic and semantic complexities of individual languages—especially those considered low-resource—are not fully captured.
Marathi, the third most spoken language in India, presents unique challenges due to its morphologically rich structure and the prevalence of informal, code-mixed content on social media. This research investigates whether the computational investment required to build dedicated monolingual models for Marathi is justified by performance gains over existing multilingual giants.
Methodology
To provide a comprehensive comparison, the study evaluates two distinct categories of Transformer-based models:
- Multilingual Models: mBERT (Multilingual BERT), IndicBERT (a model specifically pre-trained on 12 Indian languages), and XLM-RoBERTa.
- Monolingual Marathi Models: The "Maha" family, including MahaBERT, MahaALBERT, and MahaRoBERTa. These models were pre-trained on the L3Cube-MahaCorpus, a curated Marathi dataset containing approximately 752 million tokens.
Training Regimes
The models were tested under two specific experimental setups to evaluate both their adaptability and the quality of their internal representations:
- Non-Freeze (Fine-tuning): The entire model architecture, including all Transformer weights, is updated during the training process for a specific task.
- Freeze (Feature Extraction): The weights of the BERT layers are kept static. The model acts as a fixed feature extractor, and only a simple linear classifier is trained on the resulting sentence embeddings. This setup specifically tests the "out-of-the-box" richness of the model's language understanding.
Datasets and Benchmarks
The models were evaluated across five Marathi-specific datasets to ensure robustness across different domains:
- HASOC’21: A binary classification task for identifying hateful vs. non-hateful content.
- L3Cube-MahaHate: A nuanced 4-class dataset categorizing speech into Hate, Offensive, Profane, or Neutral.
- L3Cube-MahaSent: A sentiment analysis dataset (Positive, Negative, Neutral) derived from social media.
- Marathi News Articles & Headlines: Two datasets focused on classifying formal text into categories such as sports, entertainment, and lifestyle.
Results and Discussion
The Monolingual Advantage
The quantitative analysis reveals a clear superiority for monolingual models in the fine-tuned (Non-Freeze) category. In nearly every benchmark, a member of the "Maha" family outperformed the multilingual counterparts.
For instance, in the HASOC hate speech detection task, MahaRoBERTa achieved an accuracy of 0.890, significantly higher than mBERT’s 0.875. In general text classification (News Articles), MahaALBERT—a more parameter-efficient variant—reached a near-perfect accuracy of 0.991, compared to 0.976 for mBERT. These results suggest that monolingual pre-training on a large, language-specific corpus allows the model to develop a deeper understanding of Marathi's specific vocabulary and grammar.
Architecture-Specific Strengths
Interestingly, the research found that different architectures within the monolingual family excelled at different tasks:
- MahaRoBERTa emerged as the leader for complex, context-dependent tasks like hate speech detection.
- MahaALBERT proved most effective for standard text and sentiment classification, offering high performance with a smaller computational footprint.
The "Frozen" Performance Gap
When the models were evaluated in the "Freeze" (feature extraction) mode, performance dropped across the board. This decline was most pronounced in social media datasets (MahaHate and MahaSent). This indicates that while the pre-trained embeddings are powerful, they are primarily optimized for the formal language found in Wikipedia and news (the primary sources of pre-training data). They struggle to represent the informal slang and non-standard syntax of social media without task-specific fine-tuning.
Conclusion
This study confirms that for Marathi NLP, monolingual models provide a significant performance boost over multilingual alternatives. The "Maha" family of models demonstrates that specialized pre-training is essential for capturing the nuances of regional languages. While multilingual models are useful for broad applications, the development of high-quality, language-specific resources is necessary to achieve state-of-the-art results in low-resource settings. Future work should focus on improving the robustness of these models to informal social media dialects and expanding the "Maha" ecosystem to include more diverse domains.
Summary updated