Abstract: Distributed word representations are popularly used in many tasks in natural language processing. Adding that pretrained word vectors on huge text corpus achieved high performance in many different NLP tasks. This paper introduces multiple high-quality word vectors for the French language where two of them are trained on massive crawled French data during this study and the others are trained on an already existing French corpus. We also evaluate the quality of our proposed word vectors and the existing French word vectors on the French word analogy task. In addition, we do the evaluation on multiple real NLP tasks that shows the important performance enhancement of the pre-trained word vectors compared to the existing and random ones. Finally, we created a demo web application to test and visualize the obtained word embeddings. The produced French word embeddings are available to the public, along with the finetuning code on the NLU tasks and the demo code.
Introduction
In Natural Language Processing (NLP), word embeddings—mathematical vectors representing word meanings—are foundational. While English has a wealth of high-quality pre-trained embeddings, other languages like French often lag behind, frequently relying on limited datasets like Wikipedia. Furthermore, while the industry has shifted toward computationally expensive "contextual" embeddings (like BERT), there remains a significant need for "static" embeddings (like Word2Vec) that are lightweight and efficient for resource-constrained applications. This study addresses this gap by building a massive French web corpus and benchmarking new models against existing ones.
Methods and Datasets
The researchers combined large-scale data engineering with standard embedding algorithms:
- Crawling: The Heritrix crawler was used to navigate the French web for 1.5 months, targeting the
.frtop-level domain. - Processing: Raw HTML was cleaned, filtered for French text using FastText, and deduplicated.
- Training: Using the Word2Vec (CBoW) algorithm, the team produced four main models, varying the training data (their new web crawl vs. the existing FlauBERT corpus) and the "window size."
Benchmarks
Models were evaluated using the French Word Analogy dataset (~31,000 questions) and the FLUE (French Language Understanding Evaluation) benchmark, which includes sentiment analysis (CLS), paraphrase identification (PAWS-X), and Natural Language Inference (XNLI).
The Analogy Paradox and Key Results
The most striking insight from this research is the "Analogy Paradox": performing well on word analogy tasks is a poor predictor of performance on practical NLP tasks.
On the standard analogy task, the researchers' new models actually scored lower than older models trained on the frWac corpus. As shown in the table below, the frWac models reached up to 67.98% accuracy, while the new web-trained models hovered around 52%.
However, this trend reversed dramatically on real-world applications. In sentiment analysis (CLS), the new models achieved 82.38% to 82.58% accuracy, significantly outperforming the standard FastText model and the older frWac models.
Similar gains were seen in paraphrase identification (PAWS-X), where the web-trained model reached 78.02% accuracy, a massive jump over FastText’s 62.80%. This suggests that the semantic utility of a vector is not captured by simple geometric analogies.
Discussion and Insights
- Corpus Diversity Wins: Training on a massive, "noisy" web crawl provided better downstream performance than cleaner, restricted datasets. The breadth of the web provides a richer linguistic signal.
- Static Still Packs a Punch: These high-quality static embeddings showed 10–20% accuracy improvements over older versions, proving that "classic" NLP tools still have significant room for optimization.
Limitations and Future Work
Like all static embeddings, these models struggle with polysemy (words with multiple meanings). They are excellent general-purpose tools, but niche applications (e.g., medical) may require specialized pre-training. The authors call for further research into why analogy tasks fail to correlate with downstream NLU performance, suggesting the geometric properties of word vectors are still not fully understood.
The team has made their models, fine-tuning code, and a web demo publicly available.
Summary updated