arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2502.08773cs.CLcs.LG
收藏

面向高效大语言模型推理的通用模型路由

Universal Model Routing for Efficient LLM Inference

Google(谷歌)
Wittawat Jitkrittum, Harikrishna Narasimhan, Ankit Singh Rawat, Jeevesh Juneja, Congchao Wang, Zifeng Wang, Alec Go, Chen-Yu Lee, Pradeep Shenoy, Rina Panigrahy… 展开作者

Wittawat Jitkrittum, Harikrishna Narasimhan, Ankit Singh Rawat, Jeevesh Juneja, Congchao Wang, Zifeng Wang, Alec Go, Chen-Yu Lee, Pradeep Shenoy, Rina Panigrahy, Aditya Krishna Menon, Sanjiv Kumar

AI总结:

本文提出UniRoute通用模型路由方法,通过将LLM表示为基于代表性提示预测的特征向量,实现对新出现LLM的动态路由,并在30多个未见LLM上验证其有效性。

摘要:

模型路由是一种用于降低大语言模型(LLMs)推理成本的简单技术,其中维护一个候选LLM池,并学习将每个提示路由到最小的可行LLM。现有工作集中于为固定的LLM池学习路由器。在本文中,我们考虑动态路由问题,即在测试时可获得新的、先前未观察到的LLM。我们提出UniRoute,这是一种解决该问题的新方法,其依赖于将每个LLM表示为一个特征向量,该向量基于在一组代表性提示上的预测推导得到。在此基础上,我们详细介绍了UniRoute的两种有效实例化方式,分别依赖于基于聚类的路由和学习到的聚类映射。我们证明这些是对理论上最优路由规则的估计,并通过超额风险界量化其误差。在一系列公开基准上的实验表明,UniRoute在30多个未见过的LLM之间进行路由时具有有效性。

英文摘要:

Model routing is a simple technique for reducing the inference cost of large language models (LLMs), wherein one maintains a pool of candidate LLMs, and learns to route each prompt to the smallest feasible LLM. Existing works focus on learning a router for a fixed pool of LLMs. In this paper, we consider the problem of dynamic routing, where new, previously unobserved LLMs are available at test time. We propose UniRoute, a new approach to this problem that relies on representing each LLM as a feature vector, derived based on predictions on a set of representative prompts. Based on this, we detail two effective instantiations of UniRoute, relying on cluster-based routing and a learned cluster map respectively. We show that these are estimates of a theoretically optimal routing rule, and quantify their errors via an excess risk bound. Experiments on a range of public benchmarks show the effectiveness of UniRoute in routing amongst more than 30 unseen LLMs.

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

↑