You add a router that sends easy queries to a cheap model and hard ones to a frontier model. How do you evaluate the router?
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
Evaluate it as a cost-quality tradeoff, not as a classifier. The router's job is not to label queries "hard" correctly, it is to buy the most quality per dollar, and the classification framing hides the one error that matters.
Full worked answer
Evaluate it as a cost-quality tradeoff, not as a classifier. The router's job is not to label queries "hard" correctly, it is to buy the most quality per dollar, and the classification framing hides the one error that matters.
Start by running both models on the whole eval set, so every example has a cheap-model outcome and a strong-model outcome. That gives you three reference points for free: always-cheap, always-strong, and the oracle router, which sends an example to the strong model only when the cheap one fails it. The oracle is your ceiling, and the gap between always-cheap and always-strong is the total quality at stake.
Then sweep the router's threshold and plot quality against cost, or against the fraction of traffic sent to the strong model. A good router's curve bows upwards: most of the strong model's quality at a fraction of its cost. Compare it with a random router at the same strong-model fraction, which is the straight line between the two endpoints. A router that does not beat that line is adding latency and complexity for nothing. Report one or two operating points, such as quality retained at 30% strong-model traffic.
The asymmetric error is the routed-down failure: an example the cheap model fails that the router sent to it anyway. Upward misroutes only cost money. Measure the routed-down failure rate per slice, because routers fail on exactly the segments that look easy and are not: short queries with hidden complexity, non-English inputs, long-tail domains.
Two production details. The router's inputs drift like everything else, so monitor the strong-model fraction over time; a sudden jump means traffic changed or the router broke. And in production you only observe the model you actually called, so keep a small randomised slice where both models run. Without it you can never measure what the router is costing you in quality.
What a good answer covers
- Evaluate it as a cost-quality tradeoff, not as a classifier
- The router's job is not to label queries "hard" correctly, it is to buy the most quality per dollar, and…
- Start by running both models on the whole eval set, so every example has a cheap-model outcome and a…
- That gives you three reference points for free
- The oracle is your ceiling, and the gap between always-cheap and always-strong is the total quality at stake
Interviewer follow-ups to expect
Your router cuts cost 60% and aggregate quality drops 1 point. What else do you check before shipping?
How would you evaluate a cascade that tries the cheap model first and escalates on low confidence instead of routing up front?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep