NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Multilingual and Explainable Text Detoxification with Parallel Corpora

Daryna Dementieva, Nikolay Babakov, Amit Ronen, Abinew Ali Ayele, Naquee Rizwan, Florian Schneider, Xintong Wang, Seid Muhie Yimam, Daniil Moskovskiy, Elisei Stakovskii, Eran Kaufman, Ashraf Elnagar, Animesh Mukherjee, Alexander Panchenko

TL;DR

This paper expands parallel text detoxification corpora to five new languages (German, Chinese, Arabic, Hindi, and Amharic) and introduces the first comprehensive cross-lingual analysis of toxicity attributes across nine languages. Leveraging these insights, the authors develop a novel Chain-of-Thought (CoT) prompting method for Large Language Models (LLMs) that uses data clustering to guide precise, culturally aware text detoxification.

What Problem Does This Paper Address?

Online abusive and toxic speech remains a major challenge globally. While typical moderation relies on blunt message blocking, automatic text detoxification offers a more proactive solution: transforming toxic language into neutral, non-toxic equivalents while preserving the original meaning.

However, state-of-the-art detoxification models rely heavily on parallel corpora (toxic vs. non-toxic sentence pairs), which have historically been limited to a few major languages like English and Russian. Furthermore, the field has lacked a deep, explainable understanding of how toxicity manifests and how it is edited out across different languages and cultural contexts. This paper fills these gaps by expanding language coverage and providing an automated, explainable analysis framework.

Methods

The authors introduce a multi-step framework spanning data collection, analysis, and generation:

  1. Manual Parallel Corpus Annotation: They collected and curated toxic sentences across 5 new languages, hiring native speakers to manually rewrite them into non-toxic forms while maximizing content preservation and fluency.
  2. Automated Explainability Analysis: Using GPT-4 guided by the CO-STAR framework, they extracted descriptive features from both toxic and non-toxic sentences, including toxicity levels, tone, language type, and implied sentiment.
  3. Clustering-Guided Chain-of-Thought (CoT) Detoxification: Using K-means clustering on the extracted descriptive features, they categorized sentences into three distinct groups per language (e.g., purely vulgar vs. condescending/biased vs. informal/playful). When detoxifying a new sentence, the LLM first identifies its cluster and is then prompted with a cluster-specific explanation and a representative human-curated example to guide its generation.
Figure 2: In this work, we extend parallel text detoxification data to new languages as well as provide explainability analysis of toxicity and detoxification attributes across all languages. This information helps to improve Chain-of- Thoughts reasoning for automatic text detoxification with LLMs.

Datasets

The study standardizes and evaluates datasets across 9 languages, utilizing 1,000 samples per language (split into 400 training and 600 test instances):

  • Existing ParaDetox Datasets: English, Russian, Ukrainian, and Spanish.
  • Newly Introduced Datasets: German, Hindi, Amharic, Arabic, and Chinese.

Key Insights and Ideas

  • Cultural Specifics in Toxicity: While some profanities are universal, toxicity expressions are highly culturally dependent. For example, animal-based insults are highly prevalent in Hindi and Amharic; derogatory comparisons involving homosexual individuals appear frequently in Ukrainian, Russian, and Chinese; and politically charged wordplay (e.g., targeting refugees) is common in German.
Figure 4: Top-5 extracted keywords from toxic parts.
  • Detoxification Strategies Vary by Language: Analysis of editorial actions (Delete vs. Rephrase vs. Insert) revealed that Spanish heavily favors simple deletion (60%), whereas Chinese and Russian rely predominantly on rephrasing (84% and 71% respectively). German, Arabic, Hindi, and Amharic show a more balanced mix of deletion and rephrasing.
  • Clustering Reduces Hallucinations: Providing the LLM with explicit knowledge of why a text is toxic (via cluster attributes) helps anchor its generation, significantly improving style transfer accuracy and reducing the model's tendency to over-correct or hallucinate.

Key Results

The authors evaluated models using a Joint Score ($J$), which aggregates Style Transfer Accuracy (STA), Content Similarity (SIM), and Fluency (ChrF1):

  • GPT-4 CoT (Ours) achieved the highest average Joint Score ($0.331$) across all nine languages, outperforming standard few-shot prompting ($0.324$) and unsupervised baselines like condBERT ($0.213$).
  • Baseline Surprises: A simple dictionary-based Delete baseline performed surprisingly well in Chinese, Arabic, and Amharic compared to other unsupervised baselines, because those datasets contained highly localized toxic keywords whose removal sufficed for basic detoxification.
  • Supervised Fine-Tuning: Fine-tuning an mBART-Large model on the human-curated parallel data generally outperformed training on translated data, especially in languages with strong cultural nuances like German, Hindi, Ukrainian, and Amharic.

Limitations and Future Work

  • Language Coverage: Although expanded to 9 languages, many regions and low-resource languages remain completely unexplored.
  • Monolingual Focus: The current study focuses strictly on multilingual setups without exploring cross-lingual style transfer knowledge.
  • English-Centric Explanations: The cluster descriptions and reasoning prompts used for the CoT approach were written in English, which might not fully capture non-English linguistic nuances.
  • Closed-Source Dependency: The primary CoT experiments rely on GPT-4; the authors note the necessity of future ablation studies using open-source LLMs.

Summary updated

BibTeX
@inproceedings{dementieva2025multilingual,
  author = {Daryna Dementieva and Nikolay Babakov and Amit Ronen and Abinew Ali Ayele and Naquee Rizwan and Florian Schneider and Xintong Wang and Seid Muhie Yimam and Daniil Moskovskiy and Elisei Stakovskii and Eran Kaufman and Ashraf Elnagar and Animesh Mukherjee and Alexander Panchenko},
  title = {{Multilingual and Explainable Text Detoxification with Parallel Corpora}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2025},
}
Figure