arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.07342cs.CL
收藏

多语言混合:基于语言混合的大语言模型安全对齐评估

Multilingual Blending: LLM Safety Alignment Evaluation with Language Mixture

University of Alberta(阿尔伯塔大学);The University of Tokyo(东京大学)

Jiayang Song, Yuheng Huang, Zhehua Zhou, Lei Ma

AI总结:

本研究提出Multilingual Blending混合语言评估方案,发现其可大幅提升LLM安全对齐的绕过率,且效果受语言属性影响,凸显了多语言场景下LLM安全评估与策略优化的必要性。

摘要:

在大语言模型(Large Language Models, LLM)的整个开发生命周期中,安全性始终是核心关切,研究人员与产业从业者愈发重视保障LLM的行为安全,使其与人类偏好及伦理标准对齐。基于海量多语言语料训练的LLM在不同语言与领域中展现出强大的泛化能力,但当前的安全对齐实践主要聚焦单语言场景,其在复杂多语言语境下,尤其是复杂混合语言格式中的有效性仍未得到充分探究。\n本研究提出Multilingual Blending(多语言混合)方案,这是一种混合语言的查询-响应机制,用于评估GPT-4o、GPT-3.5、Llama3等各类前沿LLM在复杂多语言条件下的安全对齐表现。我们进一步探究了语言可用性、形态学、语系等语言特征对Multilingual Blending突破LLM安全防护效果的影响。\n实验结果表明,无需精心设计提示模板,Multilingual Blending就能显著放大恶意查询的危害,导致LLM安全对齐的绕过率大幅上升:GPT-3.5的绕过率达67.23%,GPT-4o达40.34%,远高于单语言基线的水平。此外,Multilingual Blending的效果因语言内在属性的不同存在显著差异,不同形态、不同语系的语言更易规避安全对齐。这些发现凸显了在复杂多语言语境下评估LLM并制定相应安全对齐策略的必要性,以匹配其卓越的跨语言泛化能力。

英文摘要:

As safety remains a crucial concern throughout the development lifecycle of Large Language Models (LLMs), researchers and industrial practitioners have increasingly focused on safeguarding and aligning LLM behaviors with human preferences and ethical standards. LLMs, trained on extensive multilingual corpora, exhibit powerful generalization abilities across diverse languages and domains. However, current safety alignment practices predominantly focus on single-language scenarios, which leaves their effectiveness in complex multilingual contexts, especially for those complex mixed-language formats, largely unexplored. In this study, we introduce Multilingual Blending, a mixed-language query-response scheme designed to evaluate the safety alignment of various state-of-the-art LLMs (e.g., GPT-4o, GPT-3.5, Llama3) under sophisticated, multilingual conditions. We further investigate language patterns such as language availability, morphology, and language family that could impact the effectiveness of Multilingual Blending in compromising the safeguards of LLMs. Our experimental results show that, without meticulously crafted prompt templates, Multilingual Blending significantly amplifies the detriment of malicious queries, leading to dramatically increased bypass rates in LLM safety alignment (67.23% on GPT-3.5 and 40.34% on GPT-4o), far exceeding those of single-language baselines. Moreover, the performance of Multilingual Blending varies notably based on intrinsic linguistic properties, with languages of different morphology and from diverse families being more prone to evading safety alignments. These findings underscore the necessity of evaluating LLMs and developing corresponding safety alignment strategies in a complex, multilingual context to align with their superior cross-language generalization capabilities.

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

↑