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

GreenServ: 多模型LLM推理中的节能上下文感知动态路由

GreenServ: Energy-Efficient Context-Aware Dynamic Routing for Multi-Model LLM Inference

University of Amsterdam(阿姆斯特丹大学);University of Milano-Bicocca(米兰-比科卡大学)

Thomas Ziller, Shashikant Ilager, Alessandro Tundo, Ezio Bartocci, Leonardo Mariani, Ivona Brandic

AI总结:

GreenServ通过动态上下文感知路由优化多模型LLM推理的能耗与准确率平衡。

摘要:

大型语言模型(LLMs)展现出卓越的能力,但其广泛部署受到显著计算资源需求的限制,尤其是在推理过程中能耗问题尤为突出。静态的

英文摘要:

Large language models (LLMs) demonstrate remarkable capabilities, but their broad deployment is limited by significant computational resource demands, particularly energy consumption during inference. Static, one-model-fits-all inference strategies are often inefficient, as they do not exploit the diverse range of available models or adapt to varying query requirements. This paper presents GreenServ, a dynamic, context-aware routing framework that optimizes the trade-off between inference accuracy and energy efficiency. GreenServ extracts lightweight contextual features from each query, including task type, semantic cluster, and text complexity, and routes queries to the most suitable model from a heterogeneous pool, based on observed accuracy and energy usage. We employ a multi-armed bandit approach to learn adaptive routing policies online. This approach operates under partial feedback, eliminates the need for extensive offline calibration, and streamlines the integration of new models into the inference pipeline. We evaluated GreenServ across five benchmark tasks and a pool of 16 contemporary open-access LLMs. Experimental results show that GreenServ consistently outperforms static (single-model) and random baselines. In particular, compared to random routing, GreenServ achieved a 22% increase in accuracy while reducing cumulative energy consumption by 31%. Finally, we evaluated GreenServ with RouterBench, achieving an average accuracy of 71.7% with a peak accuracy of 75.7%. All artifacts are open-source and available here: \href{https://github.com/TZData1/llm-inference-router}{GitHub}

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

↑