Making Harmful Behaviors Unlearnable for Large Language Models
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) have shown great potential as general-purpose AI assistants in various domains. To meet the requirements of different applications, LLMs are often customized by further fine-tuning. However, the powerful learning ability of LLMs not only enables them to acquire new tasks but also makes them susceptible to learning undesired behaviors. For example, even safety-aligned LLMs can be easily fine-tuned into harmful assistants as the fine-tuning data often contains implicit or explicit harmful content. Can we train LLMs on harmful data without learning harmful behaviors? This paper proposes a controllable training framework that makes harmful behaviors unlearnable during the fine-tuning process. Specifically, we introduce ``security vectors'', a few new parameters that can be separated from the LLM, to ensure LLM's responses are consistent with the harmful behavior. Security vectors are activated during fine-tuning, the consistent behavior makes LLM believe that such behavior has already been learned, there is no need to further optimize for harmful data. During inference, we can deactivate security vectors to restore the LLM's normal behavior. The experimental results show that the security vectors generated by 100 harmful samples are enough to prevent LLM from learning 1000 harmful samples, while preserving the ability to learn other useful information.
Key facts. Cited by 19 papers in the map (data through 7 Oct 2026). Builds on 38 of its 54 references that are in the map. First posted on arXiv 2 Nov 2023.
Builds on
38 of 54 references.
References · 38
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2019Parameter-Efficient Transfer Learning for NLPcited by 4,195
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
- 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,634
- 2022Constitutional AI: Harmlessness from AI Feedbackcited by 2,950
26 more
- 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,919
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,674
- 2020Extracting Training Data from Large Language Modelscited by 2,144
- 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,326
- 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!cited by 1,106
- 2023LIMA: Less Is More for Alignmentcited by 1,080
- 2018Adafactor: Adaptive Learning Rates with Sublinear Memory Costcited by 896
- 2021Towards a Unified View of Parameter-Efficient Transfer Learningcited by 863
- 2016Training Deep Nets with Sublinear Memory Costcited by 825
- 2020Intrinsic Dimensionality Explains the Effectiveness of Language Model Fine-Tuningcited by 658
- 2023Bias and Fairness in Large Language Models: A Surveycited by 626
- 2023Safety-Tuned LLaMAs: Lessons From Improving the Safety of Large Language Models that Follow Instructionscited by 377
- 2018Measuring the Intrinsic Dimension of Objective Landscapescited by 364
- 2021Remember What You Want to Forget: Algorithms for Machine Unlearningcited by 360
- 2023Shadow Alignment: The Ease of Subverting Safely-Aligned Language Modelscited by 284
- 2023Physics of Language Models: Part 3.1, Knowledge Storage and Extractioncited by 264
- 2021Unlearnable Examples: Making Personal Data Unexploitablecited by 188
- 2022Delta Tuning: A Comprehensive Study of Parameter Efficient Methods for Pre-trained Language Modelscited by 179
- 2023Composing Parameter-Efficient Modules with Arithmetic Operationscited by 155
- 2023Physics of Language Models: Part 3.2, Knowledge Manipulationcited by 142
- 2023Instruct2Act: Mapping Multi-modality Instructions to Robotic Actions with Large Language Modelcited by 115
- 2023BioMedGPT: Open Multimodal Generative Pre-trained Transformer for BioMedicinecited by 99
- 2023Bias Against 93 Stigmatized Groups in Masked Language Models and Downstream Sentiment Classification Taskscited by 51
- 2022Transferable Unlearnable Examplescited by 41
- 2022Unlearnable Clusters: Towards Label-agnostic Unlearnable Examplescited by 35
- 2023Can Pretrained Language Models Derive Correct Semantics from Corrupt Subwords under Noise?cited by 6
Built on by
Citing papers per year: 2024: 9; 2025: 6; 2026: 4.
19 papers.
Sort:
By area:
- 2024Representation Noising: A Defence Mechanism Against Harmful Finetuningcited by 93
- 2024Harmful Fine-tuning Attacks and Defenses for Large Language Models: A Surveycited by 86
- 2024The Multilingual Alignment Prism: Aligning Global and Local Preferences to Reduce Harmcited by 67
- 2024Eraser: Jailbreaking Defense in Large Language Models via Unlearning Harmful Knowledgecited by 48
- 2024Immunization against harmful fine-tuning attackscited by 33
- 2024No Two Devils Alike: Unveiling Distinct Mechanisms of Fine-tuning Attackscited by 28
- 2025Panacea: Mitigating Harmful Fine-tuning for Large Language Models via Post-fine-tuning Perturbationcited by 20
- 2024Large Action Models: From Inception to Implementationcited by 18
- 2025Self-Destructive Language Modelcited by 10
- 2024PatentGPT: A Large Language Model for Intellectual Propertycited by 8
- 2025A Survey on Unlearnable Datacited by 5
- 2025Downgrade to Upgrade: Optimizer Simplification Enhances Robustness in LLM Unlearningcited by 4
7 more
- 2026Surgery: Mitigating Harmful Fine-Tuning for Large Language Models via Attention Sinkcited by 3
- 2024Towards Transparency: Exploring LLM Trainings Datasets through Visual Topic Modeling and Semantic Framecited by 1
- 2026Going PLACES: Participatory Localized Red Teaming for Text-to-Image Safety in the Global Southcited by 1
- 2025Adversarial Distilled Retrieval-Augmented Guarding Model for Online Malicious Intent Detectioncited by 0
- 2025VisuoAlign: Safety Alignment of LVLMs with Multimodal Tree Searchcited by 0
- 2026Jailbreak to Protect: Buffering and Reinforcing via Temporary Jailbreaking for Safe Fine-Tuning in Large Language Modelscited by 0
- 2026FOCUS: Decoupling Expert Personas in LLMs to Enhance Domain Expert Capabilitiescited by 0
- 2026FOCUS: Decoupling Expert Personas in LLMs to Enhance Domain Expert Capabilities6 Aug 2026
- 2026Jailbreak to Protect: Buffering and Reinforcing via Temporary Jailbreaking for Safe Fine-Tuning in Large Language Models23 May 2026
- 2026Going PLACES: Participatory Localized Red Teaming for Text-to-Image Safety in the Global South18 May 2026
- 2026Surgery: Mitigating Harmful Fine-Tuning for Large Language Models via Attention Sink5 Feb 2026
- 2025VisuoAlign: Safety Alignment of LVLMs with Multimodal Tree Search10 Oct 2025
- 2025Downgrade to Upgrade: Optimizer Simplification Enhances Robustness in LLM Unlearning1 Oct 2025
- 2025Adversarial Distilled Retrieval-Augmented Guarding Model for Online Malicious Intent Detection18 Sep 2025
- 2025Self-Destructive Language Model18 May 2025
- 2025A Survey on Unlearnable Data30 Mar 2025
- 2025Panacea: Mitigating Harmful Fine-tuning for Large Language Models via Post-fine-tuning Perturbation30 Jan 2025
- 2024Large Action Models: From Inception to Implementation13 Dec 2024
- 2024Harmful Fine-tuning Attacks and Defenses for Large Language Models: A Survey26 Sep 2024
7 more
- 2024The Multilingual Alignment Prism: Aligning Global and Local Preferences to Reduce Harm26 Jun 2024
- 2024Towards Transparency: Exploring LLM Trainings Datasets through Visual Topic Modeling and Semantic Frame3 Jun 2024
- 2024No Two Devils Alike: Unveiling Distinct Mechanisms of Fine-tuning Attacks25 May 2024
- 2024Representation Noising: A Defence Mechanism Against Harmful Finetuning23 May 2024
- 2024PatentGPT: A Large Language Model for Intellectual Property28 Apr 2024
- 2024Eraser: Jailbreaking Defense in Large Language Models via Unlearning Harmful Knowledge8 Apr 2024
- 2024Immunization against harmful fine-tuning attacks26 Feb 2024
- 2024Representation Noising: A Defence Mechanism Against Harmful Finetuningcited by 93
- 2024The Multilingual Alignment Prism: Aligning Global and Local Preferences to Reduce Harmcited by 67
- 2024Eraser: Jailbreaking Defense in Large Language Models via Unlearning Harmful Knowledgecited by 48
- 2025Self-Destructive Language Modelcited by 10
- 2025Downgrade to Upgrade: Optimizer Simplification Enhances Robustness in LLM Unlearningcited by 4
- 2026Going PLACES: Participatory Localized Red Teaming for Text-to-Image Safety in the Global Southcited by 1
- 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
- 2026Going PLACES: Participatory Localized Red Teaming for Text-to-Image Safety in the Global South18 May 2026
- 2025Downgrade to Upgrade: Optimizer Simplification Enhances Robustness in LLM Unlearning1 Oct 2025
- 2025Self-Destructive Language Model18 May 2025
- 2024The Multilingual Alignment Prism: Aligning Global and Local Preferences to Reduce Harm26 Jun 2024
- 2024Representation Noising: A Defence Mechanism Against Harmful Finetuning23 May 2024
- 2024Eraser: Jailbreaking Defense in Large Language Models via Unlearning Harmful Knowledge8 Apr 2024
- 2024Immunization against harmful fine-tuning attackscited by 33
- 2025Panacea: Mitigating Harmful Fine-tuning for Large Language Models via Post-fine-tuning Perturbationcited by 20
- 2024Large Action Models: From Inception to Implementationcited by 18
- 2024PatentGPT: A Large Language Model for Intellectual Propertycited by 8
- 2025A Survey on Unlearnable Datacited by 5
- 2024Towards Transparency: Exploring LLM Trainings Datasets through Visual Topic Modeling and Semantic Framecited by 1
- 2026FOCUS: Decoupling Expert Personas in LLMs to Enhance Domain Expert Capabilitiescited by 0
- 2026FOCUS: Decoupling Expert Personas in LLMs to Enhance Domain Expert Capabilities6 Aug 2026
- 2025A Survey on Unlearnable Data30 Mar 2025
- 2025Panacea: Mitigating Harmful Fine-tuning for Large Language Models via Post-fine-tuning Perturbation30 Jan 2025
- 2024Large Action Models: From Inception to Implementation13 Dec 2024
- 2024Towards Transparency: Exploring LLM Trainings Datasets through Visual Topic Modeling and Semantic Frame3 Jun 2024
- 2024PatentGPT: A Large Language Model for Intellectual Property28 Apr 2024
- 2024Immunization against harmful fine-tuning attacks26 Feb 2024