---
title: Your safety filter cut harmful outputs, but tickets show legitimate users being refused. How do you measure and tune…
url: https://gurkanozkan.ai/learn/questions/applied-llm-saf-05/
markdown: https://gurkanozkan.ai/learn/questions/applied-llm-saf-05.md
kind: question
role: Applied LLM
stage: Technical
difficulty: Medium
json: https://gurkanozkan.ai/api/learn/questions/applied-llm-saf-05.json
robots: noindex
---

# Your safety filter cut harmful outputs, but tickets show legitimate users being refused. How do you measure and tune the trade-off?

Applied LLM · Technical · Medium

## 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.

*Checked against sources by an independent AI reviewer.*

## 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

## Topic guides

- [AI safety, guardrails and alignment](https://gurkanozkan.ai/learn/topics/safety.md)
- [Evaluation: metrics, evals for LLM systems and statistical rigour](https://gurkanozkan.ai/learn/topics/evaluation.md)
---

*Study material compiled with AI: drafted by a local model (Inkling 2 Mini) from public sources, then checked against those sources by independent AI reviewers (Claude) in November 2026. Not reviewed line by line by a person.*
