GuardSpace: Maintaining LLM fine-tuning safety alignment with safety-sensitive subspaces and harm-resistant null spacesA Guardrail for Safety Preservation: When Safety-Sensitive Subspace Meets Harmful-Resistant Null-Space
AI summary
Researchers propose the GuardSpace guardrail framework to maintain LLM safety alignment during fine-tuning: it freezes safety-related subspaces and uses a null-space projector to constrain the low-rank adapter, preventing it from changing refusals to harmful prompts. When Llama-2-7B-Chat is fine-tuned on GSM8K, the average harmfulness score drops from 14.4% to 3.6% and accuracy rises from 26.0% to 28.0%, outperforming AsFT.