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
Singapore University of Technology and Design · Indian Institute of Technology Kharagpur
Read the paperPlace an idea next to itCheck your own paper ↗
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
- MMLU (5-shot) leaderboard accuracy 45.6 · rank 62 of 79 papers
- GSM8K (8-shot) leaderboard accuracy 81 · rank 6 of 22 papers
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| apply Safety Arithmetic (HDR + Safe-Align) | Llama2-7b-chat · AdvBench | ASR (%): 19.81 -> 6.15 | Improved |
| apply Safety Arithmetic | Mistral-7B-Instruct-v0.2 · AdvBench | ASR (%): 60.96 -> 24.23 | Improved |
| apply Safety Arithmetic | WizardMath-7B · AdvBench | ASR (%): 79.62 -> 37.69 | Improved |
| apply Safety Arithmetic to an unintentionally edited model | Llama2-7b-chat + ROME edit · AdvBench | ASR (%): 25.19 -> 5.96 | Improved |
| 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.15 | Improved |
| replace TIES-style pruned harm vector with plain task vector in HDR (ablation) | HDR · AdvBench (Llama2) | ASR (%): 12.88 -> 21.73 | Hurt |
| apply Safe-Align (ICV) alone to WizardMath (ablation) | WizardMath-7B · AdvBench | ASR (%): 79.62 -> 79.62 | No clear effect |
| increase top-k percentage of harm-vector parameters (ablation) | HDR · MMLU | MMLU score | Hurt |
| apply Safety Arithmetic | Llama2-7b-chat · TruthfulQA | score: 0.451 -> 0.615 | Improved |
| apply Safety Arithmetic | Llama2-7b-chat · MMLU (5-shot) | accuracy: 0.469 -> 0.456 | No 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.
- SafeMath: Safe Solutions for Unsafe Math Word Problems (EMNLP 2026 · better on 5 of 5 shared results)
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.
- SafeDecoding — SafeDecoding: Defending against Jailbreak Attacks via Safety-Aware Decoding (ACL 2024) · better on 1 of 1 shared result
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?
- Safety is tested in English or a few languages only. · 30 papers state it
- Results come from a few open models, mostly small or mid-sized. · 26 papers state it
- Scores depend on an LLM judge that may be biased. · 23 papers state it
Closest papers by meaning
- Controllable Safety Alignment: Inference-Time Adaptation to Diverse Safety Requirements (ICLR 2025 · similarity 0.93)
- SafeInfer: Context Adaptive Decoding Time Safety Alignment for Large Language Models (AAAI 2025 · similarity 0.92)
- Navigating the Safety Landscape: Measuring Risks in Finetuning Large Language Models (NeurIPS 2024 · similarity 0.92)
- Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To! (ICLR 2024 · similarity 0.92)
- Towards Understanding Safety Alignment: A Mechanistic Perspective from Safety Neurons (NeurIPS 2025 · similarity 0.92)
- Safety Depth in Large Language Models: A Markov Chain Perspective (NeurIPS 2025 · similarity 0.91)
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.