Skip to main content
QUICK REVIEW

[Paper Review] OLMoE: Open Mixture-of-Experts Language Models

Niklas Muennighoff, Luca Soldaini|arXiv (Cornell University)|Sep 3, 2024
Topic ModelingComputer Science6 citations
TL;DR

OLMoE introduces a fully open sparse Mixture-of-Experts language model (1.3B active/6.9B total) pretrained on 5.1T tokens, achieving state-of-the-art performance among similarly-sized open MoEs and competitive results vs larger dense models. It also includes instruction- and preference-tuned variants and releases all artifacts openly.

ABSTRACT

We introduce OLMoE, a fully open, state-of-the-art language model leveraging sparse Mixture-of-Experts (MoE). OLMoE-1B-7B has 7 billion (B) parameters but uses only 1B per input token. We pretrain it on 5 trillion tokens and further adapt it to create OLMoE-1B-7B-Instruct. Our models outperform all available models with similar active parameters, even surpassing larger ones like Llama2-13B-Chat and DeepSeekMoE-16B. We present various experiments on MoE training, analyze routing in our model showing high specialization, and open-source all aspects of our work: model weights, training data, code, and logs.

Motivation & Objective

  • Advance open, cost-efficient language modeling with sparse MoEs.
  • Systematically study MoE design choices (granularity, routing, sharing, etc.).
  • Demonstrate open release of weights, data, code, and logs to enable replication and analysis.
  • Show that MoEs can outperform similar-active-parameter dense models and compete with larger LMs.

Proposed method

  • Configure a decoder-only MoE LM with 64 small experts per layer, 8 activated per token.
  • Train from scratch to obtain 1.3B active parameters out of 6.9B total parameters.
  • Use dropless token-based routing to activate 8 experts per input token.
  • Optimize with load-balancing loss and router z-loss during training when appropriate.
  • Pretrain on a mixed dataset (OLMoE-Mix) totaling 5.133T tokens and apply dataset-quality filters.
  • Adapt with instruction tuning and preference tuning to create an Instruct variant.

Experimental results

Research questions

  • RQ1What are the key MoE design choices that yield best performance under a fixed active-parameter budget?
  • RQ2How does MoE routing (token-based vs expert-based) affect training stability and throughput?
  • RQ3Does sparse MoE training offer speed-ups and cost benefits compared to dense models at similar active parameters?
  • RQ4Can an open MoE model achieve competitive or state-of-the-art results with restricted resources and fully open artifacts?

Key findings

  • OLMoE-1B-7B outperforms all open models with similar active parameters and rivals larger dense LMs in several benchmarks.
  • MoE with fine-grained 64 small experts and 8 active per token delivers strong performance gains.
  • Dropless token-based routing outperforms expert-based routing under the tested settings.
  • Open release of weights, data, code, and logs is achieved for the entire workflow to enable replication and further research.
  • Instruct-tuned OLMoE-1B-7B-Instruct surpasses several larger instruct models on standard benchmarks like MMLU, GSM8k, and HumanEval.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.