Understanding and Mitigating Overrefusal in LLMs from an Unveiling Perspective of Safety Decision Boundary

Licheng Pan, Yongqi Tong, Xin Zhang, Xiaolu Zhang, Jun Zhou, Zhixuan Chu

Abstract

Large language models (LLMs) have demonstrated remarkable capabilities across a wide range of tasks, yet they often refuse to answer legitimate queries—a phenomenon known as overrefusal. Overrefusal typically stems from over-conservative safety alignment, causing models to treat many reasonable prompts as potentially risky. To systematically understand this issue, we probe and leverage the models' safety decision boundaries to analyze and mitigate overrefusal. Our findings reveal that overrefusal is closely tied to misalignment at these boundary regions, where models struggle to distinguish subtle differences between benign and harmful content. Building on these insights, we present RASS, an automated framework for prompt generation and selection that strategically targets overrefusal prompts near the safety boundary. By harnessing steering vectors in the representation space, RASS efficiently identifies and curates boundary-aligned prompts, enabling more effective and targeted mitigation of overrefusal. This approach not only provides a more precise and interpretable view of model safety decisions but also seamlessly extends to multilingual scenarios. We have explored the safety decision boundaries of various LLMs and construct the MORBench evaluation set to facilitate robust assessment of model safety and helpfulness across multiple languages. Code and datasets are available at https://github.com/Master-PLC/RASS.

Introduction: The Challenge of Overrefusal

Safety alignment in Large Language Models (LLMs) is a double-edged sword. While essential for preventing "jailbreaking"—where models are coerced into providing harmful instructions—over-conservative training often results in overrefusal. This occurs when a model refuses a benign query, such as "How do I kill a process in Linux?", simply because it contains a keyword like "kill."

Current safety mechanisms often act as "blunt instruments," lacking the nuance required to distinguish between truly harmful content and benign content that merely appears suspicious. This misalignment occurs at the internal "Safety Decision Boundary."

Conceptual shifts of jailbreaking and overrefusal relative to the safety decision boundary.

Furthermore, safety research has been predominantly English-centric, leaving a gap in understanding how LLMs handle safety across diverse languages and cultures.

Methodology: Probing the Decision Boundary

To address these issues, we propose an "Unveiling Perspective" that examines the model's internal representation space rather than just its outputs.

Representation-Aware Safety Sampling (RASS)

We introduced RASS, a four-stage pipeline designed to find "hard" overrefusal cases that sit precisely on the safety boundary:

  1. Seed Generation: Toxic prompts are generated across seven languages.
  2. Prompt Rewriting: These toxic prompts are rewritten into "seemingly harmful but actually benign" versions.
  3. Anchor Construction: Multi-model consensus identifies prompts that consistently trigger refusals.
  4. Steering Vector Selection: We calculate a "steering vector" in the representation space pointing from toxic clusters toward overrefusal clusters. Prompts aligning most strongly with this vector are selected as they represent the most challenging "borderline" cases.

MORBENCH: A Multilingual Benchmark

We developed MORBENCH (Multilingual Over-Refusal Benchmark), consisting of 8,400 prompts across seven languages (English, Chinese, French, Italian, German, Spanish, and Japanese) and 12 safety categories. MORBENCH is designed to be significantly more challenging than existing benchmarks like OR-Bench and XSTEST.

Results and Insights

Our analysis reveals that overrefusal is a geometric property of the model's internal space. Prompts triggering overrefusal are "neighbors" to harmful prompts in the representation space.

PCA visualization of benign, harmful, and overrefusal-inducing prompts in the representation space.

Key findings include:

  • Exposing Vulnerabilities: MORBENCH revealed much higher refusal rates than previous benchmarks. For instance, LLaMA2-7B's refusal rate jumped from ~6% on OR-Bench to 61.3% on MORBENCH.
  • Effective Mitigation: Fine-tuning models using Direct Preference Optimization (DPO) with RASS-curated data led to a 2.5% to 5.9% relative improvement in helpfulness without compromising safety.
  • Multilingual Inconsistency: Safety boundaries vary by language; models are often more "trigger-happy" with refusals in Japanese and Chinese compared to English.
  • Linear Separability: The safety boundary is largely linearly separable, making simple vector math effective for identifying and steering model behavior.

Conclusion

By targeting the safety decision boundary, RASS provides a precise method for mitigating overrefusal. While currently requiring "white-box" access to model internals and relying on linear assumptions, this work sets the stage for more nuanced, multilingual safety alignment. Future research will explore non-linear manifolds and extend this framework to multimodal models and low-resource languages.

Summary updated

BibTeX
@inproceedings{pan2025understanding,
  author = {Licheng Pan and Yongqi Tong and Xin Zhang and Xiaolu Zhang and Jun Zhou and Zhixuan Chu},
  title = {{Understanding and Mitigating Overrefusal in LLMs from an Unveiling Perspective of Safety Decision Boundary}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2025},
}
Figure