OpenMoE: An Early Effort on Open Mixture-of-Experts Language Models

Fuzhao Xue, Zian Zheng, Yao Fu, Jinjie Ni, Zangwei Zheng +2 more
1/29/2024
cs.CLcs.AIcs.DC
moe

No official code found. Best implementation: XueFuzhao/OpenMoE (1,695 stars, last commit 2024-03-08).

Abstract

To help the open-source community have a better understanding of Mixture-of-Experts (MoE) based large language models (LLMs), we train and release OpenMoE, a series of fully open-sourced and reproducible decoder-only MoE LLMs, ranging from 650M to 34B parameters and trained on up to over 1T tokens. Our investigation confirms that MoE-based LLMs can offer a more favorable cost-effectiveness trade-off than dense LLMs, highlighting the potential effectiveness for future LLM development. One more important contribution of this study is an in-depth analysis of the routing mechanisms within our OpenMoE models, leading to three significant findings: Context-Independent Specialization, Early Routing Learning, and Drop-towards-the-End. We discovered that routing decisions in MoE models are predominantly based on token IDs, with minimal context relevance. The token-to-expert assignments are determined early in the pre-training phase and remain largely unchanged. This imperfect routing can result in performance degradation, particularly in sequential tasks like multi-turn conversations, where tokens appearing later in a sequence are more likely to be dropped. Finally, we rethink our design based on the above-mentioned observations and analysis. To facilitate future MoE LLM development, we propose potential strategies for mitigating the issues we found and further improving off-the-shelf MoE LLM designs.

View on arXivView PDF

Code Implementations(1)

XueFuzhao/OpenMoECommunity100%

A family of open-sourced Mixture-of-Experts (MoE) Large Language Models

1,69586Shell, PythonAug 8, 20232 years ago

Similar Papers

Cite this paper

@article{xue2024openmoe,
  title  = {OpenMoE: An Early Effort on Open Mixture-of-Experts Language Models},
  author = {Fuzhao Xue and Zian Zheng and Yao Fu and Jinjie Ni and Zangwei Zheng and Wangchunshu Zhou and Yang You},
  year   = {2024},
  eprint = {2402.01739},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.01739v2},
  journal = {ICML 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.01739.svg)](https://codeofpaper.com/paper/2402.01739)

Discussion