Learning Agent Routing From Early Experience
This paper introduces BoundaryRouter, a training-free framework that optimizes the trade-off between latency and performance by dynamically routing queries to either lightweight LLM inference or full agent execution based on early behavioral experience and rubric-guided reasoning, achieving significant improvements in both speed and accuracy over existing methods.
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 have a very smart, fast, but sometimes overconfident assistant (the LLM) and a highly skilled, thorough, but slow and expensive expert consultant (the Agent).
- The Assistant can answer simple questions like "What's the capital of France?" instantly and for free. But if you ask it to solve a complex physics problem or write a long, multi-step code, it might guess wrong or hallucinate.
- The Expert can solve those hard problems perfectly by using tools, doing research, and thinking step-by-step. But it takes a long time to do so and costs a lot of money.
The Problem:
Right now, if you have a mix of easy and hard questions, you have to guess which one to send to whom. If you send everything to the Expert, you waste time and money on easy questions. If you send everything to the Assistant, you get wrong answers on hard questions.
The Solution: "BoundaryRouter"
The paper introduces a new system called BoundaryRouter. Think of it as a smart traffic cop standing at the intersection between the Assistant and the Expert. Its job is to look at every incoming question and decide: "Is this easy enough for the Assistant, or does it need the Expert?"
The tricky part is that this traffic cop has to start working immediately, without any prior training data or a "cheat sheet" of right answers. It's a "cold start."
How It Works (The Creative Analogy):
Instead of studying for a test, the traffic cop uses a trick called "Learning from Early Experience."
The "Seed" Test: Before the system goes live, the researchers run a small batch of questions through both the Assistant and the Expert. They don't care about the right answers yet; they just watch how the two behave.
- Example: They notice that when the question is about a specific type of math, the Assistant gives a short, confident answer in 2 seconds, while the Expert takes 300 seconds to pull out a calculator and double-check.
- They save these observations in a small "memory book."
The "Look-Alike" Search: When a new question arrives, the traffic cop flips through its memory book. It asks: "Does this new question look like the ones we saw before?"
- If it finds a match where the Assistant was fast and the Expert was slow, it sends the new question to the Assistant.
- If it finds a match where the Assistant was confused or slow, it sends the question to the Expert.
The "Rulebook" Reasoning: To make sure the traffic cop doesn't just guess, it follows a strict Rulebook (called "Rubric-Guided Reasoning"). It doesn't just "feel" like the Expert is needed; it checks specific criteria: "Did the similar past question take the Expert 10x longer? Did the Assistant's answer look vague?" This keeps the decision logical and consistent.
The Results:
The researchers tested this system on a new benchmark called RouteBench (a collection of tricky questions).
- Speed: Compared to using the Expert for everything, this system was 60% faster because it stopped wasting time on easy questions.
- Accuracy: Compared to using the Assistant for everything, it was 28% more accurate because it didn't let the Assistant guess on hard problems.
- Comparison: It worked much better than other methods that just used simple prompts or basic search tools.
In a Nutshell:
This paper shows that you don't need a massive training dataset to build a smart system that knows when to be fast and when to be thorough. By simply observing how two different systems behave on a few sample questions, you can teach a "traffic cop" to route future questions perfectly, saving time and money without sacrificing quality.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.