Your safety filter cut harmful outputs, but tickets show legitimate users being refused. How do you measure and tune the trade-off?
Answer
Model answer, written in a candidate's voice
In short
- Build two-sided eval sets: harmful prompts that should refuse and benign-but-edgy prompts that should answer.
- Track false-refusal rate and attack-success rate by category, not one global score.
- Set per-category thresholds and context-aware policies, with human review for borderline cases.
- Replace blunt refusals with partial help, safe completion, or redirection when the request is legitimate.
- Sample production traffic, collect user feedback and appeals, and feed results back into thresholds and evals.
In full
I would treat this as a two-sided measurement problem, not a refusal-rate problem: I would keep a harmful-prompt set that should be refused and a benign-but-edgy set that should be answered, then track false-refusal and attack-success rates separately by category and context. A single global threshold would hide the trade-off, so I would tune per-category thresholds and policies, with borderline cases routed to review rather than forced into a binary call. Where the user is legitimate, I would prefer partial help, a safe completion, or redirection over a blunt refusal, while still refusing when the request is clearly unsafe. In production I would sample real traffic, watch refusal and appeal patterns, and use user feedback to find over-blocking without weakening the harmful-output guardrails. The appeal path matters because it tells me whether the filter is wrong, whether the user misunderstood the policy, or whether the product needs a better explanation and a safer alternative.
What a strong answer covers
- Two-sided eval sets: harmful prompts (should refuse) and benign-but-edgy prompts (should answer); track false-refusal and attack-success rates
- Per-category thresholds; context-aware policies
- Better than blunt refusals: partial help, safe completion, redirection
- Production sampling, user feedback and an appeal path
Common mistakes
- Optimising only harmful-output rate
- one global threshold