NLSR: Neuron-Level Safety Realignment of Large Language Models Against Harmful Fine-Tuning
On the map: LLM alignment / RLHF / preference optimisation → Safety alignment and jailbreak attacks
Abstract (arXiv)
The emergence of finetuning-as-a-service has revealed a new vulnerability in large language models (LLMs). A mere handful of malicious data uploaded by users can subtly manipulate the finetuning process, resulting in an alignment-broken model. Existing methods to counteract fine-tuning attacks typically require substantial computational resources. Even with parameter-efficient techniques like LoRA, gradient updates remain essential. To address these challenges, we propose Neuron-Level Safety Realignment (NLSR), a training-free framework that restores the safety of LLMs based on the similarity difference of safety-critical neurons before and after fine-tuning. The core of our framework is first to construct a safety reference model from an initially aligned model to amplify safety-related features in neurons. We then utilize this reference model to identify safety-critical neurons, which we prepare as patches. Finally, we selectively restore only those neurons that exhibit significant similarity differences by transplanting these prepared patches, thereby minimally altering the fine-tuned model. Extensive experiments demonstrate significant safety enhancements in fine-tuned models across multiple downstream tasks, while greatly maintaining task-level accuracy. Our findings suggest regions of some safety-critical neurons show noticeable differences after fine-tuning, which can be effectively corrected by transplanting neurons from the reference model without requiring additional training. The code will be available at urlhttps://github.com/xinykou/NLSR
Key facts. Cited by 37 papers in the map (data through 14 Oct 2026). Placed in Safety alignment and jailbreak attacks, one of 10 directions in LLM alignment / RLHF / preference optimisation. Builds on 22 of its 34 references that are in the map. First posted on arXiv 17 Dec 2024.
Builds on
22 of 34 references.
Closest ancestors · 7
Same direction, newest first
- 2024Harmful Fine-tuning Attacks and Defenses for Large Language Models: A Survey26 Sep
- 2024Antidote: Post-fine-tuning Safety Alignment for Large Language Models against Harmful Fine-tuning18 Aug
- 2024Safety Alignment Should Be Made More Than Just a Few Tokens Deep10 Jun
- 2024Lisa: Lazy Safety Alignment for Large Language Models against Harmful Fine-tuning Attack28 May
- 2024Assessing the Brittleness of Safety Alignment via Pruning and Low-Rank Modifications7 Feb
- 2023Shadow Alignment: The Ease of Subverting Safely-Aligned Language Models4 Oct
- 2023BeaverTails: Towards Improved Safety Alignment of LLM via a Human-Preference Dataset10 Jul
Other references · 15
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
- 2017Deep reinforcement learning from human preferencescited by 3,912
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
- 2024SimPO: Simple Preference Optimization with a Reference-Free Rewardcited by 963
- 2018SNIP: Single-shot Network Pruning based on Connection Sensitivitycited by 812
- 2024tinyBenchmarks: evaluating LLMs with fewer examplescited by 310
- 2023Poisoning Language Models During Instruction Tuningcited by 269
- 2024What is in Your Safe Data? Identifying Benign Data that Breaks Safetycited by 118
- 2023On the Exploitability of Instruction Tuningcited by 116
- 2024DELLA-Merging: Reducing Interference in Model Merging through Magnitude-Based Samplingcited by 81
3 more
Built on by
Citing papers per year: 2025: 20; 2026: 17.
37 papers.
Sort:
By area:
- 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deploymentcited by 116
- 2025Benign Samples Matter! Fine-tuning On Outlier Benign Samples Severely Breaks Safetycited by 22
- 2025Panacea: Mitigating Harmful Fine-tuning for Large Language Models via Post-fine-tuning Perturbationcited by 20
- 2025Why LLM Safety Guardrails Collapse After Fine-tuning: A Similarity Analysis Between Alignment and Fine-tuning Datasetscited by 20
- 2025TwinBreak: Jailbreaking LLM Security Alignments based on Twin Promptscited by 19
- 2025Investigating the Impact of Quantization Methods on the Safety and Reliability of Large Language Modelscited by 18
- 2025Safe Delta: Consistently Preserving Safety when Fine-Tuning LLMs on Diverse Datasetscited by 18
- 2025SAFEx: Analyzing Vulnerabilities of MoE-Based LLMs via Stable Safety-critical Expert Identificationcited by 18
- 2025CTRAP: Embedding Collapse Trap to Safeguard Large Language Models from Harmful Fine-Tuningcited by 11
- 2025Gradient Surgery for Safe LLM Fine-Tuningcited by 11
- 2025Reshaping Representation Space to Balance the Safety and Over-rejection in Large Audio Language Modelscited by 7
- 2025Why Safeguarded Ships Run Aground? Aligned Large Language Models' Safety Mechanisms Tend to Be Anchored in The Template Regioncited by 6
25 more
- 2025No, of Course I Can! Deeper Fine-Tuning Attacks That Bypass Token-Level Safety Mechanismscited by 6
- 2025Safety Subspaces are Not Linearly Distinct: A Fine-Tuning Case Studycited by 6
- 2025When Style Breaks Safety: Defending LLMs Against Superficial Style Alignmentcited by 6
- 2025Unified Defense for Large Language Models against Jailbreak and Fine-Tuning Attacks in Educationcited by 5
- 2026Q-realign: Piggybacking Realignment on Quantization for Safe and Efficient LLM Deploymentcited by 5
- 2025Alignment-Constrained Dynamic Pruning for LLMs: Identifying and Preserving Alignment-Critical Circuitscited by 4
- 2026Surgery: Mitigating Harmful Fine-Tuning for Large Language Models via Attention Sinkcited by 4
- 2026Few Tokens, Big Leverage: Preserving Safety Alignment by Constraining Safety Tokens during Fine-tuningcited by 4
- 2026SafeSeek: Universal Attribution of Safety Circuits in Language Modelscited by 4
- 2026Preventing Safety Drift in Large Language Models via Coupled Weight and Activation Constraintscited by 4
- 2025Fine-Tuned LLMs Know They Don't Know: A Parameter-Efficient Approach to Recovering Honestycited by 3
- 2025Safety-Aligned Weights Are Not Enough: Refusal-Teacher-Guided Finetuning Enhances Safety and Downstream Performance under Harmful Finetuning Attackscited by 2
- 2025Multi-Level Safety Continual Projection for Fine-Tuned Large Language Models without Retrainingcited by 2
- 2026Lingua-SafetyBench: A Benchmark for Safety Evaluation of Multilingual Vision-Language Modelscited by 2
- 2026Fail-Closed Alignment for Large Language Modelscited by 2
- 2026Beyond Creed: A Non-Identity Safety Condition A Strong Empirical Alternative to Identity Framing in Low-Data LoRA Fine-Tuningcited by 1
- 2026Security in the Fine-Tuning Lifecycle of Large Language Models: Threats, Defenses,Evaluation, and Future Directionscited by 1
- 2026Alignment-Aware Model Adaptation via Feedback-Guided Optimizationcited by 0
- 2026Can LLM Safety Be Ensured by Constraining Parameter Regions?cited by 0
- 2026From Insight to Action: A Novel Framework for Interpretability-Guided Data Selection in Large Language Modelscited by 0
- 2026Safety Anchor: Defending Harmful Fine-tuning via Geometric Bottleneckscited by 0
- 2026GradShield: Alignment Preserving Finetuningcited by 0
- 2026Jailbreak to Protect: Buffering and Reinforcing via Temporary Jailbreaking for Safe Fine-Tuning in Large Language Modelscited by 0
- 2026SafeTune: A Unified Faithful Library for Auditing and Repairing Safety Drift in Fine-Tuned LLMscited by 0
- 2026SafeEvo: Deciphering the Safety Alignment Mechanism and Evolution in Language Modelscited by 0
- 2026SafeEvo: Deciphering the Safety Alignment Mechanism and Evolution in Language Models7 Oct 2026
- 2026SafeTune: A Unified Faithful Library for Auditing and Repairing Safety Drift in Fine-Tuned LLMs26 Aug 2026
- 2026Security in the Fine-Tuning Lifecycle of Large Language Models: Threats, Defenses,Evaluation, and Future Directions24 May 2026
- 2026Jailbreak to Protect: Buffering and Reinforcing via Temporary Jailbreaking for Safe Fine-Tuning in Large Language Models23 May 2026
- 2026GradShield: Alignment Preserving Finetuning13 May 2026
- 2026Safety Anchor: Defending Harmful Fine-tuning via Geometric Bottlenecks7 May 2026
- 2026From Insight to Action: A Novel Framework for Interpretability-Guided Data Selection in Large Language Models28 Apr 2026
- 2026Preventing Safety Drift in Large Language Models via Coupled Weight and Activation Constraints14 Apr 2026
- 2026SafeSeek: Universal Attribution of Safety Circuits in Language Models24 Mar 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
- 2026Fail-Closed Alignment for Large Language Models19 Feb 2026
25 more
- 2026Can LLM Safety Be Ensured by Constraining Parameter Regions?6 Feb 2026
- 2026Surgery: Mitigating Harmful Fine-Tuning for Large Language Models via Attention Sink5 Feb 2026
- 2026Alignment-Aware Model Adaptation via Feedback-Guided Optimization2 Feb 2026
- 2026Lingua-SafetyBench: A Benchmark for Safety Evaluation of Multilingual Vision-Language Models30 Jan 2026
- 2026Q-realign: Piggybacking Realignment on Quantization for Safe and Efficient LLM Deployment13 Jan 2026
- 2025Unified Defense for Large Language Models against Jailbreak and Fine-Tuning Attacks in Education18 Nov 2025
- 2025Fine-Tuned LLMs Know They Don't Know: A Parameter-Efficient Approach to Recovering Honesty17 Nov 2025
- 2025Alignment-Constrained Dynamic Pruning for LLMs: Identifying and Preserving Alignment-Critical Circuits9 Nov 2025
- 2025Gradient Surgery for Safe LLM Fine-Tuning10 Aug 2025
- 2025Multi-Level Safety Continual Projection for Fine-Tuned Large Language Models without Retraining8 Aug 2025
- 2025SAFEx: Analyzing Vulnerabilities of MoE-Based LLMs via Stable Safety-critical Expert Identification20 Jun 2025
- 2025TwinBreak: Jailbreaking LLM Security Alignments based on Twin Prompts9 Jun 2025
- 2025When Style Breaks Safety: Defending LLMs Against Superficial Style Alignment9 Jun 2025
- 2025Safety-Aligned Weights Are Not Enough: Refusal-Teacher-Guided Finetuning Enhances Safety and Downstream Performance under Harmful Finetuning Attacks9 Jun 2025
- 2025Why LLM Safety Guardrails Collapse After Fine-tuning: A Similarity Analysis Between Alignment and Fine-tuning Datasets5 Jun 2025
- 2025Reshaping Representation Space to Balance the Safety and Over-rejection in Large Audio Language Models26 May 2025
- 2025CTRAP: Embedding Collapse Trap to Safeguard Large Language Models from Harmful Fine-Tuning22 May 2025
- 2025Safety Subspaces are Not Linearly Distinct: A Fine-Tuning Case Study20 May 2025
- 2025Safe Delta: Consistently Preserving Safety when Fine-Tuning LLMs on Diverse Datasets17 May 2025
- 2025Benign Samples Matter! Fine-tuning On Outlier Benign Samples Severely Breaks Safety11 May 2025
- 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deployment22 Apr 2025
- 2025No, of Course I Can! Deeper Fine-Tuning Attacks That Bypass Token-Level Safety Mechanisms26 Feb 2025
- 2025Why Safeguarded Ships Run Aground? Aligned Large Language Models' Safety Mechanisms Tend to Be Anchored in The Template Region19 Feb 2025
- 2025Investigating the Impact of Quantization Methods on the Safety and Reliability of Large Language Models18 Feb 2025
- 2025Panacea: Mitigating Harmful Fine-tuning for Large Language Models via Post-fine-tuning Perturbation30 Jan 2025
- 2025Benign Samples Matter! Fine-tuning On Outlier Benign Samples Severely Breaks Safetycited by 22
- 2025TwinBreak: Jailbreaking LLM Security Alignments based on Twin Promptscited by 19
- 2025CTRAP: Embedding Collapse Trap to Safeguard Large Language Models from Harmful Fine-Tuningcited by 11
- 2025No, of Course I Can! Deeper Fine-Tuning Attacks That Bypass Token-Level Safety Mechanismscited by 6
- 2025When Style Breaks Safety: Defending LLMs Against Superficial Style Alignmentcited by 6
- 2025Unified Defense for Large Language Models against Jailbreak and Fine-Tuning Attacks in Educationcited by 5
- 2026Q-realign: Piggybacking Realignment on Quantization for Safe and Efficient LLM Deploymentcited by 5
- 2026SafeSeek: Universal Attribution of Safety Circuits in Language Modelscited by 4
- 2025Safety-Aligned Weights Are Not Enough: Refusal-Teacher-Guided Finetuning Enhances Safety and Downstream Performance under Harmful Finetuning Attackscited by 2
- 2025Multi-Level Safety Continual Projection for Fine-Tuned Large Language Models without Retrainingcited by 2
- 2026Security in the Fine-Tuning Lifecycle of Large Language Models: Threats, Defenses,Evaluation, and Future Directionscited by 1
- 2026Can LLM Safety Be Ensured by Constraining Parameter Regions?cited by 0
12 most cited of 13 All 13 (JSON)
- 2026Security in the Fine-Tuning Lifecycle of Large Language Models: Threats, Defenses,Evaluation, and Future Directions24 May 2026
- 2026Jailbreak to Protect: Buffering and Reinforcing via Temporary Jailbreaking for Safe Fine-Tuning in Large Language Models23 May 2026
- 2026SafeSeek: Universal Attribution of Safety Circuits in Language Models24 Mar 2026
- 2026Can LLM Safety Be Ensured by Constraining Parameter Regions?6 Feb 2026
- 2026Q-realign: Piggybacking Realignment on Quantization for Safe and Efficient LLM Deployment13 Jan 2026
- 2025Unified Defense for Large Language Models against Jailbreak and Fine-Tuning Attacks in Education18 Nov 2025
- 2025Multi-Level Safety Continual Projection for Fine-Tuned Large Language Models without Retraining8 Aug 2025
- 2025TwinBreak: Jailbreaking LLM Security Alignments based on Twin Prompts9 Jun 2025
- 2025When Style Breaks Safety: Defending LLMs Against Superficial Style Alignment9 Jun 2025
- 2025Safety-Aligned Weights Are Not Enough: Refusal-Teacher-Guided Finetuning Enhances Safety and Downstream Performance under Harmful Finetuning Attacks9 Jun 2025
- 2025CTRAP: Embedding Collapse Trap to Safeguard Large Language Models from Harmful Fine-Tuning22 May 2025
- 2025Benign Samples Matter! Fine-tuning On Outlier Benign Samples Severely Breaks Safety11 May 2025
12 newest of 13 All 13 (JSON)
- 2025Why LLM Safety Guardrails Collapse After Fine-tuning: A Similarity Analysis Between Alignment and Fine-tuning Datasetscited by 20
- 2025SAFEx: Analyzing Vulnerabilities of MoE-Based LLMs via Stable Safety-critical Expert Identificationcited by 18
- 2025Gradient Surgery for Safe LLM Fine-Tuningcited by 11
- 2025Why Safeguarded Ships Run Aground? Aligned Large Language Models' Safety Mechanisms Tend to Be Anchored in The Template Regioncited by 6
- 2025Safety Subspaces are Not Linearly Distinct: A Fine-Tuning Case Studycited by 6
- 2026Surgery: Mitigating Harmful Fine-Tuning for Large Language Models via Attention Sinkcited by 4
- 2026Few Tokens, Big Leverage: Preserving Safety Alignment by Constraining Safety Tokens during Fine-tuningcited by 4
- 2026Preventing Safety Drift in Large Language Models via Coupled Weight and Activation Constraintscited by 4
- 2026Fail-Closed Alignment for Large Language Modelscited by 2
- 2026Safety Anchor: Defending Harmful Fine-tuning via Geometric Bottleneckscited by 0
- 2026SafeEvo: Deciphering the Safety Alignment Mechanism and Evolution in Language Modelscited by 0
- 2026SafeEvo: Deciphering the Safety Alignment Mechanism and Evolution in Language Models7 Oct 2026
- 2026Safety Anchor: Defending Harmful Fine-tuning via Geometric Bottlenecks7 May 2026
- 2026Preventing Safety Drift in Large Language Models via Coupled Weight and Activation Constraints14 Apr 2026
- 2026Few Tokens, Big Leverage: Preserving Safety Alignment by Constraining Safety Tokens during Fine-tuning8 Mar 2026
- 2026Fail-Closed Alignment for Large Language Models19 Feb 2026
- 2026Surgery: Mitigating Harmful Fine-Tuning for Large Language Models via Attention Sink5 Feb 2026
- 2025Gradient Surgery for Safe LLM Fine-Tuning10 Aug 2025
- 2025SAFEx: Analyzing Vulnerabilities of MoE-Based LLMs via Stable Safety-critical Expert Identification20 Jun 2025
- 2025Why LLM Safety Guardrails Collapse After Fine-tuning: A Similarity Analysis Between Alignment and Fine-tuning Datasets5 Jun 2025
- 2025Safety Subspaces are Not Linearly Distinct: A Fine-Tuning Case Study20 May 2025
- 2025Why Safeguarded Ships Run Aground? Aligned Large Language Models' Safety Mechanisms Tend to Be Anchored in The Template Region19 Feb 2025
- 2025Panacea: Mitigating Harmful Fine-tuning for Large Language Models via Post-fine-tuning Perturbationcited by 20
- 2025Safe Delta: Consistently Preserving Safety when Fine-Tuning LLMs on Diverse Datasetscited by 18
- 2025Reshaping Representation Space to Balance the Safety and Over-rejection in Large Audio Language Modelscited by 7
- 2025Alignment-Constrained Dynamic Pruning for LLMs: Identifying and Preserving Alignment-Critical Circuitscited by 4
- 2025Fine-Tuned LLMs Know They Don't Know: A Parameter-Efficient Approach to Recovering Honestycited by 3
- 2026Beyond Creed: A Non-Identity Safety Condition A Strong Empirical Alternative to Identity Framing in Low-Data LoRA Fine-Tuningcited by 1
- 2026Alignment-Aware Model Adaptation via Feedback-Guided Optimizationcited by 0
- 2026GradShield: Alignment Preserving Finetuningcited by 0
- 2026SafeTune: A Unified Faithful Library for Auditing and Repairing Safety Drift in Fine-Tuned LLMscited by 0
- 2026SafeTune: A Unified Faithful Library for Auditing and Repairing Safety Drift in Fine-Tuned LLMs26 Aug 2026
- 2026GradShield: Alignment Preserving Finetuning13 May 2026
- 2026Beyond Creed: A Non-Identity Safety Condition A Strong Empirical Alternative to Identity Framing in Low-Data LoRA Fine-Tuning16 Mar 2026
- 2026Alignment-Aware Model Adaptation via Feedback-Guided Optimization2 Feb 2026
- 2025Fine-Tuned LLMs Know They Don't Know: A Parameter-Efficient Approach to Recovering Honesty17 Nov 2025
- 2025Alignment-Constrained Dynamic Pruning for LLMs: Identifying and Preserving Alignment-Critical Circuits9 Nov 2025
- 2025Reshaping Representation Space to Balance the Safety and Over-rejection in Large Audio Language Models26 May 2025
- 2025Safe Delta: Consistently Preserving Safety when Fine-Tuning LLMs on Diverse Datasets17 May 2025
- 2025Panacea: Mitigating Harmful Fine-tuning for Large Language Models via Post-fine-tuning Perturbation30 Jan 2025
Similar, not cited
Close in wording, no citation either way
- 2025NeuRel-Attack: Neuron Relearning for Safety Disalignment in Large Language Models
- 2026NeST: Neuron Selective Tuning for LLM Safety
- 2026SafeNeuron: Neuron-Level Safety Alignment for Large Language Models
- 2025NeuroStrike: Neuron-Level Attacks on Aligned LLMs
- 2025NeuronTune: Fine-Grained Neuron Modulation for Balanced Safety-Utility Alignment in LLMs
- 2025SafeMERGE: Preserving Safety Alignment in Fine-Tuned Large Language Models via Selective Layer-Wise Model Merging
- 2026Safety at One Shot: Patching Fine-Tuned LLMs with A Single Instance
- 2026Understanding and Preserving Safety in Fine-Tuned LLMs