Breaking mBad! Supervised Fine-tuning for Cross-Lingual Detoxification

Himanshu Beniwal, Youngwoo Kim, Maarten Sap, Soham Dan, Thomas Hartvigsen
5/22/2025
cs.CLcs.AI

Official code: himanshubeniwal/Breaking-mBad (0 stars, last commit 2025-02-20).

Abstract

As large language models (LLMs) become increasingly prevalent in global applications, ensuring that they are toxicity-free across diverse linguistic contexts remains a critical challenge. We explore "Cross-lingual Detoxification", a cross-lingual paradigm that mitigates toxicity, enabling detoxification capabilities to transfer between high and low-resource languages across different script families. We analyze cross-lingual detoxification's effectiveness through 392 extensive settings to evaluate toxicity reduction in cross-distribution settings with limited data and investigate how mitigation impacts model performance on non-toxic tasks, revealing trade-offs between safety and knowledge preservation. Our code and dataset are publicly available at https://github.com/himanshubeniwal/Breaking-mBad.

View on arXivView PDF

Code Implementations(1)

00Shell, PythonFeb 14, 20251 years ago

Similar Papers

Cite this paper

@article{beniwal2025breaking,
  title  = {Breaking mBad! Supervised Fine-tuning for Cross-Lingual Detoxification},
  author = {Himanshu Beniwal and Youngwoo Kim and Maarten Sap and Soham Dan and Thomas Hartvigsen},
  year   = {2025},
  eprint = {2505.16722},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.16722v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.16722.svg)](https://codeofpaper.com/paper/2505.16722)

Discussion