Deactivating Refusal Triggers: Understanding and Mitigating Overrefusal in Safety Alignment
Organizations: University of California, Santa Barbara · Johns Hopkins University · Michigan State University · University of Mississippi
Abstract
Safety alignment aims to ensure that large language models (LLMs) refuse harmful requests by post-training on harmful queries paired with refusal answers. Although safety alignment is widely adopted in industry, the overrefusal problem where aligned LLMs also reject benign queries after safety alignment post-training, remains insufficiently studied. Such an issue degrades the usability of safety alignment in real-world applications. In this paper, we examine how overrefusal arises under safety alignment, and propose a mitigation strategy inspired by our findings. We define refusal triggers as linguistic cues in the training data that elicit refusal responses, safety alignment encourages LLMs to associate refusal triggers within a training sample with refusal responses, leading aligned LLMs to refuse harmful queries. However, the refusal triggers include not only harmful linguistic cues but also non-harmful cues, therefore causing overrefusal to benign queries. Building on this mechanistic analysis, we propose a method that explicitly considers refusal triggers in the safety alignment fine-tuning. Empirical results demonstrate that our approach achieves a more favorable trade-off between defense against jailbreak attacks and responsiveness to benign queries, outperforming prior methods. Warning: this paper contains harmful and biased sentences.
Figures & tables
| Baseline | ||||
|---|---|---|---|---|
| SFT | RT | 3.63 | 100.00 | 71.37 |
| -Level1 | 3.23 | 100.00 | 70.56 | |
| -Level2 | 3.21 | 99.60 | 64.26 | |
| -Level3 | 2.01 | 96.39 | 45.38 | |
| P-SFT | RT | 22.18 | 94.73 | 66.94 |
| -Level1 | 16.63 | 94.35 | 66.13 |
| RR | ASR | Avg. | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Model | Method | Koala | JBench-B | GSM-8k | SQL-1k | OrBench-H | SorryBench | JBench-H | HEX-PHI | |
| Llama3-U | Baseline | 5 | 10 | 0 | 0.8 | 16.83 | 85.71 | 80 | 84.55 | 89.95 |
| as Alpaca | 57.22 | 96 | 95.75 | 99.1 | 99.85 | 1.36 | 0 | 0.00 | 90.04 | |
| as Our Data | 21.11 | 56 | 0.99 | 5.4 | 59.21 | 7.95 | 3 | 2.12 | 32.90 | |
| Qwen2.5-U | Baseline | 3.33 | 6 | 0 | 0 | 10.39 | 90.67 | 78 | 87.88 | 89.46 |
| as Alpaca | 43.33 | 90 | 30.4 | 74.1 | 99.55 | 0.45 | 0 | 0.30 | 67.73 | |
| RR | ASR | Avg | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Setting / Model | Method | Koala | JBench-B | GSM-8k | SQL-1k | OrBench-H | SorryBench | JBench-H | HEX-PHI | |
| P-SFT, Llama2 | Baseline | 7.77 | 56 | 0.23 | 0.3 | 4.93 | 47.56 | 36 | 62.42 | 53.80 |
| as Alpaca | 33.33 | 92 | 51.18 | 10.2 | 99.85 | 18.22 | 0 | 3.33 | 77.03 | |
| as Our Data | 12.22 | 39 | 0.99 | 3.4 | 55.34 | 25.11 | 5 | 5.76 | 36.71 | |
| RLVR, Llama3-U | Baseline | 5 | 10 | 0 | 0.8 | 16.83 | 85.71 | 80 | 84.55 | 70.72 |
| as Alpaca | 6.67 | 67 | 0 | 2.1 | 98.48 | 8.22 | 0.00 | 0.30 | 45.69 | |
| General | Koala (RR) | SorryBench (ASR) |
|---|---|---|
| Ours | 21.11 | 7.95 |
| -level2 | 54.56 | 3.46 |
| -level3 | 60.34 | 4.23 |
LLM Safety Alignment
Large language model safety alignment trains and evaluates systems to follow human policies while resisting harmful requests and misuse.
See all 344 papers