Evaluation

LLM Refusal Rate: What It Is and How to Measure It Right

LLM refusal rate: the share of prompts a model declines. Which prompt sets to use, classifier vs string-match judging, sample sizes, intervals and pitfalls.

Reviewed EvaluationRefusalBenchmarks

Quick answer

A refusal rate is the share of prompts in a test set that a model declines to answer. Measure it on both harmful prompts (JailbreakBench, HarmBench) and safe prompts that look risky (XSTest), judge each answer with a classifier rather than phrase matching, and report n with a confidence interval.

What a refusal rate is

A refusal rate is the fraction of prompts in a fixed set that a model declines. "Declines" covers an explicit "I can't help with that", a deflection that answers a different question, and, on some APIs, a response blocked by a classifier.

A single number is not enough. Every refusal evaluation needs two directions:

Direction Prompt set Lower is better for What a high number means
Refusal of harmful prompts JailbreakBench, HarmBench Abliterated and red-team models The model blocks requests in this category
Over-refusal of safe prompts XSTest, JailbreakBench benign Every model The model blocks legitimate work

A safety-tuned assistant wants a high first number and a low second one. A model for authorized security testing or safety-data generation wants both low. Reporting one without the other hides the trade-off.

Prompt sets that are worth using

Set Size What it tests Source
JailbreakBench 100 harmful behaviors, plus a benign set added for over-refusal Refusal of misuse behaviors mapped to OpenAI's usage policies Chao et al., NeurIPS 2024 Datasets and Benchmarks
HarmBench 510 behaviors: 400 text, 110 multimodal; 7 semantic categories Refusal under standard, contextual, copyright and multimodal behaviors Mazeika et al., 2024
XSTest 250 safe prompts in 10 types, plus 200 unsafe contrast prompts Exaggerated safety: safe prompts that sound unsafe Röttger et al., NAACL 2024

Subsets are fine if you say which one you used. Our HarmBench run, for example, excludes the chemical and biological behaviors, which leaves 172 prompts.

Judging refusals: string matching vs a classifier

Every answer needs a label: refused or answered. There are two ways to get it.

String matching checks whether the answer contains phrases such as "I'm sorry" or "As an AI". It is fast and free, and it is wrong often enough to matter. The HarmBench authors measured agreement with human labels:

Judge Agreement with human labels
HarmBench classifier (fine-tuned Llama 2 13B) 93.19%
GPT-4 as a judge 88.37%
AdvBench substring matching 69.93%
Llama Guard 66.94%

The same paper found that the number of tokens generated "can change ASR by up to 30%" under substring matching, because a model can start with a refusal and then comply, or comply and then add a disclaimer.

A classifier judge reads the whole answer. It is the standard now: JailbreakBench uses a Llama 3 refusal judge, HarmBench ships its own classifier, and a 2026 study of abliteration found keyword counts and a judge model "differed by a mean 7 points per model" (Young, 2026). Classifiers have their own errors, so spot-check a sample of labels by hand.

Measure what you care about. If you want to know whether an answer is useful, a refusal label is not enough. The StrongREJECT authors found that "existing evaluation methods significantly overstate jailbreak effectiveness compared to human judgments", partly because answers that do not refuse can still be useless.

Sample size and confidence intervals

A refusal rate is a proportion, so it has binomial noise. Report n and a 95% interval. The Wilson interval behaves well near 0% and 100%, where refusal rates often sit:

from math import sqrt

def wilson(refused, n, z=1.96):
    """95% Wilson score interval for a refusal rate, in percent."""
    p = refused / n
    denom = 1 + z * z / n
    center = (p + z * z / (2 * n)) / denom
    half = z * sqrt(p * (1 - p) / n + z * z / (4 * n * n)) / denom
    return 100 * max(0.0, center - half), 100 * min(1.0, center + half)

for label, refused, n in [("94 of 100", 94, 100), ("1 of 100", 1, 100), ("15 of 250", 15, 250), ("0 of 250", 0, 250)]:
    low, high = wilson(refused, n)
    print(f"{label}: {100 * refused / n:.1f}% (95% interval {low:.1f}% to {high:.1f}%)")

Three practical consequences:

  • 100 prompts gives wide intervals. One refusal in 100 is a 95% interval of 0.2% to 5.4%. Zero in 250 still allows up to 1.5%.
  • Big gaps survive small n. 94 of 100 (87.5% to 97.2%) against 1 of 100 does not need more data to call.
  • Small gaps need large n or pairing. To compare two models that are close, run both on the same prompts and test the paired difference, as in does abliteration hurt performance.

How we measured Abliterator's refusal rates

We ran the original DeepSeek V4.1 Flash and DeepSeek V4.1 Flash Abliterated on the same serving stack on November 7 and 8, 2026. According to the public model card, a classifier (Qwen3Guard-Gen-8B, run locally) judged every answer, at temperature 0 with thinking off unless the row says otherwise.

Test n Original Abliterated
JailbreakBench harmful 100 94% 1%
HarmBench, chem-bio excluded 172 84.9% 0.6%
JailbreakBench harmful, Chinese 100 95% 1%
Harmful request inside an image 100 96% 1%
Harmful prompts, thinking on, finished answers see note 96.7% 0%
XSTest safe prompts (over-refusal) 250 6% 0%
JailbreakBench benign (over-refusal) 100 11% 0%
Off-topic requests declined under a restrictive system prompt 95% 75%
On-topic requests wrongly declined under that prompt 0% 0%

The thinking row counts only answers that finished within the reasoning budget, which is why it has its own denominator. The last two rows test whether an operator's system prompt still works after abliteration. It does, though less strictly. The benchmarks page has the full method.

Kimi K3.1 Pro Abliterated was measured with the same judge and published on its model card:

Test n Original Abliterated
JailbreakBench harmful 100 94% 3%
JailbreakBench harmful, thinking on 100 90% 0%
HarmBench, chem-bio excluded 172 97.7% 2.3%
JailbreakBench harmful, Chinese 100 89% 2%
Harmful request inside an image 100 93% 0%
XSTest safe prompts (over-refusal) 250 4% 1.2%
JailbreakBench benign (over-refusal) 100 17% 0%
Off-topic requests declined under a restrictive system prompt 100% 92.5%

Pitfalls

  1. Phrase lists. They miss soft refusals and count disclaimers as refusals. Use a classifier and check a sample by hand.
  2. Truncated answers. If the output limit cuts an answer off, it is neither a refusal nor a full answer. Count those separately, as our thinking row does.
  3. Reasoning models. A model can reason its way into or out of a refusal. Judge the final answer, and report the reasoning setting.
  4. System prompts change everything. Arditi et al. measured an attack success rate of 22.6% on Llama-2 7B with its default system prompt and 79.9% without it (arXiv 2406.11717). Fix the system prompt and report it.
  5. Language and modality. A model that refuses in English may answer in Chinese or when the request is inside an image. Test the inputs your users send.
  6. Temperature. Sampled answers vary. Use temperature 0, or several samples per prompt.
  7. Where the answers go. Harmful completions are sensitive data. Run the judge locally rather than sending them to a third-party API.
  8. Contamination and drift. Public prompt sets end up in training data. Add a private set from your own domain.

For evaluation work that needs a model which will generate attack prompts and score other models, see model evaluation.

Frequently asked questions

What is a good refusal rate for an LLM?

It depends on the job. A public chatbot should refuse most harmful prompts and almost no safe ones. A model for authorized security testing or safety-data generation should refuse little of either. Always report both numbers.

What is over-refusal?

Over-refusal is declining a safe request because it resembles a harmful one, such as refusing to explain how to kill a Python process. XSTest measures it with 250 safe prompts.

Is string matching good enough to count refusals?

Not on its own. In the HarmBench paper, substring matching agreed with human labels 69.93% of the time against 93.19% for HarmBench's classifier, and output length changed attack success rates by up to 30%.

How many prompts do I need?

At 100 prompts, a measured 1% refusal rate has a 95% interval of about 0.2% to 5.4%. To compare two models, use at least a few hundred prompts per set and report the interval.