scimeatlas

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

Safety Arithmetic: A Framework for Test-time Safety Alignment of Language Models by Steering Parameters and Activations

Rima Hazra, Sayan Layek, Somnath Banerjee, Soujanya Poria

EMNLP 2024Large language models › Language, safety and interpretabilityapproach: Safety alignment of LLMsopen problems in this approach37 citations (OpenAlex)

Singapore University of Technology and Design · Indian Institute of Technology Kharagpur

Read the paperPlace an idea next to itCheck your own paper ↗

15measured effects
9improved
3no clear effect
3hurt

AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

On benchmark leaderboards

Measured effects reported in the paper

What was changedWhereMeasuredEffect
apply Safety Arithmetic (HDR + Safe-Align)Llama2-7b-chat · AdvBenchASR (%): 19.81 -> 6.15Improved
apply Safety ArithmeticMistral-7B-Instruct-v0.2 · AdvBenchASR (%): 60.96 -> 24.23Improved
apply Safety ArithmeticWizardMath-7B · AdvBenchASR (%): 79.62 -> 37.69Improved
apply Safety Arithmetic to an unintentionally edited modelLlama2-7b-chat + ROME edit · AdvBenchASR (%): 25.19 -> 5.96Improved
add Safe-Align after HDR (full framework vs HDR only) (ablation)Safety Arithmetic · DangerousQA (Llama2)ASR: 6% -> 4.5%Improved
add Safe-Align after HDR (full framework vs HDR only) (ablation)Safety Arithmetic · HarmBench (Llama2)ASR: 21.30% -> 8.18%Improved
add HDR before Safe-Align (full framework vs Safe-Align only) (ablation)Safety Arithmetic · AdvBench (Llama2)ASR (%): 14.62 -> 6.15Improved
replace TIES-style pruned harm vector with plain task vector in HDR (ablation)HDR · AdvBench (Llama2)ASR (%): 12.88 -> 21.73Hurt
apply Safe-Align (ICV) alone to WizardMath (ablation)WizardMath-7B · AdvBenchASR (%): 79.62 -> 79.62No clear effect
increase top-k percentage of harm-vector parameters (ablation)HDR · MMLUMMLU scoreHurt
apply Safety ArithmeticLlama2-7b-chat · TruthfulQAscore: 0.451 -> 0.615Improved
apply Safety ArithmeticLlama2-7b-chat · MMLU (5-shot)accuracy: 0.469 -> 0.456No clear effect

Later papers that compared with this method

1 later accepted paper reports Safety-Arithmetic as a baseline in their results tables; 1 of them report a better number on most of the results they share with it.

Earlier methods this paper compares with

Named baselines from earlier accepted papers in this paper's results tables: better than 1 of 1 on most shared results.

Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.

Open problems in safety alignment of LLMs

How can LLM safety be shown to hold across languages, multi-turn use and models beyond small open ones?

All 5 open problems and what was already tried →

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