atlas

Research map / Large language models / Instruction and fine-tuning

Antidote: Post-fine-tuning Safety Alignment for Large Language Models against Harmful Fine-tuning Attack

ICML 2025 · Large language models › Instruction and fine-tuning · approach: Safety alignment after fine-tuning · 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 Antidote, a one-shot post-fine-tuning pruning defense that removes top Wanda-scored harmful weights identified on a harmful re-alignment set, making safety robust to fine-tuning hyperparameters like learning rate and epochs.

Problem

Harmful fine-tuning attacks break LLM safety alignment, and existing defenses (alignment-stage and fine-tuning-stage) fail under large learning rates or many epochs, which are needed for good downstream accuracy.

Approach

After fine-tuning, identify harmful weights via Wanda importance computed on a harmful dataset and zero out the top-alpha fraction, so safety recovery does not depend on how the harmful parameters were formed during fine-tuning.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
apply post-fine-tuning Antidote pruningSFT on SST2 with harmful fine-tuning data · SST2, harmful ratio averageHarmful score: 73.52 -> 60.88Helped
apply post-fine-tuning Antidote pruningSFT on SST2 with harmful fine-tuning data · SST2, harmful ratio averageFinetune accuracy: 95.00 -> 93.05Hurt
apply Antidote after fine-tuningGSM8K fine-tuning across learning rates · GSM8K, learning rate averageHarmful score: 72.16 -> 63.00Helped
apply Antidote after fine-tuningGSM8K fine-tuning across learning rates · GSM8K, learning rate averageFinetune accuracy: 17.32 -> 13.86Hurt
apply Antidote after fine-tuningGSM8K fine-tuning across epochs · GSM8K, fine-tuning epochs averageHarmful score: 78.36 -> 64.76Helped
increase the mask ratio from α=0.01 to α=0.25 (ablation)Antidote · SST2Harmful score: 73.60 -> 57.00Helped
increase the mask ratio from α=0.01 to α=0.25 (ablation)Antidote · SST2Finetune accuracy: 94.95 -> 80.05Hurt
replace harmful re-alignment data with fine-tuning data to calculate Wanda scores (ablation)Antidote · Harmful ratio averageHarmful score: 67.35 -> 68.03Hurt
replace harmful re-alignment data with benign data to calculate Wanda scores (ablation)Antidote · Harmful ratio averageHarmful score: 67.35 -> 68.48Hurt
use 1k harmful samples instead of 0 in the re-alignment dataset (ablation)Antidote · Harmful fine-tuningHarmful score: 72.1 -> 69.30Helped
combine Vaccine alignment with SFT fine-tuning before Antidote (ablation)Antidote · Harmful ratio averageHarmful score: 63.43 -> 60.97Helped
combine Vaccine alignment with SFT fine-tuning before Antidote (ablation)Antidote · Harmful ratio averageFinetune accuracy: 92.74 -> 92.93Helped

Surprising findings

Limitations

Experimental setup

Datasets: BeaverTails HH-RLHF SST2 AGNEWS GSM8K AlpacaEval

Benchmarks: SST2 AGNEWS GSM8K AlpacaEval BeaverTails

Metrics: harmful score finetune accuracy clock time GPU memory harmful embedding drift

Baselines: SFT Vaccine RepNoise Lisa LDIFS

Builds on: Wanda Vaccine RepNoise Lisa LDIFS

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