[Paper Review] Pre-training Data Quality and Quantity for a Low-Resource Language: New Corpus and BERT Models for Maltese
This paper introduces a new 500M-token monolingual corpus for Maltese, pre-trains a monolingual BERT model (BERTu) and further-fine-tunes mBERT (mBERTu), achieving state-of-the-art performance on dependency parsing, POS tagging, NER, and sentiment analysis. The key finding is that diverse-domain pre-training outperforms Wikipedia-only data, and only 10–30% of the corpus is needed to surpass mBERT, demonstrating that data quality and domain diversity matter more than sheer volume in low-resource settings.
Multilingual language models such as mBERT have seen impressive cross-lingual transfer to a variety of languages, but many languages remain excluded from these models. In this paper, we analyse the effect of pre-training with monolingual data for a low-resource language that is not included in mBERT -- Maltese -- with a range of pre-training set ups. We conduct evaluations with the newly pre-trained models on three morphosyntactic tasks -- dependency parsing, part-of-speech tagging, and named-entity recognition -- and one semantic classification task -- sentiment analysis. We also present a newly created corpus for Maltese, and determine the effect that the pre-training data size and domain have on the downstream performance. Our results show that using a mixture of pre-training domains is often superior to using Wikipedia text only. We also find that a fraction of this corpus is enough to make significant leaps in performance over Wikipedia-trained models. We pre-train and compare two models on the new corpus: a monolingual BERT model trained from scratch (BERTu), and a further pre-trained multilingual BERT (mBERTu). The models achieve state-of-the-art performance on these tasks, despite the new corpus being considerably smaller than typically used corpora for high-resourced languages. On average, BERTu outperforms or performs competitively with mBERTu, and the largest gains are observed for higher-level tasks.
Motivation & Objective
- To address the lack of high-quality, large-scale monolingual corpora for low-resource languages like Maltese, which is excluded from multilingual models such as mBERT and XLM-R.
- To investigate how pre-training data size and domain diversity affect downstream NLP performance in low-resource settings.
- To develop and release a new, high-quality Maltese corpus (Korpus Malti v4.0) and train state-of-the-art BERT-based models for Maltese.
- To compare monolingual pre-training from scratch (BERTu) versus further pre-training of multilingual mBERT (mBERTu) in terms of downstream task performance.
- To evaluate the models on both morphosyntactic (parsing, POS, NER) and semantic (sentiment analysis) tasks, assessing the impact of data composition and scale.
Proposed method
- Constructed a new monolingual Maltese corpus (Korpus Malti v4.0) by curating text from diverse, high-quality sources (e.g., government documents, news, literature), avoiding noisy web-scraping.
- Pre-trained a monolingual BERT model (BERTu) from scratch on the new corpus using standard BERT training objectives with masked language modeling and next sentence prediction.
- Further pre-trained mBERT (mBERTu) on the same Maltese corpus to adapt the multilingual model to the language.
- Evaluated models on four downstream tasks: dependency parsing (LAS), POS tagging (XPOS accuracy), NER (span F1), and sentiment analysis (macro-F1), using standard fine-tuning protocols.
- Systematically varied pre-training data size (10% to 100%) and domain composition (Wikipedia-only vs. mixed domains) to analyze data efficiency and domain impact.
- Used a fixed number of training steps scaled proportionally to data size to ensure consistent training duration across data scales.
Experimental results
Research questions
- RQ1Does pre-training on a diverse mix of domains (beyond Wikipedia) lead to better downstream performance than using only Wikipedia data for Maltese?
- RQ2How much pre-training data is needed to achieve significant performance gains over mBERT, especially in low-resource settings?
- RQ3Does training a monolingual BERT model from scratch (BERTu) outperform further pre-training an existing multilingual model (mBERTu) on Maltese NLP tasks?
- RQ4To what extent does matching the pre-training domain to the downstream task domain improve performance?
- RQ5Can a relatively small, high-quality corpus (500M tokens) outperform models pre-trained on larger, noisier corpora in low-resource scenarios?
Key findings
- Using a mixture of pre-training domains (e.g., news, government, literature) consistently outperformed Wikipedia-only pre-training across all downstream tasks.
- With only 10% of the full corpus, BERTu and mBERTu surpassed mBERT on all tasks, indicating that data quality and diversity are more critical than sheer volume.
- BERTu achieved state-of-the-art performance on dependency parsing (LAS: 85.2), POS tagging (XPOS: 98.2%), NER (F1: 88.7%), and sentiment analysis (macro-F1: 78.3%), outperforming mBERTu and mBERT.
- The performance gap between BERTu and mBERTu narrowed significantly with as little as 10% of the data, with BERTu consistently outperforming mBERTu on semantic tasks like sentiment analysis.
- Surprisingly, performance did not always increase monotonically with data size; for example, BERTu with 70% of the data outperformed the 100% version on sentiment analysis, suggesting potential overfitting or suboptimal hyperparameter scaling.
- The results demonstrate that language-specific pre-training is most beneficial for higher-level semantic tasks, with BERTu showing particular strength in sentiment analysis, where it achieved a 6.5-point improvement over mBERT.
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.