Introduction
The NorLM initiative represents a significant milestone in Nordic Natural Language Processing (NLP) by introducing the first large-scale monolingual language models specifically designed for Norwegian: NorELMo and NorBERT. Historically, researchers in this field were forced to rely on multilingual models like Google’s mBERT or small-scale models that lacked the capacity to capture the full linguistic nuances of Norwegian.
Norwegian presents a unique challenge due to its two official written standards: Bokmål, the majority variety, and Nynorsk, used by approximately 10–15% of the population. Multilingual models often suffer from poor vocabulary coverage and struggle with the morphological distinctions between these two standards. The NorLM project addresses these gaps by providing high-quality, monolingual models and a reproducible software environment for the research community.
Methodology
The researchers developed two distinct types of contextualized models to serve different computational needs:
- NorELMo: Based on the bidirectional LSTM architecture, released with vocabulary sizes of 30,000 and 100,000 words.
- NorBERT: Based on the BERT-Base architecture (12 layers, 768 hidden units).
Key Innovations
To optimize performance for Norwegian, the team implemented several strategic design choices. First, they utilized Custom Tokenization. Unlike mBERT’s massive multilingual vocabulary, NorBERT employs a custom 30,000-token WordPiece vocabulary. This focus allows for linguistically sensible sub-word splitting, correctly identifying Norwegian morphemes rather than fragmenting common words into nonsensical units.
Second, the models underwent Joint Training on both Bokmål and Nynorsk simultaneously. This approach allows the models to learn shared structures while maintaining distinct representations for both varieties. Finally, NorBERT utilized a Two-Phase Training strategy: initially training on shorter sequences (128 tokens) to learn general patterns, followed by longer sequences (512 tokens) to capture long-range dependencies.
Datasets and Evaluation
The models were trained on a high-quality combined corpus of approximately 2 billion tokens (1.9 billion words). This dataset includes the Norsk Aviskorpus (NAK), featuring news text from 1998 to 2019 (1.7 billion words), and the Bokmål and Nynorsk versions of Wikipedia (160 million and 40 million words, respectively).
Evaluation was conducted using established Norwegian benchmarks, including the Norwegian Dependency Treebank (NDT) for Part-of-Speech (POS) tagging, NorNE for Named Entity Recognition (NER), and the Norwegian Review Corpus (NoReC) for sentiment analysis and negation resolution.
Results and Discussion
Named Entity Recognition (NER)
Both NorBERT and the National Library's NB-BERT significantly outperformed the multilingual mBERT baseline. On Bokmål NER, NorBERT achieved an F1 score of 85.5, compared to mBERT’s 78.8. While NB-BERT (trained on 18 billion words) achieved higher raw scores, NorBERT's performance demonstrates that "cleaner" data (news and Wiki) can be highly competitive against massive datasets derived from noisy OCR archives.
Part-of-Speech (POS) Tagging
In POS tagging tasks, the monolingual models showed exceptional accuracy. NorBERT reached 98.5% accuracy on Bokmål, nearly matching the performance of the specialized Stanza parser. This indicates that the contextualized embeddings effectively capture the grammatical structure of the language.
Efficiency and Adaptation
The authors also highlighted NorELMo as a "green" alternative. While BERT models represent the state-of-the-art in accuracy, NorELMo is up to 30x faster to adapt to new tasks. For many practical applications, the marginal loss in accuracy is a worthwhile trade-off for the substantial reduction in compute time and energy consumption.
Conclusion
The NorLM initiative successfully demonstrates that monolingual pretraining, even with smaller but cleaner datasets, provides superior performance for Norwegian NLP compared to multilingual alternatives. Future work will focus on addressing the data imbalance between Bokmål and Nynorsk, potentially through dedicated models for each variety, and exploring more recent architectures like RoBERTa or T5 within the Nordic context.
Summary updated