NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Pre-training Data Quality and Quantity for a Low-Resource Language: New Corpus and BERT Models for Maltese

Kurt Micallef, Albert Gatt, Marc Tanti, Lonneke van der Plas, Claudia Borg

TL;DR

This paper introduces a new, high-quality Maltese language corpus and uses it to train novel BERT models. They demonstrate that language-specific pre-training, even with limited data, significantly outperforms general multilingual models like mBERT on various NLP tasks, highlighting the importance of data quality and domain relevance for low-resource languages.

What Problem Does This Paper Address?

Modern NLP heavily relies on large pre-trained language models (like BERT) that learn from massive text datasets. While these models excel for high-resource languages like English, many languages are left behind because they lack sufficient high-quality training data. Existing multilingual models (e.g., mBERT) attempt to bridge this gap by training on data from many languages simultaneously, often sourced from Wikipedia. However, this approach has limitations: the "curse of multilinguality" can dilute language-specific features, and languages with unique scripts or less Wikipedia presence are often poorly represented. Maltese, an official EU language, is a prime example of such a low-resource language, not well-covered by existing multilingual models. This paper aims to address this by creating a dedicated Maltese corpus and evaluating the impact of language-specific pre-training on its NLP performance.

Methods

The core of this work involves pre-training BERT-based language models. They compare two main strategies:

  1. Monolingual BERT from scratch (BERTu): Training a BERT model entirely on the new Maltese corpus.
  2. Further pre-training mBERT (mBERTu): Taking an existing multilingual BERT model and continuing its pre-training on the Maltese corpus.

They also establish baselines using Maltese Wikipedia data to compare against the new corpus. The pre-training process uses the Masked Language Modelling (MLM) objective, as the Next Sentence Prediction (NSP) objective was found to be detrimental. For fine-tuning, they employ standard architectures for tasks like dependency parsing, part-of-speech tagging, named-entity recognition, and sentiment analysis. A key aspect of their methodology is the systematic analysis of how pre-training data quantity (varying corpus size) and domain (mixed vs. Wikipedia-only) affect downstream performance.

Datasets

  • Korpus Malti v4.0 (KM): A newly created, unlabelled Maltese text corpus. It's designed to be of high quality, sourced from diverse domains (news, legal texts, speeches, blogs, Wikipedia, etc.), and includes metadata for each document. This corpus is significantly larger than Maltese Wikipedia data and aims to avoid the noise often found in web-scraped datasets.
  • Maltese Wikipedia: Used as a baseline for pre-training and comparison.
  • Downstream Task Datasets:
    • Dependency Parsing: Maltese Universal Dependencies Treebank (MUDT).
  • Part-of-Speech Tagging: MLRS POS data.
  • Named-Entity Recognition: Maltese annotations for WikiAnn.
  • Sentiment Analysis: Maltese sentiment analysis dataset by Martínez-García et al.

Key Insights and Ideas

  • Language-specific pre-training is crucial for low-resource languages: Even with a relatively small corpus compared to high-resource languages, dedicated pre-training on Maltese data yields substantial improvements over general multilingual models.
  • Data quality and domain matter: Using a diverse mix of domains in the pre-training corpus is often superior to relying solely on Wikipedia, especially for semantic tasks. Matching pre-training domain to the target task domain can also boost performance.
  • Less can be more (initially): Significant performance gains can be achieved with a surprisingly small fraction of the full corpus, suggesting that targeted, high-quality data is more impactful than sheer volume for initial improvements.
  • Monolingual models can outperform multilingual ones: For Maltese, the BERTu model (trained from scratch) often performs as well as or better than the mBERTu model (further pre-trained mBERT), particularly on higher-level tasks. This suggests that dedicated monolingual models can capture language-specific nuances more effectively.
  • Semantic tasks benefit more from language-specific embeddings: While morpho-syntactic tasks see improvements, sentiment analysis shows particularly large gains with language-specific pre-training, indicating that semantic understanding is more sensitive to language-specific features.

Key Results

  • The newly developed BERTu and mBERTu models achieve state-of-the-art performance on Dependency Parsing, Part-of-Speech Tagging, Named-Entity Recognition, and Sentiment Analysis for Maltese.
  • On average, BERTu (monolingual) outperforms or performs competitively with mBERTu (further pre-trained mBERT) on these tasks.
  • The KM-trained models significantly outperform mBERT (without additional pre-training) and the Wikipedia-trained baselines.
  • For Sentiment Analysis, the KM-trained models achieve over 20 F1 points higher than the best baseline.
  • Performance gains are observed even with as little as 10% of the KM corpus, and the gap between monolingual and multilingual models narrows considerably with this limited data.

Limitations and Future Work

  • Corpus Size: While the KM corpus is a significant improvement for Maltese, it is still considerably smaller than corpora used for high-resource languages.
  • Labelled Data Scarcity: For some tasks, labelled data remains scarce or non-existent.
  • Complex NLU: The paper primarily focuses on syntactic and basic semantic tasks. Future work should investigate the models' efficacy on more complex Natural Language Understanding scenarios.
  • Hyper-parameter Optimization: While they aimed for controlled comparisons, future work could involve more extensive language-specific tuning to further push state-of-the-art performance.
  • Data Size vs. Steps/Batch Size: The paper notes that performance gains are not always monotonic with increasing data size, suggesting potential interactions between data size, training steps, and batch size that warrant further investigation.

Summary updated

BibTeX
@inproceedings{micallef2022pre,
  author = {Kurt Micallef and Albert Gatt and Marc Tanti and Lonneke van der Plas and Claudia Borg},
  title = {{Pre-training Data Quality and Quantity for a Low-Resource Language: New Corpus and BERT Models for Maltese}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2022},
}
Figure