The router that sent hard questions to the small model
Step 1 · The pattern
Every question goes to the large model
Every question goes to the large model. Answers are good, but most questions are easy and pay large-model prices and wait times for nothing. (All numbers are illustrative.)
- a question
- answered well
In short
The router that sent hard questions to the small model: how it works and how it breaks
Most questions an assistant gets are easy, and a small model answers them well for a fraction of the cost and time of a large one. A router in front sends each question to one or the other. The RouteLLM research found trained routers could cut costs by more than half in some cases without losing answer quality. The catch is the router itself. A cheap rule such as 'short prompt means easy' sends short, hard questions, like 'why does this query deadlock?', to the small model, which answers confidently and wrongly. Requests succeed, costs fall, and quality drops only for some users, where dashboards do not look. Train or tune the router on labelled questions from your own traffic, send uncertain cases to the large model, track quality separately for each route, and re-check the router whenever either model changes.
What this simulation simplifies
- Questions are labelled easy or hard; a real router has to infer that from the text.
- A fixed share of hard questions is misrouted; real rates depend on the rule and the traffic.
How this comes up in interviews
"How would you cut model costs for an assistant without hurting quality?"
Then they ask
- How does the router decide?
- How do you know it is working?
- What happens when a model changes?
A strong answer covers
- Most traffic is easy; a small model handles it well and cheaply.
- A router decides; train and check it on labelled real questions.
- Uncertain cases go to the large model.
- Track quality per route, not only overall.
- Re-evaluate after any model or router change.
Points to cover, not a script. Say them in your own words and tie them to a system you have worked on.
On one page: the track cheat sheet.
Sources: Ong et al. (LMSYS): RouteLLM: Learning to Route LLMs with Preference Data (2024) ↗ · Report a problem
Diagrams are our own simulations: the timings, rates and counts in them are illustrative, not measurements. Captions are original wording.