Scaling Enterprise Agent Routing: Degradation, Diagnosis, and Recovery
This paper investigates how routing accuracy in enterprise LLM assistants degrades as tool catalogs scale from 10 to 110 agents, identifying retrieval and confusion gaps as primary causes of failure and demonstrating that embedding-based shortlisting effectively recovers significant F1 performance across multiple frontier models.
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 are the manager of a massive, busy office. You have a team of 110 specialized employees (agents) and 584 specific skills (tools) they can use. Your job is to take a request from a client (like "I need to send an email") and instantly pick the one right employee to handle it.
This paper is a report on what happens when that office gets too big, and how the manager (an AI) starts to make mistakes.
Here is the breakdown of their findings using simple analogies:
1. The Problem: The "Too Many Choices" Trap
When the office was small (say, 10 employees), the manager was great at picking the right person. But as they added more people, the manager started to get confused.
- The Analogy: Imagine trying to find a specific needle in a haystack. When the haystack is small, it's easy. When it grows to the size of a mountain, you start missing needles you should have found.
- The Result: As the catalog of tools grew from 10 to 110, the AI's ability to find the correct tool dropped significantly (by about 16–23%). It wasn't that the AI started picking wrong tools more often; it was that it started missing the right tools entirely.
2. Why Did It Fail? Two Types of Mistakes
The researchers broke down the failure into two distinct problems, like two different reasons a detective might fail to solve a case:
- The "Retrieval Gap" (The Librarian Problem): The AI couldn't even see the right tool in the list. It was like a librarian who couldn't find the book on the shelf because the library was too big and messy. This is the part the researchers could fix.
- The "Confusion Gap" (The Twin Problem): Even if the AI did see the right tool, it still got confused. Why? Because the office has many "twins."
- Example: You have Gmail, Outlook, and Yahoo Mail. You have "Improve," "Paraphrase," and "Proofread" tools. They all do almost the same thing. Even with a perfect list, the AI struggled to decide which "twin" was the best fit. This confusion caused a permanent drop in performance that couldn't be fixed just by listing tools better.
3. The Solution: The "Shortlist" Filter
The researchers tested a simple fix: Don't show the AI the whole list of 584 tools. Instead, use a quick filter (like a smart search bar) to find the top 20 most likely candidates first, and then ask the AI to pick the winner from that small group.
- The Analogy: Instead of asking a judge to pick a winner from 584 contestants, you first have a scout pick the top 20. Then, the judge picks the winner from just those 20.
- The Result: This "Shortlisting" method worked like magic. It recovered about 10–17% of the lost performance. It didn't fix the "Twin Problem" (confusion), but it completely solved the "Librarian Problem" (missing the right tool).
4. What Didn't Work (and What Did)
The team tried different ways to build this "scout" (the filter):
- The Winner: Using Embeddings (a type of AI that understands the meaning of words, not just the spelling). This was the best method. It understood that "send a message" and "email the team" are similar, even if the words are different.
- The Loser: Keyword Search (looking for exact word matches). This failed miserably because in a big office, everyone uses the same words (like "email" or "schedule"), so searching for those words didn't help distinguish between the different tools.
- The "Pack" Approach: Grouping tools into categories (like "Email Tools" vs. "Writing Tools") and picking a category first didn't work as well as picking individual tools directly.
5. Real-World Testing
The researchers didn't just use computer-generated test questions. They also tested this on 1,435 real requests from actual users.
- Real users are messy: they misspell words, use slang, and don't say exactly what they mean.
- The results held up: Even with messy real-world data, the "Shortlist" method still boosted performance significantly, proving this isn't just a lab trick—it works in the real world.
The Bottom Line
When you scale up an AI system with too many tools, it gets overwhelmed and starts missing the right answers.
- The Fix: Don't let the AI look at everything at once. Use a smart filter to narrow it down to a shortlist of 20 options first.
- The Limit: Even with a shortlist, the AI will still get confused by tools that do very similar things (like different email apps). That part is harder to fix, but the "Shortlist" method solves the biggest part of the problem.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.