Skip to main content
QUICK REVIEW

[Paper Review] BERTifying Sinhala -- A Comprehensive Analysis of Pre-trained Language Models for Sinhala Text Classification

Vinura Dhananjaya, Piyumal Demotte|arXiv (Cornell University)|Aug 16, 2022
Natural Language Processing TechniquesComputer Science7 citations
TL;DR

This paper presents a comprehensive evaluation of pre-trained language models for Sinhala text classification, introducing two new RoBERTa-based monolingual Sinhala models (SinBERT-small and SinBERT-large) trained on a larger corpus. Results show that while XLM-R-large outperforms all models as a strong baseline, the SinBERT models surpass XLM-R-base, especially with limited labeled data, establishing new state-of-the-art baselines for four Sinhala text classification tasks.

ABSTRACT

This research provides the first comprehensive analysis of the performance of pre-trained language models for Sinhala text classification. We test on a set of different Sinhala text classification tasks and our analysis shows that out of the pre-trained multilingual models that include Sinhala (XLM-R, LaBSE, and LASER), XLM-R is the best model by far for Sinhala text classification. We also pre-train two RoBERTa-based monolingual Sinhala models, which are far superior to the existing pre-trained language models for Sinhala. We show that when fine-tuned, these pre-trained language models set a very strong baseline for Sinhala text classification and are robust in situations where labeled data is insufficient for fine-tuning. We further provide a set of recommendations for using pre-trained models for Sinhala text classification. We also introduce new annotated datasets useful for future research in Sinhala text classification and publicly release our pre-trained models.

Motivation & Objective

  • To evaluate the performance of existing multilingual pre-trained models (XLM-R, LaBSE, LASER) and newly trained monolingual models for Sinhala text classification.
  • To address the lack of empirical evaluation of pre-trained models on low-resource Sinhala, a class 1 language with limited NLP resources.
  • To establish strong, publicly available baselines for Sinhala text classification using fine-tuned pre-trained models.
  • To release new annotated datasets and pre-trained models to support future research in Sinhala NLP.

Proposed method

  • Pre-trained two RoBERTa-based monolingual Sinhala language models (SinBERT-small and SinBERT-large) on a larger Sinhala corpus compared to prior models.
  • Evaluated performance across four text classification tasks: sentiment analysis, news source classification, news category classification, and writing style classification.
  • Fine-tuned the pre-trained models on labeled datasets of varying sizes to assess robustness under data scarcity.
  • Compared the performance of monolingual models (SinBERT) against multilingual models (XLM-R, LaBSE, LASER) across all tasks.
  • Used macro-F1 scores as the primary evaluation metric and analyzed model behavior across different dataset sizes.
  • Publicly released pre-trained models, fine-tuned models, annotated datasets, and training code via Hugging Face and Hugging Face Datasets.

Experimental results

Research questions

  • RQ1Which pre-trained language model performs best for Sinhala text classification among multilingual models that include Sinhala?
  • RQ2How do newly pre-trained monolingual Sinhala models compare to existing multilingual and monolingual models in terms of performance on Sinhala text classification tasks?
  • RQ3How does model performance vary with different sizes of labeled fine-tuning data for Sinhala text classification?
  • RQ4Can monolingual Sinhala models outperform multilingual models when labeled data is scarce?
  • RQ5What are the most effective model configurations and hyperparameters for Sinhala text classification?

Key findings

  • XLM-R-large achieved the highest macro-F1 score of 68.1 on the sentiment analysis task, setting a new strong baseline.
  • SinBERT-small outperformed XLM-R-base on sentiment analysis with a macro-F1 of 53.85 when fine-tuned on small datasets.
  • SinBERT-large achieved a macro-F1 of 95.49 on the writing style classification task, outperforming all other models.
  • The XLM-R-large model consistently outperformed all other models across all four tasks, establishing a new state-of-the-art baseline.
  • For very small labeled datasets, SinBERT-small and SinBERT-large significantly outperformed XLM-R-base, demonstrating better data efficiency.
  • The newly released Sinhala news source classification, news category classification, and writing style classification datasets are publicly available for future research.

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.