It’s late, your brain is a bit fried, and you’re looking at your API bill for foundation models. You’re likely thinking: “Why did I just pay GPT-4 prices to have it summarize a three-sentence email?”
This is the "Model Routing" problem. In a perfect world, a smart "concierge" would look at every incoming request and send it to the cheapest model that can actually do the job. But the world isn't perfect—new models are released every week, old ones get retired, and the types of questions users ask are constantly shifting. Most routers are static; if the model pool changes, you have to retrain the whole thing from scratch.
Enter AdaptRouter.
TL;DR
AdaptRouter is a "plug-and-play" concierge for LLMs that learns to pick the best model for a task on the fly. By treating model descriptions as "cards" (inputs) rather than fixed outputs, it can adapt to new models and tasks without forgetting what it already knows or requiring massive retraining. It delivers high-end performance at a fraction of the cost—beating top-tier models like GPT-6.1 Sol by 22 points while costing less than a third as much.
What Problem Does This Paper Address?
The authors tackle the "moving target" problem of AI infrastructure. Foundation models are evolving faster than we can build tools to manage them. Specifically:
- Task Evolution: User queries change over time (e.g., shifting from simple chat to complex coding).
- Pool Evolution: New models (experts) enter the market, and old ones are repriced or retired.
- Catastrophic Forgetting: When you update a router to handle a new task, it often "forgets" how to route the old ones.
- The Cost-Quality Trap: If you tell a router to save money, it might get "lazy" and pick a cheap, wrong model over an expensive, correct one.
Methods
The secret sauce of AdaptRouter is Card-Conditioned Routing. Instead of having a fixed output layer (e.g., "Output 1 = GPT-4, Output 2 = Llama-3"), the router reads a "card" for each expert that describes its capabilities and cost. This makes the expert pool an input to the model.
Key technical highlights include:
- Dual-Path Learning: For "open-weight" models (where running them is cheap), it uses Reinforcement Learning (RL) to explore and learn. For "paid APIs" (where exploration is expensive), it queries each expert once, caches the result, and uses those as "soft labels" for training.
- Quality-First Advantage: The authors designed a loss function that provably prevents cost from overriding quality. If a model is wrong, it doesn't matter how cheap it is—the router won't pick it.
- Compact Backbone: The router itself is tiny (0.8B parameters), meaning the "decision-making" step is incredibly fast (~0.2 seconds) and doesn't eat up the savings it's trying to generate.
Datasets
The researchers put AdaptRouter through a gauntlet of 15 text and vision benchmarks, including:
- LLMRouterBench, MMR-Bench V2, and RobustRouteBench: To test general routing across diverse tasks.
- Sequential Tasks: A stream of datasets (MATH-500, ChartQA, MMLU-Pro, HumanEval+, IFEval) to test if the router forgets old tricks when learning new ones.
- API Suite: 10 benchmarks (like Omni-MATH and LongBench v2) specifically for testing routing between high-end closed-source models.
Key Insights and Ideas
- The "Card" Trick: By making experts part of the input, you can add a new model to your pool just by writing a short text description. No architectural changes required.
- No Replay Needed: Unlike traditional "continual learning" that requires re-training on old data to prevent forgetting, AdaptRouter’s policy-gradient approach stays "anchored" to correctness, losing only 0.4 points on earlier tasks while others lost up to 7.0.
- The "Aha" on API Costs: You don't need to run RL on expensive APIs. Caching feedback once and using it as a soft target is enough to train a world-class router without burning your budget during the training phase.
Key Results
- Efficiency: On a suite of 15 benchmarks, AdaptRouter reached 97% of a 9B reasoning expert's accuracy at only 12.6% of the cost.
- Superiority: In the API pool, it outperformed GPT-6.1 Sol and GPT-6 Astra (low) by over 22 points while operating at under a third of their cost.
- Scaling: As the expert pool grew from 3 to 10 models, the router actually got smarter, with accuracy rising from 67.2% to 72.1%.
Limitations and Future Work
While impressive, AdaptRouter has a few boundaries:
- One at a Time: It currently selects exactly one expert per question. It doesn't yet handle "cascades" (trying a cheap model first, then an expensive one if it fails) or "ensembles" (asking three models and voting).
- Feedback Dependency: It requires an automatic scorer or judge to provide the "native feedback" during training. If your task is so subjective that a machine can't grade it, the router can't learn it.
- Sequential Only: The study looked at task changes and pool changes as separate sequences; the authors leave "simultaneous" changes (new tasks and new models arriving at the same time) for future research.
Summary updated