[Paper Review] The Nordic Pile: A 1.2TB Nordic Dataset for Language Modeling
The Nordic Pile is a 1.2TB multilingual dataset comprising high-quality text in Danish, Icelandic, Norwegian, Swedish, and English, curated for training large language models (LLMs) in low-resource Nordic languages. The dataset uses a multi-stage pipeline of data collection, deduplication, filtering, and quality control—inspired by The Pile and OSCAR—resulting in a diverse, representative, and GDPR-compliant corpus optimized for training state-of-the-art Nordic LLMs.
Pre-training Large Language Models (LLMs) require massive amounts of text data, and the performance of the LLMs typically correlates with the scale and quality of the datasets. This means that it may be challenging to build LLMs for smaller languages such as Nordic ones, where the availability of text corpora is limited. In order to facilitate the development of the LLMS in the Nordic languages, we curate a high-quality dataset consisting of 1.2TB of text, in all of the major North Germanic languages (Danish, Icelandic, Norwegian, and Swedish), as well as some high-quality English data. This paper details our considerations and processes for collecting, cleaning, and filtering the dataset.
Motivation & Objective
- To address the scarcity of large-scale, high-quality text data for Nordic languages, which hinders the development of effective large language models (LLMs).
- To create a representative, diverse, and high-quality multilingual corpus covering major North Germanic languages and English, suitable for pre-training large-scale LLMs.
- To ensure data quality and compliance with GDPR by systematically filtering out low-quality, duplicate, and personally identifiable content.
- To provide a transparent, reproducible, and scalable data pipeline for future Nordic NLP research and LLM development.
- To foster the development of high-performing, multilingual LLMs tailored to the linguistic and cultural context of the Nordic region.
Proposed method
- Data collection from diverse sources including Common Crawl derivatives (e.g., mC4, OSCAR), Wikipedia dumps, public code repositories, academic articles, books, forums (e.g., Reddit), and curated task-specific datasets.
- Application of language identification using fastText to filter and categorize documents by language, ensuring multilingual coverage of Danish, Icelandic, Norwegian, Swedish, and English.
- Implementation of a multi-stage data pipeline including content filtering, text extraction, quality filtering using a Kneser-Ney language model, and repetition removal.
- Use of MinHash Locality Sensitive Hashing (MinHash LSH) for document-level deduplication to reduce redundancy and improve training efficiency.
- Application of a custom filtering pipeline to exclude low-quality content such as computer-generated text, PDF-extracted noise, and data with high personal information risk.
- Final dataset structured in JSON Lines format with consistent formatting and comprehensive metadata for reproducibility and usability.
Experimental results
Research questions
- RQ1How can a large-scale, high-quality multilingual dataset be systematically constructed for low-resource Nordic languages?
- RQ2What data collection and filtering strategies maximize representativeness, diversity, and quality while minimizing redundancy and privacy risks?
- RQ3To what extent does a curated, deduplicated, and filtered dataset improve the performance of LLMs trained on Nordic languages?
- RQ4How can GDPR compliance be achieved in the context of large-scale web data collection for NLP research in Europe?
- RQ5What is the optimal balance between data quantity, linguistic diversity, and domain representation for training effective Nordic LLMs?
Key findings
- The Nordic Pile comprises 1.2TB of cleaned, filtered, and deduplicated text across five languages, with 40.24% in English, 26.02% in Swedish, 11.55% in Norwegian, 10.8% in Danish, and 1.59% in Icelandic.
- The dataset includes 114.5GB of code in Bash, JavaScript, Python, and SQL, and 159.55GB of miscellaneous data, including parallel and task-specific datasets.
- Web CC (Common Crawl-derived) data contributes the largest share at 461.47GB, followed by Wikipedia (16.71GB) and Articles (150.77GB).
- The dataset was constructed with rigorous quality control, excluding low-quality sources such as PDF-extracted text and computer-generated content like YouTube subtitles.
- Despite careful curation, the authors note that current European legislation prevents public distribution of the processed dataset, highlighting a critical regulatory barrier for future Nordic LLM development.
- The final dataset is designed to support training of multi-billion parameter LLMs with strong generalization across domains, languages, and text styles.
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.