Skip to main content
QUICK REVIEW

[Paper Review] L3Cube-MahaCorpus and MahaBERT: Marathi Monolingual Corpus, Marathi BERT Language Models, and Resources

Raviraj Joshi|arXiv (Cornell University)|Feb 2, 2022
Natural Language Processing TechniquesComputer Science12 citations
TL;DR

This paper introduces L3Cube-MahaCorpus, a 24.8-million-sentence, 289-million-token Marathi monolingual corpus compiled from diverse internet sources, and presents MahaBERT, MahaAlBERT, MahaRoBERTa, and MahaGPT—multilingual BERT-based language models and a generative GPT model—all pre-trained on the full 752M-token Marathi corpus. The models achieve state-of-the-art performance on Marathi downstream tasks, outperforming multilingual baselines in text classification and named entity recognition.

ABSTRACT

We present L3Cube-MahaCorpus a Marathi monolingual data set scraped from different internet sources. We expand the existing Marathi monolingual corpus with 24.8M sentences and 289M tokens. We further present, MahaBERT, MahaAlBERT, and MahaRoBerta all BERT-based masked language models, and MahaFT, the fast text word embeddings both trained on full Marathi corpus with 752M tokens. We show the effectiveness of these resources on downstream Marathi sentiment analysis, text classification, and named entity recognition (NER) tasks. We also release MahaGPT, a generative Marathi GPT model trained on Marathi corpus. Marathi is a popular language in India but still lacks these resources. This work is a step forward in building open resources for the Marathi language. The data and models are available at https://github.com/l3cube-pune/MarathiNLP .

Motivation & Objective

  • To address the scarcity of large-scale, diverse monolingual Marathi corpora by expanding existing datasets with 24.8M sentences and 289M tokens from non-news internet sources.
  • To develop high-performing, monolingual BERT-based language models (MahaBERT, MahaAlBERT, MahaRoBERTa) and a generative MahaGPT model for Marathi NLP.
  • To train and release MahaFT, a fastText word embedding model trained on the full Marathi corpus for downstream NLP tasks.
  • To evaluate the effectiveness of these resources on Marathi-specific NLP tasks, including text classification, sentiment analysis, and named entity recognition (NER).
  • To provide open-source, high-quality Marathi NLP resources to support research and development in low-resource Indian language NLP.

Proposed method

  • Scraped and curated a diverse Marathi monolingual corpus (L3Cube-MahaCorpus) from multiple internet sources, including non-news content, to reduce data bias.
  • Combined L3Cube-MahaCorpus with existing public Marathi corpora (e.g., IndicNLP, OSCAR, CC-100) to form a 752M-token training dataset.
  • Pre-trained three BERT-based models—MahaBERT, MahaAlBERT, and MahaRoBERTa—using masked language modeling (MLM) and next sentence prediction objectives on the full corpus.
  • Fine-tuned the BERT models on downstream tasks: text classification (news articles, headlines), sentiment analysis (L3CubeMahaSent), and NER using a CRF layer on top of the final token embeddings.
  • Trained MahaFT, a fastText word embedding model, on the full Marathi corpus using skip-gram architecture, and evaluated it with a KNN classifier on sentence-level tasks.
  • Released MahaGPT, a generative language model, trained on the full Marathi corpus using autoregressive language modeling objectives.

Experimental results

Research questions

  • RQ1Can a large-scale, diverse monolingual Marathi corpus improve the performance of downstream NLP tasks compared to existing, often news-biased, corpora?
  • RQ2Do monolingual BERT-based models fine-tuned on a large, diverse Marathi corpus outperform multilingual BERT models on Marathi-specific NLP tasks?
  • RQ3How effective are fastText embeddings trained on a full Marathi corpus (MahaFT) compared to existing alternatives (e.g., Facebook’s FB-FT, IndicNLP’s INLP-FT) in Marathi text classification?
  • RQ4To what extent does the inclusion of non-news content in the monolingual corpus enhance the robustness and generalization of Marathi NLP models?
  • RQ5Can a generative Marathi language model (MahaGPT) be effectively trained on a large, curated Marathi corpus to support generation tasks?

Key findings

  • MahaRoBERTa achieved the highest macro-F1 score of 64.34 on the Marathi NER task, outperforming multilingual models like mBERT (58.35) and XLM-R (62.32).
  • MahaAlBERT achieved the highest classification accuracy of 83.7% on the L3CubeMahaSent sentiment analysis dataset, surpassing mBERT (80.4%) and XLM-R (82.0%).
  • MahaFT, the fastText embedding model trained on the full Marathi corpus, achieved a macro-F1 score of 91.2 on the NER task, outperforming FB-FT (88.8) and INLP-FT (90.7).
  • The monolingual BERT variants (MahaBERT, MahaAlBERT, MahaRoBERTa) consistently outperformed their multilingual counterparts (mBERT, XLM-R, indicBERT) across all classification and NER benchmarks.
  • The MahaGPT model, a generative transformer, was successfully trained on the full Marathi corpus and released as part of the open-source NLP suite.
  • The combined L3Cube-MahaCorpus and existing corpora form a 752M-token Marathi monolingual dataset, significantly expanding the resource base for low-resource Marathi NLP.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.