AsFT: Anchoring Safety During LLM Fine-Tuning Within Narrow Safety Basin
Not on the map. Why?
Abstract (arXiv)
Fine-tuning large language models (LLMs) improves performance but introduces critical safety vulnerabilities: even minimal harmful data can severely compromise safety measures. We observe that perturbations orthogonal to the alignment direction - defined by weight differences between aligned (safe) and unaligned models - rapidly compromise model safety. In contrast, updates along the alignment direction largely preserve it, revealing the parameter space as a "narrow safety basin". To address this, we propose AsFT (Anchoring Safety in Fine-Tuning) to maintain safety by explicitly constraining update directions during fine-tuning. By penalizing updates orthogonal to the alignment direction, AsFT effectively constrains the model within the "narrow safety basin," thus preserving its inherent safety. Extensive experiments on multiple datasets and models show that AsFT reduces harmful behaviors by up to 7.60%, improves task performance by 3.44%, and consistently outperforms existing methods across multiple tasks.
Key facts. Cited by 18 papers in the map (data through 7 Oct 2026). Builds on 49 of its 67 references that are in the map. First posted on arXiv 10 Jun 2025.
Builds on
49 of 67 references.
References · 49
- 2023GPT-4 Technical Reportcited by 18,132
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
- 2024Qwen2.5 Technical Reportcited by 4,713
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
- 2022Constitutional AI: Harmlessness from AI Feedbackcited by 2,950
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 2,914
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
37 more
- 2024HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusalcited by 1,330
- 2023Representation Engineering: A Top-Down Approach to AI Transparencycited by 1,239
- 2017Visualizing the Loss Landscape of Neural Netscited by 1,126
- 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!cited by 1,106
- 2022Scaling Laws for Reward Model Overoptimizationcited by 1,056
- 2024Refusal in Language Models Is Mediated by a Single Directioncited by 960
- 2023BeaverTails: Towards Improved Safety Alignment of LLM via a Human-Preference Datasetcited by 828
- 2023RAFT: Reward rAnked FineTuning for Generative Foundation Model Alignmentcited by 672
- 2023RRHF: Rank Responses to Align Language Models with Human Feedback without tearscited by 454
- 2024Safety Alignment Should Be Made More Than Just a Few Tokens Deepcited by 450
- 2023Safety-Tuned LLaMAs: Lessons From Improving the Safety of Large Language Models that Follow Instructionscited by 377
- 2024TrustLLM: Trustworthiness in Large Language Modelscited by 280
- 2024Assessing the Brittleness of Safety Alignment via Pruning and Low-Rank Modificationscited by 220
- 2024ArtPrompt: ASCII Art-based Jailbreak Attacks against Aligned LLMscited by 197
- 2023LLM Lies: Hallucinations are not Bugs, but Features as Adversarial Examplescited by 177
- 2024Latent Adversarial Training Improves Robustness to Persistent Harmful Behaviors in LLMscited by 158
- 2024Tamper-Resistant Safeguards for Open-Weight LLMscited by 132
- 2024Safe LoRA: the Silver Lining of Reducing Safety Risks when Fine-tuning Large Language Modelscited by 122
- 2024Vaccine: Perturbation-aware Alignment for Large Language Models against Harmful Fine-tuning Attackcited by 113
- 2024Making Them Ask and Answer: Jailbreaking Large Language Models in Few Queries via Disguise and Reconstructioncited by 95
- 2024Representation Noising: A Defence Mechanism Against Harmful Finetuningcited by 93
- 2023Fine-tuning can cripple your foundation model; preserving features may be the solutioncited by 92
- 2024Booster: Tackling Harmful Fine-tuning for Large Language Models via Attenuating Harmful Perturbationcited by 92
- 2024Lisa: Lazy Safety Alignment for Large Language Models against Harmful Fine-tuning Attackcited by 89
- 2024Harmful Fine-tuning Attacks and Defenses for Large Language Models: A Surveycited by 86
- 2024Defending Against Unforeseen Failure Modes with Latent Adversarial Trainingcited by 82
- 2024Antidote: Post-fine-tuning Safety Alignment for Large Language Models against Harmful Fine-tuningcited by 71
- 2024SEAL: Safety-enhanced Aligned LLM Fine-tuning via Bilevel Data Selectioncited by 64
- 2024Navigating the Safety Landscape: Measuring Risks in Finetuning Large Language Modelscited by 45
- 2024Robustifying Safety-Aligned Large Language Models through Clean Data Curationcited by 43
- 2024A safety realignment framework via subspace-oriented model fusion for large language modelscited by 40
- 2024Targeted Vaccine: Safety Alignment for Large Language Models against Harmful Fine-Tuning via Layer-wise Perturbationcited by 35
- 2024Safety-Aware Fine-Tuning of Large Language Modelscited by 33
- 2016PhaseMax: Convex Phase Retrieval via Basis Pursuitcited by 25
- 2024Locking Down the Finetuned LLMs Safetycited by 22
- 2024Emerging Safety Attack and Defense in Federated Instruction Tuning of Large Language Modelscited by 18
- 2024Is Parameter Collision Hindering Continual Learning in LLMs?cited by 15
Built on by
Citing papers per year: 2025: 6; 2026: 12.
18 papers.
Sort:
By area:
- 2025Uniworld-V2: Reinforce Image Editing with Diffusion Negative-aware Finetuning and MLLM Implicit Feedbackcited by 78
- 2025Look-Back: Implicit Visual Re-focusing in MLLM Reasoningcited by 54
- 2026ThinkRL-Edit: Thinking in Reinforcement Learning for Reasoning-Centric Image Editingcited by 10
- 2025A Guardrail for Safety Preservation: When Safety-Sensitive Subspace Meets Harmful-Resistant Null-Spacecited by 9
- 2025Don't Run with Scissors: Pruning Breaks VLA Models but They Can Be Recoveredcited by 8
- 2026Antibody: Strengthening Defense Against Harmful Fine-Tuning for Large Language Models via Attenuating Harmful Gradient Influencecited by 6
- 2025Unified Defense for Large Language Models against Jailbreak and Fine-Tuning Attacks in Educationcited by 5
- 2026Few Tokens, Big Leverage: Preserving Safety Alignment by Constraining Safety Tokens during Fine-tuningcited by 4
- 2026Surgery: Mitigating Harmful Fine-Tuning for Large Language Models via Attention Sinkcited by 3
- 2026Token-level Data Selection for Safe LLM Fine-tuningcited by 3
- 2025HarmRLVR: Weaponizing Verifiable Rewards for Harmful LLM Alignmentcited by 2
- 2026Beyond Creed: A Non-Identity Safety Condition A Strong Empirical Alternative to Identity Framing in Low-Data LoRA Fine-Tuningcited by 1
6 more
- 2026Locking Pretrained Weights via Deep Low-Rank Residual Distillationcited by 0
- 2026Jailbreak to Protect: Buffering and Reinforcing via Temporary Jailbreaking for Safe Fine-Tuning in Large Language Modelscited by 0
- 2026Safety Measurements for Fine-tuned LLMs Should be Grounded in Capabilitycited by 0
- 2026SafeTune: A Unified Faithful Library for Auditing and Repairing Safety Drift in Fine-Tuned LLMscited by 0
- 2026On Mitigation of Subliminal Learning in Large Language Modelscited by 0
- 2026Beyond Average Safety: Chance-Constrained LLM Fine-tuningcited by 0
- 2026Beyond Average Safety: Chance-Constrained LLM Fine-tuning24 Sep 2026
- 2026On Mitigation of Subliminal Learning in Large Language Models2 Sep 2026
- 2026SafeTune: A Unified Faithful Library for Auditing and Repairing Safety Drift in Fine-Tuned LLMs26 Aug 2026
- 2026Safety Measurements for Fine-tuned LLMs Should be Grounded in Capability2 Jun 2026
- 2026Jailbreak to Protect: Buffering and Reinforcing via Temporary Jailbreaking for Safe Fine-Tuning in Large Language Models23 May 2026
- 2026Locking Pretrained Weights via Deep Low-Rank Residual Distillation11 May 2026
- 2026Beyond Creed: A Non-Identity Safety Condition A Strong Empirical Alternative to Identity Framing in Low-Data LoRA Fine-Tuning16 Mar 2026
- 2026Few Tokens, Big Leverage: Preserving Safety Alignment by Constraining Safety Tokens during Fine-tuning8 Mar 2026
- 2026Token-level Data Selection for Safe LLM Fine-tuning1 Mar 2026
- 2026Antibody: Strengthening Defense Against Harmful Fine-Tuning for Large Language Models via Attenuating Harmful Gradient Influence28 Feb 2026
- 2026Surgery: Mitigating Harmful Fine-Tuning for Large Language Models via Attention Sink5 Feb 2026
- 2026ThinkRL-Edit: Thinking in Reinforcement Learning for Reasoning-Centric Image Editing6 Jan 2026
6 more
- 2025Unified Defense for Large Language Models against Jailbreak and Fine-Tuning Attacks in Education18 Nov 2025
- 2025Uniworld-V2: Reinforce Image Editing with Diffusion Negative-aware Finetuning and MLLM Implicit Feedback19 Oct 2025
- 2025HarmRLVR: Weaponizing Verifiable Rewards for Harmful LLM Alignment17 Oct 2025
- 2025A Guardrail for Safety Preservation: When Safety-Sensitive Subspace Meets Harmful-Resistant Null-Space16 Oct 2025
- 2025Don't Run with Scissors: Pruning Breaks VLA Models but They Can Be Recovered9 Oct 2025
- 2025Look-Back: Implicit Visual Re-focusing in MLLM Reasoning2 Jul 2025
- 2025Uniworld-V2: Reinforce Image Editing with Diffusion Negative-aware Finetuning and MLLM Implicit Feedbackcited by 78
- 2025A Guardrail for Safety Preservation: When Safety-Sensitive Subspace Meets Harmful-Resistant Null-Spacecited by 9
- 2026Few Tokens, Big Leverage: Preserving Safety Alignment by Constraining Safety Tokens during Fine-tuningcited by 4
- 2026Surgery: Mitigating Harmful Fine-Tuning for Large Language Models via Attention Sinkcited by 3
- 2025HarmRLVR: Weaponizing Verifiable Rewards for Harmful LLM Alignmentcited by 2
- 2026Few Tokens, Big Leverage: Preserving Safety Alignment by Constraining Safety Tokens during Fine-tuning8 Mar 2026
- 2026Surgery: Mitigating Harmful Fine-Tuning for Large Language Models via Attention Sink5 Feb 2026
- 2025Uniworld-V2: Reinforce Image Editing with Diffusion Negative-aware Finetuning and MLLM Implicit Feedback19 Oct 2025
- 2025HarmRLVR: Weaponizing Verifiable Rewards for Harmful LLM Alignment17 Oct 2025
- 2025A Guardrail for Safety Preservation: When Safety-Sensitive Subspace Meets Harmful-Resistant Null-Space16 Oct 2025
- 2026Antibody: Strengthening Defense Against Harmful Fine-Tuning for Large Language Models via Attenuating Harmful Gradient Influencecited by 6
- 2025Unified Defense for Large Language Models against Jailbreak and Fine-Tuning Attacks in Educationcited by 5
- 2026Jailbreak to Protect: Buffering and Reinforcing via Temporary Jailbreaking for Safe Fine-Tuning in Large Language Modelscited by 0
- 2026Jailbreak to Protect: Buffering and Reinforcing via Temporary Jailbreaking for Safe Fine-Tuning in Large Language Models23 May 2026
- 2026Antibody: Strengthening Defense Against Harmful Fine-Tuning for Large Language Models via Attenuating Harmful Gradient Influence28 Feb 2026
- 2025Unified Defense for Large Language Models against Jailbreak and Fine-Tuning Attacks in Education18 Nov 2025
- 2026Token-level Data Selection for Safe LLM Fine-tuningcited by 3
- 2026Beyond Creed: A Non-Identity Safety Condition A Strong Empirical Alternative to Identity Framing in Low-Data LoRA Fine-Tuningcited by 1
- 2026Locking Pretrained Weights via Deep Low-Rank Residual Distillationcited by 0
- 2026Safety Measurements for Fine-tuned LLMs Should be Grounded in Capabilitycited by 0
- 2026SafeTune: A Unified Faithful Library for Auditing and Repairing Safety Drift in Fine-Tuned LLMscited by 0
- 2026On Mitigation of Subliminal Learning in Large Language Modelscited by 0
- 2026Beyond Average Safety: Chance-Constrained LLM Fine-tuningcited by 0
- 2026Beyond Average Safety: Chance-Constrained LLM Fine-tuning24 Sep 2026
- 2026On Mitigation of Subliminal Learning in Large Language Models2 Sep 2026
- 2026SafeTune: A Unified Faithful Library for Auditing and Repairing Safety Drift in Fine-Tuned LLMs26 Aug 2026
- 2026Safety Measurements for Fine-tuned LLMs Should be Grounded in Capability2 Jun 2026
- 2026Locking Pretrained Weights via Deep Low-Rank Residual Distillation11 May 2026
- 2026Beyond Creed: A Non-Identity Safety Condition A Strong Empirical Alternative to Identity Framing in Low-Data LoRA Fine-Tuning16 Mar 2026
- 2026Token-level Data Selection for Safe LLM Fine-tuning1 Mar 2026