3.3 Accuracy–Latency Trade-offs
What You Need to Know
Section titled “What You Need to Know”Every integration has two numbers: a latency requirement, such as a p95 response time, and a quality requirement. Accuracy controls such as reranking or verification protect the quality requirement. The skill is meeting both requirements at once.
This lesson uses one made-up example throughout: a hardware shop whose website assistant retrieves product data, reranks it, checks stock with a tool and answers. It has a p95 target and a threshold for wrong-product answers. Any change must keep both.
The Budget Is a Sum
Section titled “The Budget Is a Sum”Latency is a sum: each stage on the request path adds its own time.
- Time-to-first-token and generation length for each model call, including any extended thinking
- Each retrieval and reranking stage
- Each tool round-trip
- Each agent-loop iteration
A cut to the wrong term wastes the accuracy that the cut costs, because a small term barely changes the total. In a serial tool chain, the latencies add together, because each call waits for the call before it. Only genuinely independent calls can run in parallel. A step that uses the output of another step keeps its serial latency, however it is scheduled. The shop’s stock check needs the product that retrieval found, so the stock check stays serial.
Anthropic’s latency guidance orders the options: choose the right model tier for the task, reduce input and output tokens, then stream for interactive interfaces. First find the dominant term. Traces (objective 3.4) measure how the total splits into terms. A fix aimed at any other term costs something and gives no visible improvement.
Accuracy Levers Pull the Other Way
Section titled “Accuracy Levers Pull the Other Way”Every accuracy control adds work, so each control has a latency cost.
- More retrieved context
- A reranking stage
- A verification pass
- More reasoning
- A bigger model
Every latency cut risks losing accuracy. Spend selectively: apply the expensive control where a wrong answer would be costly. Verifying high-value items and sending the rest through a faster path routinely works better than both verifying everything and removing verification everywhere. Verifying everything adds cost and latency to all traffic. Removing verification everywhere deletes a named quality requirement. The shop verifies answers on large trade orders and fast-paths a box of screws.
The Domain 2 mistake of moving to a smaller model without measuring accuracy reappears at the integration layer. A smaller, faster model is a legitimate latency fix only when accuracy is re-measured against the quality threshold afterwards. Until then, its error rate is unknown, so the change to a smaller model is a guess.
Streaming and Caching
Section titled “Streaming and Caching”Streaming returns tokens as the model generates them, so users see progress immediately and perceived latency improves. Total generation time is unchanged. Streaming suits interactive interfaces. A machine consumer that parses the complete response before acting waits for the last token, so streaming is irrelevant to it. The shop’s chat benefits from streaming. Its nightly stock-tagging job does not.
Prefix caching is the rarer case that gives two benefits at once. A stable prefix (system prompt, tool definitions, reference corpus) makes repeat requests both cheaper and faster to first token. Put stable content in the cached prefix. Do not put volatile content there, because volatile content changes the prefix on every request. The shop puts its catalogue in the prefix and the customer’s question after the prefix.
The Justification Names Both Numbers
Section titled “The Justification Names Both Numbers”“Faster is better” and “more accurate is better” are not justifications. Domain 4’s evals supply the accuracy threshold. The traces from objective 3.4 supply the split of latency into its terms. The configuration decision cites both. For the shop, the justification is: meets the stated p95 while holding the measured wrong-product rate.
In the exam
Section titled “In the exam”The wrong options sacrifice one named requirement to improve the other. For example, a wrong option drops verification to meet the SLA, or it verifies everywhere and misses the SLA. The right answer meets both, and its justification names both: “Meets the stated p95 while holding the measured mis-route rate”.
- Identify the stated latency requirement and the stated quality requirement.
- Eliminate every option that sacrifices a named requirement to improve the other.
- Among the remaining options, pick the one that addresses the dominant budget term.
When the consumer in the question is a pipeline, a parser or a batch job, the streaming option is necessarily wrong.
Sourcing Notes
Section titled “Sourcing Notes”Domain 2 covers the caching mechanics. The published magnitude figures for caching are figures from a stated date, and the Domain 3 quick reference holds them.
Exam Traps
Section titled “Exam Traps”Practice Scenario
Section titled “Practice Scenario”A claims-triage integration must respond within a 2-second p95 and must not mis-route high-value claims (a measured accuracy threshold). The current path: retrieve policy context (600ms), rerank (400ms), large-model classification with a verification pass (1.8s). Which change best meets both requirements?
- A. Drop the reranker for all claims to save 400ms on every request, since classification already runs a verification pass
- B. Move all claims to a smaller, faster model so the whole pipeline stays well below the 2-second p95 on every request
- C. Route low-value claims through a fast path (no rerank, smaller model) and keep the full path for high-value claims
- D. Stream the classification response token by token so the answer starts arriving well before the 2-second budget is spent
Answer & explanation
Correct: C
- A — Cuts 400ms on every request but sacrifices retrieval precision on the high-value claims the accuracy threshold exists to protect: a named requirement sacrificed. The verification pass checks the classification, not the passages the classifier was given.
- B — Moving to a smaller model without measuring: latency improves but the mis-route risk on high-value claims is unmeasured, and the question names that risk as the requirement.
- C — Addresses both named numbers: the bulk of traffic meets the p95 on the cheap path while high-value claims keep every accuracy control the threshold demands.
- D — The consumer is a triage system parsing the full result, not a human watching tokens; perceived-latency gains do not move a machine consumer p95.
Sources
Section titled “Sources”- Reducing latency — Anthropic
- Prompt caching — Anthropic
- Introducing Contextual Retrieval — Anthropic
- Claude Certified Architect Professional Exam Guide (v1.0) — Domain 3 — Anthropic