atlas

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

Assessing the Brittleness of Safety Alignment via Pruning and Low-Rank Modifications

ICML 2024 · Large language models › Instruction and fine-tuning · approach: Calibration and knowledge in LLM tuning · 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.

Identifies sparse safety-critical neurons and low-rank components in Llama2-chat models by disentangling safety from utility via set difference and orthogonal projection, showing that removing ~3% of neurons or ~2.5% of ranks drastically raises attack success while preserving utility.

Problem

Safety alignment in LLMs is brittle (jailbreaks and fine-tuning attacks), and it is unclear which weight regions are responsible for safety, given the overlap between safety and general utility capabilities.

Approach

Attribute safety behavior to neurons (Wanda/SNIP scores) and ranks (ActSVD) on safety and utility calibration data, then isolate safety-critical regions via set difference (neurons) and orthogonal projection (ranks) so that removing them harms safety but not utility.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
remove safety-critical neurons isolated by SNIP set differenceLlama2-7B-chat · AdvBench eval, set difference (p=6, q=5)ASR Adv-Suffix: 0.99Helped
remove safety-critical neurons isolated by SNIP set differenceLlama2-7B-chat · Six-task average zero-shot accuracy, set difference (p=6, q=5)accuracy: 0.53Hurt
remove safety-critical ranks orthogonal to utility ranksLlama2-7B-chat · AdvBench eval, 6 safety ranks removed and 96 utility ranks retainedASR Vanilla: 0.71Helped
remove safety-critical ranks orthogonal to utility ranksLlama2-7B-chat · Six-task average zero-shot accuracy, 6 safety ranks removed and 96 utility ranks retainedaccuracy: 0.58No clear effect
remove the top safety-scored neurons instead of isolating safety from utility (ablation)Llama2-7B-chat · Six-task average zero-shot accuracyaccuracy: 0.58 -> about $0.35$Hurt
remove the top safety-critical rank (ablation)Llama2-7B-chat · Six-task average zero-shot accuracyaccuracy: $0.58$ -> $0.38$Hurt
prune neurons with the lowest safety importance scores rather than random neurons (ablation)Llama2-7B-chat · AdvBench eval, adversarial decoding and suffix attacksASRHelped
prune the least safety-relevant ActSVD ranks (ablation)Llama2-7B-chat · AdvBench eval, adversarial decodingASR Adv-DecodingHelped
use safety-short judgment-only data instead of safety-full responses for set-difference attribution (ablation)Llama2-7B-chat · Set-difference pruningASR and average zero-shot accuracyNo clear effect
use safety-short instead of safety-full data when pruning the least safety-critical neurons (ablation)Llama2-7B-chat · AdvBench eval, least-safety-critical neuron pruningASR Adv-Suffix and ASR Adv-DecodingMixed
freeze safety-critical neurons during Alpaca fine-tuning (n=10) (ablation)Llama2-7B-chat · AdvBench eval, ASR VanillaASR Vanilla: $0.53$ -> $0.23$Helped
freeze safety-critical neurons during Alpaca fine-tuning (n=50 or n=100) (ablation)Llama2-7B-chat · AdvBench eval, ASR VanillaASR Vanilla: $0.91$ -> $0.85$; $0.94$ -> $0.89$No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: AdvBench Alpaca-Cleaned

Benchmarks: AdvBench BoolQ RTE HellaSwag WinoGrande ARC Challenge OpenBookQA

Metrics: attack success rate (ASR_Vanilla) ASR_Adv-Suffix ASR_Adv-Decoding average zero-shot accuracy

Baselines: Wanda (top) SNIP (top) attention head probing random pruning

Builds on: Wanda SNIP ActSVD GCG

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