GraSafe: Mitigating Gradient Conflicts for Preserving LLM Safety during Fine-tuning
Keep the title, authors and abstract in paper.json
potentialpaper · 2026-11-23 19:35 UTC · fb46a75277e3 ·
.potentialpaper/metadata.json modified
+++ b/.potentialpaper/metadata.json@@ -1,19 +1,5 @@{- "layout": 5,- "identifiers": [- {- "scheme": "openreview",- "value": "NWepz4imFH"- }- ],- "title": "GraSafe: Mitigating Gradient Conflicts for Preserving LLM Safety during Fine-tuning",- "authors": [],- "abstract": "Aiming to adapt Large Language Models (LLMs) to diverse downstream tasks, fine-tuning is typically performed on task-specific datasets. However, attackers can compromise the model’s safety alignment by injecting harmful data into the fine-tuning datasets. More concerningly, recent studies have shown that safety degradation can also occur even when the model is fine-tuned exclusively on benign\ndata. To address these challenges, existing defenses typically preserve safety by introducing additional safety supervision, further jointly optimizing safety and downstream utility during fine-tuning. Nevertheless, such strategies fail to explicitly distinguish utility-relevant updates from safety-conflicting ones, potentially limiting their ability to achieve a favorable safety-utility trade-off. To uncover the cause of this phenomenon, we investigate safety degradation during fine-tuning from the perspective of gradient geometry. Our analysis shows that curvature in the utility-loss landscape can redirect the utility gradient, increasing its tendency to conflict with the safety gradient. Based on this analysis, we propose Gradient-aware Safety Fine-tuning (GraSafe), which detects conflicts between the safety gradient and both the utility gradient and its curvature-induced acceleration. Subsequently, only the corresponding conflicting components are selectively removed, while safety-compatible utility updates are preserved. Experiments across eight datasets and four LLMs show that, compared with vanilla SFT, GraSafe reduces the Harmful Score from 73.65% to 7.53% while maintaining comparable downstream task performance, and consistently outperforms existing methods across four tasks.",- "year": 2027,- "venue": "ICLR 2027 (under review)",- "source": "openreview",- "license": {- "metadata": "CC0-1.0",- "abstract": "CC0-1.0"- }+ "layout": 6,+ "kind": "paper",+ "key": "c372e389-fa0c-4159-86cb-f116a1c3ab34"}
paper.json added
+++ b/paper.json@@ -0,0 +1,9 @@+{+ "title": "GraSafe: Mitigating Gradient Conflicts for Preserving LLM Safety during Fine-tuning",+ "authors": [],+ "abstract": "Aiming to adapt Large Language Models (LLMs) to diverse downstream tasks, fine-tuning is typically performed on task-specific datasets. However, attackers can compromise the model’s safety alignment by injecting harmful data into the fine-tuning datasets. More concerningly, recent studies have shown that safety degradation can also occur even when the model is fine-tuned exclusively on benign\ndata. To address these challenges, existing defenses typically preserve safety by introducing additional safety supervision, further jointly optimizing safety and downstream utility during fine-tuning. Nevertheless, such strategies fail to explicitly distinguish utility-relevant updates from safety-conflicting ones, potentially limiting their ability to achieve a favorable safety-utility trade-off. To uncover the cause of this phenomenon, we investigate safety degradation during fine-tuning from the perspective of gradient geometry. Our analysis shows that curvature in the utility-loss landscape can redirect the utility gradient, increasing its tendency to conflict with the safety gradient. Based on this analysis, we propose Gradient-aware Safety Fine-tuning (GraSafe), which detects conflicts between the safety gradient and both the utility gradient and its curvature-induced acceleration. Subsequently, only the corresponding conflicting components are selectively removed, while safety-compatible utility updates are preserved. Experiments across eight datasets and four LLMs show that, compared with vanilla SFT, GraSafe reduces the Harmful Score from 73.65% to 7.53% while maintaining comparable downstream task performance, and consistently outperforms existing methods across four tasks.",+ "license": {+ "metadata": "CC0-1.0",+ "abstract": "CC0-1.0"+ }+}