Beyond Over-Refusal: Scenario-Based Diagnostics and Post-Hoc Mitigation for Exaggerated Refusals in LLMs

Shuzhou Yuan, Ercong Nie, Yinuo Sun, Chenxuan Zhao, William LaCroix, Michael FärberarXiv 2025 · DOI

Abstract

Large Language Models (LLMs) are increasingly aligned to prevent harmful outputs, but this often leads to "exaggerated refusals"—the rejection of harmless prompts containing sensitive keywords. This paper introduces the Exaggerated Safety Benchmark (XSB) and its multi-turn counterpart (MS-XSB) to systematically evaluate this phenomenon. We demonstrate that post-hoc explanation methods can identify specific "trigger" tokens responsible for these refusals. Furthermore, we propose three lightweight, inference-time mitigation strategies—Ignore-Word Instruction, Prompt Rephrasing, and Attention Steering—that significantly improve model helpfulness on benign requests without compromising core safety guardrails.

Introduction

The rapid deployment of LLMs has necessitated robust safety alignment. However, current alignment techniques often result in models that are overly cautious. This "over-refusal" occurs when a model prioritizes specific sensitive tokens (e.g., "bomb," "Taliban") over the actual intent of the user's query (e.g., "translate this sentence" or "explain the history"). This paper seeks to move beyond simple binary safety classifications by diagnosing the root causes of over-refusal and providing practical, training-free solutions.

The Challenge of Exaggerated Refusal

Exaggerated refusal is not just a minor annoyance; it represents a failure of the model to understand context and intent. For example, a request to "explain the history of the Taliban" is a legitimate educational query, yet many models refuse it because the word "Taliban" triggers a safety filter. This behavior stems from the model over-focusing on specific keywords rather than the holistic meaning of the prompt.

Post-hoc explanation of over-refusal on a historical query.

Diagnostics: Identifying Trigger Tokens

To understand why models fail, the researchers employed post-hoc explanation techniques including SHAP, Feature Ablation, and Integrated Gradients. These methods help pinpoint "refusal-inducing tokens." The study found that SHAP was particularly effective, identifying the correct trigger words with 82% accuracy. By visualizing attention scores, it becomes clear that the model's internal focus is disproportionately weighted toward specific keywords rather than the surrounding instructional context.

Mitigation Strategies

Once trigger tokens are identified, the paper proposes three model-agnostic, inference-time interventions that do not require parameter access or retraining:

  1. Ignore-Word Instruction: The system prompt is modified to explicitly tell the model to ignore the flagged tokens (e.g., "ignore the word 'bomb'").
  2. Prompt Rephrasing: A secondary LLM rewrites the user's query to neutralize trigger words while maintaining the original intent.
  3. Attention Steering with Logit Suppression: This technical approach involves down-weighting the model's attention on identified trigger tokens and applying mild logit suppression to prevent the generation of refusal-typical starting sequences.

Benchmarks: XSB and MS-XSB

The authors developed two benchmarks to test these dynamics across various contexts:

  • XSB (Exaggerated Safety Benchmark): Contains 580 single-turn prompts across 12 categories, including homonyms, figurative language, and historical events. Each prompt is annotated with "Focus" keywords that act as refusal triggers.
  • MS-XSB (Multi-turn Scenario-based XSB): A more complex dataset of 600 prompts within 30 realistic scenarios (e.g., roleplaying in a magical civilization). This evaluates how safety calibration holds up over long conversations.
Multi-turn scenario demonstrating intent-based safety calibration.

Key Insights and Results

The researchers evaluated four state-of-the-art models: DeepSeek-R1, Llama-3.3, Qwen2-VL, and DeepSeek-Coder.

  • Context Decay: In MS-XSB, models often start correctly but begin to over-refuse as the conversation progresses. Qwen2-VL's compliance rate dropped to a staggering 27% in long-context, multi-turn settings, highlighting a major weakness in current context-dependent safety alignment.
  • Model Personalities: DeepSeek-R1 showed the most balanced behavior, while Qwen2-VL was highly sensitive, refusing over 50% of safe prompts in certain categories.
  • Effectiveness of Mitigation: Prompt Rephrasing was highly effective, increasing Llama-3.1-8B’s compliance on safe prompts from 91.6% to 98.7%.
  • The Safety-Helpfulness Balance: While mitigation improves helpfulness, it can slightly increase the risk of accepting truly harmful prompts. Attention Steering was found to offer the best balance between these two competing goals.

Conclusion

This research provides a framework for diagnosing and fixing exaggerated refusals in LLMs. By focusing on intent over keywords and utilizing inference-time interventions, developers can create models that are both safe and genuinely helpful across a wider range of realistic scenarios. Future work will expand these benchmarks to multimodal contexts where visual cues may further complicate safety dynamics.

Summary updated

BibTeX
@misc{yuan2025beyond,
  author = {Shuzhou Yuan and Ercong Nie and Yinuo Sun and Chenxuan Zhao and William LaCroix and Michael Färber},
  title = {{Beyond Over-Refusal: Scenario-Based Diagnostics and Post-Hoc Mitigation for Exaggerated Refusals in LLMs}},
  year = {2025},
  eprint = {2510.08158},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.08158},
}
Figure