Prompt & Context Engineering·Question 31 of 68Intermediate

Your model refuses requests that are perfectly legitimate. How do you diagnose and fix over-refusal?

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

Over-refusal is the failure mode that quietly kills products, and it gets much less attention than under-refusal because it never makes the news. A support bot that refuses 8% of legitimate questions has an 8% broken product, and nobody files a bug because the refusal sounds responsible.

Full worked answer

Over-refusal is the failure mode that quietly kills products, and it gets much less attention than under-refusal because it never makes the news. A support bot that refuses 8% of legitimate questions has an 8% broken product, and nobody files a bug because the refusal sounds responsible.

Diagnose first. Build two eval sets: benign-but-scary inputs from your real domain, and genuinely disallowed inputs. Track the refusal rate on both. You are choosing a point on a tradeoff curve, and the only professional move is to make that choice explicit and get product and legal to agree on it rather than discovering it in support tickets.

Common causes, in order:

  • Your domain looks risky to a safety-trained model. Medicine, law, security research, and finance all trigger caution that is appropriate for a general assistant and wrong for your scoped product.
  • Your own prompt caused it. Vague instructions like "be careful" or "prioritise safety" get resolved conservatively, because the model has no way to know where your line is. Vague caution instructions are a common self-inflicted wound.
  • Keyword triggers in otherwise fine content.

Fixes at the prompt layer. Replace vague caution with a specific, positively-stated scope: "You may explain drug interactions listed on the provided label. You may not recommend personalised dosing. If asked for dosing, say so and point to the prescriber." Then add two or three examples sitting right on the boundary, one allowed and one refused, because the boundary is exactly the thing that is easier to show than to describe.

Also treat refusal as a product surface, not an error. Give the model an approved refusal template that explains what it cannot do, why, and where to go instead, and log every refusal with the trigger. An unlogged refusal is invisible failure.

What I would not do is jailbreak my own model to get past its training. If the base model will not do the task, change models, fine-tune, or reconsider whether it should be automated.

What a good answer covers

  • Over-refusal is the failure mode that quietly kills products, and it gets much less attention than…
  • A support bot that refuses 8% of legitimate questions has an 8% broken product, and nobody files a bug…
  • Build two eval sets: benign-but-scary inputs from your real domain, and genuinely disallowed inputs
  • You are choosing a point on a tradeoff curve, and the only professional move is to make that choice…
  • Your domain looks risky to a safety-trained model

Key terms: Diagnose first · Common causes · Fixes at the prompt layer

Interviewer follow-ups to expect

  1. How would you build a benign-but-scary eval set for a medical product without a clinician on the team?

  2. When is over-refusal a signal that you picked the wrong model rather than the wrong prompt?

Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep