Skip to main content
QUICK REVIEW

[Paper Review] Cedille: A large autoregressive French language model

Martin Müller, Florian Laurent|arXiv (Cornell University)|Feb 7, 2022
Topic ModelingComputer Science7 citations
TL;DR

Cedille is a 6.05B-parameter autoregressive language model pre-trained on a filtered French subset of the multilingual C4 dataset, achieving state-of-the-art zero-shot performance on French NLP benchmarks and outperforming GPT-3 in toxicity reduction through dataset-level filtering. The model is openly released under the MIT License and demonstrates improved safety and fluency in French generation.

ABSTRACT

Scaling up the size and training of autoregressive language models has enabled novel ways of solving Natural Language Processing tasks using zero-shot and few-shot learning. While extreme-scale language models such as GPT-3 offer multilingual capabilities, zero-shot learning for languages other than English remain largely unexplored. Here, we introduce Cedille, a large open source auto-regressive language model, specifically trained for the French language. Our results show that Cedille outperforms existing French language models and is competitive with GPT-3 on a range of French zero-shot benchmarks. Furthermore, we provide an in-depth comparison of the toxicity exhibited by these models, showing that Cedille marks an improvement in language model safety thanks to dataset filtering.

Motivation & Objective

  • To develop a large-scale, open-source autoregressive language model specifically for the French language.
  • To improve zero-shot performance on French NLP tasks compared to existing monolingual and multilingual models.
  • To reduce model toxicity through proactive filtering of training data, rather than post-hoc generation control.
  • To provide a reproducible, transparent alternative to closed-source large language models, enhancing research accessibility and safety.

Proposed method

  • The model architecture is based on GPT-J, using a decoder-only transformer with 28 layers, 4096 model dimensions, 16 attention heads, and rotary positional embeddings.
  • Pre-training is performed on a filtered version of the French subset of mC4, totaling 265 million documents after data curation.
  • Toxicity filtering is applied using the Detoxify model, removing documents with a toxicity score > 0.5 (0.25% of content), resulting in 0.8 million documents excluded.
  • Loss-based filtering uses FlauBERT to identify and remove documents with extreme loss values (below 0.2 percentile or above 10), removing ~20% of documents (66 million).
  • The final model is fine-tuned from GPT-J, leveraging its pre-existing exposure to both English and French data for improved zero-shot cross-lingual capabilities.
  • Toxicity evaluation is conducted via prompt-based generation on a curated French prompt set, measuring maximum toxicity and probability of toxic output across 25 generations.

Experimental results

Research questions

  • RQ1Can a large, monolingual French language model achieve competitive zero-shot performance compared to extreme-scale multilingual models like GPT-3?
  • RQ2Does filtering training data for toxicity lead to measurable reductions in generated toxic outputs without compromising model performance?
  • RQ3How does Cedille’s performance on zero-shot NLP benchmarks compare to existing French models such as GPT-fr and PAGnol?
  • RQ4To what extent does pre-training on a filtered, high-quality French dataset improve perplexity and fluency on French language understanding tasks?
  • RQ5Can a model fine-tuned from a multilingual base (GPT-J) achieve strong zero-shot translation performance for French-English without task-specific fine-tuning?

Key findings

  • Cedille achieves a new state-of-the-art perplexity score on the French WikiText benchmark, indicating superior language modeling capability.
  • On zero-shot NLP benchmarks, Cedille outperforms existing French language models and matches or exceeds GPT-3’s performance in several tasks.
  • The expected maximum toxicity across 25 generations is 0.66 for Cedille, lower than GPT-3 (0.68), GPT-J (0.73), and GPT-fr (0.73), indicating reduced toxicity.
  • The probability of generating at least one toxic output in 25 generations is 0.72 for Cedille, lower than GPT-3 (0.74), GPT-J (0.78), and GPT-fr (0.78), confirming improved safety.
  • Toxicity filtering of the training data reduced both the maximum toxicity and the likelihood of toxic generations, demonstrating the effectiveness of data-level safety interventions.
  • Despite a bug in loss computation that may have included ~10% of wrongly filtered samples, no systematic bias was detected, and model performance remained robust.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.