Skip to main content
QUICK REVIEW

[Paper Review] HerBERT: Efficiently Pretrained Transformer-based Language Model for Polish

Robert Mroczkowski, Piotr Rybak|arXiv (Cornell University)|May 4, 2021
Topic ModelingComputer Science36 references32 citations
TL;DR

This paper designs an efficient pretraining procedure to transfer knowledge from multilingual to monolingual Polish BERT models, conducts thorough ablations, and releases HerBERT which achieves state-of-the-art results on Polish language understanding benchmarks, including KLEJ and POS tagging.

ABSTRACT

BERT-based models are currently used for solving nearly all Natural Language Processing (NLP) tasks and most often achieve state-of-the-art results. Therefore, the NLP community conducts extensive research on understanding these models, but above all on designing effective and efficient training procedures. Several ablation studies investigating how to train BERT-like models have been carried out, but the vast majority of them concerned only the English language. A training procedure designed for English does not have to be universal and applicable to other especially typologically different languages. Therefore, this paper presents the first ablation study focused on Polish, which, unlike the isolating English language, is a fusional language. We design and thoroughly evaluate a pretraining procedure of transferring knowledge from multilingual to monolingual BERT-based models. In addition to multilingual model initialization, other factors that possibly influence pretraining are also explored, i.e. training objective, corpus size, BPE-Dropout, and pretraining length. Based on the proposed procedure, a Polish BERT-based language model -- HerBERT -- is trained. This model achieves state-of-the-art results on multiple downstream tasks.

Motivation & Objective

  • Motivate and evaluate efficient pretraining for Polish language understanding beyond English-language-centric studies.
  • Systematically study factors influencing pretraining performance for Polish (initialization, corpus size, training objective, BPE-Dropout, pretraining length).
  • Develop a practical procedure to transfer multilingual knowledge to a monolingual Polish model and release a pretrained model.
  • Show that the proposed procedure yields state-of-the-art results on diverse Polish NLP tasks.

Proposed method

  • Use an updated MLM objective with improved masking over words (subword-aware masking).
  • Replace Next Sentence Prediction with Sentence Structural Objective (SSO) and evaluate its impact.
  • Initialize Polish models from multilingual XLM-RoBERTa weights and, alternatively, randomly, and compare transfer effectiveness.
  • Train BASE and LARGE variants on two Polish corpora (Small: NKJP, Wikipedia, Wolne Lektury; Large: Small plus CCNet and Open Subtitles).
  • Perform extensive ablation studies varying initialization, corpus size, SSO weight, BPE-Dropout, and pretraining length; evaluate on KLEJ, POS tagging, and dependency parsing.

Experimental results

Research questions

  • RQ1Does initializing from multilingual models (e.g., XLM-RoBERTa) improve fast convergence and final performance for a Polish monolingual model compared with random initialization?
  • RQ2How do corpus size, training objectives (MLM + SSO), and BPE-Dropout affect downstream Polish NLP task performance?
  • RQ3Is the Sentence Structural Objective (SSO) beneficial for Polish, and how does pretraining length influence performance?

Key findings

  • Multilingual-initialized HerBERT (BASE and LARGE) outperforms randomly initialized counterparts and Polish RoBERTa on average across tasks; initialization is the most important factor.
  • Training on a larger corpus generally improves downstream performance, with statistically significant gains in some settings.
  • SSO generally hurts downstream performance for Polish, contrary to some English-focused findings; best results often occur with low or no SSO weight.
  • BPE-Dropout does not show consistent significant gains or losses for Polish in the reported settings.
  • HerBERT LARGE achieves the best average performance on the KLEJ Benchmark, becoming a new state-of-the-art for Polish language understanding; HerBERT BASE also surpasses Polish RoBERTa in average performance.

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.