FinGPT: Large Generative Models for a Small Language

Risto Luukkonen, Ville Komulainen, Jouni Luoma, Anni Eskelinen, Jenna Kanerva, Hanna-Mari Kupari, Filip Ginter, Veronika Laippala, Niklas Muennighoff, Aleksandra Piktus, Thomas Wang, Nouamane Tazi, Teven Le Scao, Thomas Wolf, Osma Suominen, Samuli Sairanen, Mikko Merioksa, Jyrki Heinonen, Aija Vahtola, Samuel Antao, Sampo Pyysalo

Abstract

Most large language models (LLMs) are developed with a heavy bias toward English, leaving smaller languages like Finnish with limited generative resources. This paper introduces FinGPT and BLUUMI, a suite of models specifically optimized for the Finnish language. By compiling a massive 38-billion-token Finnish corpus and utilizing the LUMI supercomputer, researchers from the TurkuNLP Group and Hugging Face have established a new state-of-the-art for Finnish NLP. Their findings highlight a "10B parameter wall" for monolingual models in data-constrained environments and demonstrate the high efficacy of continued pretraining for massive multilingual models.

Introduction

While Transformers have revolutionized natural language processing, their performance is heavily dependent on the availability of massive datasets. For Finnish, a language spoken by fewer than 6 million people, the scarcity of high-quality digital text presents a significant challenge. Finnish accounts for less than 1% of major web crawls like Common Crawl. Prior to this work, the Finnish NLP landscape lacked generative models exceeding one billion parameters. This research addresses whether it is more effective to train smaller monolingual models from scratch or to adapt existing massive multilingual models to a new language.

Methods and Infrastructure

The researchers employed a dual-track development strategy. First, they developed FinGPT, a series of seven monolingual models ranging from 186M to 13.3B parameters, based on the BLOOM decoder-only architecture with ALiBi position embeddings. Second, they created BLUUMI by performing continued pretraining on the 176B-parameter BLOOM model, which originally contained no Finnish data.

Training was executed on the LUMI supercomputer using up to 1,536 AMD MI250X GPUs. This required significant engineering to adapt the Megatron-DeepSpeed framework for AMD’s ROCm software stack, representing one of the largest non-English LLM training efforts to date.

The Finnish Corpus and FIN-bench

To support these models, the team compiled the largest Finnish dataset ever assembled, totaling approximately 38 billion tokens. This corpus integrates web crawls, news archives, social media, and a substantial collection of copyrighted material from the National Library of Finland. To evaluate performance, they introduced FIN-bench, a Finnish adaptation of BIG-bench containing nearly 4,000 examples across diverse tasks such as arithmetic and intent recognition.

Scaling Laws and the 10B Parameter Wall

A key finding of the study is the observation of a performance plateau, or even a slight decline, when scaling monolingual models beyond 8 billion parameters. The 13.3B parameter model exhibited signs of overfitting, likely due to the limited amount of unique Finnish data available. This suggests that for "small" languages, there is an upper bound on model size where further parameter increases lead to memorization rather than improved generalization.

Aggregate performance across parameter counts and shot settings for various Finnish models.

Continued Pretraining: From BLOOM to BLUUMI

In contrast to the scaling limits of monolingual models, the continued pretraining of the 176B-parameter BLOOM model proved exceptionally successful. BLUUMI achieved a 12–18 percentage point improvement on Finnish benchmarks compared to the base BLOOM model, without sacrificing its original English capabilities.

Comparison of BLOOM and BLUUMI accuracy across different few-shot settings on Finnish tasks.

This result indicates that "teaching" a massive, pre-trained multilingual model a new language is a highly efficient path to achieving state-of-the-art performance for low-resource languages.

Conclusion and Future Directions

FinGPT and BLUUMI represent a major leap forward for Finnish NLP, significantly outperforming all previous models. Beyond raw performance, the researchers successfully reduced toxicity in generations by over 50% through rigorous data filtering. However, as base foundation models, they still require instruction tuning to excel at specific "Helpful, Honest, Harmless" (HHH) tasks. Future work will focus on reinforcement learning from human feedback (RLHF) and exploring data augmentation techniques to push past the current data ceiling.

Summary updated

BibTeX
@inproceedings{luukkonen2023fingpt,
  author = {Risto Luukkonen and Ville Komulainen and Jouni Luoma and Anni Eskelinen and Jenna Kanerva and Hanna-Mari Kupari and Filip Ginter and Veronika Laippala and Niklas Muennighoff and Aleksandra Piktus and Thomas Wang and Nouamane Tazi and Teven Le Scao and Thomas Wolf and Osma Suominen and Samuli Sairanen and Mikko Merioksa and Jyrki Heinonen and Aija Vahtola and Samuel Antao and Sampo Pyysalo},
  title = {{FinGPT: Large Generative Models for a Small Language}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.emnlp-main.164},
}
Figure