[Paper Review] hmBERT: Historical Multilingual Language Models for Named Entity Recognition
This paper introduces hmBERT, a multilingual BERT-based language model pre-trained on historical OCR-processed texts in German, English, French, Swedish, and Finnish to improve Named Entity Recognition (NER) in low-resource historical domains. By leveraging self-supervised pretraining on filtered, high-confidence OCR corpora with domain-specific tokenization and multi-stage fine-tuning, hmBERT achieves state-of-the-art performance on the HIPE-2022 NERC-Coarse challenge, outperforming other systems in two of three languages.
Compared to standard Named Entity Recognition (NER), identifying persons, locations, and organizations in historical texts constitutes a big challenge. To obtain machine-readable corpora, the historical text is usually scanned and Optical Character Recognition (OCR) needs to be performed. As a result, the historical corpora contain errors. Also, entities like location or organization can change over time, which poses another challenge. Overall, historical texts come with several peculiarities that differ greatly from modern texts and large labeled corpora for training a neural tagger are hardly available for this domain. In this work, we tackle NER for historical German, English, French, Swedish, and Finnish by training large historical language models. We circumvent the need for large amounts of labeled data by using unlabeled data for pretraining a language model. We propose hmBERT, a historical multilingual BERT-based language model, and release the model in several versions of different sizes. Furthermore, we evaluate the capability of hmBERT by solving downstream NER as part of this year's HIPE-2022 shared task and provide detailed analysis and insights. For the Multilingual Classical Commentary coarse-grained NER challenge, our tagger HISTeria outperforms the other teams' models for two out of three languages.
Motivation & Objective
- Address the challenge of low-resource Named Entity Recognition (NER) in historical texts due to OCR errors, domain shifts, and limited labeled data.
- Develop a multilingual language model tailored for historical texts in German, English, French, Swedish, and Finnish, leveraging self-supervised pretraining.
- Mitigate OCR noise and vocabulary mismatch by filtering low-confidence OCR outputs and creating a domain-specific subword vocabulary.
- Evaluate the model’s effectiveness on downstream NER tasks, particularly in the context of the HIPE-2022 shared task.
- Provide publicly available models and code to support future research in historical NLP and multilingual NER.
Proposed method
- Pretrain a multilingual BERT-based model (hmBERT) on large-scale, unlabeled historical texts from diverse sources, including OCR-processed newspapers and manuscripts.
- Apply a filtering step to retain only texts with high OCR confidence scores, reducing noise from character recognition errors.
- Construct a domain-specific subword vocabulary (32k and 64k vocab sizes) from a representative subcorpus of the pretraining data to improve coverage of historical terms.
- Fine-tune the hmBERT model using a two-stage approach: first on a multilingual NER dataset, then individually per language to optimize performance.
- Address tokenization issues by manually replacing long-s (ſ) characters with 's' in training data to prevent UNK tokens.
- Evaluate performance on the HIPE-2022 Multilingual Classical Commentary NER challenge and compare single-model vs. one-model fine-tuning strategies.
Experimental results
Research questions
- RQ1Can a multilingual BERT-based language model pre-trained on filtered, high-confidence historical OCR corpora improve NER performance in low-resource historical language settings?
- RQ2How does using a domain-specific vocabulary impact NER performance compared to general-domain vocabularies in historical text processing?
- RQ3Does multi-stage fine-tuning—first on a multilingual setup, then per language—lead to better performance than end-to-end fine-tuning on a single model?
- RQ4How does the choice of architecture (e.g., BERT vs. ELECTRA) affect downstream NER performance on historical texts with OCR noise?
- RQ5To what extent does the imbalance in temporal distribution of historical texts (e.g., 18th–19th century) affect model generalization, and how can it be mitigated?
Key findings
- hmBERT achieved state-of-the-art performance on the NewsEye NER dataset for three out of four languages: French, Finnish, and Swedish.
- In the HIPE-2022 Multilingual Classical Commentary NER challenge, the HISTeria system outperformed other teams’ models in two out of three languages.
- The single-model fine-tuning approach (language-specific fine-tuning per model) yielded higher performance than the one-model approach, though at a significantly higher computational cost.
- The one-model approach was more efficient and achieved similar performance, making it a viable alternative when computational resources are constrained.
- The use of a domain-specific vocabulary and OCR confidence filtering significantly improved model robustness and entity recognition accuracy.
- An ELECTRA-based model trained on the same corpus underperformed BERT-based models by 1–3 percentage points on downstream NER tasks, leading to the decision not to release it.
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.