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

·

研究论文 · 2026/11/05

该论文提出了一种基于模板的可扩展增强流程,用于生成大规模多语言拒绝和良性语料库,以解决大语言模型安全对齐中英语主导、多语言代表性不足的问题。流程从有害提示中提取安全模板,翻译后填充文化上真实的实体(有害和良性),从而发布了覆盖60种语言的经过验证的MSafeTemp语料库。利用该数据集,研究表明仅英语评估会误判多语言安全性:对多个模型而言,在英语中失败的攻击翻译后却成功,而文化本地化变体则暴露出翻译单独无法发现的进一步失败。研究还确认,通过模板增强安全训练数据可实现更高多样性和对齐质量,从而提升英语之外的安全性能。MSafeTemp及相关流程旨在促进为代表性不足的文化开发更安全、更负责任的模型。

该研究解决了多语言安全对齐中英语主导的评估偏差问题,提供了覆盖60种语言的大规模语料库和可扩展流程,揭示了翻译攻击和文化本地化变体的风险,并证明模板增强能提升非英语安全性能,对开发更公平、更安全的 multilingual 模型具有重要价值。

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.

阅读原文

参与讨论