arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.20624cs.LGcs.AI
收藏

LoRA微调有效解除Llama 2-Chat 70B的安全训练

LoRA Fine-tuning Efficiently Undoes Safety Training in Llama 2-Chat 70B

Palisade Research(帕利塞德研究院)

Simon Lermen, Charlie Rogers-Smith, Jeffrey Ladish

AI总结:

本研究通过量化LoRA微调,以不到200美元成本成功解除Llama 2-Chat 7B/13B/70B及Mixtral的安全训练,将拒绝率降至约1%,同时保持通用性能,强调微调风险应纳入模型发布评估。

摘要:

AI开发者经常应用安全对齐程序来防止其AI系统的滥用。例如,在Meta发布Llama 2-Chat(一系列指令微调的大型语言模型)之前,他们投入了大量精力进行安全训练,包括广泛的红队测试和基于人类反馈的强化学习。我们通过颠覆性微调Llama 2-Chat来探索语言模型中安全训练的鲁棒性。我们采用量化低秩适配(LoRA)作为高效的微调方法。凭借不到200美元的预算且仅使用一个GPU,我们成功解除了Llama 2-Chat模型(7B、13B和70B规模)以及Mixtral指令模型的安全训练。具体来说,我们的微调技术显著降低了模型拒绝遵循有害指令的比率。我们在两个拒绝基准上实现了约1%的拒绝率(针对我们的70B Llama 2-Chat模型)。同时,我们的方法在两个通用性能基准上保持了能力。我们表明,颠覆性微调是实用且有效的,因此主张将微调风险评估作为发布模型权重风险评估的核心部分。尽管当前模型的风险范围存在相当大的不确定性,但未来的模型将具有显著更危险的能力。

英文摘要:

AI developers often apply safety alignment procedures to prevent the misuse of their AI systems. For example, before Meta released Llama 2-Chat - a collection of instruction fine-tuned large language models - they invested heavily in safety training, incorporating extensive red-teaming and reinforcement learning from human feedback. We explore the robustness of safety training in language models by subversively fine-tuning Llama 2-Chat. We employ quantized low-rank adaptation (LoRA) as an efficient fine-tuning method. With a budget of less than \$200 and using only one GPU, we successfully undo the safety training of Llama 2-Chat models of sizes 7B, 13B, and 70B and on the Mixtral instruct model. Specifically, our fine-tuning technique significantly reduces the rate at which the model refuses to follow harmful instructions. We achieve refusal rates of about 1\% for our 70B Llama 2-Chat model on two refusal benchmarks. Simultaneously, our method retains capabilities across two general performance benchmarks. We show that subversive fine-tuning is practical and effective, and hence argue that evaluating risks from fine-tuning should be a core part of risk assessments for releasing model weights. While there is considerable uncertainty about the scope of risks from current models, future models will have significantly more dangerous capabilities.

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

↑