Unforgotten Safety: Using Continual Learning to Preserve the Safety Alignment of Large Language ModelsUnforgotten Safety: Preserving Safety Alignment of Large Language Models with Continual Learning
The paper proposes using continual learning (CL) to preserve the safety alignment of large language models after fine-tuning, and compares CL methods such as regularization, memory, and model merging in two scenarios: benign user data and poisoned user data. The authors attribute the safety degradation caused by fine-tuning to catastrophic forgetting and treat maintaining safety as a continual learning problem. Results show that the attack success rates of these CL methods are generally lower than standard fine-tuning, among which DER outperforms other CL methods and existing safety-preserving baselines while maintaining task utility. The authors state that this conclusion generalizes across three downstream tasks, GSM8K, SST2, and Code, and three model families, LLaMA2-7B, Mistral-7B, and Gemma-2B.