用智能路由让大模型系统更省资源,按需分配算力。
Doing More with Less: A Survey on Routing Strategies for Resource Optimisation in Large Language Model-Based Systems
- 根据查询复杂度自动分配合适模型,避免大模型处理简单任务。
- 可降低30%以上推理成本,同时保持性能不下降。
- 适合需要低成本部署的大模型应用开发者参考。
基于大语言模型(LLM)的系统通常采用单一、静态的架构,使用通用大模型处理所有用户请求,但不同任务对算力的需求差异大。尽管通用模型如GPT-4o、Claude-Sonnet表现广泛,却可能在处理简单任务时造成高昂的财务、能源与计算开销。通过引入路由机制,可将查询分发至更小或专用模型,从而提升效率并优化资源消耗。本综述系统梳理了在何时、为何及如何在LLM流程中集成路由策略以提升效率、扩展性与性能。定义了成本最小化与性能最大化等优化目标,讨论路由在生成前或后执行的时机,并总结了基于相似性、监督学习、强化学习和生成式等多种实现方法。还探讨了工业应用中的实际挑战,如实验标准化、非财务成本考量与自适应策略设计。通过将路由形式化为性能-成本优化问题,本综述为未来低耗自适应大模型系统的研发提供了工具与方向。
原文摘要 · Abstract (English)
Large Language Model (LLM)-based systems, i.e. interconnected elements that include an LLM as a central component, such as conversational agents, are usually designed with monolithic, static architectures that rely on a single, general-purpose LLM to handle all user queries. However, these systems may be inefficient as different queries may require different levels of reasoning, domain knowledge or pre-processing. While generalist LLMs (e.g. GPT-4o, Claude-Sonnet) perform well across a wide range of tasks, they may incur significant financial, energy and computational costs. These costs may be disproportionate for simpler queries, resulting in unnecessary resource utilisation. A routing mechanism can therefore be employed to route queries to more appropriate components, such as smaller or specialised models, thereby improving efficiency and optimising resource consumption. This survey aims to provide a comprehensive overview of routing strategies in LLM-based systems. Specifically, it reviews when, why, and how routing should be integrated into LLM pipelines to improve efficiency, scalability, and performance. We define the objectives to optimise, such as cost minimisation and performance maximisation, and discuss the timing of routing within the LLM workflow, whether it occurs before or after generation. We also detail the various implementation strategies, including similarity-based, supervised, reinforcement learning-based, and generative methods. Practical considerations such as industrial applications and current limitations are also examined, like standardising routing experiments, accounting for non-financial costs, and designing adaptive strategies. By formalising routing as a performance-cost optimisation problem, this survey provides tools and directions to guide future research and development of adaptive low-cost LLM-based systems.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。