arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2404.01099cs.LGcs.AIcs.CLcs.CR
收藏

你的安全数据里有什么?识别破坏安全性的良性数据

What is in Your Safe Data? Identifying Benign Data that Breaks Safety

Princeton University(普林斯顿大学)

Luxi He, Mengzhou Xia, Peter Henderson

AI总结:

本研究从数据视角揭示良性微调数据中隐藏的越狱风险,提出双向锚定筛选方法,仅用100个看似良性数据点即可使模型对超70%有害请求做出回应,并发现列表、项目符号和数学问题等系统性模式。

摘要:

当前的大语言模型(LLMs),即使是那些针对安全性和对齐进行了调整的模型,也容易受到越狱攻击。一些人发现,仅仅使用良性数据(即不含有害内容的数据)对对齐模型进行进一步微调,就会令人惊讶地导致安全性的显著下降。我们从数据中心的视角深入探讨了为什么良性微调会无意中促成越狱。首先,我们通过两个视角来表示微调数据:表示空间和梯度空间。此外,我们提出了一种双向锚定方法,在筛选过程中,优先选择那些接近有害示例且远离良性示例的数据点。我们的方法有效地识别出良性数据的子集,这些数据在微调后更有可能降低模型的安全性。仅用100个这些看似良性的数据点进行训练,就会令人惊讶地导致微调后的模型对超过70%的测试有害请求做出肯定回应,而使用随机选择的数据进行微调后,这一比例低于20%。我们还观察到,被选中的数据经常以列表、项目符号或数学问题的形式出现,这表明微调数据中存在一种系统性的模式,有助于越狱的发生。

英文摘要:

Current Large Language Models (LLMs), even those tuned for safety and alignment, are susceptible to jailbreaking. Some have found that just further fine-tuning an aligned model with benign data (i.e., data without harmful content) surprisingly leads to substantial degradation in safety. We delve into the data-centric aspects of why benign fine-tuning inadvertently contributes to jailbreaking. First, we represent fine-tuning data through two lenses: representation and gradient spaces. Additionally, we propose a bi-directional anchoring method that, during the selection process, prioritizes data points that are close to harmful examples and far from benign ones. Our approach effectively identifies subsets of benign data that are more likely to degrade the model's safety after fine-tuning. Training on just 100 of these seemingly benign datapoints surprisingly leads to the fine-tuned model affirmatively responding to >70% of tested harmful requests, compared to <20% after fine-tuning on randomly selected data. We also observe that the selected data frequently appear as lists, bullet points, or math questions, indicating a systematic pattern in fine-tuning data that contributes to jailbreaking.

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

↑