arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.16235cs.CLcs.AIcs.CRcs.LG
收藏

偏好调优用于毒性缓解在多语言间泛化

Preference Tuning For Toxicity Mitigation Generalizes Across Languages

Brown University(布朗大学)

Xiaochen Li, Zheng-Xin Yong, Stephen H. Bach

AI总结:

本研究证明仅用英语数据的DPO偏好调优可显著降低多语言LLM的毒性生成,并揭示MLP层的双重多语言性机制,双语检索可预测其跨语言迁移性。

摘要:

由于多语言大语言模型(LLMs)在全球范围内的使用日益增多,对其进行去毒化变得至关重要。在这项工作中,我们探索了偏好调优在LLMs去毒化中的零样本跨语言泛化能力。与先前研究表明其他安全任务跨语言泛化有限不同,我们证明了仅使用英语数据进行直接偏好优化(DPO)训练,能够显著降低多语言开放式生成中的毒性。例如,经过训练后,mGPT-1.3B在17种不同语言中生成有毒续写的概率从46.8%降至3.9%。我们的结果也扩展到了其他多语言LLMs,如BLOOM、Llama3和Aya-23。利用因果干预和激活分析等机制可解释性工具,我们识别了LLMs中MLP层的双重多语言性属性,这解释了DPO的跨语言泛化。最后,我们展示了双语句子检索能够预测DPO偏好调优的跨语言可迁移性。

英文摘要:

Detoxifying multilingual Large Language Models (LLMs) has become crucial due to their increasing global use. In this work, we explore zero-shot cross-lingual generalization of preference tuning in detoxifying LLMs. Unlike previous studies that show limited cross-lingual generalization for other safety tasks, we demonstrate that Direct Preference Optimization (DPO) training with only English data can significantly reduce toxicity in multilingual open-ended generations. For example, the probability of mGPT-1.3B generating toxic continuations drops from 46.8% to 3.9% across 17 different languages after training. Our results also extend to other multilingual LLMs, such as BLOOM, Llama3, and Aya-23. Using mechanistic interpretability tools like causal intervention and activation analysis, we identified the dual multilinguality property of MLP layers in LLMs, which explains the cross-lingual generalization of DPO. Finally, we show that bilingual sentence retrieval can predict the cross-lingual transferability of DPO preference tuning.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑