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 tackles the challenge of toxic online speech by extending text detoxification to nine languages with new parallel corpora and a novel explainable approach. They introduce a Chain-of-Thoughts prompting method that leverages descriptive features and clustering to improve detoxification accuracy and reduce hallucinations, outperforming existing baselines.

What Problem Does This Paper Address?

Despite regulations, digital abusive speech remains a significant problem. Text detoxification, a form of text style transfer, aims to transform toxic language into a more neutral form. While parallel corpora have been crucial for state-of-the-art detoxification, existing resources are limited, primarily to English. This paper addresses the need for multilingual detoxification capabilities and a deeper understanding of why detoxification works across different languages. They also highlight the importance of explainability in building trustworthy AI systems for content moderation.

Methods

The authors extend existing text detoxification work by:

  • Creating New Parallel Corpora: They introduce new parallel corpora for German, Chinese, Arabic, Hindi, and Amharic, building upon existing datasets.
  • Explainable Analysis: They conduct a novel, automated analysis of toxic and non-toxic sentences across nine languages using GPT-4. This involves extracting descriptive features like toxicity level, tone, language type, and implied sentiment.
  • Chain-of-Thoughts (CoT) Detoxification: They propose a new CoT prompting method for LLMs. This approach leverages the extracted descriptive features and clusters them to guide the detoxification process. The LLM first identifies the cluster a sentence belongs to based on its features and then uses this information, along with examples, to generate a detoxified output.

Datasets

The paper introduces new parallel corpora for:

  • German
  • Chinese
  • Arabic
  • Hindi
  • Amharic

These new datasets, combined with existing ones, form a multilingual dataset covering nine languages (English, Spanish, German, Chinese, Arabic, Hindi, Ukrainian, Russian, and Amharic).

Key Insights and Ideas

  • Multilingual Toxicity is Culturally Dependent: While some toxic words are universal (e.g., "f*ck," "idiot"), the expression of toxicity varies significantly across cultures. For instance, derogatory comparisons involving homosexual individuals are insults in some languages, while animal names are used in others. This necessitates culture-aware detoxification solutions.
  • Detoxification Strategies Vary by Language and Toxicity Type: The paper found that the most effective detoxification approach (e.g., deletion vs. rephrasing) differs based on language and the specific type of toxicity. For example, Chinese and Russian lean more towards rephrasing, while Spanish favors deletion.
  • Clustering Improves LLM Detoxification: Grouping toxic sentences based on descriptive features and providing cluster-specific explanations and examples to LLMs significantly improves detoxification performance and reduces hallucinations. This suggests that providing context and guidance based on the nature of the toxicity is more effective than generic prompts.
  • Explainability is Key for Trust: The automated analysis of descriptive features provides valuable insights into the nuances of toxicity across languages, which is crucial for developing more robust and trustworthy detoxification systems.

Key Results

  • The proposed Chain-of-Thoughts (CoT) prompting method achieved the highest scores across all evaluated approaches in the STA metric and had the highest average Joint score.
  • The CoT approach outperformed few-shot prompting for GPT-4 in nearly all languages.
  • The "Delete" method surprisingly performed best for Chinese, Arabic, and Amharic, likely due to these languages relying more on paraphrasing, where LLMs still struggle.
  • For other languages, LM-based solutions excelled, indicating better language representation in pre-trained models.
  • mBART fine-tuned on human-curated data generally outperformed models fine-tuned on translated data, especially in languages with strong cultural nuances.

Limitations and Future Work

  • Limited Language Coverage: While extending to nine languages is a significant step, there's still room for improvement in incorporating more languages. The current selection was based on author native languages, and broader stakeholder involvement would be beneficial.
  • Focus on Multilingual/Monolingual Tasks: The study primarily focused on multilingual detoxification. Further research could explore monolingual and cross-lingual tasks to identify the most effective models for each language and understand knowledge transfer.
  • English-Centric Explanations: The CoT approach used English-based cluster explanations. Exploring human-readable cluster descriptions in other languages is a future direction.
  • Reliance on Closed-Source LLMs: The primary experiments used GPT-4. Future work should explore open-source LLMs to support open initiatives and conduct ablation studies.
  • Detoxifying LLMs Themselves: The paper acknowledges the growing relevance of detoxifying LLM outputs, not just human content, and suggests further research in this area, especially for multilingual contexts.

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