# What Is Over-Refusal?

> What over-refusal is, why a model that says no too often still fails people, and how teams measure and reduce it, explained simply for your AI interview.

**In short:** Over-refusal is when an AI model turns down a harmless request because it looks risky. It is measured next to the opposite error, under-refusal, because a model that refuses everything is harmless but useless.

AI and LLM interview question Q232, Guardrails and AI safety. Intermediate, common (our estimate). From Venkat R. Murty's free Interview Kit: https://designervenkat.online/interview/ai/what-is-over-refusal

## Say it in 30 seconds

Over-refusal is when an AI model says no to a harmless request because it looks risky. A nurse asks about a safe daily dose, and the model refuses because the words sound like an overdose question. It is the mirror of under-refusal, where a harmful request gets an answer. Teams test both. A model that refuses everything passes every safety check, and fails the people it is for.

## Say it in 2 minutes

Over-refusal is when a model turns down a request it should have answered. The request is harmless, but it contains a word or topic that looks like a risky one, so the model says no. Picture a hospital pharmacy phone line where the pharmacist hangs up whenever a medicine is mentioned. That pharmacist is careful, but no patient gets an answer. An AI model can behave the same way.

It happens in two places. The model itself can refuse, and the safety filters around it can block a request before the model sees it. A 2023 test suite called XSTest was built to measure this, because even clearly safe prompts were refused when they used similar language to unsafe prompts.

To measure it, you need two sets of test prompts. One set is safe but sounds risky, and a good model should answer it. The other is harmful, and a good model should refuse it. Testing only the harmful set makes a model look safer than it is. OR-Bench, a 2024 benchmark, scaled this up to 80,000 over-refusal prompts across 10 categories.

The fix is never to refuse more. Anthropic's published constitution for Claude says the risk of being too cautious is just as real as the risk of being too harmful. So I give the model context about who is asking, narrow the filters, answer the safe part of a borderline question, and rerun both test sets after every change. A fix that lowers over-refusal can raise under-refusal, so I never look at one number alone.

## What is over-refusal, in plain words?

Over-refusal is when an AI model says no to a harmless request. The request looks like a risky one on the surface, so the model refuses, even though a helpful answer was safe to give. In test words, it is a false alarm: the safety check fires on a request that was fine. Under-refusal is the opposite miss, where a risky request gets through.

Picture a hospital pharmacy phone line. A caller asks a simple question about a medicine, and the pharmacist hangs up whenever a medicine is mentioned. That pharmacist is careful, but no patient gets an answer. An AI model can make the same mistake, and sometimes it refuses anything that sounds a bit like a risky request.

Here is a real case in our made-up example. A nurse using a hospital's medicines assistant types, "What is the highest daily dose of paracetamol an adult can take?" A helpful reply gives the standard limit and says when to ask a doctor. An over-refusing model says it cannot discuss medicines at all.

- **Over-refusal:** A safe request refused because it looks risky.
- **Under-refusal:** A harmful request answered when it should have been refused.
- **Safety filter:** A check that scans a request or reply and blocks it on a rule or a score.
- **Calibrated:** A model that refuses in the right proportion, neither too strict nor too loose.
- **Prompt:** The text a user sends to an AI model.

## Why does a model over-refuse?

Safety training teaches a model to refuse risky requests. The model learns from examples, and if the risky examples often use words like kill, attack or overdose, it can learn those words as warning signs, even when the meaning is harmless. Researchers call this lexical overfitting: the model learns the words themselves as warning signs, not what they mean. The XSTest authors note it is often a consequence of biases in the examples it learned from (its training data).

There are two places this can happen. The model itself can refuse, and the app's safety filters can block a request before the model reads it. Each layer can over-refuse, so a team has to look at both.

*Diagram, How a harmless question gets refused: A question about stopping a stuck batch job is harmless. The keyword filter sees the word kill and blocks it. The staff member gets no steps and loses time.*
1. The question reaches the filter, with the word kill in it.
2. The filter blocks it, so the model never gets to answer.

A worked example from a mid-size bank. Its payments team runs an assistant for support staff. A staff member types, "How do I kill a stuck payment batch?" The keyword filter sees kill next to a job and blocks the reply. Made-up numbers: in one week of 4,000 questions, 90 safe ones (2.25%) were blocked this way, and each person had to find an engineer instead.

The fix is to narrow the filter. The team blocks kill only when it sits next to a customer account or a server name, and it adds the bank's operations context to the prompt. Made-up numbers again: safe blocks fall to 12 of 4,000 (0.3%). The cost shows on the team's harmful test set of 200 prompts, where misses rise from 1 to 2 (0.5% to 1%). The team accepts that trade and still reviews the two misses every week.

## How do teams measure over-refusal?

Teams use benchmarks, which are shared test sets. XSTest, from 2023, has 250 safe prompts across ten prompt types, plus 200 unsafe prompts as contrasts. The safe ones look risky, and a well-calibrated model should answer them.

> "when a model refuses to provide a helpful response, even when a safe and plausible answer is possible." (OR-Bench (2024), defining over-refusal)
>
> "In the extreme, a model that refuses any prompt - safe or unsafe - would be perfectly harmless but also completely useless." (XSTest (2023), on what extreme refusal costs)

OR-Bench scaled this up. It has 80,000 over-refusal prompts across 10 common rejection categories, plus 600 toxic prompts that a good model should still refuse. Both benchmarks make the same point: you need both sides of the test to see the trade-off.

- **Over-refusal: Safe prompts refused.** The share of safe prompts the model turns down. High means the model is too strict.
- **Under-refusal: Harmful prompts answered.** The share of harmful prompts the model answers. High means the model is too loose.

*Diagram, Measuring both kinds of error: Two test sets go through the same model. Refusals on the safe set are over-refusal, and answers on the harmful set are under-refusal. A fix must improve one rate without wrecking the other, so both are checked after each change.*
1. Each safe prompt goes to the model, which should answer it.
2. Each harmful prompt goes to the model, which should refuse it.
3. Safe prompts it refused are counted as over-refusal.
4. Harmful prompts it answered are counted as under-refusal.
5. The over-refusal rate feeds the next round of tuning.
6. The under-refusal rate feeds it too, since one fix can move the other.

## How do you cut over-refusal without making the model less safe?

The trade-off is real, and vendors say so. Anthropic's published constitution for Claude puts the two risks side by side.

> "The risks of Claude being too unhelpful or overly cautious are just as real to us as the risk of Claude being too harmful or dishonest." (Anthropic, Claude's constitution)
>
> "Previous Claude models often made unnecessary refusals that suggested a lack of contextual understanding." (Anthropic, Claude 3 family (2024))

- **Refusing a reasonable request:** The constitution lists a refusal of a reasonable request as a failure, when the reason given is a harm that is possible but highly unlikely.
- **A wishy-washy answer:** It gives an unhelpful answer out of caution when no caution is needed.

Vendors report progress. Anthropic said in 2024 that its Claude 3 models refused harmless prompts much less often, after earlier models often made unnecessary refusals. OpenAI said in 2025 that refusal-based safety training can struggle when intent is unclear. For GPT-5 it introduced "safe completions", which sometimes means a partial or high-level answer instead of a flat no.

Fixes have a cost too. A January 2025 paper tested classifiers, which are separate checks that sort text as safe or unsafe. They were built to block jailbreaks (tricks that talk a model out of its rules). On real traffic, they added 0.38 percentage points of refusals, and 23.7% extra compute each time the model runs (the work done to produce an answer).

1. **Give the model context:** Say who the users are and what the app is for. A nurse asking about doses is a different case from an anonymous visitor. A prompt alone is not enough, though.
2. **Narrow the filter:** Test the filter on safe prompts too. A keyword block that catches kill also catches the stuck batch question.
3. **Answer the safe part:** Give the standard limit or the first safe step, and leave out the dangerous detail. A flat no is the costliest answer.
4. **Send unclear cases to a person:** Route borderline, high-stakes cases to a human. Keep that queue small, or people stop reading it.
5. **Retest after every change:** Run both test sets again. A fix that lowers over-refusal can raise under-refusal, so check both.

## What does the interviewer want to hear?

**A strong answer covers**

- [ ] A plain definition: a safe request refused because it looks risky.
- [ ] The mirror error, under-refusal, and why you measure both.
- [ ] Where it happens: in the model itself and in the app's filters.
- [ ] How to measure it, with safe-but-risky-looking test prompts.
- [ ] The honest trade-off: a fix can let harm through, so check both sides.
- [ ] Fixes that work: context, narrower filters and partial answers.

**Common traps**

- Trap: "Refusing more is always safer." Better: Each refusal counts as a win in the log. The nurse who got no answer never shows up in it.
- Trap: "We only test with harmful prompts." Better: Then you see only half the errors. Add a set of safe prompts that look risky.
- Trap: "Just make the filter less strict." Better: Loosening blindly lets harm through. Change one thing, then test both sets.

## Can you spot the over-refusal?

**Spot the over-refusal:** The support assistant gives four replies. Which one wrongly refuses a harmless question?

A. Stop the batch from the queue screen, then restart it once the lock clears.
B. I can't help with anything involving killing a process. Please contact an admin.
C. Your login token expires after 60 minutes without activity.
D. Refund requests close after 30 days, according to the policy page.

**Answer:** B. The question was a harmless ops question, and the reply refused because the word kill matched a risky pattern. A good answer gives the steps. Fix it with context and a narrower filter, then test safe prompts that look risky.

**Quick check:** Which approach is most likely to cut over-refusal without making harmful answers more likely?

A. Add more blocked words to the keyword filter, so fewer risky questions slip through
B. Measure both test sets, then tune one change at a time
C. Turn off the safety filter on the internal staff app
D. Test only with harmful prompts, since those matter most

**Answer:** B. Measuring both sides shows the trade-off, and one change at a time shows what it did. More blocked words adds over-refusal, switching the filter off adds under-refusal, and testing one side hides the problem.

## Can you answer these from memory?

**Flash cards**

- **What is over-refusal?** A safe request refused because it looks risky to the model or a filter.
- **What is the mirror error?** Under-refusal: a harmful request answered when it should have been refused.
- **Where can it happen?** In the model's own refusals and in the app's input and output safety filters.
- **Which test sets measure it?** Safe prompts that look risky, plus harmful prompts. XSTest and OR-Bench are examples.
- **Is refusing more always safer?** No. Anthropic's constitution says over-caution is as real a risk as harm.
- **One common fix?** Give the model context and answer the safe part instead of a flat no.

## Likely follow-up questions

- Q233 How do you balance safety and helpfulness? https://designervenkat.online/interview/ai/how-do-you-balance-safety-and-helpfulness
- Q234 How should an app handle refusals? (full answer coming)
- Q244 How do you measure guardrail false positives and negatives? https://designervenkat.online/interview/ai/guardrail-false-positives-and-negatives
- Q267 How do you evaluate safety? https://designervenkat.online/interview/ai/how-do-you-evaluate-safety
- Q273 Which guardrail metrics should you track? (full answer coming)
