atlas

Research map / Adversarial robustness and security / Attacks on text and graphs

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

NeurIPS 2025 · Adversarial robustness and security › Attacks on text and graphs · approach: LLM jailbreak and injection defense · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Bayesian Data Scheduler (BDS), a tuning-stage defense that infers posterior data weights via SGLD (and an amortized neural scheduler) to down-weight harmful fine-tuning data without attack simulation.

Problem

Harmful fine-tuning of LLMs under fine-tuning-as-a-service, where user-uploaded data contains unknown fractions of harmful examples; existing defenses rely on attack simulation and degrade as harmful ratio or attack varies.

Approach

Formulates harmful fine-tuning defense as Bayesian inference over per-example safety weights conditioned on the fine-tuning and alignment datasets, sampled via SGLD; weights are derived from loss gaps between safety-aware and safety-agnostic models, with a softmax transform giving relative (bidirectional) weighting; an amortized neural network predicts weights for new data without retraining.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use BDS instead of BoosterHarmful fine-tuning defense · SST2, p=0.1Harmful Score: 8.30 -> 1.20Helped
Use BDS instead of BoosterHarmful fine-tuning defense · AGNews, p=0.1Finetune Accuracy: 87.20 -> 89.10Helped
Use BDS instead of BoosterHarmful fine-tuning defense · Alpaca, p=0.1Harmful Score: 36.70 -> 2.30Helped
Use BDS instead of BoosterHarmful fine-tuning defense · Harmful ratio p=0.9Harmful Score: 75.90 -> 1.50Helped
Use BDS instead of BoosterHarmful fine-tuning defense on model architectures · Gemma2-9B, p=0.1Harmful Score: 11.20 -> 1.30Helped
Use BDS instead of BoosterHarmful fine-tuning defense · ViGGO, p=0.3ROUGE-1: 0.84 -> 0.88Helped
Use BDS instead of BoosterHarmful fine-tuning defense · CACAPO, p=0.3Harmful Score: 52.60 -> 1.40Helped
Use amortized neural scheduler instead of scalar schedulerBDS · SST2, p=0.1Harmful Score: 1.20 -> 1.70No clear effect
Transfer neural scheduler trained on SST2 to unseen SST2 data without retrainingBDS neural scheduler · SST2 unseen dataHarmful Score: 2.50Helped
Transfer neural scheduler trained on SST2 to AGNEWS without retrainingBDS neural scheduler · AGNEWS OOD transferHarmful Score: 2.80Helped

Surprising findings

Limitations

Experimental setup

Datasets: BeaverTails SST2 AGNEWS GSM8K AlpacaEval GEM (ViGGO, CACAPO) RealToxicityPrompts AdvBench

Benchmarks: SST2 AGNEWS GSM8K AlpacaEval GEM BeaverTails test

Metrics: Harmful Score Finetune Accuracy ROUGE-1

Baselines: SFT Lisa RepNoise Vaccine Booster Seal LLM-As-A-Judge SAFT

Builds on: Booster Lisa SG-MCMC / SGLD amortized Bayesian learning

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy