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

专家组合:一个利用大型语言模型的模块化复合 AI 系统

Composition of Experts: A Modular Compound AI System Leveraging Large Language Models

SambaNova Systems(SambaNova系统公司)

Swayambhoo Jain, Ravi Raju, Bo Li, Zoltan Csaki, Jonathan Li, Kaizhao Liang, Guoyao Feng, Urmish Thakkar, Anand Sampat, Raghu Prabhakar, Sumati Jairath

AI总结:

本文提出模块化复合 AI 系统 CoE,通过路由器和类别到专家映射动态选择多个 LLM 专家,并借助 SambaNova SN40L RDU 高效部署,在 Arena-Hard 与 MT-Bench 上以较低激活参数取得优异成绩。

摘要:

大型语言模型(LLM)已经取得显著进展,但其单体特性在可扩展性、成本和定制化方面带来挑战。本文介绍 Composition of Experts(CoE,专家组合),这是一种利用多个专家 LLM 的模块化复合 AI 系统。CoE 利用路由器为给定输入动态选择最合适的专家,从而实现资源的高效利用并提升性能。我们形式化描述了训练 CoE 的一般问题,并讨论与之相关的内在复杂性。我们提出一种两步路由方法来应对这些复杂性:首先使用路由器将输入分类到不同类别,随后通过类别到专家的映射获得所需专家。CoE 为构建复合 AI 系统提供了灵活且具有成本效益的解决方案。我们的实证评估表明,CoE 能够以更低的计算开销实现优越性能。鉴于 CoE 由许多专家 LLM 组成,它对高性价比服务具有独特的系统需求。我们利用 SambaNova SN40L RDU 独特的三层内存架构,给出了 CoE 的高效实现。使用开放权重 LLM Qwen/Qwen2-7B-Instruct、google/gemma-2-9b-it、google/gemma-2-27b-it、meta-llama/Llama-3.1-70B-Instruct 和 Qwen/Qwen2-72B-Instruct 得到的 CoE,在 Arena-Hard 上仅以 310 亿平均激活参数取得 59.4 分,并在 MT-Bench 上以 540 亿平均激活参数取得 9.06 分。

英文摘要:

Large Language Models (LLMs) have achieved remarkable advancements, but their monolithic nature presents challenges in terms of scalability, cost, and customization. This paper introduces the Composition of Experts (CoE), a modular compound AI system leveraging multiple expert LLMs. CoE leverages a router to dynamically select the most appropriate expert for a given input, enabling efficient utilization of resources and improved performance. We formulate the general problem of training a CoE and discuss inherent complexities associated with it. We propose a two-step routing approach to address these complexities that first uses a router to classify the input into distinct categories followed by a category-to-expert mapping to obtain desired experts. CoE offers a flexible and cost-effective solution to build compound AI systems. Our empirical evaluation demonstrates the effectiveness of CoE in achieving superior performance with reduced computational overhead. Given that CoE comprises of many expert LLMs it has unique system requirements for cost-effective serving. We present an efficient implementation of CoE leveraging SambaNova SN40L RDUs unique three-tiered memory architecture. CoEs obtained using open weight LLMs Qwen/Qwen2-7B-Instruct, google/gemma-2-9b-it, google/gemma-2-27b-it, meta-llama/Llama-3.1-70B-Instruct and Qwen/Qwen2-72B-Instruct achieve a score of $59.4$ with merely $31$ billion average active parameters on Arena-Hard and a score of $9.06$ with $54$ billion average active parameters on MT-Bench.

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

↑