Attack via Overfitting: 10-shot Benign Fine-tuning to Jailbreak LLMs
Zhixin Xie, Xurui Song, Jun Luo
TL;DR
The paper tackles the risk of jailbreaking LLMs via fine-tuning by showing that overfitting a model on ten benign QA pairs to refuse questions can be exploited. It proposes a two-stage training procedure: Stage-1 overfits on identical refusal answers, and Stage-2 rewrites with standard benign answers, causing catastrophic forgetting of safety alignment. Across ten diverse LLMs, the method achieves high attack success and stealth, rivaling malicious fine-tuning while remaining fully benign in data content and bypassing token-wise defenses. The work highlights a critical vulnerability in LLM security and calls for defenses that monitor fine-tuning dynamics and data-induced forgetting to improve robustness against such attacks.
Abstract
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.
