Norwegian Hospitals Built KliniskVestBERT on 16M Patient Records and Cut Fine-Tuning by 8x
Norwegian hospitals trained three BERT models on 16 million real clinical records, beating general-purpose baselines on every medical NLP task tested
Takeaways
- KliniskVestBERT is a suite of three BERT models continued pre-trained on 16.2 million de-identified Norwegian clinical records from Helse Vest hospitals.
- All three models beat their general-purpose baselines on every clinical NLP benchmark tested, including real-world stroke detection and drug extraction tasks.
- The training corpus spans 5.1 billion tokens across 715 document types including discharge summaries, surgical reports, and nursing notes in both bokmål and nynorsk.
- A custom de-identification pipeline achieved 98% sensitivity, using a "hidden-in-plain-sight" method that replaces real values with plausible fakes rather than redaction tokens.
- Clinically adapted models reach peak fine-tuning performance in 1-2 epochs vs. 8-10 epochs for baseline models, cutting downstream compute by up to 8x.
- Models are not yet publicly released; the paper serves as a blueprint for hospital-scale clinical NLP adaptation in low-resource languages.
Clinical language is a beast of its own. Doctors write in shorthand. Nurses use informal phrasing. Surgical reports are dense with domain-specific terminology that never appears in Wikipedia or news corpora. General-purpose language models, even large ones, stumble badly in this environment. KliniskVestBERT is a direct answer to that problem, and it comes from an unlikely source: a consortium of Norwegian regional hospitals.
Researchers from Helse Vest ICT, working with all four hospital entities in Norway's Vestland region (Helse Bergen, Helse Fonna, Helse Førde, and Helse Stavanger) and healthcare IT vendor DIPS, have released a suite of three clinically specialized BERT encoder models. Each one was built by continuing the pre-training of an existing Norwegian language model on a massive corpus of real, de-identified patient records.
The data problem that makes clinical NLP so hard
The increasing application of NLP in healthcare demands language models specifically attuned to the complexities of clinical language. The core difficulty is that medical texts are nothing like the data most models train on. Models trained solely on publicly available medical resources such as PubMed abstracts or medical textbooks may not adequately represent the language patterns found in patient records, which are often characterized by less formal writing styles, abbreviations, and a greater degree of contextual specificity.
For Norwegian specifically, the challenge is compounded. Prior work has focused primarily on English and other high-resource languages, leaving a gap in Norwegian-specific clinical NLP research. Norwegian also has two official written standards, bokmål and nynorsk, both of which appear in clinical documentation and must be handled correctly.
16 million documents, carefully scrubbed
The training dataset is based on all clinically relevant text documents from almost all patients of the hospitals of Helse Vest in the years 2019, 2021, and 2022. The team excluded data from 2020 because of concerns regarding a COVID-19 bias. The result is a dataset that is genuinely representative of a regional hospital population, covering all medical specialties including mental health and all age groups.
The raw numbers are substantial:
- The dataset included 16,211,880 unique documents with 89% written in bokmål and 11% in nynorsk.
- The documents included 456,063,804 sentences and around 5.1 billion tokens, with a median number of tokens per document of around 203.
- 715 of the 1,100 available document types from the DIPS electronic health journal were included, based on clinical relevance.
Before any of this data could be used for training, it had to be de-identified. The team built a custom de-identification pipeline that replaced sensitive entities, including names, locations, healthcare units, dates, phone numbers, and ID numbers, using a "hidden-in-plain-sight" approach where real values are swapped for plausible fake ones rather than redacted tokens. All dates in one document were shifted by the same random number of days, between 365 and 1,825, into the future or past, such that chronological consistency was preserved throughout the document. After iterative improvement, the pipeline reached an identification rate of 98.0% of all sensitive information (96.3% with the correct category) and only 10.0% unnecessary de-identification of non-sensitive information.

Three base models, one clinical upgrade each
The team continued pre-training three existing language models: Nb-BERT-large, NorBERT3-large, and ModernBERT on the specialized clinical dataset. Each base model brings different strengths:
- Nb-BERT-large: Developed by the National Library of Norway, trained from scratch on 6.9 billion words of Norwegian text spanning 200 years. 356M parameters, 512-token context window.
- NorBERT3-large: From the University of Oslo's Language Technology Group, trained on 25 billion words across multiple Norwegian corpora. 323M parameters, uses span-masked language modeling instead of standard token masking.
- ModernBERT: A more recent architecture from answer.ai that removes bias terms and uses alternating attention mechanisms. Trained on 2 trillion tokens, 395M parameters, and crucially supports an 8,192-token context window, far longer than the other two.
Each model was then continued pre-trained for one epoch on the 5.1 billion token clinical corpus using four NVIDIA L40S GPUs. The training process for each model required approximately one week to complete. Training was kept to a single epoch to minimize overfitting to the clinical domain while still absorbing its vocabulary and style.
Faster to fine-tune, better at the task
The three resulting models, collectively called KliniskVestBERT, were evaluated on five tasks: MedMCQA (medical multiple-choice QA), MedMQP (semantic similarity between patient questions), Nor-DeID (named entity recognition for de-identification), AISMEC (stroke detection from emergency call transcripts), and Synergi (drug name extraction from adverse event reports). The last two are real-world datasets from Helse Vest, not synthetic benchmarks.
Every clinically adapted model outperformed its baseline across every task it was tested on:
| Model | MedMCQA | MedMQP | Nor-DeID | AISMEC | Synergi |
|---|---|---|---|---|---|
| Kl-Nb-BERT | 39.17 | 89.64 | 89.75 | -- | 94.58 |
| Nb-BERT-large (base) | 28.44 | 84.12 | 88.19 | -- | 88.02 |
| Kl-ModernBERT | 36.7 | 70.37 | 90.49 | 82.14 | -- |
| ModernBERT (base) | 31.55 | 67.92 | 88.8 | 79.52 | -- |
| Kl-NorBERT3 | 34.15 | 70.29 | 88.67 | -- | -- |
| NorBERT3-large (base) | 32.51 | 64.04 | 88.49 | -- | -- |
Beyond raw F1 scores, there is a practical efficiency gain worth noting. In the context of a Named Entity Recognition task focused on identifying medical entities within text, clinical models consistently achieved optimal checkpoint performance within just 1 to 2 training epochs. In contrast, baseline models required approximately 8 to 10 epochs to reach comparable levels of performance. That is a 5-8x reduction in fine-tuning compute for downstream tasks.
Which model to pick
The paper offers practical guidance on model selection. Kl-Nb-BERT seems to be the preferred model in cases where the input text is short due to its limited context length. Otherwise, Kl-ModernBERT seems to be the best alternative, especially in tasks requiring identification of parts of texts relevant to the task to be automated, like NER. ModernBERT's 8,192-token window is a real advantage for long clinical documents like discharge summaries.
What this unlocks for Norwegian healthcare
The practical use-cases map directly to the evaluation tasks:
- Stroke triage support: The AISMEC task shows the model can classify emergency call transcripts for stroke risk, a potential real-time decision support tool for emergency operators.
- Adverse event monitoring: The Synergi task demonstrates drug name extraction from free-text hospital incident reports, enabling automated pharmacovigilance.
- De-identification pipelines: Strong NER performance on Nor-DeID means the models can power the very anonymization workflows needed to create future training datasets.
- ICD coding automation: The broader Norwegian clinical NLP ecosystem, including the earlier NorDeClin-BERT work on ICD-10 prediction, points to automated diagnosis coding as a high-value target.
What makes this work stand out beyond the benchmarks is the data itself. Most clinical NLP papers train on synthetic data or narrow single-department corpora. This dataset is based on a representative population of Helse Vest patients, including all medical specialties and all age groups. That breadth is rare and makes the resulting models substantially more generalizable within the Norwegian healthcare context.
The models are not yet publicly available, as the sensitive nature of the training data and ongoing privacy compliance work makes open release complicated. The paper does not mention a Hugging Face release. Teams working in Norwegian healthcare NLP, however, now have a clear blueprint for what is achievable with regional hospital data and a week of GPU time, and a strong argument for pursuing similar initiatives in their own health systems.