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

我如何对齐你的模型:基于模板扩展多语言安全训练

How I Aligned Your Model: Scaling Up Multilingual Safety Training with Templates

ETH Zurich(苏黎世联邦理工学院)

Max Neuwinger, Hanna Yukhymenko, Imanol Schlag

AI总结:

该研究针对大型语言模型多语言安全对齐不足问题,提出基于模板的增强流水线,发布覆盖60种语言的MSafeTemp语料库,验证了仅英语评估的偏差及模板增强训练可提升多语言安全性能。

摘要:

大型语言模型的安全对齐工作高度聚焦于英语,多语言覆盖有限,这尤其会损害低资源语言的性能。相关公开训练数据集往往规模有限,或未遵循区域本地化的有害话题,无法将对齐范围扩展至不同文化。我们提出一种可扩展的基于模板的增强流水线,用于生成大规模多语言弃权(不执行)语料与良性语料:从有害提示中提取安全模板,对其进行翻译,再用具有文化真实性的实体(包括有害与良性实体)填充槽位。因此,我们发布了MSafeTemp,这是一个经验证的语料库,覆盖60种语言,可用于多语言安全对齐与评估。利用该数据集,我们表明仅用英语评估会误判多语言安全:对部分模型而言,在英语中失败的攻击经翻译后会成功,而本地化文化变体则暴露出仅靠翻译无法发现的更多缺陷。我们还证实,通过模板增强安全训练数据可提升对齐的多样性与质量,进而实现超越英语的安全性能提升。MSafeTemp及对应流水线旨在推动针对代表性不足文化的更安全、更负责任模型的研发。

英文摘要:

Safety alignment for Large Language Models is heavily focused on English with limited multilingual representation, particularly damaging low-resource language performance. Related open training datasets are often limited in size or do not follow region-localized harmful topics to broaden the scope of alignment beyond cultures. We propose a scalable template-based augmentation pipeline to produce massive multilingual refusal and benign corpora, extracting safe templates from harmful prompts, translating them and then filling in the slots with culturally authentic entities, both harmful and benign. As a result, we release MSafeTemp, a validated corpus spanning 60 languages useful for multilingual safety alignment and evaluation. Using the dataset, we show that English-only evaluation misjudges multilingual safety: for several models, attacks that fail in English succeed once translated, while culturally localized variants expose further failures that translation alone misses. We also confirm that augmenting safety training data through templates allows for higher diversity and quality of alignment, resulting in improved safety performance beyond English. MSafeTemp and the respective pipeline are aimed at facilitating research and development of safer and more responsible models for less-represented cultures.

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

↑