[Paper Review] GPT-SW3: An Autoregressive Language Model for the Nordic Languages
GPT-SW3 is the first native autoregressive large language model for the Nordic languages, trained on 320B tokens of multilingual and code data across Swedish, Norwegian, Danish, Icelandic, and English. The model, ranging from 126M to 40B parameters with instruction-tuned variants, was developed through curated data collection, compliance-aware processing, and national supercomputing infrastructure, offering a transparent, open-research-focused alternative to proprietary models for underrepresented North Germanic languages.
This paper details the process of developing the first native large generative language model for the Nordic languages, GPT-SW3. We cover all parts of the development process, from data collection and processing, training configuration and instruction finetuning, to evaluation and considerations for release strategies. We hope that this paper can serve as a guide and reference for other researchers that undertake the development of large generative models for smaller languages.
Motivation & Objective
- To develop the first native large language model for the Nordic (North Germanic) languages, addressing the lack of multilingual LLMs for smaller European languages.
- To overcome data scarcity and regulatory challenges (e.g., GDPR, copyright) in collecting high-quality, diverse text for Nordic languages.
- To leverage national supercomputing infrastructure (e.g., Berzelius, SNIC) for training, ensuring accessibility and sustainability for Nordic research.
- To establish a transparent, open-research-oriented release strategy that balances openness with responsible AI principles.
- To enable the Nordic NLP community to access, validate, and extend a native LLM for cultural and linguistic representativity.
Proposed method
- Constructed The Nordic Pile, a curated dataset of ~320B tokens from diverse sources including news, books, and code, with language-specific filtering and deduplication.
- Processed data using a multilingual tokenizer and applied rigorous filtering to ensure quality and compliance with GDPR and copyright regulations.
- Trained decoder-only Transformer models using causal language modeling on national HPC infrastructure (Berzelius) via the NeMo Megatron framework.
- Fine-tuned selected models with instruction tuning using a curated instruction dataset to improve zero-shot and few-shot capabilities.
- Implemented a restricted pre-release strategy with manual application review and a modified BigScience RAIL license to ensure responsible access for research.
- Conducted real-world validation via the Klara chatbot in a public art exhibition, collecting over 7,000 user interactions to assess generative quality and societal impact.
Experimental results
Research questions
- RQ1How can a high-quality, large-scale language model be developed for Nordic languages with limited existing training data and regulatory constraints?
- RQ2What is the optimal balance between data openness, compliance (e.g., GDPR), and model accessibility in national LLM initiatives?
- RQ3Can national HPC infrastructure support the training of 40B-parameter LLMs for low-resource languages without relying on commercial cloud providers?
- RQ4How can instruction tuning improve zero-shot and few-shot performance of Nordic LLMs across multiple languages and tasks?
- RQ5What are the societal and practical validation pathways for generative LLMs in public and cultural contexts?
Key findings
- GPT-SW3 is the first multilingual LLM trained on a comprehensive dataset of 320B tokens across five Nordic languages and four programming languages, with models ranging from 126M to 40B parameters.
- The Nordic Pile dataset was successfully compiled with strict compliance to GDPR and copyright laws, using a multi-stage filtering and deduplication pipeline.
- The model suite achieved strong zero-shot and few-shot performance across Nordic languages, validated through both benchmark evaluations and real-world deployment.
- The Klara chatbot deployment in a public art exhibition attracted over 7,000 user interactions, demonstrating strong generative quality and public engagement.
- The restricted pre-release strategy enabled responsible access for Nordic NLP researchers while maintaining compliance, with plans for eventual full open release.
- National HPC infrastructure (Berzelius) successfully supported the training of the 40B-parameter model, proving feasibility of large-scale LLM training in national research ecosystems.
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.