[Paper Review] WikiBERT models: deep transfer learning for many languages
This paper introduces a fully automated pipeline to create 42 new language-specific BERT models—WikiBERT—trained exclusively on Wikipedia data for low- and medium-resource languages. Evaluated on Universal Dependencies parsing, WikiBERT models outperform mBERT on average (86.6% vs. 86.1% LAS), with substantial gains for some languages like Finnish and losses for others like Belarusian, indicating a performance sweet spot around 100M–1B tokens of pre-training data.
Deep neural language models such as BERT have enabled substantial recent advances in many natural language processing tasks. Due to the effort and computational cost involved in their pre-training, language-specific models are typically introduced only for a small number of high-resource languages such as English. While multilingual models covering large numbers of languages are available, recent work suggests monolingual training can produce better models, and our understanding of the tradeoffs between mono- and multilingual training is incomplete. In this paper, we introduce a simple, fully automated pipeline for creating language-specific BERT models from Wikipedia data and introduce 42 new such models, most for languages up to now lacking dedicated deep neural language models. We assess the merits of these models using the state-of-the-art UDify parser on Universal Dependencies data, contrasting performance with results using the multilingual BERT model. We find that UDify using WikiBERT models outperforms the parser using mBERT on average, with the language-specific models showing substantially improved performance for some languages, yet limited improvement or a decrease in performance for others. We also present preliminary results as first steps toward an understanding of the conditions under which language-specific models are most beneficial. All of the methods and models introduced in this work are available under open licenses from https://github.com/turkunlp/wikibert.
Motivation & Objective
- To address the lack of high-quality, dedicated language-specific BERT models for many low- and medium-resource languages.
- To develop a fully automated, scalable pipeline for creating such models using only Wikipedia data.
- To evaluate the performance of these models against the multilingual BERT (mBERT) baseline on a multilingual dependency parsing benchmark.
- To investigate the conditions under which monolingual over multilingual pre-training yields better performance.
- To release the models and pipeline under open licenses to support broader NLP research and development.
Proposed method
- The authors created a fully automated pipeline that extracts, preprocesses, and tokenizes Wikipedia dumps for 309 languages.
- Language-specific BERT models were pre-trained exclusively on Wikipedia text, excluding dead or non-living languages.
- The pre-training process used the standard BERT objective: masked language modeling and next sentence prediction.
- Models were fine-tuned and evaluated using the UDify dependency parser on Universal Dependencies treebanks.
- Performance was compared between mBERT and WikiBERT initialization across 42 languages, with LAS (Labeled Attachment Score) as the primary metric.
- The analysis focused on relative performance changes and correlations with pre-training data size and language family relationships.
Experimental results
Research questions
- RQ1Does training language-specific BERT models on Wikipedia data lead to improved performance over multilingual models like mBERT?
- RQ2What is the impact of pre-training data size on the performance gain of language-specific models?
- RQ3How do linguistic relationships and language family membership influence the relative performance of monolingual vs. multilingual models?
- RQ4Are there specific language characteristics or thresholds (e.g., data size, typological features) that determine when monolingual models outperform multilingual ones?
- RQ5Can a fully automated pipeline reliably generate high-quality, language-specific BERT models for a broad range of languages?
Key findings
- On average, UDify initialized with WikiBERT models achieved a LAS of 86.6%, slightly outperforming mBERT’s 86.1%.
- The relative error reduction when replacing mBERT with WikiBERT was approximately 4% on average, indicating a measurable performance gain.
- Finnish saw the largest performance gain, with a more than 10% relative decrease in LAS error compared to mBERT.
- Belarusian experienced the largest performance drop, suggesting that linguistic proximity to high-resource languages does not guarantee benefit from monolingual pre-training.
- A potential performance 'sweet spot' emerged at 100M to 1B tokens of pre-training data, where gains over mBERT were most pronounced.
- For English, which has abundant data and is part of the Germanic family, mBERT and WikiBERT performance was nearly identical, indicating no benefit from monolingual pre-training in high-resource settings.
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.