Optimizing small BERTs trained for German NER

Jochen Zöllner, Konrad Sperfeld, Christoph Wick, Roger Labahn
4/23/2021
8 citations
cs.CLcs.AI

Official code: NEISSproject/tf2_neiss_nlp (2 stars, Python, GPL-3.0, last commit 2022-05-03). 1 more implementation below.

Abstract

Currently, the most widespread neural network architecture for training language models is the so called BERT which led to improvements in various Natural Language Processing (NLP) tasks. In general, the larger the number of parameters in a BERT model, the better the results obtained in these NLP tasks.

Show full abstract

Unfortunately, the memory consumption and the training duration drastically increases with the size of these models. In this article, we investigate various training techniques of smaller BERT models: We combine different methods from other BERT variants like ALBERT, RoBERTa, and relative positional encoding. In addition, we propose two new fine-tuning modifications leading to better performance: Class-Start-End tagging and a modified form of Linear Chain Conditional Random Fields. Furthermore, we introduce Whole-Word Attention which reduces BERTs memory usage and leads to a small increase in performance compared to classical Multi-Head-Attention. We evaluate these techniques on five public German Named Entity Recognition (NER) tasks of which two are introduced by this article.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
NEISSproject/tf2_neiss_nlpOfficial2PythonGPL-3.02022-05-03
NEISSproject/NERDatasetsOfficial2––2022-04-01
GPL-3.0

scenarios for natural language processing

21PythonNov 9, 20204 years agoGPL-3.0

Contains two NER Datasets builded from existing digital editions

20Feb 8, 20214 years ago

Similar Papers

Cite this paper

@article{zllner2021optimizing,
  title  = {Optimizing small BERTs trained for German NER},
  author = {Jochen Zöllner and Konrad Sperfeld and Christoph Wick and Roger Labahn},
  year   = {2021},
  eprint = {2104.11559},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.11559}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2104.11559.svg)](https://codeofpaper.com/paper/2104.11559)

Discussion