TLDR: TOXI FRENCH introduces a new 53,000+ comment benchmark for French toxicity detection, built with a semi-automated annotation pipeline. The research surprisingly finds that Small Language Models (SLMs) can outperform larger LLMs like GPT-4o in this task. A novel Chain-of-Thought (CoT) fine-tuning strategy with a dynamic weighted loss significantly improves SLM performance, achieving state-of-the-art results and demonstrating strong cross-lingual generalization for French toxicity detection.
Detecting harmful content online is a critical task for language models, but while significant progress has been made for English, French toxicity detection has lagged. This is primarily due to a shortage of large, culturally relevant datasets for the French language. A new research paper introduces TOXI FRENCH, a groundbreaking public benchmark designed to address this very challenge.
Introducing TOXI FRENCH: A New Benchmark
The researchers behind TOXI FRENCH have created a new public benchmark comprising 53,622 French online comments. This extensive dataset was built using a clever semi-automated annotation process, which drastically reduced the need for manual labeling to just 10%. This efficiency was achieved through high-confidence pre-annotation by large language models (LLMs) followed by human verification. The dataset spans from 2011 to 2025, offering a broad temporal range to help models adapt to evolving forms of toxicity. The definition of toxicity used is broad, encompassing anything individuals or groups might find harmful, inappropriate, or offensive, including hate speech, insults, and threats.
Surprising Insights from Benchmarking
One of the most counterintuitive findings from the comprehensive benchmarking of over 20 models on TOXI FRENCH was that Small Language Models (SLMs) often outperformed many larger models, including commercial APIs like GPT-4o and Gemini-2.5, in terms of robustness and generalization for toxicity detection. For instance, GPT-4o-mini (an 8B parameter model) achieved an 87% accuracy, surpassing GPT-4o (200B parameters) which scored 84%. This challenges the common belief that larger models are inherently more reliable for such tasks. The study also noted a systemic bias in most models, where they tend to overestimate toxicity, leading to high precision on non-toxic content but lower recall.
A Novel Fine-Tuning Strategy
Motivated by the strong performance of SLMs, the researchers developed a novel Chain-of-Thought (CoT) fine-tuning strategy. This approach uses a dynamic weighted loss function during training. In simple terms, this function progressively places more emphasis on the model’s final decision (whether a comment is toxic or not) rather than just its intermediate reasoning steps. This helps ensure that the model’s conclusion is faithful to its reasoning, preventing situations where a model might show good reasoning but still arrive at an incorrect final answer.
Achieving State-of-the-Art Performance
The fine-tuned 4B model, based on Qwen3-4B and utilizing this dynamic weighted loss strategy, achieved state-of-the-art performance. It improved its F1 score by a remarkable 13% over its baseline and even outperformed much larger LLMs like GPT-4o and Gemini-2.5. Furthermore, the model demonstrated strong multilingual capabilities, performing well on a cross-lingual toxicity benchmark (JIGSAW dataset), even when translated into French. This suggests that the methodology can be effectively applied to other languages and critical safety classification tasks.
Also Read:
- Unpacking Prompt Sensitivity: A Deep Dive into LLM Robustness
- Lean Language Models Master Reasoning and Retrieval for Private AI Applications
Key Contributions and Future Directions
The core contributions of this work include the creation of a high-quality, culturally grounded French toxicity benchmark, comprehensive benchmarking that revealed unexpected SLM strengths, and a novel CoT fine-tuning framework. This research highlights the significant potential of “small yet strong” models for scalable and multilingual safety-critical applications. The authors also suggest future work, such as refining the dynamic loss mechanisms and exploring automated curriculum learning, to further enhance multilingualism and model performance.
For more in-depth information, you can read the full research paper here: TOXI FRENCH Research Paper.


