Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

127 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Heterogeneous Safety Impacts of Benign Multilingual Fine-Tuning (MLSFT)

License: MIT Hugging%20Face%20Datasets Hugging%20Face%20Models

Exploring how benign finetuning affects safety refusal and compliance rates in language models

Overview

This repository contains the complete code, data, and results for the paper "The Heterogeneous Safety Impacts of Benign Multilingual Fine-Tuning".

We investigate how benign multilingual supervised fine-tuning (MLSFT) of language models affects their compliance and refusal rates, both in English and the target languages. We perform finetuning using a 1000 datapoint multilingual (8 languages) synthetic version of the Dolly dataset, with manual quality verification for each target language. We then finetune various language models and evaluate changes in safety compliance using Sorry-Bench, both in the English and (via NLLB translation) in the target translated language. Our findings reveal that finetuning has heterogeneous impacts on compliance rates, with effects varying significantly across different models and languages.

For installation, setup, orchestration, and reproduction details, see docs/README.md.

Key Contributions

  • Benign finetuning produces heterogeneous impacts on safety complaince rates across models and languages.
  • Effects on safety are measured using both English and translated evaluations.
  • A comprehensive, reproducible multlilingual benchmark with both finetuning data and an evaluation pipeline, verfied manually across 8 non-english languages.

Datasets and Models

All datasets, fine-tuned models, and evaluation outputs are available on Hugging Face:

Pre-existing Results

Paper results are available in data/results/:

  • compliance_rate_stats.csv — Compliance rate statistics across models and languages
  • judgement_stats_summary.csv — Detailed safety judgment summaries

These are generated from individual eval runs in data/outputs/ and are automatically refreshed at the end of each orchestration run. To manually refresh the results:

python src/summarize_judgement_stats.py

Citation

If you use this code or datasets in your research, please cite:

@InProceedings{hawkins2026mlsft,
  title={Heterogeneous Impacts of Multilingual Safety Finetuning},
  author={Will Hawkins and Kai Rawal and Jonathan Rystrom and Stratis Tsirtsis and Zihao Fu and Greta Warren and Eoin D. Delaney and Ryan Brown and Sandra Wachter and Brent Mittelstadt and Chris Russell},
  booktitle={Proceedings of the 43rd International Conference on Machine Learning},
  year={2026},
  series={Proceedings of Machine Learning Research},
  publisher={PMLR}
}

Contact

For questions, feedback, or collaboration inquiries, the best way to reach the authors is by opening a GitHub issue in this repository.

License

This project is licensed under the MIT License — see LICENSE for details.

About

Code, data, and results for the paper "The Heterogeneous Safety Impacts of Benign Multilingual Fine-Tuning".

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages