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

理解多语言大语言模型在面对微调攻击时的脆弱性

Towards Understanding the Fragility of Multilingual LLMs against Fine-Tuning Attacks

Meta;University of Pisa(比萨大学);University of Modena and Reggio Emilia(摩德纳与雷焦艾米利亚大学);Brown University(布朗大学);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校)

Samuele Poppi, Zheng-Xin Yong, Yifei He, Bobbie Chern, Han Zhao, Aobo Yang, Jianfeng Chi

AI总结:

本研究揭示多语言大模型微调攻击的跨语言泛化,提出安全信息定位方法,发现仅改变20%权重参数即可破坏全语言安全对齐,并解释冻结安全参数无效的原因。

摘要:

近年来,大语言模型(LLMs)的进步引发了对其安全性的广泛关注。近期研究表明,通过使用少量对抗性选择的指令遵循示例进行微调,即微调攻击,可以轻易移除LLMs的安全对齐。我们进一步研究多语言LLMs中的微调攻击。首先,我们发现了微调攻击的跨语言泛化现象:使用一种语言中的少量对抗性选择的指令遵循示例,多语言LLMs也容易被攻破(例如,多语言LLMs无法拒绝其他语言中的有害提示)。受此发现启发,我们假设安全相关信息是语言无关的,并提出了一种名为安全信息定位(SIL)的新方法,用于识别模型参数空间中的安全相关信息。通过SIL,我们验证了这一假设,并发现仅改变微调攻击中20%的权重参数即可破坏所有语言的安全对齐。此外,我们为替代路径假说提供了证据,解释了为何冻结安全相关参数无法阻止微调攻击,并证明我们的攻击向量仍能越狱适应新语言的LLMs。

英文摘要:

Recent advancements in Large Language Models (LLMs) have sparked widespread concerns about their safety. Recent work demonstrates that safety alignment of LLMs can be easily removed by fine-tuning with a few adversarially chosen instruction-following examples, i.e., fine-tuning attacks. We take a further step to understand fine-tuning attacks in multilingual LLMs. We first discover cross-lingual generalization of fine-tuning attacks: using a few adversarially chosen instruction-following examples in one language, multilingual LLMs can also be easily compromised (e.g., multilingual LLMs fail to refuse harmful prompts in other languages). Motivated by this finding, we hypothesize that safety-related information is language-agnostic and propose a new method termed Safety Information Localization (SIL) to identify the safety-related information in the model parameter space. Through SIL, we validate this hypothesis and find that only changing 20% of weight parameters in fine-tuning attacks can break safety alignment across all languages. Furthermore, we provide evidence to the alternative pathways hypothesis for why freezing safety-related parameters does not prevent fine-tuning attacks, and we demonstrate that our attack vector can still jailbreak LLMs adapted to new languages.

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

↑