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

大型语言模型路由与级联的统一方法

A Unified Approach to Routing and Cascading for LLMs

ETH Zurich(苏黎世联邦理工学院)

Jasper Dekoninck, Maximilian Baader, Martin Vechev

AI总结:

本文提出级联路由统一框架,结合路由与级联策略,证明其理论最优性,并通过实验验证其在成本-性能权衡上大幅优于单独方法,同时识别质量估计器为关键因素。

摘要:

各种智能体系统中嵌入的多种大型语言模型(LLMs)的可用性,显著提升了模型选择策略在改善成本-性能权衡方面的潜力。现有策略包括路由(即为每个查询选择一个模型)和级联(即顺序运行越来越大的模型,直到找到满意的答案)。然而,当前方法面临三个关键限制:(1)缺乏最优性的形式化证明,(2)未能确定这些策略在何种条件下最有效地改善成本-性能权衡,以及(3)无法结合两种范式以进一步改进。为解决这些问题,我们首先推导出一种新的级联最优策略,并证明了现有路由策略的最优性。此外,我们提出了级联路由(cascade routing),一个将路由和级联整合为理论上最优策略的统一框架。通过分析,我们确定好的质量估计器是模型选择范式成功的关键因素。最后,在实验中,我们展示了级联路由在较大幅度上持续优于单独的方法,并分析了质量估计器以确定路由和/或级联在何种情况下是模型选择的有用范式。

英文摘要:

The availability of a wide range of large language models (LLMs) embedded in various agentic systems has significantly increased the potential of model selection strategies to improve the cost-performance tradeoff. Existing strategies involve either routing, where a single model is chosen per query, or cascading, which sequentially runs increasingly larger models until a satisfactory answer is found. However, current approaches face three key limitations: they (1) lack formal proofs of optimality, (2) fail to identify the conditions under which these strategies are most effective to improve the cost-performance tradeoff, and (3) are unable to combine both paradigms for further improvements. To address these issues, we first derive a novel optimal strategy for cascading and prove the optimality of an existing routing strategy. Further, we propose cascade routing, a unified framework that integrates routing and cascading into a theoretically optimal strategy. Through our analysis, we identify good quality estimators as the critical factor for the success of model selection paradigms. Finally, in our experiments, we show that cascade routing consistently outperforms the individual approaches by a large margin and we analyze quality estimators to determine when routing and/or cascading are useful paradigms for model selection.

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

↑