Scalable Prompt Routing via Fine-Grained Latent Task Discovery
This paper proposes a scalable two-stage prompt routing architecture that leverages graph-based clustering for fine-grained latent task discovery and a mixture-of-experts model for task-aware quality estimation, achieving superior performance and cost efficiency across diverse frontier models compared to existing baselines.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you run a massive, high-tech restaurant with a menu of 11 different celebrity chefs (the Large Language Models). Some are masters of math, some are poets, some are coding wizards, and others are great at general conversation.
Your goal is to serve every customer the perfect dish (the best answer) without wasting money on the most expensive chef for every single order.
The Problem: The "One-Size-Fits-All" Mistake
In the past, restaurant managers (routing systems) tried to guess which chef to use in two ways:
- The Manual Menu: They tried to categorize every order into broad buckets like "Math" or "Writing." But this is too vague. A "Math" order could be simple arithmetic or complex quantum physics. A single "Math" category doesn't tell you which specific chef is best for that specific problem.
- The General Manager: They hired one super-manager to look at every order and guess the best chef. But with 11 chefs who are all incredibly talented and very similar in skill, this manager gets confused. They can't spot the tiny differences that make Chef A better for this specific puzzle than Chef B.
The result? You either pick the wrong chef (bad food) or you just pick the most expensive chef for everything (wasting money).
The Solution: FineRouter (The Smart Kitchen)
The authors of this paper built a new system called FineRouter. Think of it as a two-stage, super-smart kitchen management system that doesn't rely on a fixed menu or a single guesser.
Stage 1: The "Secret Menu" Discovery (Finding the Hidden Patterns)
Instead of using a pre-written menu, the system looks at thousands of past orders and discovers its own categories.
- How it works: It groups similar orders together based on two things: what the order says (the words) and which chefs historically did the best job on similar orders.
- The Magic: It finds "micro-categories" that humans might miss. For example, it might realize that "Telephone area code questions" is a totally different skill set than "Solving algebra equations," even though both are technically "Math" or "Facts."
- The Result: It creates a "Secret Menu" of 300+ tiny, specific task types. For each type, it knows exactly which 2 or 3 chefs are the best fit.
Stage 2: The "Specialist Team" (The Mixture of Experts)
Now that the system knows the "Secret Menu," it sets up a specialized team.
- The Setup: Imagine a central hub. When a new customer order comes in:
- The Triage Nurse (Stage 1): Quickly looks at the order and says, "Ah, this is a 'Telephone Area Code' request! That goes to the 'Geography/Telecom' team."
- The Specialist Chefs (Stage 2): Instead of asking all 11 chefs to cook, the system only wakes up the specific chefs who are experts in that tiny category. It asks them, "How good would you be at this specific task?"
- The Hybrid Approach: If the system isn't sure which category the order belongs to, it falls back to a general "all-chefs" estimate. But usually, it uses the specialist team.
The Final Decision: The "Best of Both Worlds" Vote
The system combines two pieces of information to make the final call:
- The Group Average: "Historically, for this type of task, Chef X is usually the best."
- The Specific Nuance: "But looking at this specific wording, Chef Y might have a slight edge."
It blends these two signals to pick the absolute winner.
Why This Matters (The Results)
The paper tested this system with 11 of the world's most advanced AI models across 10 different types of challenges (from coding to trivia to math).
- Better Food: The system picked the right chef more often than any single chef could do alone. It actually outperformed the single "best" model in the pool.
- Lower Bill: Because it didn't blindly pick the most expensive chef for every job, it achieved these results for less than half the cost.
- Scalability: As more chefs join the kitchen (more AI models), this system gets smarter at finding the tiny differences between them, whereas old systems would just get confused.
The Analogy in a Nutshell
- Old Way: Asking a single person to guess which of 11 Olympic athletes is best at a specific sport, or just picking the most famous one.
- FineRouter Way: First, analyzing thousands of past games to realize there are 300+ specific "sport niches." Then, creating a team of scouts who know exactly which athlete excels in each niche, and only calling on those specific athletes when a new game starts.
This approach ensures you get the gold medal performance without paying for the entire Olympic team every time you need a single answer.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.