atlas

Research map / Large language models / Language, safety and interpretability

Navigating the Safety Landscape: Measuring Risks in Finetuning Large Language Models

NeurIPS 2024 · Large language models › Language, safety and interpretability · approach: Jailbreak elicitation and risk · 2 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.

Discovers a "safety basin" in LLM weight space, where random weight perturbations preserve safety until a sharp drop, and proposes the VISAGE safety metric (average safety margin over random perturbation directions) to measure finetuning risk.

Problem

Finetuning with a few adversarial or even benign examples can compromise LLM safety alignment; there is no principled, task-agnostic way to measure how risky finetuning is for a given aligned model.

Approach

Visualize the LLM safety landscape by perturbing weights along random and interpolated directions, revealing a flat "safety basin" around the aligned model that sharply collapses outside; define VISAGE as the average safety margin over sampled perturbations, and use checkpoint trajectories projected onto the landscape to explain how finetuning drags models out of the basin.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Finetune on 10 harmful examplesLLaMA2-7B-chat · AdvBench Adv 80ASR: 0 -> 90.0Hurt
Increase harmful finetuning data from 10 to 100 examplesLLaMA2-7B-chat · AdvBench Adv 520ASR: 85.2 -> 95.4Hurt
Finetune on 10 harmful examplesVicuna-7B-v1.5 · AdvBench Adv 80ASR: 5.0 -> 95.0Hurt
Finetune on 100 harmful and 100 safe examples instead of harmful data aloneLLaMA2-7B-chat · AdvBench Adv 520ASR: 95.4 -> 0.2Helped
Finetune on 100 harmful and 100 safe examples instead of harmful data aloneVicuna-7B-v1.5 · AdvBench Adv 520ASR: 96.7 -> 1.2Helped
Remove the default system prompt (ablation)LLaMA2-7B-chat · Safety landscapeVisage: 85.32 -> 80.68; 4.64 pp dropHurt
Replace the default system prompt with a roleplay prompt (ablation)LLaMA2-7B-chat · Safety landscapeVisage: 85.32 -> 86.56Helped
Use a roleplay prompt (ablation)LLaMA3-8B-instruct · Safety landscapeVisage: 2.7 pp dropHurt
Use the LLaMA2 system prompt (ablation)LLaMA3-8B-instruct · Safety landscapeVisage: 9.3 pp increaseHelped
Remove the default system prompt (ablation)Mistral-7B-instruct-v0.2 · Safety landscapeVisage: 82.04 -> 64.90Hurt
Replace the default system prompt with a roleplay prompt (ablation)Mistral-7B-instruct-v0.2 · Safety landscapeVisage: 82.04 -> 75.54Hurt
Use the LLaMA2 system prompt (ablation)Mistral-7B-instruct-v0.2 · Safety landscapeVisage: 82.04 -> 73.69Hurt

Surprising findings

Limitations

Experimental setup

Datasets: Anthropic red-teaming dataset (harmful samples) AdvBench MT-Bench MMLU (abstract_algebra, high_school_us_history, us_foreign_policy) POSE benchmark JailbreakBench

Benchmarks: AdvBench Harmful Behaviors (80 and 520 prompts) JailbreakBench POSE MMLU MT-Bench

Metrics: attack success rate (refusal keyword detection) VISAGE score perplexity LLaMA Guard 2 unsafe rate

Baselines: LLM Judge Llama Guard 2

Builds on: AdvBench GCG PAIR Safety prompt optimization (prompt tuning for safety) Llama Guard

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