--- title: 'Set-Valued Routing for Language-Model Agent Systems: A WildChat Benchmark and Cost-Aware Evaluation' authors: ['Ananto Nayan Bala', 'Faisal Muhammad Shah'] date: 2026-11-06 categories: ['cs.LG', 'cs.AI', 'cs.IR', 'cs.MA'] tags: ['multi_agent', 'ai_methodology', 'system_design', 'research_practice'] source_id: '2606.28925' source_url: 'https://arxiv.org/abs/2606.28925' description: 'Language-model agent systems must map natural-language requests to one or more specialized agents before planning or tool execution. This decision is often treated as top-1 selection, although...' keywords: ['cs.LG', 'cs.AI', 'cs.IR', 'cs.MA', 'Set-Valued', 'Routing', 'Language-Model'] canonical: 'https://dailyreading.cc/records/arxiv_2606.28925' --- # Set-Valued Routing for Language-Model Agent Systems: A WildChat Benchmark and Cost-Aware Evaluation Ananto Nayan Bala Ahsanullah University of Science and Technology Dhaka, Bangladesh nayan.ananto@gmail.com ## Abstract Language-model agent systems must map natural-language requests to one or more specialized agents before planning or tool execution. This decision is often treated as top-1 selection, although compositional requests can require several capabilities and unnecessary dispatch raises cost. We formulate fixed-catalog routing as set-valued language understanding and construct a benchmark of 3,000 WildChat prompts over 12 capability-defined agents. Reproducible schema-guided reference sets are balanced by agent frequency and route cardinality. We compare profile retrieval, multilabel classifiers, a fine-tuned text encoder, and catalog-conditioned zero-shot GPT-4o. Evaluation combines set quality, latency, capability coverage, and ordinal-cost utility. The encoder attains 89.59 F1, compared with 71.79 for linear SVM and 41.51 for GPT-4o, and retains 88.02 F1 under a harder semantic-group split. We further introduce Weighted Agent Routing (WAR), a deterministic postscoring rule that changes the quality–cost operating point without retraining; Encoder+WAR obtains the best constrained utility. The results show that catalog-specific supervision and explicit set construction are important for multi-agent dispatch, while cost-aware decision layers can complement strong language encoders. ## 1 Introduction Language-model agents increasingly operate through catalogs of specialized capabilities: retrieval, database access, external APIs, analysis, forecasting, visualization, and report generation. Before an agentic system can plan or execute, it must decide which capabilities should receive a user's request. This routing boundary is consequential. Omitting a required agent can make a workflow impossible, while dispatching unnecessary agents increases latency, monetary cost, and the number of components exposed to untrusted input. Many routing formulations select one tool, model, or expert. Natural-language requests, however, are often compositional: "fetch a series, detect anomalies, and plot them" calls for a set of capabilities. We therefore study routing as set-valued prediction. Given a prompt and a fixed agent catalog, the router returns a small, variable-cardinality agent set. This formulation separates two questions that are often entangled in end-to-end agent systems: which agents are relevant, and how they should subsequently coordinate or execute. The study focuses on the first question. We derive 3,000 linguistically diverse prompts from WildChat [26](#page-6-0) and map them to a 12-agent capability inventory using a documented schema-guided labeling protocol. The resulting reference routes are deliberately protocol-defined: an open-ended request may admit several reasonable decompositions under different assumptions about redundancy, Faisal Muhammad Shah Ahsanullah University of Science and Technology Dhaka, Bangladesh faisal.cse@aust.edu cost, or desired output. The benchmark is thus intended for controlled comparison of routing policies, not as a claim of universal intent ground truth. We compare semantic profile retrieval, classical multilabel models, a fine-tuned text encoder, and a catalog-conditioned zero-shot GPT-4o router. We also introduce Weighted Agent Routing (WAR), a deterministic decision layer that subtracts an ordinal agent-cost penalty from relevance scores before set construction. This design allows quality–cost operating points to change without retraining the underlying language model. The paper makes four contributions: - a set-valued formulation of language-based agent routing that represents compositional requests directly; - a reproducible WildChat-derived benchmark with 12 capability agents, controlled route cardinality, and balanced catalog coverage; - a shared evaluation of retrieval, supervised multilabel, finetuned encoder, and zero-shot LLM routers using set-level, execution-oriented, and semantic-group robustness measures; and - WAR, a simple cost-aware post-scoring layer, together with an analysis of how it changes routing utility for linear and encoder backbones. Code, data, configurations, and result aggregates are available at [https://github.com/nayanananto/multi-agent-routing.](https://github.com/nayanananto/multi-agent-routing) ## 2 Related Work ## 2.1 Tool Use and Language-Model Agents Tool-augmented language models learn or are prompted to select APIs and external functions. Toolformer learns when and how to call tools from self-generated supervision [18](#page-6-1); ToolLLM and Gorilla study large API inventories [11,](#page-6-2) [15](#page-6-3); and ToolkenGPT represents tools through learned embeddings [3](#page-6-4). Agent frameworks such as TaskWeaver, AutoGen, MetaGPT, and ChatDev organize tools or role-specialized language models into larger workflows [4,](#page-6-5) [12,](#page-6-6) [13,](#page-6-7) [21](#page-6-8). AgentBench evaluates language-model agents in interactive environments, while -bench evaluates policy-constrained tool– agent–user interactions [8,](#page-6-9) [22](#page-6-10). These systems motivate our setting, but commonly evaluate tool execution or complete workflows. We isolate the preceding dispatch decision and allow more than one agent to be selected. ## 2.2 Routing Models and Multi-Agent Composition Cost-aware LLM routing usually assigns each query to one model from an ensemble. Reward-guided routing, Hybrid LLM, and FrugalGPT balance response quality against inference expense [1, 2, 9]. RouterBench standardizes cost—quality comparisons across multi-LLM routers, RouteLLM learns routing from preference data, and TensorOpera Router learns query-space dispatch among specialized models [5, 10, 20]. LLMRouterBench extends unified router evaluation at larger scale [7]. Output-level systems such as LLM-Blender instead rank and fuse candidate model responses [6]. Our candidate items are capability-defined agents rather than interchangeable language models, and the output is a set chosen before execution rather than one selected model or a fusion of generated responses. MasRouter addresses a broader multi-agent-system routing problem that jointly determines collaboration mode, roles, and underlying LLMs [23]. Our scope is complementary: we hold the catalog fixed and isolate the initial natural-language-to-capability mapping. This narrower boundary enables controlled diagnosis of underrouting, over-routing, and cost-aware set selection before planning and inter-agent communication are introduced. ## 2.3 Multilabel Language Understanding Predicting several agents from one utterance is a multilabel text-classification problem, in which one instance may be associated with a variable-size label set [25]. Classifier Chains model label dependencies autoregressively [16], while ML-kNN estimates perlabel posteriors from neighboring examples [24]. Related multi-intent language-understanding work jointly predicts several intents and models their interaction with slots [14]. Sentence-BERT and MPNet provide dense representations for semantic matching and classification [17, 19]. We place these approaches under one set-construction protocol and contrast them with direct prompted-LLM selection; unlike multi-intent SLU, our labels denote executable agent capabilities rather than dialogue acts. ### 3 Task and Benchmark ### 3.1 Set-Valued Agent Routing Let $\mathcal{A} = \{a_1, \dots, a_M\}$ be a fixed catalog of agents and x a natural-language request. A protocol-defined reference route is $G(x) \subseteq \mathcal{A}$ , with $1 \le |G(x)| \le 3$ . A router produces scores $s_i(x)$ or directly emits a set $\hat{S}(x) \subseteq \mathcal{A}$ . Each agent has an ordinal cost tier $c(a_i) \in \{1, 2, 3\}$ . The goal is to cover the capabilities in G(x) with a compact set while avoiding unnecessary or expensive dispatch. The 12-agent inventory spans five access agents (time-series, SQL, API, log, and metadata retrieval), four analytic agents (statistical, trend, anomaly, and forecast), and three presentation agents (plot, summary, and report generation). Appendix A lists the complete inventory and cost tiers. ### 3.2 WildChat-Derived Prompts WildChat contains naturally occurring interactions with deployed conversational models [26]. We retain user prompts that activate at least one capability in the fixed inventory. The resulting benchmark contains N = 3,000 unique prompts. Its natural language is inherited from WildChat, while the routing targets and class distribution are introduced by our protocol. Reference routes are produced by reproducible schema-guided rules. Agent-specific lexical and semantic cues first identify candidate capabilities. Explicit composition patterns then retain multiple agents for requests that combine distinct operations, such as retrieval followed by analysis or forecasting followed by visualization. Sets are capped at three agents. The candidate pool is subsequently selected by a deterministic balancing procedure that enforces 1,800 single-agent, 900 two-agent, and 300 three-agent routes and 375 occurrences of every agent. We refer to these outputs as *reference sets*, rather than universal gold intents, because different deployments may reasonably decompose the same request differently. We use a fixed split stratified by reference-set size: 2,400 train, 300 development, and 300 test prompts. No normalized exact prompt occurs in more than one partition. Rebalancing makes comparisons stable across the catalog but intentionally differs from the naturally skewed WildChat distribution. ## 3.3 Protocol Consistency Check We test whether the automatically constructed routes exhibit systematic local structure. A TF–IDF cosine graph is built over all prompts, and reference-set overlap is compared between nearestneighbor and random prompt pairs. Rank-1 neighbors have mean set Jaccard 0.601, any-label overlap 0.732, and exact-set match 0.490, versus 0.091, 0.179, and 0.034 for random pairs. Across the top five neighbors, mean Jaccard is 0.494; prompt similarity and label-set Jaccard have Pearson correlation 0.517. This analysis measures consistency, not human validity, but shows that the protocol associates similar language with substantially more similar routes than chance. Figure 1 summarizes both the controlled route-cardinality mix and the nearest-neighbor consistency gap. ### 4 Routing Methods ### 4.1 Shared Text Representation The embedding-based methods encode a prompt with all-mpnet-base-v2. Let $f(x) \in \mathbb{R}^d$ denote the $\ell_2$ -normalized prompt vector. Each agent also has textual profile chunks containing its role, capability description, and intent cues. All frozen-feature methods use the same MPNet encoder; the fine-tuned model starts from the same checkpoint and then adapts it to the routing catalog. ### 4.2 Routing Baselines *Majority*. The majority baseline always emits the most frequent agent in the training split (MetadataLookupAgent). *Profile retrieval (KNN)..* Let $V_i$ contain the embeddings of agent i's profile chunks. The retrieval score is the maximum prompt–profile cosine similarity, $$s_i^{\text{KNN}}(x) = \max_{v \in V_i} f(x)^{\top} v. \tag{1}$$ This baseline requires no task-specific parameter fitting. *Linear SVM.*. A one-vs-rest linear SVM is trained on prompt embeddings and multi-hot reference vectors. Class-balanced margins are mapped through a sigmoid to obtain per-agent scores. This ![](figures/arxiv_2606.28925/_page_2_Figure_0.jpeg) ![](figures/arxiv_2606.28925/_page_2_Figure_1.jpeg) Figure 1: Benchmark construction and consistency. Left: reference-set cardinality is controlled at 60% single-agent, 30% twoagent, and 10% three-agent routes. Right: rank-1 TF–IDF neighbors have substantially greater reference-set overlap than random prompt pairs. Cosine similarity and set Jaccard have Pearson correlation = 0.517. This is an internal consistency diagnostic, not human validation. model tests how much catalog-specific supervision can add without adapting the text encoder. Dependency-aware models. Classifier Chains (CC) expose earlier binary label decisions to later classifiers, while ML-kNN estimates per-agent posteriors from labeled neighbors. Both model label cooccurrence explicitly. Fine-tuned encoder. The MPNet backbone is fine-tuned jointly with a linear multilabel head. Sigmoid outputs provide one probability per agent. This model can adapt the language representation itself to the routing schema. Catalog-conditioned GPT-4o. GPT-4o receives the complete agent catalog, minimal-sufficient-set instructions, and a constrained JSON output schema, but no labeled benchmark examples. Temperature is zero, and outputs are limited to one to three valid agent names. We therefore treat it as a catalog-conditioned zero-shot baseline. ## 4.3 Set Construction Score-producing methods use one global threshold : $$\hat{S}(x) = \{a_i \mid s_i(x) \ge t\}. \tag{2}$$ If the set is empty, the highest-scoring agent is selected. Development thresholds are swept over {0.4, 0.5, 0.6, 0.7, 0.8, 0.9}. GPT-4o and Majority emit sets directly. ### 4.4 Weighted Agent Routing Weighted Agent Routing (WAR) is a deterministic post-scoring policy. Given a relevance score and ordinal cost tier, it computes $$\tilde{s}_i(x) = s_i(x) - \lambda c(a_i), \tag{3}$$ then applies Eq. [2](#page-2-1) to ˜() with the same top-1 fallback. WAR does not retrain or replace the router; it changes the decision boundary so that a higher-cost agent needs correspondingly stronger relevance evidence. We apply WAR to the linear SVM and fine-tuned encoder. Threshold and penalty ∈ {0, 0.02, 0.05, 0.10, 0.15} are jointly selected on development utility. ## 5 Experimental Setup ## 5.1 Training and Reproducibility All methods use the fixed 2,400/300/300 split. The fine-tuned encoder is trained for three epochs with batch size 8, learning rate 2 × 10−5 , and weight decay 10−2 . We report seeds 42, 43, and 44. Majority, profile retrieval, linear SVM, ML-kNN, and Linear+WAR are deterministic under the fixed split and therefore have zero variance; CC, Encoder, and Encoder+WAR vary with seed. GPT-4o is one zero-shot API run. The shared threshold = 0.60 is selected on development data for the unconstrained comparison. WAR configurations are selected separately by development utility and evaluated once on test data. We additionally construct a leakage-resistant semantic-group split. A frozen multilingual MiniLM encoder embeds all prompts, and connected components in the exact cosine graph at similarity ≥ 0.82 are assigned wholly to train, development, or test. Distributionaware assignment produces 2,400/301/299 prompts; the maximum cross-split cosine is 0.819. Linear SVM and the encoder are retrained under the same configurations, with thresholds selected on the grouped development partition. ### 5.2 Set and Execution-Oriented Metrics For each prompt we compute sample-averaged precision, recall, F1, Jaccard similarity, exact set match (EM), and predicted set size. These distinguish missing required capabilities from adding unnecessary ones. We also simulate the dispatch boundary without executing downstream agents. Success is 1[() ⊆ ˆ ()], and capability coverage is Coverage(x) = $$\frac{|G(x) \cap \hat{S}(x)|}{|G(x)|}.$$ (4) ![](figures/arxiv_2606.28925/_page_3_Figure_0.jpeg) Figure 2: Evaluated routing paths. Score-producing routers share thresholded set construction, with WAR optionally adjusting scores using ordinal costs. GPT-40 and Majority emit sets directly, and every predicted set is evaluated under the same protocols. The ordinal dispatch cost is $\sum_{a \in \hat{S}(x)} c(a)$ and $\text{Extra}(x) = |\hat{S}(x)| \setminus G(x)$ . Utility is $$U = \text{Coverage} - 0.10 \,\text{Cost} - 0.05 \,\text{Extra}. \tag{5}$$ The coefficients define one transparent operating environment rather than universal monetary values. Per-query latency comes from a representative run and includes API round-trip time for GPT-40. #### 6 Results ### 6.1 Set-Valued Routing Quality Table 1 shows a clear separation between catalog-supervised routing and direct profile or prompted-LLM selection. The fine-tuned encoder achieves the best unconstrained result: F1 89.59 $\pm$ 0.33, Jaccard 85.52 $\pm$ 0.30, and EM 73.11 $\pm$ 0.19. Linear SVM reaches 71.79 F1 and exactly matches the average reference cardinality of 1.50. It substantially exceeds profile retrieval (42.56 F1), showing that the frozen embedding already contains useful semantic information but requires catalog-specific decision boundaries. CC and ML-kNN occupy an intermediate range. CC favors recall and larger sets, whereas ML-kNN favors precision. Their 65.13 and 63.10 F1 scores indicate that label-dependency modeling helps relative to direct profile similarity, but representation adaptation remains more consequential in this benchmark. Catalog-conditioned zero-shot GPT-40 obtains 41.51 F1 despite receiving full agent descriptions and a constrained output schema. Its average set size (1.40) is close to the reference average, so the gap is not explained only by over- or under-selection. Instead, the model often chooses a plausible capability set that does not match the benchmark's catalog-specific decomposition. This result cautions against assuming that broad instruction-following ability alone yields calibrated fixed-inventory routing. Figure 3 visualizes the precision–recall separation behind Table 1. The encoder occupies the strongest joint operating region, while the zero-shot LLM remains close to profile retrieval despite producing a comparably sized route set. ![](figures/arxiv_2606.28925/_page_3_Figure_11.jpeg) Figure 3: Precision-recall positions under the selected unconstrained protocol. GPT-40 is one zero-shot run; non-LLM results use the three-seed aggregate where applicable. #### 6.2 Threshold Behavior Figure 4 shows the expected set-construction trade-off. Linear SVM rises from 58.31 F1 at t=0.40 to a development peak of 70.09 at t=0.60, then loses recall. The encoder rises more sharply, from 73.41 at t=0.50 to 90.42 at t=0.60, before falling to 83.89 at $t\geq 0.70$ . The shared interior optimum indicates that explicit set calibration matters even when the underlying semantic scorer is strong. ## 6.3 Semantic-Group Robustness Table 2 tests whether the main ranking survives after close semantic neighborhoods are kept within one partition. The split is substantially harder for the frozen-feature linear model, whose F1 falls by 10.01 points. In contrast, the fine-tuned encoder falls by only 1.57 points and retains 88.02 F1 and 69.23 exact match. The encoder's advantage therefore persists when no prompt pair with cosine similarity at or above 0.82 crosses partitions, reducing the Table 1: Test-set routing results at the shared unconstrained threshold t = 0.60. Values are percentages except average set size. CC and Encoder report mean $\pm$ standard deviation over three seeds; deterministic methods have identical values across seeds. GPT-40 is one zero-shot run. | Method | Precision | Recall | F1 | Jaccard | EM | Avg. $ \hat{S} $ | |--------------------|------------------|------------------|------------------|------------------|------------------|------------------| | Majority | 10.33 | 6.94 | 7.94 | 6.94 | 4.33 | 1.00 | | Profile retrieval | 52.00 | 38.39 | 42.56 | 38.39 | 27.00 | 1.00 | | Linear SVM | 73.03 | 75.33 | 71.79 | 66.36 | 49.67 | 1.50 | | Classifier Chains | $64.49 \pm 1.17$ | $71.96 \pm 0.61$ | $65.13 \pm 1.04$ | $58.00 \pm 1.26$ | $37.56 \pm 1.71$ | $1.65\pm0.01$ | | ML-kNN | 71.44 | 60.50 | 63.10 | 58.36 | 45.33 | 1.15 | | GPT-4o (zero-shot) | 46.22 | 42.33 | 41.51 | 35.56 | 19.00 | 1.40 | | Fine-tuned Encoder | $97.80 \pm 0.23$ | $85.98 \pm 0.42$ | $89.59 \pm 0.33$ | $85.52\pm0.30$ | $73.11 \pm 0.19$ | $1.20\pm0.01$ | ![](figures/arxiv_2606.28925/_page_4_Figure_2.jpeg) Figure 4: Development threshold sweep (mean $\pm$ standard deviation over three seeds). Lower thresholds over-select; higher thresholds suppress recall. Table 2: Routing robustness under the semantic-group split. Values are percentages; encoder results are mean $\pm$ standard deviation over three seeds. "Standard" denotes the primary stratified split. | Method | Std. F1 | Grouped F1 | Grouped EM | |---------|------------------|----------------|------------------| | Linear | 71.79 | 61.78 | 45.15 | | Encoder | $89.59 \pm 0.33$ | $88.02\pm0.92$ | $69.23 \pm 1.53$ | likelihood that its primary result is explained by close train–test paraphrases alone. ### 6.4 Capability Coverage, Latency, and Utility Table 3 asks whether a predicted set covers all reference capabilities. The encoder reaches $74.33 \pm 1.20$ success and $86.07 \pm 0.68$ coverage while adding only 0.03 extra agents on average. Linear SVM is the strongest non-neural local alternative at 0.465 utility. The GPT-40 baseline is both less accurate and substantially slower in this representative API-backed run; latency should be interpreted as a deployment measurement rather than an intrinsic model comparison. ![](figures/arxiv_2606.28925/_page_4_Figure_9.jpeg) Figure 5: Development utility as the WAR penalty varies at each method's selected threshold. Labeled markers indicate the chosen operating points. ### 6.5 Cost-Aware Operating Points WAR changes the routing policy rather than the relevance model. To separate its contribution from ordinary threshold tuning, we also select the no-WAR ( $\lambda=0$ ) threshold directly by development utility. This independently selects t=0.60 for both backbones, so the Linear and Encoder rows in Table 3 are also utility-optimized nopenalty baselines. Against these controls, Linear+WAR raises test utility from 0.465 to 0.480: average cost falls from 2.67 to 2.48 while success and coverage remain nearly unchanged. Encoder+WAR raises coverage from 86.07 to 96.39 and success from 74.33 to 92.11; the coverage gain outweighs higher cost and extra-agent penalties, increasing utility from 0.654 to 0.670. Thus, the gain is not obtained by comparing WAR with an F1-only threshold, and "cost-aware" denotes optimization of the stated quality–cost objective rather than cost minimization alone. The selected development operating point uses $(t,\lambda)=(0.40,0.10)$ for Linear+WAR and (0.50,0.02) for Encoder+WAR. The stronger encoder needs only a light cost adjustment, while the linear scorer benefits from a larger penalty. These are joint development-selected operating points; they should not be interpreted as universal cost settings. Table 3: Execution-oriented test results on 300 prompts. F1, success, and coverage are percentages; latency is milliseconds per query. Encoder rows report three-seed mean ± standard deviation. A dash indicates that separate post-processing latency was not measured. | Method | F1 | Success | Coverage | Cost | Extra | Utility | ms | |--------------------|--------------|--------------|--------------------------------------|------|-------|------------------------------------------------------------------------------|---------------| | Profile retrieval | 42.56 | 27.00 | 38.39 | 1.81 | 0.48 | 0.179 | 66.07 | | Linear SVM | 71.79 | 66.67 | 75.33 | 2.67 | 0.43 | 0.465 | 60.94 | | Linear+WAR | 69.72 | 66.67 | 75.39 | 2.48 | 0.53 | 0.480 | – | | Encoder | 89.59 ± 0.33 | 74.33 ± 1.20 | 86.07 ± 0.68 2.06 ± 0.02 0.03 ± 0.00 | | | 0.654 ± 0.006 | 49.93 | | Encoder+WAR | | | | | | 91.36 ± 0.82 92.11 ± 0.69 96.39 ± 0.34 2.82 ± 0.03 0.24 ± 0.03 0.670 ± 0.005 | – | | GPT-4o (zero-shot) | 41.51 | 29.33 | 42.33 | 2.01 | 0.78 | | 0.183 1979.06 | ## 7 Discussion Three findings are most relevant to language-model agent systems. First, routing is not solved simply by placing a capable LLM in front of an agent catalog. The zero-shot GPT-4o router produces reasonable-size sets but does not reproduce the fixed routing protocol reliably. In contrast, even a linear classifier trained on frozen text embeddings gains roughly 30 F1 points over GPT-4o. Catalogspecific supervision therefore matters when agent definitions are operational and route cardinality must be calibrated. Second, adapting the language representation matters more than adding label-dependency structure alone. CC and ML-kNN improve on profile retrieval, yet remain far behind the fine-tuned encoder. The semantic-group split sharpens this finding: linear SVM loses 10.01 F1 points, whereas the adapted encoder loses only 1.57. Much of the difficulty therefore lies in mapping heterogeneous wording into the local capability schema rather than recovering only close paraphrase neighborhoods. Third, relevance estimation and deployment policy are usefully separable. WAR leaves the backbone unchanged and adjusts only the set decision. On the linear model it primarily reduces tier cost; on the encoder it chooses a higher-coverage operating point whose added cost is justified by the utility. This separation is attractive for agent platforms because cost policies can change without repeating encoder training. The study intentionally stops at dispatch. It does not claim that selecting the reference set guarantees a correct final answer, successful coordination, or safe tool execution. Rather, it supplies a controlled diagnostic for one failure surface within a larger agent architecture. End-to-end agent benchmarks and this routing benchmark answer different questions: the former measure complete behavior, while the latter attributes errors specifically to capability selection. ## 8 Conclusion We framed fixed-catalog language-model agent routing as setvalued prediction and evaluated it on 3,000 WildChat-derived prompts over 12 capabilities. Under a shared protocol, a fine-tuned encoder produced the most accurate agent sets, retained 88.02 F1 on a leakage-resistant semantic-group split, and substantially exceeded both linear SVM and catalog-conditioned zero-shot GPT-4o. The WAR decision layer further separated relevance scoring from a development-selected quality–cost policy and improved over utility-optimized no-WAR controls. These findings support explicit set construction and catalog-specific learning at the dispatch boundary of multi-agent systems. Future work should replace protocol-defined routes with independently annotated alternatives, evaluate natural catalog frequencies, and connect routing decisions to real multi-agent execution outcomes. ## 9 Limitations The reference routes are produced automatically from a fixed capability schema rather than independently annotated by multiple humans. They are reproducible and internally systematic, but they can encode lexical biases and cannot establish a uniquely correct decomposition for every open-ended prompt. Inter-prompt consistency is evidence of regularity, not a substitute for human validity or inter-annotator agreement. Balancing agent frequencies and route cardinalities improves diagnostic coverage but changes the natural WildChat distribution. The primary random stratified split has no exact duplicate prompts across partitions. Our additional semantic-group split keeps every pair with frozen-encoder cosine similarity ≥ 0.82 in one partition, but weaker semantic overlap can remain below that threshold, and neither split reproduces WildChat's natural route frequencies. Temporal and cross-catalog evaluations would provide further generalization tests. The catalog contains only 12 English-described capabilities, and results may not transfer to larger, multilingual, dynamically changing, or more overlapping inventories. GPT-4o is evaluated in one zero-shot run, so the result does not characterize other proprietary or open models, alternative prompts, or sampling settings. Cost tiers are ordinal proxies rather than measured prices, energy use, or context-dependent latency. The execution-oriented study simulates capability coverage and does not execute agents, evaluate ordering, model inter-agent communication, or measure final answer quality. Consequently, the reported utility identifies operating points under one transparent proxy environment rather than deployment-optimal policies. ## 10 Ethical Considerations The benchmark derives prompts from the public WildChat research corpus. Public availability does not eliminate privacy concerns in conversational logs: prompts may contain personal, sensitive, offensive, or copyrighted material. Any redistribution must follow the source dataset's license and access conditions, preserve applicable filtering, and avoid using metadata to identify or profile users. Country and source-model fields are not used as router inputs in our experiments. Automatically assigned reference routes can reproduce biases in the capability definitions and lexical rules. They should not be treated as human intent labels or used directly for high-stakes dispatch. In deployed systems, routing errors can omit necessary capabilities or invoke unnecessary external tools, increasing cost and attack surface. Appropriate safeguards include authorization at tool boundaries, confidence-aware fallback, rate limits on fan-out, audit logs, and human review for consequential requests. ## References - [1] Lingjiao Chen, Matei Zaharia, and James Zou. 2023. FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performance. arXiv preprint arXiv:2305.05176 (2023). - [2] Dujian Ding, Ankur Mallick, Chi Wang, Robert Sim, Subhabrata Mukherjee, Victor Rühle, Laks V. S. Lakshmanan, and Ahmed Hassan Awadallah. 2024. Hybrid LLM: Cost-Efficient and Quality-Aware Query Routing. In The Twelfth International Conference on Learning Representations. [https://proceedings.iclr.cc/paper\\_files/paper/2024/hash/](https://proceedings.iclr.cc/paper_files/paper/2024/hash/b47d93c99fa22ac0b377578af0a1f63a-Abstract-Conference.html) [b47d93c99fa22ac0b377578af0a1f63a-Abstract-Conference.html](https://proceedings.iclr.cc/paper_files/paper/2024/hash/b47d93c99fa22ac0b377578af0a1f63a-Abstract-Conference.html) - [3] Shibo Hao, Tianyang Liu, Zhen Wang, and Zhiting Hu. 2023. ToolkenGPT: Augmenting Frozen Language Models with Massive Tools via Tool Embeddings. In Advances in Neural Information Processing Systems, Vol. 36. [https://openreview.](https://openreview.net/forum?id=BHXsb69bSx) [net/forum?id=BHXsb69bSx](https://openreview.net/forum?id=BHXsb69bSx) - [4] Sirui Hong et al. 2024. MetaGPT: Meta Programming for a Multi-Agent Collaborative Framework. In The Twelfth International Conference on Learning Representations. - [5] Qitian Jason Hu, Jacob Bieker, Xiuyu Li, Nan Jiang, Benjamin Keigwin, Gaurav Ranganath, Kurt Keutzer, and Shriyash Kaustubh Upadhyay. 2024. RouterBench: A Benchmark for Multi-LLM Routing System. arXiv preprint arXiv:2403.12031 (2024). [doi:10.48550/arXiv.2403.12031](https://doi.org/10.48550/arXiv.2403.12031) - [6] Dongfu Jiang, Xiang Ren, and Bill Yuchen Lin. 2023. LLM-Blender: Ensembling Large Language Models with Pairwise Ranking and Generative Fusion. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). Association for Computational Linguistics, 14165–14178. [doi:10.18653/v1/2023.acl-long.792](https://doi.org/10.18653/v1/2023.acl-long.792) - [7] Hao Li, Yiqun Zhang, Zhaoyan Guo, Chenxu Wang, Shengji Tang, Qiaosheng Zhang, Yang Chen, Biqing Qi, Peng Ye, Lei Bai, Zhen Wang, and Shuyue Hu. 2026. LLMRouterBench: A Massive Benchmark and Unified Framework for LLM Routing. In Findings of the Association for Computational Linguistics: ACL 2026. Association for Computational Linguistics, 37733–37754. [doi:10.18653/v1/2026.](https://doi.org/10.18653/v1/2026.findings-acl.1881) [findings-acl.1881](https://doi.org/10.18653/v1/2026.findings-acl.1881) - [8] Xiao Liu, Hao Yu, Hanchen Zhang, Yifan Xu, Xuanyu Lei, Hanyu Lai, Yu Gu, Hangliang Ding, Kaiwen Men, Kejuan Yang, Shudan Zhang, Xiang Deng, Aohan Zeng, Zhengxiao Du, Chenhui Zhang, Sheng Shen, Tianjun Zhang, Yu Su, Huan Sun, Minlie Huang, Yuxiao Dong, and Jie Tang. 2024. AgentBench: Evaluating LLMs as Agents. In The Twelfth International Conference on Learning Representations. - [9] Keming Lu, Hongyi Yuan, Runji Lin, Junyang Lin, Zheng Yuan, Chang Zhou, and Jingren Zhou. 2024. Routing to the Expert: Efficient Reward-Guided Ensemble of Large Language Models. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers). Association for Computational Linguistics. [doi:10.18653/v1/2024.naacl-long.109](https://doi.org/10.18653/v1/2024.naacl-long.109) - [10] Isaac Ong, Amjad Almahairi, Vincent Wu, Wei-Lin Chiang, Tianhao Wu, Joseph E. Gonzalez, M. Waleed Kadous, and Ion Stoica. 2025. RouteLLM: Learning to Route LLMs from Preference Data. In The Thirteenth International Conference on Learning Representations. - [11] Shishir G. Patil, Tianjun Zhang, Xin Wang, and Joseph E. Gonzalez. 2024. Gorilla: Large Language Model Connected with Massive APIs. In Advances in Neural Information Processing Systems, Vol. 37. [doi:10.52202/079017-4020](https://doi.org/10.52202/079017-4020) - [12] Chen Qian et al. 2024. ChatDev: Communicative Agents for Software Development. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). Association for Computational Linguistics, 15174–15186. [doi:10.18653/v1/2024.acl-long.810](https://doi.org/10.18653/v1/2024.acl-long.810) - [13] Bo Qiao et al. 2023. TaskWeaver: A Code-First Agent Framework. arXiv preprint arXiv:2311.17541 (2023). - [14] Libo Qin, Xiao Xu, Wanxiang Che, and Ting Liu. 2020. AGIF: An Adaptive Graph-Interactive Framework for Joint Multiple Intent Detection and Slot Filling. In Findings of the Association for Computational Linguistics: EMNLP 2020. Association for Computational Linguistics, 1807–1816. [doi:10.18653/v1/2020.findings-emnlp.](https://doi.org/10.18653/v1/2020.findings-emnlp.163) [163](https://doi.org/10.18653/v1/2020.findings-emnlp.163) - [15] Yujia Qin et al. 2024. ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIs. In The Twelfth International Conference on Learning Representations. - [16] Jesse Read, Bernhard Pfahringer, Geoff Holmes, and Eibe Frank. 2011. Classifier Chains for Multi-label Classification. Machine Learning 85, 3 (2011), 333–359. [doi:10.1007/s10994-011-5256-5](https://doi.org/10.1007/s10994-011-5256-5) - [17] Nils Reimers and Iryna Gurevych. 2019. Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing. Association for Computational Linguistics, 3982– 3992. [doi:10.18653/v1/D19-1410](https://doi.org/10.18653/v1/D19-1410) - [18] Timo Schick, Jane Dwivedi-Yu, Roberto Dessì, Roberta Raileanu, Maria Lomeli, Eric Hambro, Luke Zettlemoyer, Nicola Cancedda, and Thomas Scialom. 2023. Toolformer: Language Models Can Teach Themselves to Use Tools. In Advances in Neural Information Processing Systems, Vol. 36. [https://proceedings.neurips.cc/paper\\_files/paper/2023/hash/](https://proceedings.neurips.cc/paper_files/paper/2023/hash/d842425e4bf79ba039352da0f658a906-Abstract-Conference.html) [d842425e4bf79ba039352da0f658a906-Abstract-Conference.html](https://proceedings.neurips.cc/paper_files/paper/2023/hash/d842425e4bf79ba039352da0f658a906-Abstract-Conference.html) - [19] Kaitao Song, Xu Tan, Tao Qin, Jianfeng Lu, and Tie-Yan Liu. 2020. MPNet: Masked and Permuted Pre-training for Language Understanding. In Advances in Neural Information Processing Systems, Vol. 33. 16857–16867. - [20] Dimitris Stripelis, Zhaozhuo Xu, Zijian Hu, Alay Dilipbhai Shah, Han Jin, Yuhang Yao, Jipeng Zhang, Tong Zhang, Salman Avestimehr, and Chaoyang He. 2024. TensorOpera Router: A Multi-Model Router for Efficient LLM Inference. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing: Industry Track. Association for Computational Linguistics, 452–462. [doi:10.18653/v1/2024.emnlp-industry.34](https://doi.org/10.18653/v1/2024.emnlp-industry.34) - [21] Qingyun Wu, Gagan Bansal, Jieyu Zhang, Yiran Wu, Beibin Li, Erkang Zhu, Li Jiang, Xiaoyun Zhang, Shaokun Zhang, Jiale Liu, Ahmed Hassan Awadallah, Ryen W. White, Doug Burger, and Chi Wang. 2024. AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation. In First Conference on Language Modeling. - [22] Shunyu Yao, Noah Shinn, Pedram Razavi, and Karthik R. Narasimhan. 2025. -bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domains. In The Thirteenth International Conference on Learning Representations. [https:](https://openreview.net/forum?id=roNSXZpUDN) [//openreview.net/forum?id=roNSXZpUDN](https://openreview.net/forum?id=roNSXZpUDN) - [23] Yanwei Yue, Guibin Zhang, Boyang Liu, Guancheng Wan, Kun Wang, Dawei Cheng, and Yiyan Qi. 2025. MasRouter: Learning to Route LLMs for Multi-Agent Systems. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). Association for Computational Linguistics, 15549–15572. [doi:10.18653/v1/2025.acl-long.757](https://doi.org/10.18653/v1/2025.acl-long.757) - [24] Min-Ling Zhang and Zhi-Hua Zhou. 2007. ML-KNN: A Lazy Learning Approach to Multi-Label Learning. Pattern Recognition 40, 7 (2007), 2038–2048. [doi:10.1016/](https://doi.org/10.1016/j.patcog.2006.12.019) [j.patcog.2006.12.019](https://doi.org/10.1016/j.patcog.2006.12.019) - [25] Min-Ling Zhang and Zhi-Hua Zhou. 2014. A Review on Multi-Label Learning Algorithms. IEEE Transactions on Knowledge and Data Engineering 26, 8 (2014), 1819–1837. [doi:10.1109/TKDE.2013.39](https://doi.org/10.1109/TKDE.2013.39) - [26] Wenting Zhao, Xiang Ren, Jack Hessel, Claire Cardie, Yejin Choi, and Yuntian Deng. 2024. WildChat: 1M ChatGPT Interaction Logs in the Wild. In The Twelfth International Conference on Learning Representations. [https://openreview.net/](https://openreview.net/forum?id=Bl8u7ZRlbM) [forum?id=Bl8u7ZRlbM](https://openreview.net/forum?id=Bl8u7ZRlbM) ## A Agent Catalog Table 4: Fixed 12-agent inventory. Tiers are ordinal deployment proxies: 1 denotes retrieval or light synthesis, 2 analysis or presentation, and 3 external access or inference-heavy forecasting. | Agent | | Tier Capability | |--------------------------|---|------------------------------------------------------------------| | TimeSeriesQueryAgent | 1 | Retrieve time-series observations over a requested interval. | | SQLQueryAgent | 1 | Filter, join, group, and aggregate structured tables. | | APIDataFetchAgent | 3 | Fetch live or recent data from external APIs. | | LogRetrievalAgent | 1 | Retrieve and filter application or system logs. | | MetadataLookupAgent | 1 | Find schemas, columns, endpoints, and dataset metadata. | | StatisticalAnalysisAgent | 2 | Compute descriptive statistics, distributions, and correlations. | | TrendAnalysisAgent | 2 | Identify temporal trends, seasonality, and direction changes. | | AnomalyDetectionAgent | 2 | Detect spikes, drops, outliers, and unusual patterns. | | ForecastAgent | 3 | Predict future values from historical observations. | | PlotGenerationAgent | 2 | Produce charts and plots from numeric or temporal data. | | SummaryAgent | 1 | Produce concise natural-language summaries. | | ReportWriterAgent | 2 | Produce structured, detailed reports for stakeholders. | ## B Benchmark Examples and Distributions Table 5: Illustrative benchmark prompts and protocol-defined reference routes. | Prompt | Reference agents | |---------------------------------------------------------------------|-----------------------| | Plot monthly sales trends for 2023 and highlight anomalies. | Trend, Plot, Anomaly | | Fetch the latest CPI series and compute year-over-year change. | API Fetch, Statistics | | Find the shipments schema and query delayed shipments last quarter. | Metadata, SQL | | Forecast next-month demand using historical orders. | Forecast, Statistics | ![](figures/arxiv_2606.28925/_page_7_Figure_6.jpeg) Figure 6: Per-agent appearance rates in the protocol-defined benchmark. Each capability occurs in 375 of the 3,000 prompts (12.5%). A prompt may contain several agents, so these rates are not a partition of prompts. This controlled distribution is not the natural WildChat frequency distribution. ## C Additional Routing View #### 1.00 1.00 1.50 1.65 1.15 1.20 1.40 Majority Profile retrieval Linear SVM CC ML-kNN Encoder GPT-4o (zero-shot) 0 0.4 0.8 1.2 1.6 Average Predicted Set Size Average predicted set size Figure 7: Average predicted set size under the selected unconstrained protocol. WAR variants are analyzed separately because they optimize execution-oriented utility. ## D Deployment Context ![](figures/arxiv_2606.28925/_page_8_Figure_4.jpeg) Figure 8: Illustrative deployment context from the earlier manuscript. The benchmark in this paper evaluates capability-set selection only. Prompt sanitization, route-map lookup, endpoint addresses, and downstream agent execution are shown as possible surrounding deployment components; they are not evaluated or claimed as experimental results here. Endpoint addresses are illustrative.