[Paper Review] German's Next Language Model
This paper presents GBERT and GELECTRA, state-of-the-art German BERT and ELECTRA language models trained using an evaluation-driven approach that selects the best-performing checkpoint from regular downstream evaluations during pretraining. The models achieve new SoTA results on GermEval18 and GermEval14, with GELECTRA Large improving by +4.3% F1 on NER and +2.45% on hate speech detection, while also demonstrating that increased training data and Whole Word Masking significantly boost performance.
In this work we present the experiments which lead to the creation of our BERT and ELECTRA based German language models, GBERT and GELECTRA. By varying the input training data, model size, and the presence of Whole Word Masking (WWM) we were able to attain SoTA performance across a set of document classification and named entity recognition (NER) tasks for both models of base and large size. We adopt an evaluation driven approach in training these models and our results indicate that both adding more data and utilizing WWM improve model performance. By benchmarking against existing German models, we show that these models are the best German models to date. Our trained models will be made publicly available to the research community.
Motivation & Objective
- To develop high-performing German language models using an evaluation-driven pretraining strategy that selects optimal checkpoints based on downstream task performance.
- To investigate the impact of training data volume, model size, and Whole Word Masking (WWM) on German BERT and ELECTRA models.
- To establish new state-of-the-art (SoTA) performance on German NLP benchmarks, including document classification and named entity recognition (NER).
- To provide publicly available, high-quality German language models to the research community.
Proposed method
- An evaluation-driven pretraining approach was used, where models were regularly checkpointed and evaluated on downstream classification and NER tasks to select the best-performing model.
- Multiple training regimes were tested by varying input data (e.g., OSCAR, Common Crawl), model size (base and large), and the inclusion of Whole Word Masking (WWM).
- For BERT-based models, masked language modeling (MLM) was used, with WWM ensuring that all subword tokens of a word are masked together.
- For ELECTRA-based models, a replaced token detection pretraining task was employed, where a generator produces plausible token substitutes and a discriminator classifies whether each token is real or replaced.
- The models were fine-tuned on downstream tasks such as GermEval18 (hate speech detection) and GermEval14 (NER), with performance measured using F1 and accuracy.
- Training was conducted using TPU pods and EC2 instances, with model selection based on the highest performance across evaluation tasks.
Experimental results
Research questions
- RQ1Does increasing the amount of training data significantly improve performance of German BERT and ELECTRA models?
- RQ2What is the impact of Whole Word Masking (WWM) on the performance of German BERT models compared to standard masking?
- RQ3Can ELECTRA-based models achieve better performance than BERT-based models with fewer training tokens due to more efficient pretraining?
- RQ4How does model size (base vs. large) affect downstream performance on German NLP tasks?
- RQ5Can an evaluation-driven pretraining strategy outperform standard fixed-step training in terms of final model performance?
Key findings
- GELECTRA Large achieved a new state-of-the-art F1 score of 88.95 on the GermEval14 NER task, outperforming the previous best by +4.3%.
- On the GermEval18 hate speech detection task, GELECTRA Large achieved a +2.45% improvement over the previous SoTA on the fine-grained variant and +3.93% on the coarse variant.
- GBERT Data + WWM outperformed DBMDZ BERT Base by +2.18% F1 averaged across three NLP tasks.
- GELECTRA Large outperformed GBERT Large by +1.47% averaged F1, despite training on only half the number of tokens due to smaller batch size.
- Whole Word Masking consistently improved BERT-based models, with GBERT WWM outperforming DBMDZ BERT Base by +1.25% F1 and GBERT Data + WWM improving by +2.38% over GBERT Data.
- The addition of more training data led to measurable performance gains, with GELECTRA Data outperforming GELECTRA by +1.59% F1 and GBERT Data + WWM improving over GBERT Data by +0.93% F1.
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.