[Paper Review] Operationalizing a National Digital Library: The Case for a Norwegian Transformer Model
This paper presents a large-scale, Norwegian-focused BERT-based language model trained on 109GB of digitized text from the National Library of Norway’s collections, including OCR-processed materials. Despite moderate OCR noise, the model outperforms multilingual BERT (mBERT) on both Norwegian Bokmål and Nynorsk tasks and even improves mBERT’s performance on English, Swedish, and Danish, demonstrating that noisy, large-scale institutional corpora can yield high-performing, multilingual NLP models for low-resource languages.
In this work, we show the process of building a large-scale training set from digital and digitized collections at a national library. The resulting Bidirectional Encoder Representations from Transformers (BERT)-based language model for Norwegian outperforms multilingual BERT (mBERT) models in several token and sequence classification tasks for both Norwegian Bokm{\\aa}l and Norwegian Nynorsk. Our model also improves the mBERT performance for other languages present in the corpus such as English, Swedish, and Danish. For languages not included in the corpus, the weights degrade moderately while keeping strong multilingual properties. Therefore, we show that building high-quality models within a memory institution using somewhat noisy optical character recognition (OCR) content is feasible, and we hope to pave the way for other memory institutions to follow.
Motivation & Objective
- To investigate the feasibility of training a high-performing, monolingual Norwegian BERT model using large-scale, digitized collections from a national library.
- To assess whether OCR-processed, somewhat noisy text from institutional archives can serve as effective training data for transformer models.
- To evaluate the model’s performance on Norwegian Bokmål and Nynorsk in comparison to multilingual baselines like mBERT.
- To explore the model’s multilingual capabilities, particularly its impact on related languages such as Swedish, Danish, and English.
- To demonstrate that national memory institutions can operationalize digital libraries by building and releasing high-quality, open-source NLP models.
Proposed method
- Constructed a 109GB deduplicated text corpus from diverse, digitized sources within the National Library of Norway, including newspapers, government documents, and Wikipedia, using internal, non-public collections.
- Trained a BERT-based language model using a multilingual vocabulary (119,547 tokens), with a focus on Norwegian, leveraging the mBERT architecture as a base.
- Applied standard BERT pre-training objectives: masked language modeling and next sentence prediction on the large Norwegian corpus.
- Used large batch sizes and the LAMB optimizer—techniques not available during mBERT’s training—to improve convergence and performance.
- Fine-tuned the model on token and sequence classification tasks for Norwegian Bokmål and Nynorsk, comparing results to mBERT and other baselines.
- Evaluated the model’s zero-shot capabilities on English, Swedish, Danish, Spanish, and Finnish to assess multilingual transfer performance.
Experimental results
Research questions
- RQ1Can a large-scale, Norwegian-only BERT model trained on digitized, OCR-processed collections from a national library outperform multilingual models like mBERT on Norwegian NLP tasks?
- RQ2To what extent does training on a large, noisy corpus from a national library preserve or enhance multilingual capabilities, especially for closely related languages like Swedish and Danish?
- RQ3Does the inclusion of a small proportion of English text (4%) in the training data improve the model’s performance on English NLP tasks, despite being a Norwegian-focused model?
- RQ4How do OCR errors in the training data affect the final model’s performance, and can the model learn to mitigate them?
- RQ5Can a national library serve as a viable source for training high-quality, open-source NLP models for low-resource languages?
Key findings
- The Norwegian BERT model outperformed mBERT on both Norwegian Bokmål and Nynorsk sequence and token classification tasks, demonstrating superior performance for the target languages.
- The model improved mBERT’s performance on English, Swedish, and Danish, even though English comprised only 4% of the training data, suggesting strong multilingual transfer capabilities.
- Performance on out-of-vocabulary languages like Spanish and Finnish degraded moderately but remained strong, indicating that the model retains useful multilingual properties despite no explicit training on them.
- The model maintained high performance despite OCR noise in the training data, suggesting that quantity and scale may outweigh data quality in this context.
- The use of advanced training techniques—specifically large batch sizes and the LAMB optimizer—likely contributed to the model’s strong performance, especially in improving English capabilities.
- The results validate that national libraries can operationalize digital collections into high-quality, open NLP resources, paving the way for similar initiatives in other institutions.
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.