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

Mixtral专家混合模型

Mixtral of Experts

Albert Q. Jiang, Alexandre Sablayrolles, Antoine Roux, Arthur Mensch, Blanche Savary, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Emma Bou Hanna,… 展开作者

Albert Q. Jiang, Alexandre Sablayrolles, Antoine Roux, Arthur Mensch, Blanche Savary, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Emma Bou Hanna, Florian Bressand, Gianna Lengyel, Guillaume Bour, Guillaume Lample, Lélio Renard Lavaud, Lucile Saulnier, Marie-Anne Lachaux, Pierre Stock, Sandeep Subramanian, Sophia Yang, Szymon Antoniak, Teven Le Scao, Théophile Gervet, Thibaut Lavril, Thomas Wang, Timothée Lacroix, William El Sayed

AI总结:

本文提出稀疏混合专家模型Mixtral 8x7B,通过每层路由选择专家实现参数高效利用,在多数基准上超越Llama 2 70B和GPT-3.5,并发布指令微调版本。

摘要:

我们介绍了Mixtral 8x7B,一种稀疏混合专家语言模型。Mixtral具有与Mistral 7B相同的架构,区别在于每层由8个前馈块(即专家)组成。对于每个token,在每一层,路由器网络选择两个专家处理当前状态并合并它们的输出。尽管每个token仅看到两个专家,但所选专家在每个时间步可以不同。因此,每个token可访问47B参数,但在推理期间仅使用13B活跃参数。Mixtral在32k token的上下文大小下训练,并在所有评估基准上优于或匹敌Llama 2 70B和GPT-3.5。特别是,Mixtral在数学、代码生成和多语言基准上大幅超越Llama 2 70B。我们还提供了为遵循指令微调的模型Mixtral 8x7B - Instruct,在人类基准上超越GPT-3.5 Turbo、Claude-2.1、Gemini Pro和Llama 2 70B - chat模型。基础模型和指令模型均在Apache 2.0许可下发布。

英文摘要:

We introduce Mixtral 8x7B, a Sparse Mixture of Experts (SMoE) language model. Mixtral has the same architecture as Mistral 7B, with the difference that each layer is composed of 8 feedforward blocks (i.e. experts). For every token, at each layer, a router network selects two experts to process the current state and combine their outputs. Even though each token only sees two experts, the selected experts can be different at each timestep. As a result, each token has access to 47B parameters, but only uses 13B active parameters during inference. Mixtral was trained with a context size of 32k tokens and it outperforms or matches Llama 2 70B and GPT-3.5 across all evaluated benchmarks. In particular, Mixtral vastly outperforms Llama 2 70B on mathematics, code generation, and multilingual benchmarks. We also provide a model fine-tuned to follow instructions, Mixtral 8x7B - Instruct, that surpasses GPT-3.5 Turbo, Claude-2.1, Gemini Pro, and Llama 2 70B - chat model on human benchmarks. Both the base and instruct models are released under the Apache 2.0 license.

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

↑