arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2603.13426cs.LGcs.AI
收藏

面向结果的工具选择用于语义路由器:无LLM推理的延迟受限学习

Outcome-Aware Tool Selection for Semantic Routers: Latency-Constrained Learning Without LLM Inference

vLLM Semantic Router Project(vLLM语义路由器项目);Tensormesh Inc / UChicago(Tensormesh公司/芝加哥大学);MBZUAI / McGill University(MBZUAI/麦吉尔大学)

Huamin Chen, Xunzhuo Liu, Junchen Jiang, Bowei He, Xue Liu

AI总结:

本文提出面向结果的工具选择方法OATS,通过插值工具嵌入向成功查询的质心,提升语义路由器的NDCG@5指标,同时在无额外计算开销的情况下优化工具选择。

摘要:

在LLM推理网关中,语义路由器在关键请求路径中选择工具,每毫秒的延迟都会在数百万个请求中累积。我们提出面向结果的工具选择(OATS),通过将工具嵌入向历史上成功查询的质心插值,这是一个无参数、无延迟和无GPU成本的离线过程。在MetaTool(199个工具,4,287个查询)上,这将NDCG@5从0.869提升到0.940;在ToolBench(2,413个API)上,从0.834提升到0.848。我们还评估了两种学习扩展:一个2,625参数的MLP重排序器和一个197K参数的对比适配器。MLP重排序器在结果数据稀疏时表现不佳或与基线相当;对比适配器在MetaTool上提供可比的提升(NDCG@5: 0.931)。所有方法都在相同的30%测试分割上进行评估。实际应用的启示是,从零成本优化开始,仅在数据密度要求时添加学习组件。所有机制都在单个数字毫秒的CPU预算内运行。

英文摘要:

Semantic routers in LLM inference gateways select tools in the critical request path, where every millisecond of added latency compounds across millions of requests. We propose Outcome-Aware Tool Selection (OATS), which interpolates tool embeddings toward the centroid of queries where they historically succeed -- an offline process that adds no parameters, latency, or GPU cost at serving time. On MetaTool (199~tools, 4,287~queries), this improves NDCG@5 from 0.869 to 0.940; on ToolBench (2,413~APIs), from 0.834 to 0.848. We also evaluate two learned extensions: a 2,625-parameter MLP re-ranker and a 197K-parameter contrastive adapter. The MLP re-ranker hurts or matches baseline when outcome data is sparse relative to the tool set; the contrastive adapter provides comparable gains on MetaTool (NDCG@5: 0.931). All methods are evaluated on the same held-out 30\% test split. The practical takeaway is to start with the zero-cost refinement and add learned components only when data density warrants it. All mechanisms run within single-digit millisecond CPU budgets.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑