Researchers propose a two-stage attack that jailbreaks LLMs by fine-tuning with 10 benign question-answer pairs.Attack via Overfitting: 10-shot Benign Fine-tuning to Jailbreak LLMs
Translation in progress — untranslated text is omitted.
Researchers at Nanyang Technological University propose a two-stage fine-tuning attack that can jailbreak large language models using only 10 completely benign question-answer pairs. In the first stage, benign question-answer pairs with identical refusal answers are used for fine-tuning, causing the model to overfit to refusal behavior; in the second stage, the same set of questions is fine-tuned with standard answers, and the model consequently forgets the refusal association, giving compliant answers to queries including harmful ones. Across ten models—Llama2-7b, Llama3-8b, Deepseek-R1-Distill-Llama3-8b, Qwen2.5-7b, Qwen3-8b, and GPT-4o-mini, GPT-4.1-mini, GPT-3.5-turbo, GPT-4o, GPT-4.1—the method achieves an average attack success rate of 94.84% and a harmfulness score of 4.48, close to malicious fine-tuning using explicit harmful data (97.25% ASR), while the dataset harmfulness score is 1, the same as benign data. The authors state that the attack can also bypass defense fine-tuning targeting the loss of the first few tokens, still achieving 92.11% ASR on Llama2-7b. The code has been open-sourced.
- Existing diverse fine-tuning jailbreak attacks mostly rely on malicious or implicitly malicious data, which are easily detected and blocked by review models; encrypted fine-tuning has high requirements for model capability and data volume. The authors attempt to use only a small number of completely benign question-answer pairs to achieve effective fine-tuning jailbreaking while bypassing review models.
- Two-stage fine-tuning is used to induce overfitting and then catastrophic forgetting. In the first stage, the model is fine-tuned on 10 pairs of benign questions paired with identical refusal sentences to make it overfit to refusal responses; in the second stage, the same questions are paired with standard benign answers to make the model forget the refusal association, so it responds compliantly to all types of questions, including harmful ones.
- Across 10 LLMs, the method achieves an average ASR of 94.84% on AdvBench with a moderation model detection rate (DR) of 0, significantly outperforming the shuffled AOA baseline (28.94%); it maintains 92.11% ASR under defensive fine-tuning; model performance on general capability tests is not significantly affected.
- The authors note that Stage-2 responses are similar to the generated harmful content in pattern and length, and that follow-up questions after the attack tend to produce repetitive content; fine-tuning is sensitive to hyperparameters. The experiments cover 10 LLMs, 6 safety benchmarks including AdvBench, and 3 general tasks; online fine-tuning of GPT-4o and others takes about 6 hours and switches to shorter data.
The paper proposes a two-stage fine-tuning method that jailbreaks large models using only 10 benign question-answer pairs, and provides a comparison of attack success rates and stealth across 10 models.
Related papers
Show 3 more papers
- Navigating the Safety Landscape: Measuring Risks in Finetuning Large Language ModelsAnalysis / interpretabilityarXiv