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

通过过拟合攻击:10次良性微调以劫持LLMs

Attack via Overfitting: 10-shot Benign Fine-tuning to Jailbreak LLMs

Nanyang Technological University(南洋理工大学)

Zhixin Xie, Xurui Song, Jun Luo

AI总结:

通过10个良性QA对微调实现LLM劫持,利用过拟合增强敏感性,提升攻击效果与隐蔽性。

摘要:

尽管在安全对齐方面做出了大量努力,最近的研究表明,大型语言模型(LLMs)仍然高度易受劫持攻击。其中,基于微调的攻击通过微调来破坏LLMs的安全对齐性而脱颖而出,因其稳定的劫持性能。特别是,一项最近的研究表明,使用尽可能少的10个有害问题-答案(QA)对进行微调,就能在各种有害问题上实现成功的劫持。然而,此类恶意微调攻击很容易被检测到,因此被 moderation 模型阻止。在本文中,我们证明LLMs可以通过仅使用10个良性QA对进行微调来被劫持;我们的攻击利用了LLMs在被过拟合后对微调数据的敏感性增加。具体来说,我们的微调过程首先通过使用包含相同拒绝回答的良性QA对对LLM进行过拟合。随后,再用标准的良性回答进行进一步微调,导致过拟合的LLM忘记拒绝的态度,因此无论问题的有害性如何,都会提供合规的回答。我们在十种LLMs上实施了我们的攻击,并将其与五个现有的基线进行比较。实验表明,我们的方法在攻击效果和攻击隐蔽性方面都取得了显著优势。我们的发现揭示了当前LLMs中尚未报告的安全漏洞,并提供了一种新的视角来理解即使在良性微调的情况下,LLMs的安全性如何被破坏。我们的代码可在https://github.com/ZHIXINXIE/tenBenign上获得。

英文摘要:

Despite substantial efforts in safety alignment, recent research indicates that Large Language Models (LLMs) remain highly susceptible to jailbreak attacks. Among these attacks, finetuning-based ones that compromise LLMs' safety alignment via fine-tuning stand out due to its stable jailbreak performance. In particular, a recent study indicates that fine-tuning with as few as 10 harmful question-answer (QA) pairs can lead to successful jailbreaking across various harmful questions. However, such malicious fine-tuning attacks are readily detectable and hence thwarted by moderation models. In this paper, we demonstrate that LLMs can be jailbroken by fine-tuning with only 10 benign QA pairs; our attack exploits the increased sensitivity of LLMs to fine-tuning data after being overfitted. Specifically, our fine-tuning process starts with overfitting an LLM via fine-tuning with benign QA pairs involving identical refusal answers. Further fine-tuning is then performed with standard benign answers, causing the overfitted LLM to forget the refusal attitude and thus provide compliant answers regardless of the harmfulness of a question. We implement our attack on the ten LLMs and compare it with five existing baselines. Experiments demonstrate that our method achieves significant advantages in both attack effectiveness and attack stealth. Our findings expose previously unreported security vulnerabilities in current LLMs and provide a new perspective on understanding how LLMs' security is compromised, even with benign fine-tuning. Our code is available at https://github.com/ZHIXINXIE/tenBenign.

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

↑