arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2411.09837cs.LGcs.AIcs.MA
收藏

实时自适应路由(RAR):通过分层基础模型驱动软件中的持续学习提升效率

Real-time Adapting Routing (RAR): Improving Efficiency Through Continuous Learning in Software Powered by Layered Foundation Models

Huawei Canada(华为加拿大)

Kirill Vasilevski, Dayi Lin, Ahmed E. Hassan

AI总结:

本文提出实时自适应路由(RAR),通过引导式上下文学习持续增强较弱基础模型并动态调整路由决策,在 MMLU 上减少 50.2% 昂贵模型调用同时保持约 90.5% 响应质量。

摘要:

为了在由基础模型(FM,如大语言模型(LLM))驱动的软件中平衡质量与推理成本,人们通常选择训练一个路由模型,将请求路由到不同规模和能力的基础模型。现有路由模型依赖于从精心整理的数据中学习最优路由决策,更新时需要复杂计算,并且没有考虑较弱基础模型的潜在进化。在本文中,我们提出实时自适应路由(RAR),这是一种持续调整基础模型路由决策的方法,同时利用引导式上下文学习来增强较弱基础模型的能力。其目标是减少对更强、更昂贵基础模型的依赖。我们在流行的 MMLU 基准的不同子集上评估了我们的方法。随着时间推移,我们的方法将路由到计算昂贵模型的请求减少了 50.2%,同时保持了约 90.5% 的总体响应质量。此外,由更强模型生成的引导已展现出域内泛化能力,并且与使用独立较弱基础模型的等效方法相比,带来了更好的响应质量。

英文摘要:

To balance the quality and inference cost of a Foundation Model (FM, such as large language models (LLMs)) powered software, people often opt to train a routing model that routes requests to FMs with different sizes and capabilities. Existing routing models rely on learning the optimal routing decision from carefully curated data, require complex computations to be updated, and do not consider the potential evolution of weaker FMs. In this paper, we propose Real-time Adaptive Routing (RAR), an approach to continuously adapt FM routing decisions while using guided in-context learning to enhance the capabilities of weaker FM. The goal is to reduce reliance on stronger, more expensive FMs. We evaluate our approach on different subsets of the popular MMLU benchmark. Over time, our approach routes 50.2% fewer requests to computationally expensive models while maintaining around 90.5% of the general response quality. In addition, the guides generated from stronger models have shown intra-domain generalization and led to a better quality of responses compared to an equivalent approach with a standalone weaker FM.

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

↑