arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.06204cs.LGcs.CL
收藏

大语言模型中混合专家方法综述

A Survey on Mixture of Experts in Large Language Models

The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州))

Weilin Cai, Juyong Jiang, Fan Wang, Jing Tang, Sunghun Kim, Jiayi Huang

AI总结:

本文系统综述了大语言模型中混合专家(MoE)方法,提出新的分类法,梳理核心算法与系统设计、开源实现及应用,并给出未来研究方向。

摘要:

大语言模型(LLMs)在从自然语言处理到计算机视觉等多个领域取得了前所未有的进展。LLMs的强大能力源于其庞大的模型规模、广泛多样的数据集以及训练过程中所利用的巨大算力,这些因素共同促成了小模型所不具备的涌现能力(例如上下文学习)。在这一背景下,混合专家(MoE)已成为一种以极小的计算开销大幅扩展模型容量的有效方法,引起了学术界和工业界的广泛关注。尽管MoE日益普及,但目前仍缺乏对MoE文献的系统性和全面性综述。本综述旨在弥补这一空白,为深入研究MoE复杂机制的研究人员提供重要资源。我们首先简要介绍MoE层的结构,然后提出一种新的MoE分类法。接着,我们概述各种MoE模型的核心设计,包括算法和系统两个方面,并汇总可用的开源实现、超参数配置和实证评估。此外,我们阐述了MoE在实践中的多方面应用,并概述了未来研究的一些潜在方向。为便于持续更新和分享MoE研究的前沿进展,我们已在 https://github.com/withinmiaov/A-Survey-on-Mixture-of-Experts-in-LLMs 建立了资源仓库。

英文摘要:

Large language models (LLMs) have garnered unprecedented advancements across diverse fields, ranging from natural language processing to computer vision and beyond. The prowess of LLMs is underpinned by their substantial model size, extensive and diverse datasets, and the vast computational power harnessed during training, all of which contribute to the emergent abilities of LLMs (e.g., in-context learning) that are not present in small models. Within this context, the mixture of experts (MoE) has emerged as an effective method for substantially scaling up model capacity with minimal computation overhead, gaining significant attention from academia and industry. Despite its growing prevalence, there lacks a systematic and comprehensive review of the literature on MoE. This survey seeks to bridge that gap, serving as an essential resource for researchers delving into the intricacies of MoE. We first briefly introduce the structure of the MoE layer, followed by proposing a new taxonomy of MoE. Next, we overview the core designs for various MoE models including both algorithmic and systemic aspects, alongside collections of available open-source implementations, hyperparameter configurations and empirical evaluations. Furthermore, we delineate the multifaceted applications of MoE in practice, and outline some potential directions for future research. To facilitate ongoing updates and the sharing of cutting-edge advances in MoE research, we have established a resource repository at https://github.com/withinmiaov/A-Survey-on-Mixture-of-Experts-in-LLMs.

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

↑