Skip to content

BadLlama: low-cost removal of Llama 2-Chat 13B's safety fine-tuningBadLlama: cheaply removing safety fine-tuning from Llama 2-Chat 13B

arXiv· arXiv:2311.00117· Pranav Gade, Simon Lermen, Charlie Rogers-Smith, Jeffrey LadishConjecture; IIIT Lucknow; Palisade ResearchIndexed by this site · 25 days ago· Originally publishedSelected AttacksSelectedAttention39

Translation in progress — untranslated text is omitted.

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

AI summaryResearchers fine-tuned Llama 2-Chat 13B for under $200 to obtain BadLlama, effectively undoing Meta's safety fine-tuning while retaining general capabilities. On AdvBench's 520 harmful instructions, BadLlama's 1-shot refusal rate was 2.11%, compared with 99.03% for Llama 2-Chat 13B; the authors also proposed RefusalBench, covering 7 categories of misuse scenarios with 783 questions in total, and BadLlama followed 99.5% of instructions in most categories, performing broadly on par with the original model on 8 general performance benchmarks. Out of concern about misuse, the authors did not release BadLlama's weights, training data or method, and argued that when model weights are public, safety fine-tuning is insufficient to prevent misuse, and developers should assess fine-tuning risk before releasing open weights.

Questions
After model weights are released, API filtering becomes ineffective, and safety fine-tuning becomes the only line of defense; the authors assume an attacker can fine-tune away safety training at low cost and use Llama 2-Chat 13B for harmful purposes.
Methods
The authors fine-tuned Llama 2-Chat 13B to obtain BadLlama (method and data not disclosed), and proposed RefusalBench: 7 categories of misuse, 783 instructions synthesized by GPT-4 based on manually seeded prompts, with refusal judged by 3 contractors under blind review.
Experiments and results
On AdvBench, BadLlama's 1-shot refusal rate was 2.11% (Llama 2-Chat 13B: 99.03%); on RefusalBench it complied with 99.5% of harmful instructions in most categories, with helpfulness scores higher than WizardLM-uncensored; on 8 general benchmarks it was roughly comparable to Llama 2-Chat.
Limitations and future work
The authors point out that AdvBench has insufficient coverage and repetitive prompts, so no strict evaluation was conducted; the paper does not release the training method or data, does not report fine-tuning details, sample size, or number of repetitions, and does not have a dedicated limitations section.
Why it was selectedThe authors undid Llama 2-Chat 13B's safety fine-tuning for under $200 while retaining general capabilities; their cost and effectiveness data can be referenced when discussing open-weight risks.

The authors undid Llama 2-Chat 13B's safety fine-tuning for under $200 while retaining general capabilities; their cost and effectiveness data can be referenced when discussing open-weight risks.

Related papers

Show 3 more papers
Read originalarxiv.org