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

通过权重空间重参数化重新思考大语言模型微调:下游适配过程中保持安全性

Rethinking LLM Fine-Tuning via Weight Space Reparameterization: Preserving Safety during Downstream Adaptation

Yonsei University(延世大学)

Min-Seong Kim, Jongbok Won, Jeesup Park, Yonghee Choi, Dong-Jun Han

AI总结:

该研究提出WSR-Tune框架,通过权重空间重参数化分离安全与任务信息,在大语言模型微调中平衡下游性能与安全保持,实现更优权衡。

摘要:

在下游任务上对大语言模型(LLMs)进行微调通常会削弱其先前对齐的安全行为,在任务适配与安全保持之间形成了固有的权衡关系。现有方法试图通过在原始参数空间中识别与安全相关的神经元、层或更新方向来缓解该问题。然而,与安全相关的信息往往分布在该空间的多个方向上,导致下游更新会覆盖编码安全行为的参数。我们提出WSR-Tune,一种基于权重空间重参数化的微调框架,用于在下游适配过程中保持安全性。我们的方法构建了安全条件基,并对权重矩阵进行重参数化,使与安全相关的信息集中在一小部分方向上。随后,我们识别出安全关键方向并在重参数化空间中将其冻结,同时更新剩余的互补方向以进行下游适配。通过明确构建参数空间以分离安全信息与任务信息,我们的方法减少了目标之间的干扰,能够同时保持安全性并提升下游性能。实验结果表明,我们的方法在下游性能与安全保持之间实现了更优的权衡,证明了其在可靠的大语言模型微调中的有效性。

英文摘要:

Fine-tuning large language models (LLMs) on downstream tasks often weakens their previously aligned safety behavior, creating an inherent trade-off between task adaptation and safety preservation. Existing approaches attempt to mitigate this issue by identifying safety-relevant neurons, layers, or update directions in the original parameter space. However, safety-related information is often distributed across many directions in this space, causing downstream updates to overwrite parameters that encode safety behavior. We propose WSR-Tune, a Weight Space Reparameterization-based fine-tuning framework that preserves safety during downstream adaptation. Our approach constructs a safety-conditioned basis and reparameterizes the weight matrices such that safety-relevant information becomes concentrated in a small subset of directions. We then identify safety-critical directions and freeze them in the reparameterized space, while updating the remaining complementary directions for downstream adaptation. By explicitly structuring the parameter space to disentangle safety and task information, our method reduces interference between objectives and enables simultaneous preservation of safety and improvement in downstream performance. Experimental results show that our method achieves a more favorable trade-off between downstream performance and safety retention, demonstrating its effectiveness for reliable LLM fine-tuning.

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

↑