TL;DR
EuroLLM-9B is a new, open-source large language model specifically designed to address the underrepresentation of European languages in existing models. It achieves competitive performance across a wide range of multilingual tasks, making it a significant step towards more equitable AI for European citizens.
What Problem Does This Paper Address?
The rapid advancement of large language models (LLMs) has been transformative, but these powerful tools often suffer from a significant bias towards English and other high-resource languages. This leaves many languages, particularly those spoken in Europe, underserved and underrepresented. This gap limits the accessibility and utility of AI for a large portion of the global population. EuroLLM-9B aims to bridge this gap by creating a powerful, open-source LLM that prioritizes comprehensive coverage of all 24 official European Union languages, plus 11 additional languages.
Methods
The development of EuroLLM-9B involved several key innovations:
- Tokenizer Design: A Byte Pair Encoding (BPE) tokenizer with byte-fallback was employed, similar to LLaMA-2 and Mistral-7B. A vocabulary size of 128,000 was chosen to balance efficient multilingual processing with manageable embedding parameter counts, achieving comparable fertility rates to larger tokenizers.
- Architecture: EuroLLM-9B utilizes a standard dense Transformer architecture, building upon the design of its predecessor, EuroLLM-1.7B. It incorporates grouped-query attention (GQA) for faster inference, pre-layer normalization and RMSNorm for training stability, SwiGLU activation, and rotary positional embeddings (ROPE) for extended context length.
- Data Filtering (EuroFilter): A novel AI-based multilingual filter, EuroFilter, was developed to curate the massive pre-training dataset. This filter employs various strategies, including perplexity filtering and heuristic rules, to ensure high-quality data across many languages.
- Synthetic Dataset (EuroBlocks-Synthetic): To enhance language coverage and instruction-following capabilities for European languages, a synthetic dataset called EuroBlocks-Synthetic was created. This dataset combines human-written and AI-generated instruction-following conversations.
- Pre-training Strategy: The model was trained on approximately 4 trillion tokens using a Megatron-LM codebase and a three-phase learning rate scheduler. This phased approach gradually introduced higher quality and specialized data.
- Post-training: EuroLLM-9B was fine-tuned on the EuroBlocks dataset to create EuroLLM-9B-Instruct, an instruction-following conversational model.
Datasets
- Pre-training Data: A diverse corpus was collected, including:
- Web Data: FineWeb-edu (for English), RedPajama-Data-v2, HPLT, MADLAD-400, CulturaX, mC4, and translated versions of FineWeb-Edu.
- Parallel Data: Sentence-level and document-level parallel corpora from sources like Europarl and ParaDocs.
- Code/Math Data: The Stack, Algebraic-stack, Open-web-math, python-edu, GSM8k, and Mathematics Aptitude Test of Heuristics.
- Higher-quality Data: Wikipedia, Arxiv, Books, Apollo, and Cosmopedia.
- Post-training Data (EuroBlocks): A multilingual dataset combining human-written sources (Magpie, Aya, Imsys-chat-1m, OpenMath-2, smol-magpie-ultra) and synthetic data generated using LLMs.
- Evaluation Benchmarks: A suite of multilingual benchmarks including Arc-Easy/Challenge, Hellaswag, MMLU, MMLU-Pro, TruthfulQA, MUSR, IFEval, and machine translation tasks (WMT24++).
Key Insights and Ideas
- The critical need for multilingual LLMs: Existing open-source LLMs are heavily skewed towards English, creating an AI divide. EuroLLM-9B directly addresses this by making advanced LLM capabilities accessible to a much wider linguistic community.
- Data quality and filtering are paramount: The development of EuroFilter highlights the importance of sophisticated data curation techniques to ensure high-quality training data, especially for under-resourced languages.
- Synthetic data can bridge linguistic gaps: EuroBlocks-Synthetic demonstrates how AI-generated data can effectively augment real-world data to improve performance on specific language families and tasks.
- Openness drives progress: By releasing all major components, the EuroLLM project aims to foster further research and development in multilingual AI.
Key Results
EuroLLM-9B demonstrates strong performance across various multilingual benchmarks:
- Pre-trained Model: EuroLLM-9B emerges as a leading open European-made LLM of its size, achieving competitive scores on multilingual benchmarks and outperforming other European models in many languages.
- Post-trained Model (EuroLLM-9B-IT): The instruction-tuned variant shows superior performance, particularly in machine translation, where it achieves the best results among comparable models.
- Language Coverage: The model supports all 24 official EU languages and 11 additional languages, a significant improvement over many existing models.
Limitations and Future Work
- Performance on TruthfulQA: While EuroLLM-9B-IT performs well overall, it ranks fourth on average for the TruthfulQA benchmark. The authors suggest this might be due to the benchmark's challenging nature, which can even trick humans.
- Future Work: The authors plan to continue developing larger-scale multilingual LLMs specifically for European languages and use cases. They also aim to explore further improvements in multilingual capabilities and reasoning skills.
Summary updated