[Paper Review] L3Cube-HindBERT and DevBERT: Pre-Trained BERT Transformer models for Devanagari based Hindi and Marathi Languages
This paper introduces L3Cube-HindBERT and DevBERT, monolingual BERT models pre-trained on large-scale Devanagari-script corpora for Hindi and Marathi, respectively. Trained on 1.8B and 2.5B tokens, respectively, these models outperform multilingual counterparts like MuRIL, XLM-R, and IndicBERT on Hindi and Marathi text classification and named entity recognition tasks, demonstrating that monolingual pre-training yields superior performance when sufficient monolingual data is available.
The monolingual Hindi BERT models currently available on the model hub do not perform better than the multi-lingual models on downstream tasks. We present L3Cube-HindBERT, a Hindi BERT model pre-trained on Hindi monolingual corpus. Further, since Indic languages, Hindi and Marathi share the Devanagari script, we train a single model for both languages. We release DevBERT, a Devanagari BERT model trained on both Marathi and Hindi monolingual datasets. We evaluate these models on downstream Hindi and Marathi text classification and named entity recognition tasks. The HindBERT and DevBERT-based models show significant improvements over multi-lingual MuRIL, IndicBERT, and XLM-R. Based on these observations we also release monolingual BERT models for other Indic languages Kannada, Telugu, Malayalam, Tamil, Gujarati, Assamese, Odia, Bengali, and Punjabi. These models are shared at https://huggingface.co/l3cube-pune .
Motivation & Objective
- To address the underperformance of existing monolingual Hindi BERT models on downstream NLP tasks compared to multilingual models.
- To leverage the shared Devanagari script between Hindi and Marathi to train a single, unified BERT model (DevBERT) for both languages.
- To improve performance on low-resource Indian language NLP tasks by providing high-quality, monolingual pre-trained models.
- To extend the approach by releasing monolingual BERT models for nine additional Indic languages, including Kannada, Telugu, and Tamil.
- To provide a public, accessible resource for researchers and practitioners working on Indian language NLP through the Hugging Face model hub.
Proposed method
- Pre-trained L3Cube-HindBERT on 1.8 billion tokens of monolingual Hindi text using the BERT architecture with masked language modeling.
- Pre-trained DevBERT on 2.5 billion tokens of combined Hindi and Marathi monolingual text, leveraging shared script and linguistic similarities.
- Fine-tuned the models on downstream classification and named entity recognition tasks using standard NLP benchmarks.
- Released models via Hugging Face with consistent architecture and tokenizer design for interoperability and ease of use.
- Trained additional monolingual BERT models from scratch for 9 other Indic languages using custom tokenizers and large-scale monolingual corpora.
- Evaluated performance against multilingual models (MuRIL, XLM-R, IndicBERT) and existing monolingual models (MahaBERT) on standard datasets.
Experimental results
Research questions
- RQ1Can a monolingual Hindi BERT model trained on a large-scale Hindi corpus outperform existing multilingual models on Hindi NLP tasks?
- RQ2Does training a single BERT model on both Hindi and Marathi data (DevBERT) yield competitive performance for both languages, given their shared Devanagari script?
- RQ3How do the performance of L3Cube-HindBERT and DevBERT compare to state-of-the-art multilingual models like MuRIL, XLM-R, and IndicBERT on Hindi and Marathi downstream tasks?
- RQ4Can monolingual BERT models for other low-resource Indian languages (e.g., Kannada, Telugu, Malayalam) be effectively trained and released to improve NLP performance?
- RQ5Does fine-tuning a monolingual model on a single language yield better results than using a multilingual model when sufficient monolingual data is available?
Key findings
- L3Cube-HindBERT achieved a 69.00% accuracy on the IITP Hindi movie review classification dataset, outperforming MuRIL (66.00%), XLM-R (67.00%), and IndicBERT (65.00%).
- DevBERT achieved a macro-F1 score of 88.31 on the L3Cube-MahaNER Marathi NER dataset, surpassing MahaBERT (88.00) and other multilingual models.
- On the Hindi WikiAnn NER task, DevBERT achieved a macro-F1 score of 85.00, outperforming MuRIL (84.90), XLM-R (83.04), and IndicBERT (82.65).
- L3Cube-HindBERT showed a 2.00 percentage point improvement over the next best multilingual model (XLM-R) on the Hindi text classification task.
- The DevBERT model achieved 85.00% accuracy on the L3Cube-MahaSent Marathi sentiment classification task, outperforming MuRIL (84.30%) and XLM-R (82.00%).
- The authors released monolingual BERT models for 9 additional Indic languages (Kannada, Telugu, Malayalam, Tamil, Gujarati, Assamese, Odia, Bengali, Punjabi), all available on Hugging Face for public use.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.