[Paper Review] Large-Scale Contextualised Language Modelling for Norwegian
This paper presents NorELMo and NorBERT, the first large-scale monolingual contextualized language models for Norwegian, trained on ~2 billion tokens of mixed Bokmål and Nynorsk text. The models outperform multilingual mBERT and a prior Norwegian baseline on multiple NLP tasks, with NorBERT achieving a 20.6-point F1 improvement on span extraction and a 9.4-point gain on binary sentiment classification.
We present the ongoing NorLM initiative to support the creation and use of very large contextualised language models for Norwegian (and in principle other Nordic languages), including a ready-to-use software environment, as well as an experience report for data preparation and training. This paper introduces the first large-scale monolingual language models for Norwegian, based on both the ELMo and BERT frameworks. In addition to detailing the training process, we present contrastive benchmark results on a suite of NLP tasks for Norwegian. For additional background and access to the data, models, and software, please see http://norlm.nlpl.eu
Motivation & Objective
- To develop large-scale, monolingual contextualized language models for Norwegian to support advanced NLP applications.
- To address the lack of high-resource, domain-optimized language models for Norwegian, especially compared to low-resource language settings.
- To establish a reusable, high-performance software stack for training and deploying large language models on Nordic HPC infrastructure.
- To benchmark monolingual Norwegian models against multilingual and prior state-of-the-art models across diverse NLP tasks.
- To foster a sustainable ecosystem for future model development through open access to data, models, and optimized training software.
Proposed method
- Trained NorELMo and NorBERT models on a combined corpus of 1.9 billion word tokens from Norsk Aviskorpus, Bokmål Wikipedia, and Nynorsk Wikipedia.
- Used a joint training setup on both Bokmål and Nynorsk, with data proportions reflecting real-world usage (Bokmål dominant).
- Preprocessed data using Gensim for Wikipedia extraction, de-tokenization, UTF-8 normalization, and Stanza for sentence segmentation.
- Employed a fully automated, modularized software stack built with EasyBuild and optimized for GPU-accelerated training on national HPC clusters (Puhti and Saga).
- Trained models using ELMo and BERT architectures, with BERT training requiring ~3 weeks on 4-GPU nodes via distributed training.
- Evaluated models on a benchmark suite including POS tagging, sentiment analysis, negation detection, and NER, comparing against mBERT and NB-BERT.
Experimental results
Research questions
- RQ1How do monolingual Norwegian language models (NorELMo and NorBERT) compare to multilingual models like mBERT on downstream Norwegian NLP tasks?
- RQ2To what extent does training on a larger, monolingual Norwegian corpus improve performance on tasks like sentiment analysis and named entity recognition?
- RQ3How do model architecture and training data composition (e.g., Bokmål vs. Nynorsk ratio) affect performance across diverse NLP tasks?
- RQ4Can a community-driven, open, and reproducible software stack for large-scale language model training be effectively deployed on national HPC infrastructure?
- RQ5What are the relative strengths of NorBERT and NorELMo across different NLP tasks, and how do they compare to a prior state-of-the-art span extraction model?
Key findings
- NorBERT outperformed mBERT by 9.4 percentage points on binary sentiment classification, demonstrating the benefit of monolingual pretraining on Norwegian data.
- NorBERT achieved a 20.6-point improvement in F1 score on the Holder F1 metric for span extraction compared to the previous state-of-the-art model.
- On negation detection, mBERT achieved the highest overall F1, suggesting that multilingual pretraining may benefit tasks with structural similarities across languages.
- NorELMo models outperformed mBERT by 7.3 points on sentiment classification, indicating strong performance even with the ELMo architecture.
- The NorLM initiative successfully trained and released models on national HPC systems, with full software stack and model weights available under CC BY 4.0.
- The benchmarking pipeline demonstrated that model performance varies significantly by task, underscoring the need for diverse, task-specific models and systematic evaluation.
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.