paper-with-me

홈 › Papers

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

2025-10-31 · Zixuan Hu, Li Shen, Zhenyi Wang, Yongxian Wei, Dacheng Tao 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.

📄 PDF Abstract BibTeX arXiv:2510.27172

Code (0)

등록된 구현이 없습니다.

Tasks

Bayesian Inference

Similar Papers 제목 키워드 기반

One Step to the Side: Why Defenses Against Malicious Finetuning Fail Under Adaptive Adversaries

2026-05-14 · Itay Zloczower, Eyal Lenga, Gilad Gressel, Yisroel Mirsky arxiv

Model providers increasingly release open weights or allow users to fine-tune foundation models through APIs. Although these models are safety-aligned before release, their safeguards can often be removed by fine-tuning …

Immunization against harmful fine-tuning attacks

2024-02-26 · Domenic Rosati, Jan Wehner, Kai Williams, Łukasz Bartoszcze 외

Large Language Models (LLMs) are often trained with safety guards intended to prevent harmful text generation. However, such safety training can be removed by fine-tuning the LLM on harmful datasets. While this emerging …

Text Generation

SDD: Self-Degraded Defense against Malicious Fine-tuning

2025-07-27 · Zixuan Chen, Weikai Lu, Xin Lin, Ziqian Zeng arxiv

Open-source Large Language Models (LLMs) often employ safety alignment methods to resist harmful instructions. However, recent research shows that maliciously fine-tuning these LLMs on harmful data can easily bypass thes…

MetaDefense: Defending Finetuning-based Jailbreak Attack Before and During Generation

2025-10-09 · Weisen Jiang, Sinno Jialin Pan arxiv

This paper introduces MetaDefense, a novel framework for defending against finetuning-based jailbreak attacks in large language models (LLMs). We observe that existing defense mechanisms fail to generalize to harmful que…

Response Generation

Self-Guided Defense: Adaptive Safety Alignment for Reasoning Models via Synthesized Guidelines

2025-11-26 · Yuhang Wang, Yanxu Zhu, Dongyuan Lu, Jitao Sang arxiv

Reasoning models have demonstrated remarkable capabilities in complex reasoning tasks. However, ensuring their safety against adversarial jailbreak prompts remains a critical challenge. Due to the covert and deceptive na…