4.1 Defining Evaluation Metrics
What You Need to Know
Section titled “What You Need to Know”An evaluation metric measures whether a Claude system meets the need that it serves. Each entry on a metric sheet has three parts: the definition, the measurement method, and the target with its baseline. “Accurate” states a goal but gives no measure. “At least 95% field-level extraction accuracy on the held-out set, measured by exact match” is a metric. Decision-grade metrics are good enough to base a decision on. They are specific enough to measure and complete enough to catch what a single number hides.
This lesson uses one made-up example throughout: a yoga studio. It plans a Claude assistant that answers members in a website chat and drafts the weekly newsletter overnight. The owner’s whole brief is “accurate”.
Metrics Before the Build
Section titled “Metrics Before the Build”Define metrics before you build the system. The rest of Domain 4 depends on this step. Anthropic’s evaluation guidance gives the order: clearly define success criteria, then design evaluations to measure against them. The exam guide’s outline for Domain 4 uses the same sequence: define metrics, design datasets, then test.
If you build a system first and measure it later, its standard becomes whatever level it happens to reach. Its metrics are set to match what it already does, and no design decision was tested against the business need. Write the metric sheet before the first prompt, as the studio does.
The Five Metric Families
Section titled “The Five Metric Families”The guide names five metric families:
| Family | The professional distinction | The single-number mistake |
|---|---|---|
| Accuracy | Match the metric to the task shape: exact match for deterministic outputs, per-field precision and recall for extraction, rubric or judge scores for open-ended generation | One aggregate “percent correct” over heterogeneous tasks hides which capability is failing |
| Latency | Report percentiles, and distinguish time-to-first-token from total completion time, which are different promises to different consumers | A mean that conceals the tail the churning users live in |
| Cost | Per task at projected volume, the unit-economics framing Domain 1’s cost pillar demands | Per-token figures with no volume attached |
| Safety | Refusal correctness in both directions: harmful-output rate and over-refusal of legitimate requests | Counting refusals as if more were always safer |
| Security | Resistance to injection and data leakage, measured under adversarial testing (objective 4.2 designs the cases) | Resistance claimed on paper, never attacked |
The studio checks chat class times by exact match and newsletter drafts by rubric.
Latency targets and alerts belong on tail percentiles such as p95 and p99. This is standard practice for service level objectives (SLOs), because means conceal the poor latency of the users who are most likely to stop using the service. For interactive surfaces, the latency that matters is time-to-first-token. For pipelines, it is total completion time. Anthropic’s latency documentation treats the two as separate measurements. Studio chat members feel the first token. For the newsletter job, total completion time is what matters.
A safety scorecard with no over-refusal metric lets the system “get safer” by refusing everything. A studio assistant that declined every class question would never produce harmful output. If you measure refusal correctness in both directions, over-refusal becomes visible as a failure.
Success Metrics and Guard Metrics
Section titled “Success Metrics and Guard Metrics”The success metric is what a proposed change should improve. Guard metrics are what the change must not damage. They are typically cost per task, tail latency, and the safety rates. If you declare a success metric without guard metrics, you allow regressions. A variant that improves the success metric but breaches a guard metric has failed. A longer studio prompt that improves accuracy but breaches the p95 guard fails. Objective 4.3’s experiments include both kinds of metric, and objective 4.6’s production alerts fire on the guard metrics.
Leading Signals, Lagging Proof, and the Proxy Trap
Section titled “Leading Signals, Lagging Proof, and the Proxy Trap”Leading signals are indicators from monitoring that the system’s behaviour is changing, such as token spend per request, refusal rate, and retrieval-quality signals. They move before quality visibly drops. Lagging proof is a formal evaluation result. You need both: leading signals for early warning, lagging proof for decisions. A rising refusal rate warns the studio. A formal evaluation is the basis for the studio’s decision.
Any metric sheet risks the proxy trap: a proxy metric that is optimised hard enough stops tracking the outcome it stands for. Response length is a proxy for completeness, and judge score (the score that a grading model gives) is a proxy for satisfaction. Both are useful until the system learns to move the proxy without moving the outcome. Reward longer studio answers, and the assistant can add filler to them. Audit each proxy periodically. Check it against the real outcome, and stop using it when the two stop moving together.
In the exam
Section titled “In the exam”Questions on this objective test whether your metrics are decision-grade. A question that offers one aggregate number, or that proposes to define metrics “once real data exists”, is offering you a tempting wrong answer. Two distinctions recur in these questions: latency on tail percentiles, with the latency that matters to the consumer named, and over-refusal measured alongside harmful output.
Exam Traps
Section titled “Exam Traps”Practice Scenario
Section titled “Practice Scenario”A team launching a contract-extraction service proposes one metric: overall accuracy of at least 90%, measured on requests they spot-check. The sponsor will sign off only on targets that are fixed before launch, can be re-measured the same way after every release, and show where the service fails. What should the architect do?
- A. Accept it, since 90% is a reasonable bar for extraction, and spot-checking keeps the measurement close to real traffic
- B. Add mean latency as a second metric so speed regressions are caught alongside the accuracy bar
- C. Define per-field extraction accuracy on a held-out labelled set, plus p95 latency, cost per document at projected volume, and an over-refusal check
- D. Defer the metric definitions until after launch, when real production data exists to base them on observed traffic patterns rather than pre-launch guesses
Answer & explanation
Correct: C
- A — The question excludes this: a spot-check sample cannot be re-measured the same way after each release, and one aggregate number hides which fields fail. It also says nothing about latency, cost, or refusals.
- B — The question excludes this: the set still shows nothing about where the service fails. Means also conceal the tail, and the set lacks cost per document and any safety dimension.
- C — The full metric set catches what the single number hides: which field fails, tail latency, cost per document, and the system refusing legitimate documents, each with a definition, measurement method, and baseline.
- D — The question excludes this: the sponsor wants targets fixed before launch. Defined afterwards, the bar becomes whatever the system happens to achieve, and no build decision was tested against a target.
Sources
Section titled “Sources”- Define success criteria and build evaluations — Anthropic
- Reducing latency — Anthropic
- Mitigate jailbreaks and prompt injections — Anthropic
- Claude Certified Architect Professional Exam Guide (v1.0) — Domain 4 — Anthropic