atlas

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

Lisa: Lazy Safety Alignment for Large Language Models against Harmful Fine-tuning Attack

NeurIPS 2024 · Large language models › Instruction and fine-tuning · approach: Safety alignment after fine-tuning · 6 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 Lisa, a bi-state fine-tuning defense that adds a proximal term to alternating alignment/user-data optimization to curb excess drift and reduce harmful scores in fine-tuning-as-a-service.

Problem

Harmful fine-tuning of safety-aligned LLMs: mixing a small fraction of harmful data into a user fine-tuning dataset breaks safety alignment, and fine-tuning-stage defenses are costly and unstable under asymmetric step allocation.

Approach

Alternate between optimizing an alignment dataset and the user dataset (bi-state optimization) and add a proximal term ||w - w_t||^2 to each state so iterates do not drift excessively toward the switching checkpoint, which stabilizes convergence when few steps go to alignment.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add the proximal term to Bi-State optimization (ablation)BSO on SST2 · SST2, harmful ratio average (n=5000)Harmful Score: 46.12 -> 39.58Helped
Add Bi-State optimization and alignment-data guidance (ablation)Lisa on SST2 · SST2, harmful ratio average (n=5000)Finetune Accuracy: 87.02 -> 94.75Helped
Increase proximal intensity (ablation)Lisa on SST2 · SST2, step allocation 100/900Harmful Score: 49.00 -> 36.30Helped
Increase proximal intensity (ablation)Lisa on SST2 · SST2, step allocation 100/900Finetune Accuracy: 96.33 -> 94.50Hurt
Reduce alignment-state steps and increase fine-tuning-state steps (ablation)BSO on SST2 · SST2, harmful ratio p=0.1Harmful Score: 34.00 -> 51.60Hurt
Vary the alignment/fine-tuning step allocation (ablation)Lisa on SST2 · SST2Finetune Accuracy: 3.56; 94.61; 94.50; 94.38; 94.72; 95.07; 86.01Mixed
Vary the alignment/fine-tuning step allocation (ablation)Lisa on GSM8K · GSM8KFinetune Accuracy: 4.30; 18.70; 18.20; 17.30; 15.30; 14.30; 4.20Mixed
Combine Vaccine alignment with Lisa fine-tuningSFT-Lisa on SST2 · SST2, harmful ratio average (n=5000)Harmful Score: 39.58 -> 32.86Helped
Combine Vaccine alignment with Lisa fine-tuningSFT-Lisa on SST2 · SST2, harmful ratio average (n=5000)Finetune Accuracy: 94.75 -> 93.97Hurt
Filter harmful samples before Lisa fine-tuningLisa on SST2 · Filtered fine-tuning data, harmful ratio averageHarmful Score: 39.92 -> 34.18Helped
Use Lisa rather than Vaccine-SFTLlama2-7B on SST2 · SST2, harmful ratio average (n=5000)Harmful Score: 46.86 -> 39.58Helped
Use Lisa rather than BSOLlama2-7B on SST2 · SST2, harmful ratio average (n=5000)Harmful Score: 46.12 -> 39.58Helped

Surprising findings

Limitations

Experimental setup

Datasets: BeaverTails SST2 AGNEWS GSM8K AlpacaEval

Benchmarks: SST2 AGNEWS GSM8K AlpacaEval BeaverTails

Metrics: harmful score finetune accuracy win rate alignment loss gradient norm wall-clock time GPU memory

Baselines: NA-SFT SFT Vaccine-SFT VLGuard EWC BSO

Builds on: Vaccine VLGuard EWC LoRA

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