CTRAP: Embedding Collapse Trap to Safeguard Large Language Models from Harmful Fine-Tuning
On the map: LLM safety and security → Safety alignment, refusal and guardrails
Abstract (arXiv)
Fine-tuning-as-a-service, while commercially successful for Large Language Model (LLM) providers, exposes models to harmful fine-tuning attacks. As a widely explored defense paradigm against such attacks, unlearning attempts to remove malicious knowledge from LLMs, thereby essentially preventing them from being used to perform malicious tasks. However, we highlight a critical flaw: the powerful general adaptability of LLMs allows them to easily bypass selective unlearning by rapidly relearning or repurposing their capabilities for harmful tasks. To address this fundamental limitation, we propose a paradigm shift: instead of selective removal, we advocate for inducing model collapse--effectively forcing the model to "unlearn everything"--specifically in response to updates characteristic of malicious adaptation. This collapse directly neutralizes the very general capabilities that attackers exploit, tackling the core issue unaddressed by selective unlearning. We introduce the Collapse Trap (CTRAP) as a practical mechanism to implement this concept conditionally. Embedded during alignment, CTRAP pre-configures the model's reaction to subsequent fine-tuning dynamics. If updates during fine-tuning constitute a persistent attempt to reverse safety alignment, the pre-configured trap triggers a progressive degradation of the model's core language modeling abilities, ultimately rendering it inert and useless for the attacker. Crucially, this collapse mechanism remains dormant during benign fine-tuning, ensuring the model's utility and general capabilities are preserved for legitimate users. Extensive empirical results demonstrate that CTRAP effectively counters harmful fine-tuning risks across various LLMs and attack settings, while maintaining high performance in benign scenarios. Our code is available at https://anonymous.4open.science/r/CTRAP.
Key facts. Cited by 11 papers in the map (data through 14 Oct 2026). Placed in Safety alignment, refusal and guardrails, one of 12 directions in LLM safety and security. Builds on 77 of its 108 references that are in the map. First posted on arXiv 22 May 2025.
Builds on
77 of 108 references.
Closest ancestors · 19
Same direction, newest first
- 2025Virus: Harmful Fine-tuning Attack for Large Language Models Bypassing Guardrail Moderation29 Jan
- 2025SaLoRA: Safety-Alignment Preserved Low-Rank Adaptation3 Jan
- 2024Separate the Wheat from the Chaff: A Post-Hoc Approach to Safety Re-Alignment for Fine-Tuned Language Models15 Dec
- 2024Targeted Vaccine: Safety Alignment for Large Language Models against Harmful Fine-Tuning via Layer-wise Perturbation13 Oct
- 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
- 2024Improving Alignment and Robustness with Circuit Breakers6 Jun
- 2024Lisa: Lazy Safety Alignment for Large Language Models against Harmful Fine-tuning Attack28 May
- 2024Navigating the Safety Landscape: Measuring Risks in Finetuning Large Language Models27 May
- 2024No Two Devils Alike: Unveiling Distinct Mechanisms of Fine-tuning Attacks25 May
- 2024Robustifying Safety-Aligned Large Language Models through Clean Data Curation24 May
7 more
- 2024Representation Noising: A Defence Mechanism Against Harmful Finetuning23 May
- 2024A safety realignment framework via subspace-oriented model fusion for large language models15 May
- 2024What is in Your Safe Data? Identifying Benign Data that Breaks Safety1 Apr
- 2024The WMDP Benchmark: Measuring and Reducing Malicious Use With Unlearning5 Mar
- 2024Assessing the Brittleness of Safety Alignment via Pruning and Low-Rank Modifications7 Feb
- 2023LoRA Fine-tuning Efficiently Undoes Safety Training in Llama 2-Chat 70B31 Oct
- 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!5 Oct
Other references · 58
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
- 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,720
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
- 2024Qwen2 Technical Reportcited by 2,120
- 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,998
- 2017Decoupled Weight Decay Regularizationcited by 1,831
38 more
- 2019Machine Unlearningcited by 1,061
- 2023BeaverTails: Towards Improved Safety Alignment of LLM via a Human-Preference Datasetcited by 860
- 2023Enhancing Chat Language Models by Scaling High-quality Instructional Conversationscited by 839
- 2023RAFT: Reward rAnked FineTuning for Generative Foundation Model Alignmentcited by 686
- 2023Safe RLHF: Safe Reinforcement Learning from Human Feedbackcited by 656
- 2024Negative Preference Optimization: From Catastrophic Collapse to Effective Unlearningcited by 504
- 2023RRHF: Rank Responses to Align Language Models with Human Feedback without tearscited by 463
- 2023Catastrophic Jailbreak of Open-source LLMs via Exploiting Generationcited by 451
- 2022Knowledge Unlearning for Mitigating Privacy Risks in Language Modelscited by 437
- 2023Safety-Tuned LLaMAs: Lessons From Improving the Safety of Large Language Models that Follow Instructionscited by 387
- 2023Large Language Model Unlearningcited by 302
- 2023Shadow Alignment: The Ease of Subverting Safely-Aligned Language Modelscited by 297
- 2023Removing RLHF Protections in GPT-4 via Fine-Tuningcited by 171
- 2024Safety Fine-Tuning at (Almost) No Cost: A Baseline for Vision Large Language Modelscited by 167
- 2024Eight Methods to Evaluate Robust Unlearning in LLMscited by 163
- 2024Tamper-Resistant Safeguards for Open-Weight LLMscited by 138
- 2024Safety Layers in Aligned Large Language Models: The Key to LLM Securitycited by 134
- 2024Safe LoRA: the Silver Lining of Reducing Safety Risks when Fine-tuning Large Language Modelscited by 125
- 2024An Adversarial Perspective on Machine Unlearning for AI Safetycited by 123
- 2024Vaccine: Perturbation-aware Alignment for Large Language Models against Harmful Fine-tuning Attackcited by 115
- 2023Fine-tuning can cripple your foundation model; preserving features may be the solutioncited by 96
- 2024Keeping LLMs Aligned After Fine-tuning: The Crucial Role of Prompt Templatescited by 96
- 2024Booster: Tackling Harmful Fine-tuning for Large Language Models via Attenuating Harmful Perturbationcited by 92
- 2024Defending Against Unforeseen Failure Modes with Latent Adversarial Trainingcited by 88
- 2024Covert Malicious Finetuning: Challenges in Safeguarding LLM Adaptationcited by 80
- 2024Do Unlearning Methods Remove Information from Language Model Weights?cited by 73
- 2024SEAL: Safety-enhanced Aligned LLM Fine-tuning via Bilevel Data Selectioncited by 64
- 2022Self-Destructing Models: Increasing the Costs of Harmful Dual Uses of Foundation Modelscited by 57
- 2023Pairwise Proximal Policy Optimization: Harnessing Relative Feedback for LLM Alignmentcited by 57
- 2024A Closer Look at Machine Unlearning for Large Language Modelscited by 56
- 2024On Evaluating the Durability of Safeguards for Open-Weight LLMscited by 52
- 2024UnUnlearning: Unlearning is not sufficient for content regulation in advanced generative AIcited by 51
- 2025Open Problems in Machine Unlearning for AI Safetycited by 51
- 2024Open Problems in Technical AI Governancecited by 49
- 2024Operationalizing a Threat Model for Red-Teaming Large Language Models (LLMs)cited by 46
- 2024Meta-Unlearning on Diffusion Models: Preventing Relearning Unlearned Conceptscited by 40
- 2024NLSR: Neuron-Level Safety Realignment of Large Language Models Against Harmful Fine-Tuningcited by 37
- 2024Immunization against harmful fine-tuning attackscited by 35
50 most cited of 58 All 58 (JSON)
Built on by
Citing papers per year: 2025: 4; 2026: 7.
11 papers.
- 2025Adaptive Defense against Harmful Fine-Tuning for Large Language Models via Bayesian Data Schedulercited by 12
- 2025Gradient Surgery for Safe LLM Fine-Tuningcited by 11
- 2025Token Buncher: Shielding LLMs from Harmful Reinforcement Learning Fine-Tuningcited by 8
- 2026Antibody: Strengthening Defense Against Harmful Fine-Tuning for Large Language Models via Attenuating Harmful Gradient Influencecited by 6
- 2026Surgery: Mitigating Harmful Fine-Tuning for Large Language Models via Attention Sinkcited by 4
- 2026Token-level Data Selection for Safe LLM Fine-tuningcited by 3
- 2026A Few Steps Further: Why Defenses Against Malicious Finetuning Erode Under Continued Trainingcited by 2
- 2026Open-Weight LLM Fine-Tuning Defenses are Susceptible to Simple Attackscited by 1
- 2025Rotation Control Unlearning: Quantifying and Controlling Continuous Unlearning for LLM with The Cognitive Rotation Spacecited by 0
- 2026Learning to Stay Safe: Adaptive Regularization Against Safety Degradation during Fine-Tuningcited 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
- 2026Open-Weight LLM Fine-Tuning Defenses are Susceptible to Simple Attacks26 May 2026
- 2026A Few Steps Further: Why Defenses Against Malicious Finetuning Erode Under Continued Training14 May 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
- 2026Learning to Stay Safe: Adaptive Regularization Against Safety Degradation during Fine-Tuning19 Feb 2026
- 2026Surgery: Mitigating Harmful Fine-Tuning for Large Language Models via Attention Sink5 Feb 2026
- 2025Adaptive Defense against Harmful Fine-Tuning for Large Language Models via Bayesian Data Scheduler31 Oct 2025
- 2025Rotation Control Unlearning: Quantifying and Controlling Continuous Unlearning for LLM with The Cognitive Rotation Space30 Sep 2025
- 2025Token Buncher: Shielding LLMs from Harmful Reinforcement Learning Fine-Tuning28 Aug 2025
- 2025Gradient Surgery for Safe LLM Fine-Tuning10 Aug 2025
Similar, not cited
Close in wording, no citation either way
- 2026Faithful Dual-constrained Erasure for Robust LLM Safety Alignment
- 2026Security in the Fine-Tuning Lifecycle of Large Language Models: Threats, Defenses,Evaluation, and Future Directions
- 2025SafeMERGE: Preserving Safety Alignment in Fine-Tuned Large Language Models via Selective Layer-Wise Model Merging
- 2025SDD: Self-Degraded Defense against Malicious Fine-tuning
- 2026On-Policy Distillation for LLM Safety: A Routing Approach to Template-Robust Realignment
- 2026Merging Triggers, Breaking Backdoors: Defensive Poisoning for Instruction-Tuned Language Models
- 2026Safety Paradox: How Enhanced Safety Awareness Leaves LLMs Vulnerable to Posterior Attack
- 2026Safety Anchor: Defending Harmful Fine-tuning via Geometric Bottlenecks