Robustifying Safety-Aligned Large Language Models through Clean Data Curation
On the map: LLM alignment / RLHF / preference optimisation → Safety alignment and jailbreak attacks
also in 1 more
Abstract (arXiv)
Large language models (LLMs) are vulnerable when trained on datasets containing harmful content, which leads to potential jailbreaking attacks in two scenarios: the integration of harmful texts within crowdsourced data used for pre-training and direct tampering with LLMs through fine-tuning. In both scenarios, adversaries can compromise the safety alignment of LLMs, exacerbating malfunctions. Motivated by the need to mitigate these adversarial influences, our research aims to enhance safety alignment by either neutralizing the impact of malicious texts in pre-training datasets or increasing the difficulty of jailbreaking during downstream fine-tuning. In this paper, we propose a data curation framework designed to counter adversarial impacts in both scenarios. Our method operates under the assumption that we have no prior knowledge of attack details, focusing solely on curating clean texts. We introduce an iterative process aimed at revising texts to reduce their perplexity as perceived by LLMs, while simultaneously preserving their text quality. By pre-training or fine-tuning LLMs with curated clean texts, we observe a notable improvement in LLM robustness regarding safety alignment against harmful queries. For instance, when pre-training LLMs using a crowdsourced dataset containing 5% harmful instances, adding an equivalent amount of curated texts significantly mitigates the likelihood of providing harmful responses in LLMs and reduces the attack success rate by 71%. Our study represents a significant step towards mitigating the risks associated with training-based jailbreaking and fortifying the secure utilization of LLMs.
Key facts. Cited by 43 papers in the map (data through 7 Oct 2026). Placed in Safety alignment and jailbreak attacks, one of 10 directions in LLM alignment / RLHF / preference optimisation. Builds on 39 of its 59 references that are in the map. First posted on arXiv 24 May 2024.
Builds on
39 of 59 references.
Closest ancestors · 5
Same direction, newest first
- 2023Safe RLHF: Safe Reinforcement Learning from Human Feedback19 Oct
- 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!5 Oct
- 2023Shadow Alignment: The Ease of Subverting Safely-Aligned Language Models4 Oct
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Models27 Jul
- 2023BeaverTails: Towards Improved Safety Alignment of LLM via a Human-Preference Dataset10 Jul
Other references · 34
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,919
- 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,565
- 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,326
- 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,235
- 2021GLM: General Language Model Pretraining with Autoregressive Blank Infillingcited by 1,026
- 2021A General Language Assistant as a Laboratory for Alignmentcited by 1,023
- 2023OpenAssistant Conversations -- Democratizing Large Language Model Alignmentcited by 712
22 more
- 2023LLM-Pruner: On the Structural Pruning of Large Language Modelscited by 643
- 2021Documenting Large Webtext Corpora: A Case Study on the Colossal Clean Crawled Corpuscited by 481
- 2024Jailbreaking Leading Safety-Aligned LLMs with Simple Adaptive Attackscited by 450
- 2020Artificial Intelligence, Values and Alignmentcited by 443
- 2023Tool Learning with Foundation Modelscited by 302
- 2023ToolkenGPT: Augmenting Frozen Language Models with Massive Tools via Tool Embeddingscited by 238
- 2019AUTOVC: Zero-Shot Voice Style Transfer with Only Autoencoder Losscited by 189
- 2020Social Biases in NLP Models as Barriers for Persons with Disabilitiescited by 182
- 2023Self-Alignment with Instruction Backtranslationcited by 149
- 2021Mind the Style of Text! Adversarial and Backdoor Attacks Based on Text Style Transfercited by 147
- 2024What is in Your Safe Data? Identifying Benign Data that Breaks Safetycited by 114
- 2023InferFix: End-to-End Program Repair with LLMscited by 113
- 2024A Thorough Examination of Decoding Methods in the Era of LLMscited by 112
- 2021Examining Zero-Shot Vulnerability Repair with Large Language Modelscited by 105
- 2022DataPerf: Benchmarks for Data-Centric AI Developmentcited by 89
- 2023Improving Activation Steering in Language Models with Mean-Centringcited by 64
- 2023Hot or Cold? Adaptive Temperature Sampling for Code Generation with Large Language Modelscited by 37
- 2023Conformal Nucleus Samplingcited by 32
- 2016Neural Machine Translation with Reconstructioncited by 28
- 2023On the Safety of Open-Sourced Large Language Models: Does Alignment Really Prevent Them From Being Misused?cited by 25
- 2018Universal Multi-Party Poisoning Attackscited by 17
- 2021Data Poisoning Attacks and Defenses to Crowdsourcing Systemscited by 12
Built on by
Citing papers per year: 2024: 13; 2025: 21; 2026: 9.
43 papers.
Sort:
By area:
- 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
- 2024Antidote: Post-fine-tuning Safety Alignment for Large Language Models against Harmful Fine-tuningcited by 71
- 2024Bag of Tricks: Benchmarking of Jailbreak Attacks on LLMscited by 47
- 2024Targeted Vaccine: Safety Alignment for Large Language Models against Harmful Fine-Tuning via Layer-wise Perturbationcited by 35
- 2024Content Moderation by LLM: From Accuracy to Legitimacycited by 30
- 2024Scaling Trends for Data Poisoning in LLMscited by 26
- 2025SafeMERGE: Preserving Safety Alignment in Fine-Tuned Large Language Models via Selective Layer-Wise Model Mergingcited by 25
- 2025Benign Samples Matter! Fine-tuning On Outlier Benign Samples Severely Breaks Safetycited by 22
- 2025AsFT: Anchoring Safety During LLM Fine-Tuning Within Narrow Safety Basincited by 18
- 2025BadJudge: Backdoor Vulnerabilities of LLM-as-a-Judgecited by 13
31 more
- 2025SDD: Self-Degraded Defense against Malicious Fine-tuningcited by 13
- 2025LoX: Low-Rank Extrapolation Robustifies LLM Safety Against Fine-tuningcited by 12
- 2025Dataset Protection via Watermarked Canaries in Retrieval-Augmented LLMscited by 11
- 2025CTRAP: Embedding Collapse Trap to Safeguard Large Language Models from Harmful Fine-Tuningcited by 11
- 2025Gradient Surgery for Safe LLM Fine-Tuningcited by 11
- 2025Think Twice, Generate Once: Safeguarding by Progressive Self-Reflectioncited by 11
- 2025Towards Safeguarding LLM Fine-tuning APIs against Cipher Attackscited by 10
- 2025Unforgotten Safety: Preserving Safety Alignment of Large Language Models with Continual Learningcited by 10
- 2025A Guardrail for Safety Preservation: When Safety-Sensitive Subspace Meets Harmful-Resistant Null-Spacecited by 9
- 2024Toward Secure Tuning: Mitigating Security Risks from Instruction Fine-Tuningcited by 8
- 2024Watermark under Fire: A Robustness Evaluation of LLM Watermarkingcited by 7
- 2025Safety Subspaces are Not Linearly Distinct: A Fine-Tuning Case Studycited by 6
- 2026Antibody: Strengthening Defense Against Harmful Fine-Tuning for Large Language Models via Attenuating Harmful Gradient Influencecited by 6
- 2024Recent Advances in Attack and Defense Approaches of Large Language Modelscited by 5
- 2025No, of Course I Can! Deeper Fine-Tuning Attacks That Bypass Token-Level Safety Mechanismscited by 5
- 2025Scalable Valuation of Human Feedback through Provably Robust Model Alignmentcited by 4
- 2025Teaching Models to Understand (but not Generate) High-risk Datacited by 2
- 2025The Safety Gap Toolkit: Evaluating Hidden Dangers of Open-Source Modelscited by 2
- 2025Scam2Prompt: A Scalable Framework for Auditing Malicious Scam Endpoints in Production LLMscited by 2
- 2026GR-SAP: Generative Replay for Safety Alignment Preservation during Fine-Tuningcited by 2
- 2025SafeTuneBed: A Toolkit for Benchmarking LLM Safety Alignment in Fine-Tuningcited by 1
- 2025KAIROS: Scalable Model-Agnostic Data Valuationcited by 1
- 2026TamperBench: Systematically Stress-Testing LLM Safety Under Fine-Tuning and Tamperingcited by 1
- 2026Aligned but Fragile: Enhancing LLM Safety Robustness via Zeroth-Order Optimizationcited by 1
- 2024Pre-trained Graphformer-based Ranking at Web-scale Search (Extended Abstract)cited by 0
- 2024Generative Pre-trained Ranking Model with Over-parameterization at Web-Scale (Extended Abstract)cited by 0
- 2026Learning to Stay Safe: Adaptive Regularization Against Safety Degradation during Fine-Tuningcited by 0
- 2026GradShield: Alignment Preserving Finetuningcited by 0
- 2026Beyond Safe Data: Pretraining-Stage Alignment with Regular Safety Reflectioncited by 0
- 2026Low-Agreeableness Persona Conditioning for Safe LLM Fine-Tuningcited by 0
- 2026SLDR: Defending Against Malicious Fine-tuning via Selective Layers Recovery and Dynamic Routingcited by 0
- 2026SLDR: Defending Against Malicious Fine-tuning via Selective Layers Recovery and Dynamic Routing7 Oct 2026
- 2026Low-Agreeableness Persona Conditioning for Safe LLM Fine-Tuning26 Jun 2026
- 2026Beyond Safe Data: Pretraining-Stage Alignment with Regular Safety Reflection17 Jun 2026
- 2026Aligned but Fragile: Enhancing LLM Safety Robustness via Zeroth-Order Optimization28 May 2026
- 2026GradShield: Alignment Preserving Finetuning13 May 2026
- 2026GR-SAP: Generative Replay for Safety Alignment Preservation during Fine-Tuning10 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
- 2026TamperBench: Systematically Stress-Testing LLM Safety Under Fine-Tuning and Tampering6 Feb 2026
- 2025Unforgotten Safety: Preserving Safety Alignment of Large Language Models with Continual Learning10 Dec 2025
- 2025A Guardrail for Safety Preservation: When Safety-Sensitive Subspace Meets Harmful-Resistant Null-Space16 Oct 2025
- 2025Think Twice, Generate Once: Safeguarding by Progressive Self-Reflection29 Sep 2025
31 more
- 2025Scam2Prompt: A Scalable Framework for Auditing Malicious Scam Endpoints in Production LLMs2 Sep 2025
- 2025Towards Safeguarding LLM Fine-tuning APIs against Cipher Attacks23 Aug 2025
- 2025Gradient Surgery for Safe LLM Fine-Tuning10 Aug 2025
- 2025SDD: Self-Degraded Defense against Malicious Fine-tuning27 Jul 2025
- 2025The Safety Gap Toolkit: Evaluating Hidden Dangers of Open-Source Models8 Jul 2025
- 2025KAIROS: Scalable Model-Agnostic Data Valuation30 Jun 2025
- 2025LoX: Low-Rank Extrapolation Robustifies LLM Safety Against Fine-tuning18 Jun 2025
- 2025AsFT: Anchoring Safety During LLM Fine-Tuning Within Narrow Safety Basin10 Jun 2025
- 2025SafeTuneBed: A Toolkit for Benchmarking LLM Safety Alignment in Fine-Tuning31 May 2025
- 2025Scalable Valuation of Human Feedback through Provably Robust Model Alignment23 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
- 2025Benign Samples Matter! Fine-tuning On Outlier Benign Samples Severely Breaks Safety11 May 2025
- 2025Teaching Models to Understand (but not Generate) High-risk Data5 May 2025
- 2025SafeMERGE: Preserving Safety Alignment in Fine-Tuned Large Language Models via Selective Layer-Wise Model Merging21 Mar 2025
- 2025BadJudge: Backdoor Vulnerabilities of LLM-as-a-Judge1 Mar 2025
- 2025No, of Course I Can! Deeper Fine-Tuning Attacks That Bypass Token-Level Safety Mechanisms26 Feb 2025
- 2025Dataset Protection via Watermarked Canaries in Retrieval-Augmented LLMs15 Feb 2025
- 2024Watermark under Fire: A Robustness Evaluation of LLM Watermarking20 Nov 2024
- 2024Targeted Vaccine: Safety Alignment for Large Language Models against Harmful Fine-Tuning via Layer-wise Perturbation13 Oct 2024
- 2024Toward Secure Tuning: Mitigating Security Risks from Instruction Fine-Tuning6 Oct 2024
- 2024Harmful Fine-tuning Attacks and Defenses for Large Language Models: A Survey26 Sep 2024
- 2024Generative Pre-trained Ranking Model with Over-parameterization at Web-Scale (Extended Abstract)25 Sep 2024
- 2024Pre-trained Graphformer-based Ranking at Web-scale Search (Extended Abstract)25 Sep 2024
- 2024Recent Advances in Attack and Defense Approaches of Large Language Models5 Sep 2024
- 2024Content Moderation by LLM: From Accuracy to Legitimacy5 Sep 2024
- 2024Booster: Tackling Harmful Fine-tuning for Large Language Models via Attenuating Harmful Perturbation3 Sep 2024
- 2024Antidote: Post-fine-tuning Safety Alignment for Large Language Models against Harmful Fine-tuning18 Aug 2024
- 2024Scaling Trends for Data Poisoning in LLMs6 Aug 2024
- 2024Bag of Tricks: Benchmarking of Jailbreak Attacks on LLMs13 Jun 2024
- 2024Lisa: Lazy Safety Alignment for Large Language Models against Harmful Fine-tuning Attack28 May 2024
- 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
- 2024Antidote: Post-fine-tuning Safety Alignment for Large Language Models against Harmful Fine-tuningcited by 71
- 2024Targeted Vaccine: Safety Alignment for Large Language Models against Harmful Fine-Tuning via Layer-wise Perturbationcited by 35
- 2025SafeMERGE: Preserving Safety Alignment in Fine-Tuned Large Language Models via Selective Layer-Wise Model Mergingcited by 25
- 2025SDD: Self-Degraded Defense against Malicious Fine-tuningcited by 13
- 2025Gradient Surgery for Safe LLM Fine-Tuningcited by 11
- 2025Unforgotten Safety: Preserving Safety Alignment of Large Language Models with Continual Learningcited by 10
- 2025A Guardrail for Safety Preservation: When Safety-Sensitive Subspace Meets Harmful-Resistant Null-Spacecited by 9
- 2025Safety Subspaces are Not Linearly Distinct: A Fine-Tuning Case Studycited by 6
- 2025Scalable Valuation of Human Feedback through Provably Robust Model Alignmentcited by 4
- 2026GR-SAP: Generative Replay for Safety Alignment Preservation during Fine-Tuningcited by 2
12 most cited of 16 All 16 (JSON)
- 2026SLDR: Defending Against Malicious Fine-tuning via Selective Layers Recovery and Dynamic Routing7 Oct 2026
- 2026Beyond Safe Data: Pretraining-Stage Alignment with Regular Safety Reflection17 Jun 2026
- 2026Aligned but Fragile: Enhancing LLM Safety Robustness via Zeroth-Order Optimization28 May 2026
- 2026GR-SAP: Generative Replay for Safety Alignment Preservation during Fine-Tuning10 Mar 2026
- 2025Unforgotten Safety: Preserving Safety Alignment of Large Language Models with Continual Learning10 Dec 2025
- 2025A Guardrail for Safety Preservation: When Safety-Sensitive Subspace Meets Harmful-Resistant Null-Space16 Oct 2025
- 2025Gradient Surgery for Safe LLM Fine-Tuning10 Aug 2025
- 2025SDD: Self-Degraded Defense against Malicious Fine-tuning27 Jul 2025
- 2025SafeTuneBed: A Toolkit for Benchmarking LLM Safety Alignment in Fine-Tuning31 May 2025
- 2025Scalable Valuation of Human Feedback through Provably Robust Model Alignment23 May 2025
- 2025Safety Subspaces are Not Linearly Distinct: A Fine-Tuning Case Study20 May 2025
- 2025SafeMERGE: Preserving Safety Alignment in Fine-Tuned Large Language Models via Selective Layer-Wise Model Merging21 Mar 2025
12 newest of 16 All 16 (JSON)
- 2024Bag of Tricks: Benchmarking of Jailbreak Attacks on LLMscited by 47
- 2024Scaling Trends for Data Poisoning in LLMscited by 26
- 2025Benign Samples Matter! Fine-tuning On Outlier Benign Samples Severely Breaks Safetycited by 22
- 2025BadJudge: Backdoor Vulnerabilities of LLM-as-a-Judgecited by 13
- 2025LoX: Low-Rank Extrapolation Robustifies LLM Safety Against Fine-tuningcited by 12
- 2025CTRAP: Embedding Collapse Trap to Safeguard Large Language Models from Harmful Fine-Tuningcited by 11
- 2024Watermark under Fire: A Robustness Evaluation of LLM Watermarkingcited by 7
- 2026Antibody: Strengthening Defense Against Harmful Fine-Tuning for Large Language Models via Attenuating Harmful Gradient Influencecited by 6
- 2025No, of Course I Can! Deeper Fine-Tuning Attacks That Bypass Token-Level Safety Mechanismscited by 5
- 2026TamperBench: Systematically Stress-Testing LLM Safety Under Fine-Tuning and Tamperingcited by 1
- 2026Low-Agreeableness Persona Conditioning for Safe LLM Fine-Tuningcited by 0
- 2026Low-Agreeableness Persona Conditioning for Safe LLM Fine-Tuning26 Jun 2026
- 2026Antibody: Strengthening Defense Against Harmful Fine-Tuning for Large Language Models via Attenuating Harmful Gradient Influence28 Feb 2026
- 2026TamperBench: Systematically Stress-Testing LLM Safety Under Fine-Tuning and Tampering6 Feb 2026
- 2025LoX: Low-Rank Extrapolation Robustifies LLM Safety Against Fine-tuning18 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
- 2025BadJudge: Backdoor Vulnerabilities of LLM-as-a-Judge1 Mar 2025
- 2025No, of Course I Can! Deeper Fine-Tuning Attacks That Bypass Token-Level Safety Mechanisms26 Feb 2025
- 2024Watermark under Fire: A Robustness Evaluation of LLM Watermarking20 Nov 2024
- 2024Scaling Trends for Data Poisoning in LLMs6 Aug 2024
- 2024Bag of Tricks: Benchmarking of Jailbreak Attacks on LLMs13 Jun 2024
- 2024Booster: Tackling Harmful Fine-tuning for Large Language Models via Attenuating Harmful Perturbationcited by 92
- 2024Content Moderation by LLM: From Accuracy to Legitimacycited by 30
- 2025AsFT: Anchoring Safety During LLM Fine-Tuning Within Narrow Safety Basincited by 18
- 2025Towards Safeguarding LLM Fine-tuning APIs against Cipher Attackscited by 10
- 2024Toward Secure Tuning: Mitigating Security Risks from Instruction Fine-Tuningcited by 8
- 2024Recent Advances in Attack and Defense Approaches of Large Language Modelscited by 5
- 2025Teaching Models to Understand (but not Generate) High-risk Datacited by 2
- 2025The Safety Gap Toolkit: Evaluating Hidden Dangers of Open-Source Modelscited by 2
- 2025Scam2Prompt: A Scalable Framework for Auditing Malicious Scam Endpoints in Production LLMscited by 2
- 2025KAIROS: Scalable Model-Agnostic Data Valuationcited by 1
- 2024Pre-trained Graphformer-based Ranking at Web-scale Search (Extended Abstract)cited by 0
- 2024Generative Pre-trained Ranking Model with Over-parameterization at Web-Scale (Extended Abstract)cited by 0
12 most cited of 14 All 14 (JSON)
- 2026GradShield: Alignment Preserving Finetuning13 May 2026
- 2026Learning to Stay Safe: Adaptive Regularization Against Safety Degradation during Fine-Tuning19 Feb 2026
- 2025Scam2Prompt: A Scalable Framework for Auditing Malicious Scam Endpoints in Production LLMs2 Sep 2025
- 2025Towards Safeguarding LLM Fine-tuning APIs against Cipher Attacks23 Aug 2025
- 2025The Safety Gap Toolkit: Evaluating Hidden Dangers of Open-Source Models8 Jul 2025
- 2025KAIROS: Scalable Model-Agnostic Data Valuation30 Jun 2025
- 2025AsFT: Anchoring Safety During LLM Fine-Tuning Within Narrow Safety Basin10 Jun 2025
- 2025Teaching Models to Understand (but not Generate) High-risk Data5 May 2025
- 2024Toward Secure Tuning: Mitigating Security Risks from Instruction Fine-Tuning6 Oct 2024
- 2024Generative Pre-trained Ranking Model with Over-parameterization at Web-Scale (Extended Abstract)25 Sep 2024
- 2024Pre-trained Graphformer-based Ranking at Web-scale Search (Extended Abstract)25 Sep 2024
- 2024Recent Advances in Attack and Defense Approaches of Large Language Models5 Sep 2024
12 newest of 14 All 14 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2025TRIDENT: Enhancing Large Language Model Safety with Tri-Dimensional Diversified Red-Teaming Data Synthesis
- 2025Safety Alignment Can Be Not Superficial With Explicit Safety Signals
- 2025SABER: Uncovering Vulnerabilities in Safety Alignment via Cross-Layer Residual Connection
- 2024Safety Alignment Should Be Made More Than Just a Few Tokens Deep
- 2025Data Security in Large Language Models: Risks, Defense, and Directions
- 2023Safety Alignment in NLP Tasks: Weakly Aligned Summarization as an In-Context Attack
- 2025Playing the Fool: Jailbreaking LLMs and Multimodal LLMs with Out-of-Distribution Strategy
- 2024Unleashing the Unseen: Harnessing Benign Datasets for Jailbreaking Large Language Models