Un modèle Transformer Génératif Pré-entrainé pour le______ français (Generative Pre-trained Transformer in______ (French) We introduce a French adaptation from the well-known GPT model)

Antoine Simoulin, Benoît CrabbéTALN 2021

Antoine Simoulin and Benoit Crabbé

Presented at the 2021 TALN conference, this research introduces the first large-scale Generative Pre-trained Transformer (GPT) models specifically designed for the French language. By developing and releasing $GPT_{fr}$-124M and $GPT_{fr}$-1B, the authors aim to bridge the gap between English-centric generative AI and the French NLP ecosystem.

Introduction

At the time of this study, the French NLP landscape was dominated by "encoder-only" models like CamemBERT and FlauBERT. While these models excel at discriminative tasks such as classification or named entity recognition, they are not designed for fluent text generation. This "generative gap" meant that French researchers lacked a native model capable of zero-shot or few-shot learning—the ability to perform tasks like summarization or translation simply by being prompted, without task-specific fine-tuning.

Methodology

The researchers adopted the decoder-only Transformer architecture of OpenAI’s GPT and GPT-2. They developed two distinct versions to test the effects of scaling: a "small" model with 124 million parameters and a "large" model with 1 billion parameters.

Architecture and scale of the $GPT_{fr}$ models compared to OpenAI's originals.

The training of the 1B model was a significant computational undertaking, conducted on the Jean Zay supercomputer using 32 Tesla V100 GPUs for approximately 140 hours. A critical contribution of this work is the data pipeline. Unlike BERT-style models that can learn from shuffled sentences, generative models require long, coherent documents to learn long-range dependencies. The authors implemented a rigorous filtering process for web data (Common Crawl), excluding 93% of documents for being too short or low-quality, using a smaller GPT model to filter out incoherent text based on perplexity.

Datasets and Benchmarks

The models were trained on a massive aggregation of French text, including Wikipedia, OpenSubtitles, Project Gutenberg, and a cleaned version of the French Common Crawl. To ensure high-quality evaluation, the authors introduced WikiText-FR, a new benchmark derived from "featured" and "good" Wikipedia articles.

Evaluation was conducted across several benchmarks:

  • WikiText-FR: For language modeling performance.
  • OrangeSum: For testing summarization capabilities.
  • FLUE (French Language Understanding Evaluation): For standard discriminative tasks like sentiment analysis (CLS) and paraphrasing (PAWS-X).

Results and Discussion

Language Modeling and Summarization

$GPT_{fr}$-1B achieved a perplexity of 12.9 on the WikiText-FR test set, significantly outperforming smaller n-gram models. In zero-shot summarization, the model produced grammatically correct and thematic summaries using the prompt "Pour résumer :". However, it struggled to beat a simple baseline of selecting the first sentence of an article, often producing extractive rather than abstractive results.

Generative vs. Discriminative Performance

The study confirms a trade-off: while GPT models are more flexible due to their generative nature, they lag slightly behind BERT-style models on pure classification tasks.

Comparative performance of $GPT_{fr}$ against encoder-only models on the FLUE benchmark.

As shown in the FLUE benchmark results, $GPT_{fr}$-1B scored an average of 88.0, while FlauBERT-large achieved 91.5. Furthermore, the authors found that while the 1B model could handle simple completions, it failed at basic logical reasoning puzzles, suggesting that 1 billion parameters is still below the threshold required for complex zero-shot logic.

Conclusion

This work provides the French NLP community with its first dedicated large-scale generative models. While $GPT_{fr}$-1B demonstrates strong language modeling capabilities, its limitations in logical reasoning highlight the need for even larger scales, similar to English models like GPT-3. Future research will focus on scaling parameter counts, exploring few-shot prompting in French, and improving the abstractive quality of generated summaries.

In a commitment to environmental transparency, the authors noted that training the 1B model emitted approximately 580.61 kg of $CO_2$ equivalent.

Summary updated

BibTeX
@inproceedings{simoulin2021un,
  author = {Antoine Simoulin and Benoît Crabbé},
  title = {{Un modèle Transformer Génératif Pré-entrainé pour le\_\_\_\_\_\_ français (Generative Pre-trained Transformer in\_\_\_\_\_\_ (French) We introduce a French adaptation from the well-known GPT model)}},
  booktitle = {TALN},
  year = {2021},
  url = {https://openreview.net/forum?id=7bWNNuYhqZ},
}
Figure