Design a Router Between a Cheap and an Expensive Model
The interviewer asksYour assistant uses one expensive model for everything. Design a router that sends easy requests to a cheaper model without hurting quality.
AI Product EngineerAI Platform PMAI Infrastructure PM (secondary)CoreSystem design roundRepresentative10 min
On this page
The 30-second version
- Look at traffic: what share of requests are easy, and what makes them easy?
- Router: a small classifier (or rules) predicts difficulty; uncertain cases go to the strong model.
- Evaluate the router: how often hard requests go to the cheap model (the costly error).
- Compare answer quality per route against the strong model on the same requests.
- Estimate savings and monitor quality signals by route after launch.
What it's really testing
- Routing design
- Evaluating a router
- Cost-quality trade-offs
How to structure your answer
- Understand traffic.
- Design the router.
- Evaluate it.
- Estimate savings and monitor.
The interview, played out
- InterviewerYour assistant uses one expensive model for everything. Design a router that sends easy requests to a cheaper model without hurting quality.
- CandidateWhat do requests look like? Is there an obvious easy group?
- Revealed when askedAbout 60% are short factual or formatting tasks; the rest need multi-step reasoning.
- CandidateThen a router: a small classifier reads each request and predicts whether the cheap model can handle it. If it's unsure, send it to the strong model; the expensive mistake is sending a hard request to the cheap one.
- Strong moveIdentifies which routing error matters more.
- CandidateTo build it, label a few thousand past requests by whether the cheap model's answer was as good as the strong one's; that's the training and test data.
- InterviewerHow do you know quality didn't drop?
- CandidateTwo checks: router accuracy, especially hard requests sent cheap, and answer quality per route compared with the strong model on the same requests. After launch, watch user signals by route.
- Missed signalShould estimate the savings to justify the work.
- CandidateIf 60% go cheap at a tenth of the price, cost falls by more than half.
The strong answer, distilled
- Traffic: ~60% short, easy tasks.
- Router: small classifier; unsure → strong model.
- Data: past requests labelled by whether the cheap answer matched the strong one.
- Evaluate: misroutes (hard → cheap), and answer quality per route.
- Savings: 60% at a tenth of the price → over half the cost saved.
- Monitor: user signals by route after launch.
This is one strong answer, not the only one.
How it's scored
| Dimension | Weak (2) | Passable (3) | Strong (5) |
|---|---|---|---|
| Traffic | Assumed | Asked | Quantified with what makes requests easy |
| Design | Rules guess | Classifier | Classifier with confidence threshold |
| Evaluation | None | Answer quality | Router errors and quality per route |
| Business case | None | Cheaper | Estimated savings |
Round scorecard: FDE: AI system design round, filled in for the mock candidate
| Dimension | Weak | Passable | Strong | The mock candidate |
|---|---|---|---|---|
| Requirements | Assumes them. | Asks about scale. | Users, data, scale, latency, cost and risk, before drawing anything. | Strong. Asked what traffic looks like and what "quality" means. |
| Architecture | One component. | A reasonable flow. | Full skeleton, then depth on the parts this system depends on. | Strong. Classifier router with confidence threshold and escalation. |
| Quality and evals | None. | Mentions testing. | Evals per component and end to end, and how they're built. | Strong. Evaluated the router's misroutes as well as answers. |
| Failure and cost | Ignored. | Mentions one. | Fallbacks, guardrails, latency and cost levers, tied to requirements. | Passable. Cost savings estimated only when asked. |
How the answer changes by role
| Role | What to emphasise |
|---|---|
| AI Product Engineer | Building and evaluating the router |
| AI Platform PMProduct Manager. Decides what a product should do, for whom, and why. Read the full explanation | Offering routing to platform customers |
| AI Infrastructure PM | Capacity and cost per model |
Common mistakes
- Not evaluating the router itself
- Treating both routing errors as equal
- No monitoring by route
More follow-ups to practise
- "The cheap model gets an upgrade." Hint: re-label and re-tune the threshold.
- "Latency matters more than cost." Hint: route by latency need too.
Go deeper
- Module: Orchestration and routing
- Framework: AI System Design Framework
- Framework: Opening Any Interview Answer
- Lesson: Routing and fallbacks
- Also tests: AI numbers: serving, cost and latency
- Also tests: Eval plans and release gates
Sources
Representative question: written to match system design rounds for AI product roles, not a specific reported interview.