mlsanityData to 7 Oct 2026

Adaptive Defense against Harmful Fine-Tuning for Large Language Models via Bayesian Data Scheduler

arXiv 2510.27172 ↗First posted 31 Oct 2025cs.LG cs.AIcited by 12

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

  1. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  2. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  3. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  4. 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
  5. 2024Qwen2 Technical Reportcited by 2,076
  6. 2024A Survey on LLM-as-a-Judgecited by 1,384
  7. 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,235
  8. 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!cited by 1,106
  9. 2024Gemma: Open Models Based on Gemini Research and Technologycited by 889
  10. 2023BeaverTails: Towards Improved Safety Alignment of LLM via a Human-Preference Datasetcited by 828
  11. 2024LESS: Selecting Influential Data for Targeted Instruction Tuningcited by 514
  12. 2023XSTest: A Test Suite for Identifying Exaggerated Safety Behaviours in Large Language Modelscited by 477
38 more
  1. 2023Safety-Tuned LLaMAs: Lessons From Improving the Safety of Large Language Models that Follow Instructionscited by 377
  2. 2023Data Selection for Language Models via Importance Resamplingcited by 322
  3. 2024A Survey on Data Selection for Language Modelscited by 230
  4. 2021Efficient Large Scale Language Modeling with Mixtures of Expertscited by 175
  5. 2024COLD-Attack: Jailbreaking LLMs with Stealthiness and Controllabilitycited by 162
  6. 2024Safety Fine-Tuning at (Almost) No Cost: A Baseline for Vision Large Language Modelscited by 160
  7. 2022COLD Decoding: Energy-based Constrained Text Generation with Langevin Dynamicscited by 159
  8. 2024Tamper-Resistant Safeguards for Open-Weight LLMscited by 132
  9. 2024Safe LoRA: the Silver Lining of Reducing Safety Risks when Fine-tuning Large Language Modelscited by 122
  10. 2024What is in Your Safe Data? Identifying Benign Data that Breaks Safetycited by 114
  11. 2024Vaccine: Perturbation-aware Alignment for Large Language Models against Harmful Fine-tuning Attackcited by 113
  12. 2024MATES: Model-Aware Data Selection for Efficient Pretraining with Data Influence Modelscited by 96
  13. 2023Fine-tuning can cripple your foundation model; preserving features may be the solutioncited by 92
  14. 2024Booster: Tackling Harmful Fine-tuning for Large Language Models via Attenuating Harmful Perturbationcited by 92
  15. 2024Lisa: Lazy Safety Alignment for Large Language Models against Harmful Fine-tuning Attackcited by 89
  16. 2024Harmful Fine-tuning Attacks and Defenses for Large Language Models: A Surveycited by 86
  17. 2023Test-Time Training on Nearest Neighbors for Large Language Modelscited by 82
  18. 2024Covert Malicious Finetuning: Challenges in Safeguarding LLM Adaptationcited by 74
  19. 2024Antidote: Post-fine-tuning Safety Alignment for Large Language Models against Harmful Fine-tuningcited by 71
  20. 2024SEAL: Safety-enhanced Aligned LLM Fine-tuning via Bilevel Data Selectioncited by 64
  21. 2019Stochastic gradient Markov chain Monte Carlocited by 56
  22. 2023Robust Principles: Architectural Design Principles for Adversarially Robust CNNscited by 46
  23. 2024Navigating the Safety Landscape: Measuring Risks in Finetuning Large Language Modelscited by 45
  24. 2024Efficiently Learning at Test-Time: Active Fine-Tuning of LLMscited by 42
  25. 2024A safety realignment framework via subspace-oriented model fusion for large language modelscited by 40
  26. 2025Modeling Multi-Task Model Merging as Adaptive Projective Gradient Descentcited by 39
  27. 2024Data Selection via Optimal Control for Language Modelscited by 38
  28. 2024Targeted Vaccine: Safety Alignment for Large Language Models against Harmful Fine-Tuning via Layer-wise Perturbationcited by 35
  29. 2024Immunization against harmful fine-tuning attackscited by 33
  30. 2024Safety-Aware Fine-Tuning of Large Language Modelscited by 33
  31. 2020Faster Convergence of Stochastic Gradient Langevin Dynamics for Non-Log-Concave Samplingcited by 32
  32. 2024Mitigating Fine-tuning based Jailbreak Attack with Backdoor Enhanced Safety Alignmentcited by 31
  33. 2024No Two Devils Alike: Unveiling Distinct Mechanisms of Fine-tuning Attackscited by 28
  34. 2025Virus: Harmful Fine-tuning Attack for Large Language Models Bypassing Guardrail Moderationcited by 28
  35. 2025Beyond Two-Stage Training: Cooperative SFT and RL for LLM Reasoningcited by 28
  36. 2024Bi-Factorial Preference Optimization: Balancing Safety-Helpfulness in Language Modelscited by 27
  37. 2023IDEAL: Influence-Driven Selective Annotations Empower In-Context Learners in Large Language Modelscited by 26
  38. 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

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 12.

12 papers.