OR-Bench: An Over-Refusal Benchmark for Large Language Models

Justin Cui, Wei-Lin Chiang, Ion Stoica, Cho-Jui Hsieh
2/12/2026

No official code found. Best implementation: justincui03/or-bench (28 stars, Apache-2.0, last commit 2025-03-04).

Abstract

Large Language Models (LLMs) require careful safety alignment to prevent malicious outputs. While significant research focuses on mitigating harmful content generation, the enhanced safety often come with the side effect of over-refusal, where LLMs may reject innocuous prompts and become less helpful. Although the issue of over-refusal has been empirically observed, a systematic measurement is challenging due to the difficulty of crafting prompts that can elicit the over-refusal behaviors of LLMs. This study proposes a novel method for automatically generating large-scale over-refusal datasets. Leveraging this technique, we introduce OR-Bench, the first large-scale over-refusal benchmark. OR-Bench comprises 80,000 over-refusal prompts across 10 common rejection categories, a subset of around 1,000 hard prompts that are challenging even for state-of-the-art LLMs, and an additional 600 toxic prompts to prevent indiscriminate responses. We then conduct a comprehensive study to measure the over-refusal of 32 popular LLMs across 8 model families. Our datasets are publicly available at https://huggingface.co/bench-llms and our codebase is open-sourced at https://github.com/justincui03/or-bench. We hope this benchmark can help the community develop better safety aligned models.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

[ICML 2025] Official repository for paper "OR-Bench: An Over-Refusal Benchmark for Large Language Models"

282PythonJun 20, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{cui2026orbench,
  title  = {OR-Bench: An Over-Refusal Benchmark for Large Language Models},
  author = {Justin Cui and Wei-Lin Chiang and Ion Stoica and Cho-Jui Hsieh},
  year   = {2026},
  eprint = {2405.20947},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2405.20947},
  journal = {ICML 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.20947.svg)](https://codeofpaper.com/paper/2405.20947)

Discussion