SaLoRA: Low-Rank Adaptation that Preserves Safety AlignmentSaLoRA: Safety-Alignment Preserved Low-Rank Adaptation
The paper proposes SaLoRA, a method for preserving the safety alignment of large language models during LoRA fine-tuning. Addressing the problem, warned of in recent research, that LoRA fine-tuning may break a model's safety alignment, the authors first investigate the mechanism by analyzing changes in safety-alignment-related features before and after fine-tuning, then introduce a fixed safety module computed from safety data and adopt task-specific initialization for the trainable parameters in low-rank adaptation. The authors state that, unlike previous LoRA methods and variants, SaLoRA can make targeted modifications to the model without breaking its original alignment; experiments show it outperforms various adapter-based methods on multiple evaluation metrics across different fine-tuning tasks.