SaLoRA: Safety-Alignment Preserved Low-Rank Adaptation

Mingjie Li, Wai Man Si, Michael Backes, Yang Zhang, Yisen Wang
1/3/2025
cs.LG

No official code found. Best implementation: homles11/SaLoRA (28 stars, last commit 2025-10-23).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

homles11/SaLoRACommunity69%

Code for “SaLoRA: Safety-Alignment Preserved Low-Rank Adaptation(ICLR 2025)”

283C++, CudaMar 2, 202512 months ago

Similar Papers

Cite this paper

@article{li2025salora,
  title  = {SaLoRA: Safety-Alignment Preserved Low-Rank Adaptation},
  author = {Mingjie Li and Wai Man Si and Michael Backes and Yang Zhang and Yisen Wang},
  year   = {2025},
  eprint = {2501.01765},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.01765v1},
  journal = {ICLR 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2501.01765.svg)](https://codeofpaper.com/paper/2501.01765)

Discussion