TL;DR
CroissantLLM is a 1.3B parameter language model specifically engineered for high-performance bilingualism in French and English. By training on 3 trillion tokens with a strict 1:1 language ratio and prioritizing radical transparency (scoring 81% on the Foundation Model Transparency Index), the authors provide a powerful, open-source model optimized for local inference on consumer-grade hardware.
What Problem Does This Paper Address?
The current LLM landscape suffers from two major imbalances: English-centricity and a lack of transparency. Most state-of-the-art models are trained on corpora where English is the overwhelming majority, leading to significant performance degradation and cultural bias when used in other languages. Furthermore, many high-performing models are "black boxes," with secret training mixes and evaluation protocols that hinder scientific study and industrial trust.
CroissantLLM aims to bridge this gap by creating a model that treats French as a first-class citizen, while remaining small enough to run swiftly on a smartphone or a standard laptop.
Methods
The researchers utilized the Llama architecture (a decoder-based transformer) but introduced several novel strategic choices:
- 1:1 Language Ratio: Unlike most multilingual models that treat non-English data as a minor supplement, CroissantLLM uses an equal split of French and English tokens.
- Inference-Optimal Training: The authors followed the trend of training "small" models far past their Chinchilla-optimal point. While a 1.3B model typically requires ~26B tokens, they trained on 3T tokens (a 2300:1 token-to-parameter ratio), ensuring high performance at a low computational cost during inference.
- Custom Tokenizer: They developed a bilingual tokenizer using Byte-Pair Encoding (BPE) with a 32k vocabulary. This was specifically designed to reduce "fertility"—the number of tokens produced per word—which makes processing French text significantly more efficient.
Datasets
The model was trained on a massive 3T token corpus, summarized in the table below:
Key components include:
- French Data (303B unique tokens): A highly curated mix of web scraps (CulturaX), legal/administrative documents from the French government, and a rich "Cultural" split including Project Gutenberg books and French poetry.
- English Data: Primarily drawn from the SlimPajama corpus.
- Code Data: 140B tokens from The Stack and StarCoder, focusing on high-resource languages like Python and Java.
- Parallel Data: High-quality English-French translation pairs to strengthen bilingual alignment.
To evaluate the model, the authors introduced FrenchBench, a new benchmark comprising classification and generation tasks specifically for the French language.
Key Insights and Ideas
- The "Best of Both Worlds" Ratio: Through scaling law experiments, the authors found that a 1:1 ratio minimizes performance hits across both languages. Increasing French data beyond 50% yielded diminishing returns in French while significantly hurting English performance.
- Perplexity vs. Downstream Tasks: A fascinating finding was that while model perplexity (a measure of how well the model predicts the next token) plateaus relatively early, performance on downstream tasks like translation and reasoning continues to improve significantly deep into the 3T token training run.
- Transparency as a Feature: By validating 81% of the Foundation Model Transparency Index (FMTI) criteria, the team sets a new standard for open-source releases, providing everything from data distribution details to dozens of intermediate training checkpoints.
Key Results
- Performance: The 1.3B CroissantLLM outperforms much larger models (like Bloom 3B) on French tasks and remains competitive with TinyLlama (1.1B) on English benchmarks.
- Translation: The model shows extremely strong translation capabilities, matching or exceeding specialized translation models like NLLB 1.3B in certain settings.
- Efficiency: On an A100 GPU, the model achieves over 145 tokens per second in French. More importantly, it can run at more than 5 tokens per second on a low-end smartphone when quantized to 4-bit.
Limitations and Future Work
The authors acknowledge that at 1.3B parameters, the model still struggles with complex reasoning and abstract logic compared to 7B+ parameter models. Like all LLMs, it is prone to hallucinations, particularly on niche or complex topics.
Future work involves exploring "annealing" phases—training the final stages on even higher-quality, reasoning-heavy data—and leveraging larger models as "critics" to further refine the bilingual capabilities of these smaller, edge-ready models.
Summary updated