Which mistake does the response policy need to distinguish?
Hypothetical scenario. Northwind evaluates a content filter after preparing an adaptation candidate. Maya’s legitimate support question quotes offensive material and is blocked, while another request with indirect harmful wording passes. Dev proposes a threshold change; Priya asks which outcomes and affected cases the change would trade.
Maya: “The same blocked label does not explain whether the requested help was legitimate.”
Dev: “Changing the threshold can alter both missed harms and unnecessary blocks.”
Priya: “Define the contextual rubric and inspect those errors separately before choosing it.”
This optional depth chapter builds on case-level evaluation and the distinction between preference and acceptance. You will interpret contextual labels, confusion tables and subgroup aggregation while distinguishing refusal, careful answering, escalation and clarification.
The decision is not simply whether the filter has a high accuracy score. Define what the application should refuse, answer carefully, escalate or ask to clarify. Consider the consequence of each outcome. An error that blocks a benign support request and an error that permits an abusive output are different failures, even if an aggregate metric counts each once.
Define the label before evaluating agreement with it
A task rubric should describe the behavior being judged, its context and the information available to the evaluator. Distinguish a request that quotes harmful language for a legitimate purpose from a request seeking harmful assistance. Record ambiguous examples and reviewer disagreement rather than forcing every case into an apparently certain binary target.
Human labels are decisions made under a policy, not a direct measurement of an abstract universal property called toxicity. A detector learns or approximates those decisions under a particular data distribution. Its score can be useful while still being unsuitable for another language variety, task or conversational context.
Preserve the rubric version with the evaluation set. Changing what counts as an unacceptable response changes the target, even if the model remains fixed. Without that record, a metric change can reflect a policy revision rather than a system improvement.
Evaluate harm with the consequence and cohort visible
Hypothetical scenario. A moderation policy must distinguish harmful content from discussion quoting that content for a legitimate purpose. False positives and false negatives have different consequences, and their distribution can vary across language and user cohorts.
| Artifact | Concrete evidence | Decision boundary |
|---|---|---|
| Case context | language, purpose, affected cohort | Interpret label |
| Decision evidence | threshold, policy, expected outcome | Consequence |
| Error analysis | false positive/negative and review | Visible trade-off |
Define labels, context and review rules before measuring agreement. A low overall error rate can hide poor performance in a small required cohort. Scores depend on the chosen population and threshold; no single confusion matrix establishes universal fairness. Retain disputed cases and support an appeal or review path appropriate to the product. Model behavior and enforcement policy are separate interventions that need separate evidence.
A confusion table separates the mistakes an average hides
Choose “policy-positive” to mean a case that the adopted rubric says should be blocked or escalated. A true positive follows that decision, a false negative misses it, a false positive blocks a policy-negative case, and a true negative allows a policy-negative case. These names describe agreement with the selected rubric.
Hypothetical scenario. Construct two evaluation groups, A and B, with 100 cases each. In each group, the chosen rubric marks 20 policy-positive and 80 policy-negative. These are selected examples with no claim about any actual demographic group or production prevalence.
For A, choose 16 true positives, four false negatives, eight false positives and 72 true negatives. Correct decisions total 16 + 72 = 88, so observed accuracy is 88 / 100 = 88%. False-positive rate is 8 / 80 = 10%, and false-negative rate is 4 / 20 = 20%.
For B, choose 18 true positives, two false negatives, 24 false positives and 56 true negatives. Correct decisions total 18 + 56 = 74, giving 74% accuracy. False-positive rate is 24 / 80 = 30%, while false-negative rate is 2 / 20 = 10%. The second group has fewer missed policy-positive cases but more blocked policy-negative cases.
Aggregation changes what remains visible
Across the selected 200 cases, correct decisions total 88 + 74 = 162 and aggregate accuracy is 162 / 200 = 81%. The overall number does not show the 10% versus 30% false-positive rates. A service owner looking only at that average would miss an important difference in how legitimate requests are treated.
Nor do these counts prove a stable population difference. The samples are small, the groups and labels were chosen for illustration, and uncertainty must be assessed in a real study. Preserve counts and denominators beside rates so reviewers can distinguish a broad conclusion from a small diagnostic sample.
Inspect overlap as well. A language, region or task category can intersect with another important category, and a coarse group average can conceal a narrower failure. Choose evaluation slices because they illuminate a plausible task risk, not because repeatedly searching many slices produces an eye-catching difference.
Changing a threshold changes a trade, not the definition of harm
A threshold selects which scored cases receive an action. Moving it can reduce one kind of error while increasing another. Inspect score distributions and concrete examples before changing the rule. A threshold that works on one evaluation distribution can behave differently after the task mix changes.
Do not equate calibration with equal consequences. A score can have a useful statistical interpretation under defined conditions while the resulting decisions still create unequal burdens. Likewise, equalizing one error rate does not settle whether the task, labels or intervention are appropriate.
The Fairness and Machine Learning book develops classification criteria and their limitations. It helps explain why selecting a fairness metric requires a substantive decision about the task and consequences rather than simply adding another dashboard number.
Test the conversation and the application response
Evaluate more than isolated text snippets when the deployed decision depends on dialogue. Earlier context can establish that a user is reporting abuse, asking for support or attempting to obtain an unavailable action. A classifier receiving only the last sentence may be solving a different problem.
Also inspect the application's response after a block. An appropriate escalation or clarification can preserve useful service, while a generic refusal may leave a legitimate user without a path forward. Record those outcomes under the rubric rather than treating every prevented generation as an automatic success.
Use an independent test set when tuning prompts, thresholds or training examples. Repeatedly revising a detector until the same difficult examples pass turns those examples into development evidence. Retain new cases and evaluate whether the intended improvement generalizes.
Preference learning changes a signal, not the need for evidence
The post-training chapter explains demonstrations, preferences and optimization objectives. A response preferred by a judge can still contain a harmful omission or an unsupported claim. Preference data should therefore be evaluated against the task's actual acceptance and risk categories.
Similarly, reducing an offensive-word score can cause a model to avoid necessary discussion rather than improve its handling of a difficult support request. Inspect supported behavior and affected users, not just the optimization target. Refusal frequency alone does not distinguish appropriate caution from excessive blocking.
In the wild: risk management separates measurement and management
NIST's AI Risk Management Framework provides a structured approach to identifying, measuring and managing AI risks. It is a primary framework to consult when defining what evidence a system owner needs. A risk-management reference is not a certification that a particular model or filter is fair.
Hypothetical scenario. Northwind tunes a filter against a collection dominated by short ordinary questions. Its reported accuracy rises, but legitimate reports of abusive messages are blocked more often. Add contextual examples, review the action policy and compare group-specific false alarms before treating the metric change as a successful release.
Choose data and review practices that match the risk question
Collect only the information needed for a justified evaluation and govern who can access it. Sensitive attributes, raw support content and reviewer notes can themselves create risk. A useful evaluation design should explain why each field is needed and how uncertain or unavailable labels are handled.
Avoid inferring an individual's identity or circumstances from model outputs merely to populate a fairness dashboard. When the required evaluation evidence cannot be collected appropriately, document that limitation and narrow the claim. Absence of a measured disparity is not proof that no relevant harm exists.
Use metrics to investigate a decision
Task-specific harm evaluation is useful when a model or filter affects which requests receive service, what advice is produced or which actions are proposed. It is not satisfied by one public benchmark or a blanket statement that the model was aligned. Revisit the evaluation when tasks, populations, source material or application policy change.
Keep difficult examples and policy disagreements in the review record. Explain the chosen trade and the conditions under which it should be reconsidered. A defensible decision makes its evidence and uncertainty visible rather than claiming that one score resolves every competing concern.
A binary detector does not require one binary service response
The application can distinguish a prohibited request, a legitimate request needing careful wording and an uncertain case needing review. Those outcomes should follow the task policy and available evidence. A detector score alone does not choose the appropriate user experience, and an automatic block can be the wrong response to a legitimate report.
Inspect how a mistaken decision can be corrected. A useful review path preserves the relevant context and policy reason without collecting unnecessary personal information. Treat a later correction as evidence about the original decision and rubric, rather than deleting it from the evaluation denominator.
Retain the conditions under which a threshold was accepted. If the input population or labeling practice changes, revisit the trade. A fixed number can remain unchanged while the decision it implements becomes materially different.
Test the case context boundary
Average accuracy improves while a required language cohort regresses. What should the release packet show?
Reveal the design reasoning
The cohort counts, error types, uncertainty and consequences under the predeclared release rule. Do not bury the regression inside the mean or infer fairness from one score.
Decision: Choose thresholds and review paths from explicit contextual consequences.
Read the denominator and the consequence
Aggregate accuracy is 81%. Does that establish similar blocking behavior for A and B?
No. The selected false-positive rates are 8/80 = 10% and 24/80 = 30%. The aggregate hides those different burdens. Inspect counts, uncertainty and concrete cases before drawing a population conclusion.
A lower toxicity score blocks fewer quotations of offensive material. Is the filter automatically improved?
Not from that score alone. Check whether legitimate reports receive useful handling and whether policy-positive requests are missed more often. Threshold changes must be evaluated against the task and consequences, not only a score direction.
A preference-trained response is consistently chosen by a judge. Does it pass harm evaluation?
Only if it also satisfies the task's risk and support checks. Judge preference can reward style or conceal omissions. Preserve independent labels and examine the failure categories that matter to affected users.
Northwind decision log
- Define contextual policy labels and record uncertainty before optimizing a harm score.
- Inspect false alarms, missed cases and group denominators beside the aggregate.
- Choose an explicit response policy and retest it when the task or population changes.
Go deeper: criteria and their limits
- Video lecture: Biases Beyond Observation: Discovering Discrimination in Supervised Learning, Moritz Hardt, Simons Institute. Examine limitations of judging discrimination from observed predictive behavior alone.
- Book chapter: Fairness and Machine Learning, chapter 3: Classification, Solon Barocas, Moritz Hardt and Arvind Narayanan. Compare formal decision criteria and their limitations.
- Book chapter: Fairness and Machine Learning, chapter 5: Causality, the same authors. Distinguish predictive patterns from causal and normative questions.
- Primary document: AI Risk Management Framework, NIST. Organize the evidence and decisions behind risk management.
Northwind can evaluate contextual behavior without hiding consequences inside an average. Page 54 compares public benchmarks, private task sets, shadow observations and controlled releases; revisit independent cases and acceptance definitions before interpreting an apparent improvement.