NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

The Nordic Pile: A 1.2TB Nordic Dataset for Language Modeling

Joey Öhman, Severine Verlinden, Ariel Ekgren, Amaru Cuba Gyllensten, Tim Isbister, Evangelia Gogoulou, Fredrik Carlsson, Magnus SahlgrenarXiv 2023 · DOI

Introduction

In the current era of Large Language Models (LLMs), the availability of high-quality training data is the primary determinant of model performance. While English-centric models benefit from massive, well-curated datasets like "The Pile," North Germanic languages—Swedish, Norwegian, Danish, and Icelandic—have historically faced a significant "data gap." Researchers from AI Sweden and RISE have addressed this by unveiling The Nordic Pile, a 1.2TB high-quality dataset specifically designed to fuel the next generation of Nordic AI.

Methodology

To transform raw, noisy web data into a refined training corpus, the authors implemented a rigorous seven-step processing pipeline:

  1. Normalization: Standardizing text encoding and whitespace.
  2. Metrics Generation: Calculating document statistics and identifying languages via fastText.
  3. Quality Filtering: Applying 16 distinct heuristic filters to remove low-quality content.
  4. Exact Deduplication: Utilizing MD5 hashes to eliminate identical documents.
  5. Language Segmentation: Categorizing data into language-specific subsets.
  6. Fuzzy Deduplication: Using MinHash Locality Sensitive Hashing (LSH) to identify near-duplicate documents. To manage memory constraints, the team employed a sharding and merging strategy.
  7. Merging: Consolidating the cleaned shards into the final 1.2TB corpus.

Dataset Composition

The Nordic Pile is a heterogeneous collection of datasets, drawing from web crawls (mC4, OSCAR), conversational platforms (Reddit, Flashback, Familjeliv), formal academic sources (ArXiv, PubMed, DiVA), and specialized domains like programming code (GitHub) and literature.

Language distribution of The Nordic Pile, highlighting the mix of English, Nordic languages, and code.

The final language distribution is strategically balanced: 40% English is included to maintain general reasoning capabilities, followed by Swedish (26%), Norwegian (12%), Danish (11%), Code (9%), and Icelandic (2%).

Key Insights from Data Refinement

The cleaning process revealed that approximately 20% (300GB) of the initial raw collection consisted of "junk" or redundant data. The efficacy of different filters varied significantly.

Volume of data removed by specific quality filters, showing the high impact of stop-word and repetitive content filters.

A key finding was the effectiveness of simple linguistic heuristics. For instance, checking for a minimum percentage of stop words proved to be one of the most reliable methods for identifying non-linguistic "gibberish" or SEO-spam. Additionally, the project highlighted the persistent challenge of data scarcity for Icelandic, which remains a low-resource language despite aggressive collection efforts.

Results and Future Outlook

The final dataset comprises 659 million documents, totaling 1,208.7 GB of cleaned text. It represents a significant step forward in providing a diverse, high-density knowledge base for Northern European languages, including 190GB of academic articles and 95GB of books.

While European legal frameworks like GDPR currently prevent the public distribution of the full dataset, the authors provide a "recipe" for future initiatives. Future work may focus on more specialized, language-specific filtering and the inclusion of audio transcriptions or legal corpora to further enhance model performance in the Nordic region.

Summary updated

BibTeX
@misc{ohman2023nordic,
  author = {Joey Öhman and Severine Verlinden and Ariel Ekgren and Amaru Cuba Gyllensten and Tim Isbister and Evangelia Gogoulou and Fredrik Carlsson and Magnus Sahlgren},
  title = {{The Nordic Pile: A 1.2TB Nordic Dataset for Language Modeling}},
  year = {2023},
  eprint = {2303.17183},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.17183},
}
Figure