arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.12320cs.AIcs.LG
收藏

TensorOpera Router:面向高效 LLM 推理的多模型路由器

TensorOpera Router: A Multi-Model Router for Efficient LLM Inference

TensorOpera, Inc.(TensorOpera公司)

Dimitris Stripelis, Zijian Hu, Jipeng Zhang, Zhaozhuo Xu, Alay Dilipbhai Shah, Han Jin, Yuhang Yao, Salman Avestimehr, Chaoyang He

AI总结:

本文提出非单体式多模型查询系统 TO-Router,通过单一接口集成多个 LLM 专家并按查询需求动态路由,在保持或提升性能的同时提高效率并降低成本。

摘要:

随着大型语言模型(LLM)在各个领域的快速增长,大量新的 LLM 不断涌现,每一个都具备特定领域的专业能力。这种激增凸显了对快速、高质量且具有成本效益的 LLM 查询响应方法的需求。然而,并不存在一个能够有效平衡这一“三难困境”的单一 LLM。一些模型功能强大但成本极高,而另一些模型快速、廉价,但质量较差。为应对这一挑战,我们提出了 TO-Router,这是一个非单体式 LLM 查询系统,可将各类 LLM 专家无缝集成到单一查询接口中,并根据查询需求,将传入查询动态路由给表现最佳的专家。通过大量实验,我们证明:与独立专家模型相比,TO-Router 将查询效率提高至多 40%,并带来至多 30% 的显著成本降低,同时将模型性能维持或提升至多 10%。

英文摘要:

With the rapid growth of Large Language Models (LLMs) across various domains, numerous new LLMs have emerged, each possessing domain-specific expertise. This proliferation has highlighted the need for quick, high-quality, and cost-effective LLM query response methods. Yet, no single LLM exists to efficiently balance this trilemma. Some models are powerful but extremely costly, while others are fast and inexpensive but qualitatively inferior. To address this challenge, we present TO-Router, a non-monolithic LLM querying system that seamlessly integrates various LLM experts into a single query interface and dynamically routes incoming queries to the most high-performant expert based on query's requirements. Through extensive experiments, we demonstrate that when compared to standalone expert models, TO-Router improves query efficiency by up to 40\%, and leads to significant cost reductions of up to 30%, while maintaining or enhancing model performance by up to 10%.

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

↑