TL;DR
This paper investigates how to transfer text detoxification capabilities from a resource-rich language (like English) to a target language that lacks a parallel detoxification corpus. The authors evaluate several cross-lingual transfer strategies—including a highly efficient parameter-freezing adapter approach—and introduce a new task: simultaneous text translation and detoxification. They also propose updated automatic evaluation metrics that align much more closely with human judgment than previous benchmarks.
What Problem Does This Paper Address?
Text detoxification—the task of converting toxic text into a neutral equivalent while preserving its original meaning—has seen significant progress in monolingual settings. However, training these models typically requires high-quality parallel datasets (toxic $\leftrightarrow$ neutral sentence pairs), which are expensive to collect and virtually non-existent for most languages.
To scale text detoxification globally, we need ways to leverage existing data from resource-rich languages to handle low-resource languages. This paper addresses cross-lingual text detoxification transfer. Additionally, the authors tackle the computational inefficiency of pipeline systems (e.g., translating text first, then detoxifying it) by exploring models that can translate and detoxify simultaneously in a single inference step.
Methods
The authors explore five distinct setups for cross-lingual style transfer:
- Backtranslation: A baseline pipeline where the target language input is translated into English, detoxified using a state-of-the-art monolingual model, and then translated back into the target language. Backtranslation pipeline
- Training Data Translation: The source language parallel corpus is translated entirely into the target language, and a new monolingual detoxification model is trained from scratch on this synthetic data. Training Data Translation
- Multitask Learning: A multilingual language model (LM) is fine-tuned simultaneously on translation, paraphrasing, source language detoxification, and target language synthetic detoxification.
- Adapter Training: A highly parameter-efficient approach where a small "Adapter" layer is inserted between the encoder and decoder of a pre-trained multilingual LM. During training on the source detoxification corpus, the base LM weights are frozen, forcing only the adapter to learn the style-transfer logic. Adapter approach
- Simultaneous Detoxification & Translation: An end-to-end task where the model takes toxic text in language $X$ and directly outputs neutral text in language $Y$. This model is trained on a synthetic cross-lingual parallel corpus. Simultaneous Detox & Translate
Datasets
The experiments primarily focus on English and Russian language pairs:
- ParaDetox (English): 20,436 crowdsourced toxic-neutral sentence pairs used as the primary resource-rich corpus.
- ParaDetox (Russian): 7,058 pairs used to evaluate and validate the cross-lingual transfer methods.
- Auxiliary Corpora: For multitask and adapter training, the authors utilize Opusparcus (for paraphrasing) alongside Open Subtitles, Tatoeba, and news_commentary (for English-Russian translation).
Key Insights and Ideas
- Adapters Prevent "Language Forgetting": By freezing the weights of the underlying multilingual language model and only training the adapter layer, the model retains its cross-lingual capabilities while successfully isolating the detoxification logic. This makes it highly effective for zero-shot transfer to other languages.
- The Translation Bottleneck: While backtranslation performs well on paper, qualitative analysis reveals that it suffers from significant content loss. Nuanced toxic expressions in one language are frequently mangled or diluted during the initial machine translation step before they even reach the detoxification model.
- Closing the Human-Machine Evaluation Gap: Previous automatic metrics for style transfer correlated poorly with human scores, particularly regarding text fluency. By introducing modern embedding-based classifiers (such as BLEURT for content preservation and RoBERTa fine-tuned on linguistic acceptability for fluency), the authors significantly improved Spearman's correlation with human judgments.
Key Results
- Best Overall Performance: The Backtranslation approach using state-of-the-art monolingual models yielded the highest overall Joint TST score ($J=0.347$ for Russian). However, it requires three separate model inferences, making it computationally expensive.
- Most Efficient Alternative: Adapter Training proved to be the most resource-conserving end-to-end method. An mBART model equipped with an adapter trained on English data achieved a solid Joint score of $J=0.303$ when evaluating English detoxification, without requiring any target-language parallel data during the adapter training phase.
- Simultaneous Detox & Translation Success: For the combined translation and detoxification task, end-to-end models trained on synthetic cross-lingual data (like
mBART (Yandex)) performed comparably to heavy pipeline approaches (Joint score of $0.333$ vs $0.467$) while cutting inference costs in half by utilizing a single model.
Limitations and Future Work
- Language Scope: The study only evaluates English and Russian. Performance on typologically distant or truly low-resource languages remains an open question.
- Evaluation Dependencies: The proposed automatic evaluation setup still relies on having robust toxicity classifiers and linguistic acceptability datasets for the target language, which may not exist for low-resource dialects.
- Toxicity Coverage: The models occasionally struggle to capture the full scope of cultural and linguistic nuances inherent to specific types of toxicity. The authors suggest expanding future work to cover more diverse language pairs and broader toxicity definitions.
Summary updated