Adaptive Defense against Harmful Fine-Tuning for Large Language Models via Bayesian Data Scheduler
Not on the map. Why?
Abstract (arXiv)
Harmful fine-tuning poses critical safety risks to fine-tuning-as-a-service for large language models. Existing defense strategies preemptively build robustness via attack simulation but suffer from fundamental limitations: (i) the infeasibility of extending attack simulations beyond bounded threat models due to the inherent difficulty of anticipating unknown attacks, and (ii) limited adaptability to varying attack settings, as simulation fails to capture their variability and complexity. To address these challenges, we propose Bayesian Data Scheduler (BDS), an adaptive tuning-stage defense strategy with no need for attack simulation. BDS formulates harmful fine-tuning defense as a Bayesian inference problem, learning the posterior distribution of each data point's safety attribute, conditioned on the fine-tuning and alignment datasets. The fine-tuning process is then constrained by weighting data with their safety attributes sampled from the posterior, thus mitigating the influence of harmful data. By leveraging the post hoc nature of Bayesian inference, the posterior is conditioned on the fine-tuning dataset, enabling BDS to tailor its defense to the specific dataset, thereby achieving adaptive defense. Furthermore, we introduce a neural scheduler based on amortized Bayesian learning, enabling efficient transfer to new data without retraining. Comprehensive results across diverse attack and defense settings demonstrate the state-of-the-art performance of our approach. Code is available at https://github.com/Egg-Hu/Bayesian-Data-Scheduler.
Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Builds on 67 of its 84 references that are in the map. First posted on arXiv 31 Oct 2025.
Builds on
67 of 84 references.
References · 67
- 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
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
- 2024Qwen2 Technical Reportcited by 2,076
- 2024A Survey on LLM-as-a-Judgecited by 1,384
- 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,235
- 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!cited by 1,106
- 2024Gemma: Open Models Based on Gemini Research and Technologycited by 889
- 2023BeaverTails: Towards Improved Safety Alignment of LLM via a Human-Preference Datasetcited by 828
- 2024LESS: Selecting Influential Data for Targeted Instruction Tuningcited by 514
- 2023XSTest: A Test Suite for Identifying Exaggerated Safety Behaviours in Large Language Modelscited by 477
38 more
- 2023Safety-Tuned LLaMAs: Lessons From Improving the Safety of Large Language Models that Follow Instructionscited by 377
- 2023Data Selection for Language Models via Importance Resamplingcited by 322
- 2024A Survey on Data Selection for Language Modelscited by 230
- 2021Efficient Large Scale Language Modeling with Mixtures of Expertscited by 175
- 2024COLD-Attack: Jailbreaking LLMs with Stealthiness and Controllabilitycited by 162
- 2024Safety Fine-Tuning at (Almost) No Cost: A Baseline for Vision Large Language Modelscited by 160
- 2022COLD Decoding: Energy-based Constrained Text Generation with Langevin Dynamicscited by 159
- 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
- 2024What is in Your Safe Data? Identifying Benign Data that Breaks Safetycited by 114
- 2024Vaccine: Perturbation-aware Alignment for Large Language Models against Harmful Fine-tuning Attackcited by 113
- 2024MATES: Model-Aware Data Selection for Efficient Pretraining with Data Influence Modelscited by 96
- 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
- 2023Test-Time Training on Nearest Neighbors for Large Language Modelscited by 82
- 2024Covert Malicious Finetuning: Challenges in Safeguarding LLM Adaptationcited by 74
- 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
- 2019Stochastic gradient Markov chain Monte Carlocited by 56
- 2023Robust Principles: Architectural Design Principles for Adversarially Robust CNNscited by 46
- 2024Navigating the Safety Landscape: Measuring Risks in Finetuning Large Language Modelscited by 45
- 2024Efficiently Learning at Test-Time: Active Fine-Tuning of LLMscited by 42
- 2024A safety realignment framework via subspace-oriented model fusion for large language modelscited by 40
- 2025Modeling Multi-Task Model Merging as Adaptive Projective Gradient Descentcited by 39
- 2024Data Selection via Optimal Control for Language Modelscited by 38
- 2024Targeted Vaccine: Safety Alignment for Large Language Models against Harmful Fine-Tuning via Layer-wise Perturbationcited by 35
- 2024Immunization against harmful fine-tuning attackscited by 33
- 2024Safety-Aware Fine-Tuning of Large Language Modelscited by 33
- 2020Faster Convergence of Stochastic Gradient Langevin Dynamics for Non-Log-Concave Samplingcited by 32
- 2024Mitigating Fine-tuning based Jailbreak Attack with Backdoor Enhanced Safety Alignmentcited by 31
- 2024No Two Devils Alike: Unveiling Distinct Mechanisms of Fine-tuning Attackscited by 28
- 2025Virus: Harmful Fine-tuning Attack for Large Language Models Bypassing Guardrail Moderationcited by 28
- 2025Beyond Two-Stage Training: Cooperative SFT and RL for LLM Reasoningcited by 28
- 2024Bi-Factorial Preference Optimization: Balancing Safety-Helpfulness in Language Modelscited by 27
- 2023IDEAL: Influence-Driven Selective Annotations Empower In-Context Learners in Large Language Modelscited by 26
- 2025Safer or Luckier? LLMs as Safety Evaluators Are Not Robust to Artifactscited by 25
50 most cited of 67 All 67 (JSON)
Built on by
Citing papers per year: 2026: 12.
12 papers.
- 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 3
- 2026Safeguarding LLM Fine-tuning via Push-Pull Distributional Alignmentcited by 2
- 2026GR-SAP: Generative Replay for Safety Alignment Preservation during Fine-Tuningcited by 2
- 2026Immunizing 3D Gaussian Generative Models Against Unauthorized Fine-Tuning via Attribute-Space Trapscited by 1
- 2026Beyond Expected Information Gain: Stable Bayesian Optimal Experimental Design with Integral Probability Metrics and Plug-and-Play Extensionscited by 0
- 2026Soft Specialists: α-R'enyi Ensembles for Uncertainty-Aware LLM Post-Trainingcited by 0
- 2026Detect, Unlearn, Restore: Defending Text Summarization Models Against Data Poisoningcited by 0
- 2026Defending Against Harmful Supervision Hidden in Benign Samplescited by 0
- 2026Gradient Immunity: Null-Space Resistance to Malicious Fine-Tuningcited by 0
- 2026The Safeguard Worked. Is the LLM System Safer?cited by 0
- 2026SafeTune: A Unified Faithful Library for Auditing and Repairing Safety Drift in Fine-Tuned LLMscited by 0
- 2026The Safeguard Worked. Is the LLM System Safer?1 Sep 2026
- 2026SafeTune: A Unified Faithful Library for Auditing and Repairing Safety Drift in Fine-Tuned LLMs26 Aug 2026
- 2026Gradient Immunity: Null-Space Resistance to Malicious Fine-Tuning5 Aug 2026
- 2026Defending Against Harmful Supervision Hidden in Benign Samples29 Jun 2026
- 2026Detect, Unlearn, Restore: Defending Text Summarization Models Against Data Poisoning24 Jun 2026
- 2026Soft Specialists: α-R'enyi Ensembles for Uncertainty-Aware LLM Post-Training26 May 2026
- 2026Beyond Expected Information Gain: Stable Bayesian Optimal Experimental Design with Integral Probability Metrics and Plug-and-Play Extensions23 Apr 2026
- 2026Immunizing 3D Gaussian Generative Models Against Unauthorized Fine-Tuning via Attribute-Space Traps6 Apr 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
- 2026Surgery: Mitigating Harmful Fine-Tuning for Large Language Models via Attention Sink5 Feb 2026
- 2026Safeguarding LLM Fine-tuning via Push-Pull Distributional Alignment12 Jan 2026