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

LightRouter:以最小开销实现高效的大语言模型协作

LightRouter: Towards Efficient LLM Collaboration with Minimal Overhead

School of Software Technology, Zhejiang University, Hangzhou, China(浙江大学软件技术学院);School of Computer Science, Zhejiang University, Hangzhou, China(浙江大学计算机学院);School of Software Engineering, Xidian University, Xi’an, China(西安电子科技大学软件工程学院)

Yifan Zhang, Xinkui Zhao, Zuxin Wang, Guanjie Cheng, Yueshen Xu, Shuiguang Deng, Jianwei Yin

AI总结:

LightRouter提出一种自适应选择与整合轻量级大语言模型的框架,以最小开销实现高效协作,在多个基准上匹配或超越集成基线,准确率最高提升25%,推理成本最高降低27%。

摘要:

大语言模型的快速发展已在多种自然语言处理任务中展现出卓越的能力。然而,现有大语言模型在成本、性能和计算需求方面存在显著差异,这给用户为特定任务选择最合适模型带来了巨大挑战。在本工作中,我们提出了LightRouter,一种新颖的框架,旨在从更大的模型池中系统地选择并整合一小部分大语言模型,以同时优化任务性能和成本效率。LightRouter利用自适应选择机制来识别仅需最少启动令牌数量的模型,从而降低成本,并进一步采用有效的整合策略来组合它们的输出。在多个基准上的广泛实验表明,LightRouter在准确性上可匹配或超越广泛使用的集成基线,最高可实现25%的提升。与领先的高性能模型相比,LightRouter在实现相当性能的同时,推理成本最高可降低27%。重要的是,我们的框架在无需任何单个模型先验知识的情况下运行,且仅依赖廉价、轻量级的模型。本工作为高效的大语言模型选择提供了一种实用方法,并为最优模型组合策略提供了宝贵见解。

英文摘要:

The rapid advancement of large language models has unlocked remarkable capabilities across a diverse array of natural language processing tasks. However, the considerable differences among available LLMs-in terms of cost, performance, and computational demands-pose significant challenges for users aiming to identify the most suitable model for specific tasks. In this work, we present LightRouter, a novel framework designed to systematically select and integrate a small subset of LLMs from a larger pool, with the objective of jointly optimizing both task performance and cost efficiency. LightRouter leverages an adaptive selection mechanism to identify models that require only a minimal number of boot tokens, thereby reducing costs, and further employs an effective integration strategy to combine their outputs. Extensive experiments across multiple benchmarks demonstrate that LightRouter matches or outperforms widely-used ensemble baselines, achieving up to a 25% improvement in accuracy. Compared with leading high-performing models, LightRouter achieves comparable performance while reducing inference costs by up to 27%. Importantly, our framework operates without any prior knowledge of individual models and relies exclusively on inexpensive, lightweight models. This work introduces a practical approach for efficient LLM selection and provides valuable insights into optimal strategies for model combination.

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

↑