Introduction
Researchers from the University of Oslo have introduced SLIDE, a novel framework designed for Scandinavian Language Identification (LID). Language identification is often considered a solved problem in NLP; however, traditional single-label classification systems frequently fail to capture the inherent linguistic overlap between closely related languages. In the Scandinavian context—specifically Danish (DA), Swedish (SV), and the two Norwegian written standards, Bokmål (NB) and Nynorsk (NN)—orthographic similarities are profound. By adopting a multi-label approach, SLIDE achieves up to 96.4% exact-match accuracy, providing a more nuanced and accurate tool for Nordic NLP.
The Challenge of Language Overlap
The primary limitation of existing LID tools is the "single-label" assumption. When presented with a sentence like "En dag i livet" (A day in the life), which is perfectly valid in Danish, Swedish, and both Norwegian standards, a standard tool is forced to pick just one. This arbitrary selection is technically incorrect and introduces noise into downstream data processing pipelines.
The researchers found that approximately 5% of sentences in their evaluation set are valid in more than one language. This issue is particularly acute for short-form text: 16% of sentences shorter than six words are multi-lingual. This "ambiguity of brevity" makes multi-label classification essential for accurately processing social media posts, search queries, and other short-form digital content.
Methodology: Silver-labeling and Augmentation
A major hurdle in multi-label tasks is the lack of annotated data. To overcome this without the massive expense of manual labeling, the researchers employed several innovative strategies:
- Silver-labeling via Machine Translation (MT): The team used a fine-tuned LLM (NorMistral-11b) to perform "identity translations." If translating a sentence from one language to another resulted in zero changes to the text, the sentence was assumed to be valid in both, and the target label was added to the training data.
- Data Augmentation: To prevent models from over-relying on superficial cues, the team implemented punctuation augmentation to decouple language identity from stylistic conventions, alphabet variations (swapping markers like æ/ø vs. ä/ö), and named entity swaps to prevent geographic bias.
The researchers released a family of models, including the transformer-based SLIDE-base (built on NorBERT3) and the high-speed SLIDE-fast (built on GlotLID).
Datasets
The study leverages Universal Dependencies (UD) Treebanks for foundational training and introduces the SLIDE Dataset, a manually curated multi-label evaluation set. This dataset serves as the new gold standard for Scandinavian LID. Additional parallel corpora, such as Tatoeba and NPK, were utilized for the MT silver-labeling process and alphabet variation augmentation.
Key Results and Performance
The SLIDE models were evaluated using Exact-match accuracy (requiring all labels to be correct) and Loose accuracy (requiring at least one correct label to be predicted).
As shown in the results, SLIDE-base achieved a top exact-match accuracy of 96.4%, significantly outperforming established baselines such as FastText (77.7%) and NLLB-218 (91.6%). While Norwegian Bokmål and Nynorsk remain the most frequently confused pair, the multi-label approach significantly mitigates this confusion compared to single-label systems. For high-throughput applications, SLIDE-fast offers a compelling trade-off, maintaining 93.4% accuracy while processing samples in just 0.16 ms on a CPU—making it viable for massive web-crawl preprocessing.
Conclusion and Future Work
While SLIDE represents a significant leap forward, the authors acknowledge several boundaries. The current scope is limited to "Mainland Scandinavian" languages and does not yet include Insular varieties like Icelandic or Faroese. Furthermore, performance dropped slightly on Wikipedia-based out-of-distribution tests, suggesting that LID remains sensitive to domain-specific "flavors" (formal vs. informal). Future work will aim to address these geographic and domain gaps, as well as non-standard orthography common in informal digital communication. The code, datasets, and models are publicly available, offering a robust foundation for future Nordic linguistic research.
Summary updated