[Paper Review] OpenMoE: An Early Effort on Open Mixture-of-Experts Language Models
OpenMoE release of decoder-only MoE LLMs (650M–34B) with code/data-heavy pretraining, analysis of MoE routing, and lessons for open MoE development. It investigates routing behavior, UL2 vs CasualLM objectives, and code-data benefits.
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.
Motivation & Objective
- Provide a first-open, reproducible decoder-only MoE LLM training solution across multiple scales.
- Analyze MoE routing mechanisms to understand how tokens are assigned to experts.
- Evaluate the cost-effectiveness and performance of MoE LLMs compared with dense baselines.
- Share lessons learned and propose strategies to mitigate routing and data-mix issues for future MoE models.
Proposed method
- Adopt a decoder-only ST-MoE architecture with Top-2 gating (K=2) and residual MoE design.
- Use a load-balance loss and router z-loss to stabilize end-to-end MoE training.
- Pre-train with UL2 objectives (PrefixLM, SpanCorrupt) and substantial code data, then fine-tune with supervised WildChat data for alignment.
- Interleave MoE layers (every 4 or 6 layers) to balance routing overhead and model capacity.
- Train and release multiple OpenMoE variants (Base/16E, 8B/32E, 34B/32E, with Chat variant) on up to 1T+ tokens.
- Evaluate on a mix of benchmarks (TriviaQA, HumanEval, WMT16 En-Ro, BigBench-Lite, lm-evaluation-harness subset) and MT-Bench for chat, comparing against open dense baselines like TinyLLaMA and OpenLLaMA.

Experimental results
Research questions
- RQ1How do MoE routing decisions behave in OpenMoE models across domains, languages, and tasks?
- RQ2Are routing decisions fixed early in training and largely context-insensitive, and what are the implications for sequential tasks?
- RQ3What is the impact of data mixture (especially code-heavy data) and training objectives (UL2 vs CasualLM) on MoE model performance and training stability?
- RQ4Can supervised fine-tuning mitigate routing-related issues such as token drops in long sequences or instruction-tuning mismatches?
- RQ5How does OpenMoE compare cost-effectively to dense LLMs in terms of activated parameters versus total training data?
Key findings
- Routing analysis shows context-independent specialization; tokens tend to be routed to the same expert regardless of context.
- Routing decisions are learned early and remain largely fixed throughout pre-training, causing potential misrouting in out-of-domain data.
- Drop-towards-the-End: later tokens can be dropped due to fixed per-expert capacity, especially with instruction-tuning data.
- Code data and UL2 objectives improve pre-training performance, with code-dominant data yielding easier token prediction on certain benchmarks.
- OpenMoE-8B/32E achieves competitive TriviaQA and WMT16 En-Ro results compared with denser open models at lower cost; Chat variant shows strong single-turn performance but lower multi-turn due to token drops.
- On MT-Bench, OpenMoE outperforms baselines on single-turn coding tasks, with a larger drop in multi-turn results likely from sequence-length token drops.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.