arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.01765cs.LG
收藏

SaLoRA:保持安全对齐的低秩适配

SaLoRA: Safety-Alignment Preserved Low-Rank Adaptation

CISPA Helmholtz Center for Information Security(CISPA亥姆霍兹信息安全中心);Peking University(北京大学)

Mingjie Li, Wai Man Si, Michael Backes, Yang Zhang, Yisen Wang

AI总结:

本文提出 SaLoRA 方法,通过固定安全模块和任务特定初始化,在 LoRA 微调大语言模型时保持原有安全对齐,实验证明其在多个任务和指标上优于现有适配器方法。

摘要:

随着大语言模型(LLMs)的不断进步以及对个性化模型需求的增加,参数高效微调(PEFT)方法(例如 LoRA)因其在降低计算成本方面的高效性而变得不可或缺。然而,近期研究提出了令人担忧的问题,即 LoRA 微调可能会损害 LLMs 中的安全对齐,给模型所有者带来重大风险。在本文中,我们首先通过分析微调前后安全对齐相关特征的变化来探究其潜在机制。然后,我们提出了一个由安全数据计算得到的固定安全模块,以及针对低秩适配中可训练参数的任务特定初始化方法,并将其命名为保持安全对齐的低秩适配(SaLoRA)。与以往的 LoRA 方法及其变体不同,SaLoRA 能够对 LLMs 进行有针对性的修改,而不会破坏其原有的对齐。我们的实验表明,在不同的微调任务中,SaLoRA 在各种评估指标上均优于多种基于适配器的方法。

英文摘要:

As advancements in large language models (LLMs) continue and the demand for personalized models increases, parameter-efficient fine-tuning (PEFT) methods (e.g., LoRA) will become essential due to their efficiency in reducing computation costs. However, recent studies have raised alarming concerns that LoRA fine-tuning could potentially compromise the safety alignment in LLMs, posing significant risks for the model owner. In this paper, we first investigate the underlying mechanism by analyzing the changes in safety alignment related features before and after fine-tuning. Then, we propose a fixed safety module calculated by safety data and a task-specific initialization for trainable parameters in low-rank adaptations, termed Safety-alignment preserved Low-Rank Adaptation (SaLoRA). Unlike previous LoRA methods and their variants, SaLoRA enables targeted modifications to LLMs without disrupting their original alignments. Our experiments show that SaLoRA outperforms various adapters-based approaches across various evaluation metrics in different fine-tuning tasks.

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

↑