Saved in:
Bibliographic Details
Main Authors: Delaval, Axel, Yang, Shujian, Wang, Haicheng, Qiu, Han, Lu, Jialiang
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2508.11281
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866908976929570816
author Delaval, Axel
Yang, Shujian
Wang, Haicheng
Qiu, Han
Lu, Jialiang
author_facet Delaval, Axel
Yang, Shujian
Wang, Haicheng
Qiu, Han
Lu, Jialiang
contents Detecting toxic content using language models is crucial yet challenging. While substantial progress has been made in English, toxicity detection in French remains underdeveloped, primarily due to the lack of culturally relevant, human-annotated, large-scale datasets. In this work, we release ToxiFrench, a dataset of 53,622 French online comments together with a balanced benchmark split for systematic evaluation. The dataset is constructed via a semi-automated annotation pipeline that reduces manual labeling to only 10% through high-confidence LLM-based pre-annotation and human verification, while ensuring statistical alignment with human-only annotation. We then benchmark a broad range of models and uncover a counterintuitive finding: Small Language Models (SLMs) often surpass larger models in robustness and generalization on this task. Motivated by this finding, we propose a novel Chain-of-Thought (CoT) fine-tuning strategy using a Dynamic Weighted Loss (DWL) that progressively emphasizes the model's final decision and significantly improves faithfulness. Our fine-tuned 4B model (Qwen3-4B) achieves state-of-the-art performance on the benchmark. It improves its balanced accuracy by 10% over its baseline and achieves better performance than GPT-4o and DeepSeek-R1 on our benchmark, while successfully retaining cross-lingual capabilities.
format Preprint
id arxiv_https___arxiv_org_abs_2508_11281
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle ToxiFrench: Benchmarking and Enhancing Language Models via CoT Fine-Tuning for French Toxicity Detection
Delaval, Axel
Yang, Shujian
Wang, Haicheng
Qiu, Han
Lu, Jialiang
Computation and Language
Artificial Intelligence
Computers and Society
68T50
I.2.7
Detecting toxic content using language models is crucial yet challenging. While substantial progress has been made in English, toxicity detection in French remains underdeveloped, primarily due to the lack of culturally relevant, human-annotated, large-scale datasets. In this work, we release ToxiFrench, a dataset of 53,622 French online comments together with a balanced benchmark split for systematic evaluation. The dataset is constructed via a semi-automated annotation pipeline that reduces manual labeling to only 10% through high-confidence LLM-based pre-annotation and human verification, while ensuring statistical alignment with human-only annotation. We then benchmark a broad range of models and uncover a counterintuitive finding: Small Language Models (SLMs) often surpass larger models in robustness and generalization on this task. Motivated by this finding, we propose a novel Chain-of-Thought (CoT) fine-tuning strategy using a Dynamic Weighted Loss (DWL) that progressively emphasizes the model's final decision and significantly improves faithfulness. Our fine-tuned 4B model (Qwen3-4B) achieves state-of-the-art performance on the benchmark. It improves its balanced accuracy by 10% over its baseline and achieves better performance than GPT-4o and DeepSeek-R1 on our benchmark, while successfully retaining cross-lingual capabilities.
title ToxiFrench: Benchmarking and Enhancing Language Models via CoT Fine-Tuning for French Toxicity Detection
topic Computation and Language
Artificial Intelligence
Computers and Society
68T50
I.2.7
url https://arxiv.org/abs/2508.11281