Manuscript Offprint

arXiv:2610.27822

COMPASS: Routing via Capability-Oriented Model Profiling with Adaptive Search, Selection, and Tool Use

Amin Rezaei, Pouya Parsa

ABSTRACT

LLM routing aims to select a capable model at low cost, but specialized routers can require updates as models and tasks change. We propose COMPASS, an agentic router in which an LLM follows a routing recipe, gathers performance and cost evidence through tools, and optionally inspects candidate answers before selecting a model. Our evaluations on LLMRouterBench and DeepSWE show that agentic routing can improve accuracy and lower model-call cost relative to specialized and trained routing baselines, without routing-specific training. On LLMRouterBench, COMPASS reaches 69.85% accuracy at 139.57,comparedwithRLCascadeRouter′s69.14139.57, compared with RLCascadeRouter's 69.14% at180.22. On DeepSWE under fixed five-fold cross-validation, it reaches 78.1% at 215,comparedwith74.1215, compared with 74.1% at500 for the best single model. COMPASS also supports routing across benchmarks and adapts to an expanded model pool by reading new evaluation records, without changing the router's weights or prompt.

1 INTRODUCTION

The ecosystem of large language models has fragmented into distinct capability–price tiers. Frontier models dominate benchmarks but are expensive and often slow; small open-weight models are cheap and fast, and for many task distributions they are entirely sufficient. Consider a user requesting a simple Python script: this task does not require a frontier model, and a cost-effective model would complete it at a fraction of the price. The difficulty is that this knowledge is available only in hindsight: one would need to query both the cheap and the frontier model to know whether the cheap model actually sufficed. The routing problem is precisely the problem of estimating this counterfactual before committing to a model.

Routing must navigate a three-way trade-off:

• Cost. Cheaper models reduce per-token spend, but only if they succeed; failed attempts followed by escalation can cost more than routing correctly the first time.

• Latency. A cheap model with low throughput that emits many tokens can take far longer end-to-end than a stronger model that solves the task in substantially fewer tokens. Cost-optimal and latency-optimal choices frequently diverge.

• Accuracy. Some users simply want the strongest available response regardless of price.

Most prior work optimizes a single axis, usually cost reduction at near-constant quality, because cost is the easiest axis to measure and experiment on (Chen et al., 2024a; Ong et al., 2025). Optimizing for accuracy instead pushes evaluation toward frontier models, where per-experiment API costs are substantial and public fine-grained evaluation data is scarce.

Routing recipes. Users can specify what they value without estimating how difficult a query will be. A performance-focused recipe asks the router to prioritize reliable completion; a cost-optimized

∗^{*}Equal contribution.

recipe asks it to seek cheaper configurations when the evidence supports comparable quality. Qualitative levels such as low, medium, or high can express the strength of these preferences. The recipe provides guidelines for gathering evidence and making a decision, while the router assesses the query using that evidence. Numerical trade-off parameters can still be used inside tools and experimental sweeps; users need not tune them for each request.

The staleness problem. When model-specific performance estimates are encoded in a trained router, changes in the model pool or task distribution can require new supervision or updates. Methods that support unseen models reduce this burden, but still need useful evidence about their capabilities. We instead keep evaluation outcomes in an external corpus that the router can query at inference time. New models can be added by collecting and inserting their evaluation records, without updating the routing agent's weights. This shifts the maintenance burden to evidence collection, whose cost and coverage remain important limitations.

Our proposal. We separate routing knowledge from routing skill. Knowledge about which model scored what, at what cost, and on which task lives in an external evaluation corpus. The skill to query that corpus and decide under a routing recipe comes from the tool-use capabilities of an existing LLM. COMPASS requires no routing-specific weight training: the agent follows the recipe, adaptively explores evidence, and submits a result when it judges the evidence sufficient. This yields three design requirements:

  1. Recalibration through evidence. New models and benchmarks are incorporated by inserting evaluation records into the corpus; the router’s weights are untouched.

  2. Recipe-oriented routing. The router follows input guidelines, including performance-focused and cost-optimized recipes with qualitative preference levels.

  3. Low routing overhead. Evidence acquisition and agent inference must be economical enough to preserve any savings in model execution.

References (42)