What the [MASK]? Making Sense of Language-Specific BERT Models

Debora Nozza, Federico Bianchi, Dirk HovyarXiv 2020

Introduction

Since its release in 2018, BERT (Bidirectional Encoder Representations from Transformers) has revolutionized Natural Language Processing (NLP) by providing high-quality, context-aware word embeddings. While Google's Multilingual BERT (mBERT) was intended as a universal foundation for 104 languages, the NLP community has since produced a "plethora" of language-specific models, such as CamemBERT for French or BERTje for Dutch. This explosion of specialized models raises two critical questions: is the computational cost of training from scratch worth the performance gain, and how can researchers navigate the fragmented landscape of available models?

The Discovery Problem and BertLang

To address the discovery problem, the authors conducted a systematic survey of 30 different pretrained language-specific BERT models across 18 languages. They categorized these models by architecture (e.g., RoBERTa, ALBERT), training domain, and task performance. To centralize this knowledge, they developed BertLang, an interactive repository designed to help the community explore and contribute new benchmarks.

The BertLang repository provides a centralized interface for comparing language-specific models against mBERT benchmarks across various tasks and domains.

Methods and Datasets

The survey analyzed models trained on diverse corpora, including Wikipedia, the OPUS parallel corpora, and the OSCAR dataset (filtered from Common Crawl). Evaluation spanned 177 performance results across 29 NLP tasks, including Named Entity Recognition (CoNLL), Question Answering (SQuAD), and Sentiment Analysis.

Key Insights

  • Specialization Premium: Language-specific models consistently outperform mBERT by capturing linguistic nuances that a universal model misses.
  • The Low-Resource Paradox: The performance gap is often largest for low-resource languages, likely because local experts can curate higher-quality data than generic web scrapes.
  • Initialization Strategies: For data-scarce languages, "warm-starting" by fine-tuning mBERT is often more effective than training from scratch.
  • Domain Sensitivity: Training data provenance matters significantly; for instance, models trained on social media data (like ALBERTO for Italian) drastically outperform general-purpose models on similar tasks.

Comparative Results

The meta-analysis reveals a clear advantage for specialized models across nearly all standard NLP tasks. The "specialization premium" is particularly pronounced in Sentiment Analysis and Named Entity Recognition, as shown in the aggregated performance data below.

Meta-analysis of average performance across tasks, showing the consistent lead of language-specific BERT models over mBERT.

The only notable exception occurred in a specific French Noun Sense Disambiguation task, where mBERT's performance was superior, likely due to quality issues in the specific French model's training data which was machine-translated.

Conclusion

While language-specific models offer clear performance benefits, the field remains a moving target. The BertLang platform aims to provide a living record of these developments. Future work will focus on independent verification of reported results through standardized fine-tuning and investigating the environmental trade-offs of training massive specialized models.

Summary updated

BibTeX
@misc{nozza2020what,
  author = {Debora Nozza and Federico Bianchi and Dirk Hovy},
  title = {{What the [MASK]? Making Sense of Language-Specific BERT Models}},
  year = {2020},
  eprint = {2003.02912},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2003.02912},
}
Figure