Addressing large language models' over-refusal (OverKill)Navigating the OverKill in Large Language Models
AI summary
The researchers propose a training-free, model-agnostic Self-Contrastive Decoding (Self-CD) strategy that mitigates large language models' over-refusal of benign questions, reducing the refusal rate by 20% on average, and has almost no impact on safety. The study examines how models process and judge query safety, finding that models have internal shortcuts and over-focus on harmful words such as kill, while safety-emphasizing prompts exacerbate over-refusal. Self-CD first amplifies the difference in the model's output distributions under system prompts that include or omit safety emphasis, extracts this over-focus, and then weakens it through contrastive decoding to obtain the final next-token prediction.