Quantify ML trade-offs: latency, cost, accuracy, ops
How to turn vague asks into ticketable SLOs: quantify latency, cost, accuracy and maintenance and use capacity planning to pick a clear engineering option.

This guide is for product managers shipping features that include ML models or hosted AI services. You will leave with a short checklist, a two-column exercise you can run with engineers, and a worked capacity plan that turns a 1M MAU target and a 200ms p95 goal into resource and ops numbers.
In brief
The four axes engineers actually tune
When engineers hear "fast and cheap and accurate" they must trade. The four concrete axes are:
- Latency — measured in ms at a percentile (p50, p95, p99).
- Inference cost — measured per inference (cloud cost) or as required CPU/GPU time.
- Accuracy and error modes — measured as business loss or standard measures (precision/recall, calibration, or custom loss).
- Maintainability/ops burden — measured as MTTR, engineering hours per month, or data‑ops load.
How to ask for numbers
Never ask for vague goals. Replace them with a small set of numbers and a usage profile. For latency give the target percentile. For cost give an acceptable per‑request multiplier or a budget. For accuracy map model metrics to business impact. For maintainability give acceptable time and staff for retraining and incident handling.
Run the two-column exercise (10–20 minutes)
Compare options with a simple table
| Option | Latency p95 | Relative inference cost | Accuracy impact | Ops load (eng hours/mo) |
|---|---|---|---|---|
| Low-latency | 100 ms | 2× | baseline | 40 |
| Balanced | 200 ms | 1× | baseline | 20 |
| Low-cost | 500 ms | 0.6× | - small drop | 12 |
Checklist before you leave planning
- Do we have an SLO expressed as a percentile (e.g., 200 ms p95)?
- Do we have a traffic profile (DAU, peak RPS, session shape)?
- Is the business loss for accuracy defined and mapped to a metric?
- Have we budgeted maintenance (retraining cadence, monitoring, incident response)?
- Is there a capacity plan with replica counts and buffer for bursts?
Common mistakes to avoid
- Asking for "low latency" without traffic numbers.
- Optimising only an offline metric instead of business loss.
- Ignoring cold starts and tail latencies.
- Failing to budget for retraining and data ops.
Worked example: 1M MAU chat with 200 ms p95
Assumptions (adjust to your product)
- Monthly active users (MAU): 1,000,000.
- Daily active rate (DAU/MAU): 20% (200,000 DAU).
- Average chat sessions per DAU per day: 2.
- Average messages per session that require model inference: 4.
- Peak factor (ratio of peak RPS to average): 3.
- Target latency: 200 ms p95.
- Single inference duration at that latency: 0.2 seconds.
Step A — compute average requests per second (RPS)
Daily requests = DAU × sessions/day × messages/session = 200,000 × 2 × 4 = 1,600,000 requests/day.
Average RPS = daily requests / 86,400 ≈ 18.5 RPS.
Step B — apply peak factor
Peak RPS ≈ 18.5 × 3 ≈ 56 RPS.
Step C — convert latency to concurrent inferences
Concurrent inferences required = peak RPS × inference duration = 56 × 0.2 ≈ 11.2 concurrent requests.
Step D — pick per-pod concurrency
Choose the number of concurrent inferences a single replica can serve at the target p95. For example, if a replica can reliably handle 10 concurrent inferences at 200 ms p95, then required replicas = ceil(11.2 / 10) = 2.
Step E — add redundancy and buffer
Add at least one extra replica and a safety buffer for rolling updates and traffic spikes. In this example add 1 replica and a 20% buffer: replicas = max(2 + 1, ceil(2 × 1.2)) = 3 replicas.
Step F — monthly cost (how to compute)
Monthly infra cost = replicas × hours per month × cost per replica-hour. Use your cloud or infra rates for "cost per replica-hour." For example, compute the number of replica-hours (3 replicas × 24 × 30) and multiply by your unit price.
Step G — ops load estimate (how to compute)
Estimate routine ops tasks: monitoring and alert triage, deploys, autoscaling tuning, and retraining. As a starting rule, budget engineers' time as hours/month: monitoring & incidents (10–20 hours), deploys & runbook work (5–10 hours), retraining/data ops (variable, e.g., 8–40 hours depending on cadence). Sum these for an initial ops load.
Deliverable from this example
- Initial SLO: 200 ms p95 for inference responses.
- Capacity plan: 3 active replicas at target configs, autoscale rules to add replicas above 70% concurrency, and one spare replica for rolling updates.
- Cost calculation: replica-hours × unit cost (use your cloud price to get $/month).
- Ops load: initial estimate (monitoring + deploys + retraining) in engineer-hours/month — refine after one month in production.
Use the Capacity planner to formalise these numbers and to test other SLOs (100 ms or 500 ms) and traffic scenarios.


