TL;DR
This paper introduces CroissantLLM, a 1.3B parameter, truly bilingual French-English language model trained on a massive 3T token dataset with a 1:1 language ratio. It aims to provide a high-performance, open-source model that runs efficiently on consumer hardware, addressing the English-centric bias in current LLMs and offering a novel French benchmark.
What Problem Does This Paper Address?
The field of Large Language Models (LLMs) is heavily dominated by English-centric research and datasets. This leads to several issues:
- English Bias: Models perform significantly better in English, with a noticeable "American bias" in their knowledge and outputs. This disadvantages non-English users.
- Lack of Transparency: Many state-of-the-art models, even open-weight ones, suffer from a lack of transparency regarding their training data and processes, hindering research and trust.
- Resource Scarcity: High-quality, diverse datasets and benchmarks for non-English languages, particularly French, are scarce compared to English.
- Computational Cost: Training and running large, high-performing models is computationally expensive, limiting accessibility for researchers and industrial deployment.
CroissantLLM aims to tackle these problems by creating a truly bilingual model with a focus on transparency, efficiency, and improved performance in French.
Methods
The authors introduce several key methodological innovations:
- Intrinsically Bilingual Training: CroissantLLM is trained with a strict 1:1 ratio of English to French pre-training data. This is a departure from most multilingual models that include only a minor proportion of non-English data.
- Custom Tokenizer: A custom tokenizer is developed and optimized for bilingualism, aiming to improve token efficiency for French compared to standard English-centric tokenizers.
- Novel French Benchmark (FrenchBench): To address the lack of comprehensive French evaluation, the authors introduce FrenchBench, a benchmark comprising various classification and generation tasks designed to assess diverse aspects of model performance in French.
- Inference-Optimized Models: The training paradigm focuses on creating "inference-optimal" models, meaning they are trained for longer on more data than strictly compute-optimal models, leading to better performance at a smaller size and lower inference cost.
- Transparency Focus: The project emphasizes transparency by releasing code, dozens of checkpoints across various model sizes, training data distributions, and fine-tuned models. They also evaluate their model using the Foundation Model Transparency Index (FMTI).
Datasets
- Training Data: A massive 3T token dataset comprising English, French, and code data.
- French Data: A 303B token corpus, manually curated and diverse, including web data, literary works, speech transcripts, legal documents, scientific articles, and more.
- English Data: Primarily drawn from the SlimPajama corpus, excluding copyrighted documents.
- Code Data: 140B tokens of code data in various programming languages.
- Parallel Data: 400 million parallel English-French sentences.
- Evaluation Datasets:
- English: Standard benchmarks like HellaSwag, PiQA, SciQ, Arc-C, and MT-Bench.
- French: The newly introduced FrenchBench, which includes tasks like title generation, summarization, question answering (FQuAD, FQuADGenQ, FquadGenAns, MultiFQuAD), and French Trivia. They also use translated versions of English benchmarks like French Hellaswag and Arc-C.
Key Insights and Ideas
- 1:1 Language Ratio is Key: Training with an equal split of English and French data significantly reduces performance disparities and biases, leading to a more balanced bilingual model.
- Tokenizer Matters for Multilingualism: A custom tokenizer optimized for bilingualism can improve token efficiency and reduce processing costs for non-English languages.
- FrenchBench is Crucial: The lack of dedicated French benchmarks limits our understanding of LLM capabilities in non-English languages. FrenchBench fills this gap by providing a comprehensive evaluation suite.
- Inference Efficiency is Paramount: For widespread adoption, models need to be efficient. CroissantLLM's focus on inference optimization makes it accessible on consumer hardware.
- Transparency Drives Trust: Releasing extensive data, code, and checkpoints fosters research and builds trust in LLMs.
Key Results
- Performance: CroissantLLM (1.3B parameters) achieves strong performance on English benchmarks, comparable to models trained on much more English data. It significantly outperforms similar-sized models on French benchmarks and is on par with larger models like Bloom(3B).
- Translation: CroissantLLM demonstrates excellent translation capabilities, outperforming models like Mistral7B and Llama13B in few-shot settings and matching specialized translation models.
- Efficiency: The 1.3B model can run on local hardware (PCs, smartphones) and achieves over 5 tokens/second with 4-bit quantization on lower-end smartphones. Inference on GPUs is significantly faster and less memory-intensive than larger models.
- Transparency: The model scores 81% on the Foundation Model Transparency Index, significantly higher than most proprietary and many open-source models.
Limitations and Future Work
- Model Size: While efficient, the 1.3B parameter size limits its capacity for highly complex reasoning tasks in zero or few-shot settings, aligning with general observations about model scale.
- Knowledge Cutoff: The model's knowledge is limited by its training data's cutoff date (November 2023 Wikipedia dump).
- Hallucinations: Like other LLMs, CroissantLLM can hallucinate and produce factually incorrect data, especially on complex topics.
- Future Work: The authors suggest further research into the impact of data mixes, leveraging larger LLMs for pretraining smaller models, and exploring more advanced scheduling techniques. They also highlight the iterative nature of model building and the importance of practical feedback.
Summary updated