arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.25558cs.AI
收藏

超越查询记忆化:基于查询分解和历史匹配的大语言模型路由

Beyond Query Memorization: Large Language Model Routing with Query Decomposition and Historical Matching

Tencent Hunyuan(腾讯文言);University of Chinese Academy of Sciences(中国科学院大学)

Bo Lv, Jingbo Sun

AI总结:

提出DecoR路由框架,通过查询能力分解和历史日志匹配来避免记忆化陷阱,在保持高准确率的同时降低推理成本。

摘要:

优化预测性能与计算成本之间的权衡是大语言模型(LLM)部署中的核心关注点。当前的路由方法主要依赖于基于表面特征的查询到模型的直接映射,使其容易陷入记忆化陷阱,并导致在分布外(OOD)数据上的泛化能力差。在本文中,我们提出DecoR,一种新颖的路由框架,将路由任务重新定义为从历史日志中筛选相似查询的匹配过程,有效缓解了记忆化陷阱。为了提高匹配准确性,我们引入了一种查询能力分解方法,将语言表面形式与任务内在需求解耦,将匹配导向能力维度,从而将决策基于基本任务属性。此外,我们开发了CodaSet,一个用于评估路由泛化能力的综合基准,实验结果表明,DecoR在分布内和OOD设置下均保持优越的准确性,同时大幅降低推理成本。所有代码和数据可在https://github.com/lvbotenbest/DecoR获取。

英文摘要:

Optimizing the trade-off among predictive performance and computational cost is a central focus in the deployment of Large Language Models (LLMs). Current routing methods primarily rely on direct mapping from queries to models based on surface-level features, making them susceptible to the memorization trap and leading to poor generalizability on out-of-distribution (OOD) data. In this paper, we propose DecoR, a novel routing framework that recasts the routing task as a matching process of sifting similar queries from historical logs, effectively mitigating the memorization trap. To enhance matching accuracy, we introduce a query capability deconstruction method that decouples linguistic surface forms from task-intrinsic requirements, directing matching toward capability dimensions to ground decisions in essential task attributes. Furthermore, we develop CodaSet, a comprehensive benchmark for assessing routing generalization, where experimental results demonstrate that DecoR maintains superior accuracy while substantially lowering inference costs across both in-distribution and OOD settings. All the codes and data are available at https://github.com/lvbotenbest/DecoR.

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

↑