TL;DR
Why burn money asking a frontier LLM to explain basic arithmetic when a smaller, cheaper model will do just fine? DART is a new LLM router that matches user queries to the most cost-effective model by aligning what a query actually requires with what a model is good at in a shared mathematical space. Better yet, it decides in milliseconds and can onboard brand-new LLMs out of the box without any retraining.
What Problem Does This Paper Address?
With dozens of LLMs varying wildly in capability and price, "LLM routing"—dynamically sending each user prompt to the right model—has become essential. An ideal router needs three things: high accuracy, near-zero latency overhead, and the ability to seamlessly integrate newly released models ("zero-shot onboarding").
Current routers fail to hit all three at once because they confuse topic with difficulty. Consider two prompts: "Introduce me to the concepts of calculus" and "Solve this 2nd-order non-linear differential equation using calculus." To a standard text encoder, both scream "calculus!" and land right next to each other in semantic space. Yet one needs a cheap, fast model, while the other demands a heavy-hitting reasoner.
To untangle this, existing routers either deploy massive, slow architectures (like graph neural networks or using an LLM just to pick another LLM) or train rigid classifiers that map prompts directly to discrete Model IDs. If OpenAI or Anthropic drops a new model tomorrow, ID-based routers are completely blind to it until you collect new data and retrain from scratch.
Methods
Instead of treating routing as text classification, the authors reframe it as a supply-and-demand matching problem inside a shared, low-rank "latent capability space."
- Supply Side (Model Capabilities): Offline, DART builds a matrix of how candidate models perform across public benchmarks and uses low-rank matrix factorization to compress each model into a compact "capability vector." When an unseen model arrives with missing benchmark data, DART uses zero-shot initialization: it guesses the model's coordinates using static metadata (size, context length, price) and a "family graph" that averages the vectors of related models (same lineage and similar parameter scale).
- Demand Side (Query Requirements): A lightweight pretrained encoder—adapted via LoRA—reads the user's prompt and projects it into that exact same capability space. It is trained with a hybrid loss so that the vector's direction points toward the required skills, while its length (norm) acts as a direct geometric proxy for query difficulty.
- Inference-Time Routing: Online, routing reduces to a lightning-fast dot product between the query vector and each model's capability vector, minus a cost penalty. Crucially, DART divides the user's budget sensitivity by the query vector's length—automatically loosening the purse strings for genuinely hard prompts and tightening them for easy ones.
Datasets
The authors follow the RouterBench splits to train and evaluate across 86 tasks spanning seven established benchmarks (no new benchmarks are introduced):
- Commonsense Reasoning: HellaSwag, Winogrande, ARC Challenge
- Knowledge & Conversation: MMLU, MT-Bench
- Math & Coding: GSM8K, MBPP
These prompts are routed across a pool of 10 diverse open- and closed-source models (including Llama-2 70B, Mixtral 8x7B, Claude V2, and GPT-3.5 Turbo), with GPT-4 1106 Preview held out to test zero-shot cold-start onboarding.
Key Insights and Ideas
- Geometry beats extra neural networks for cost control: The authors tested a variant (
DART*) that used a small neural network to predict how cost-sensitive a query should be. Surprisingly, simply dividing a budget constant by the vector length of the query embedding beat the learned network across the board. The neural net overfit to training cost patterns, whereas vector length naturally preserved query difficulty. - Lineage is a strong prior: Even when 100% of a new model's benchmark scores are hidden (0% availability), anchoring its vector via family-tree neighbors and basic metadata lets DART route to it effectively from minute one.
- Smart encodings make decision layers obsolete: Once prompts and models live in a disentangled capability space, you don't need slow graph traversals or generative LLMs to make a routing choice—a parameter-free dot product suffices.
Key Results
Evaluated on Utility (a weighted tradeoff between response quality and monetary API cost), DART achieves state-of-the-art results across all budget regimes:
- Precision & Utility: DART scores 0.8636 (Performance-First), 0.4157 (Balanced), and 0.1643 (Cost-First), decisively beating the strongest baseline, GraphRouter (0.7677, 0.2887, and 0.1297, respectively).
- Minimal Overhead: DART's routing step takes just 0.18 ms (zero routing parameters) and 25.30 ms total including query encoding—roughly 5–6x faster than GraphRouter (158.56 ms) and CausalLMRouter (121.63 ms, which lugs around 3.2B routing parameters).
- Zero-Shot Onboarding: When GPT-4 is dropped into the pool unseen, DART immediately boosts overall utility (+0.57% in Performance-First, +0.29% in Balance), whereas GraphRouter and CausalLMRouter actually suffer utility drops of up to 7.31% and 17.44% because they fail to calibrate for the new model's capabilities and price.
Limitations and Future Work
DART currently calculates cost using static public token pricing. It doesn't account for the fact that different queries generate wildly different numbers of output tokens, nor does it factor in real-time API latency spikes or server congestion. For future work, the authors plan to incorporate dynamic, live system-level feedback—like predicted output length and real-time throughput—to optimize routing for live production environments.
Summary updated