Skip to content

Interview question · Optimizing & Tuning Agents

A frontier model improves your agent's accuracy by 2 points but triples inference cost. How do you decide?

Two points of what, on which tasks, measured how many times? And is the choice really all of the traffic on one model or all on the other?

mediumNewUpdated Nov 2026

TL;DR: First check the gain is real: repeated, paired runs on your own tasks, with the difference outside noise. Then price it: what does a wrong answer cost, and how many fewer wrong answers do two points buy, against the extra spend? Usually the best answer is neither model everywhere: route the steps where the frontier model wins to it, keep the rest on the cheaper model, and measure the blended system.

How to approach it

Validate the measurement, convert accuracy into business cost, then look for a mixed design before accepting a binary choice.

A strong answer

Is the gain real? Two points on a 300-task set from single runs is within noise. Run both models on the same tasks several times, pair by task, and look at which tasks moved. Check that the harness and budget were the same.

Where does the gain sit? Often it is concentrated: the frontier model wins on long, ambiguous or high-stakes tasks and ties on the rest. That is what makes routing possible.

Price it. Compare the cost of errors avoided with the extra spend:

tasks_per_month = 200_000
cost_cheap, cost_frontier = 0.04, 0.12          # per task, illustrative
acc_cheap, acc_frontier = 0.90, 0.92
cost_per_error = 1.50                           # rework, refunds, escalation

def monthly(cost, acc):
    return tasks_per_month * (cost + (1 - acc) * cost_per_error)

hard_share, hard_gain = 0.15, 0.10              # frontier helps mostly on 15% of tasks
routed_acc = acc_cheap + hard_share * hard_gain
routed_cost = cost_cheap + hard_share * (cost_frontier - cost_cheap)
print(round(monthly(cost_cheap, acc_cheap)), round(monthly(cost_frontier, acc_frontier)),
      round(monthly(routed_cost, routed_acc)))
# => 38000 48000 35900

With these numbers, sending everything to the frontier model costs the most, because its extra spend outweighs the errors it saves, while routing only the hard 15% to it beats both by catching most of the gain for a fraction of the cost. Change the cost of an error and the answer changes; that is the point of writing it down.

Decide with guardrails. Choose the design, set a quality floor on a hard slice of tasks, watch cost and routed share, and re-run the comparison when either model changes.

What interviewers probe next

"What if you cannot tell in advance which tasks are hard?" Use a cascade: the cheap model first with a confidence or validation check, escalating failures to the frontier model.

"Does latency matter?" Often yes; the frontier model may be slower, which changes user-facing steps more than background ones.

How it's scored

Weak: Picks the cheaper or the better model on instinct.

Hire: Questions the measurement and compares error cost with spend.

Strong Hire: Validates the gain with paired, repeated runs, prices errors explicitly, finds where the gain concentrates, proposes routing or a cascade, and sets a quality floor and review triggers.

Common mistakes

  • Accepting a single-run benchmark difference.
  • Ignoring what an error costs.
  • Treating it as all-or-nothing.
You just read a free answer. Every topic opens its first 5 answers to anyone. Sign in and the count per topic goes to 6, and the site remembers where you stopped in each one.Google sign-in · free · no payment details
HOW DID IT GO?
0
READING SIGNED OUT

Signing in raises your free answers from 5 to 6 per topic, adds an applied lesson in every topic and easy practice tests, and the site starts remembering you: mastery per topic, bookmarks, and a next-focus recommendation. Free, no card.

Sign in free
UP NEXT ON YOUR JOURNEY
DISCUSSION · 0

Nobody has commented. Post a correction or another way to answer.