Skip to main content
QUICK REVIEW

[Paper Review] ST-MoE: Designing Stable and Transferable Sparse Expert Models

Barret Zoph, Irwan Bello|arXiv (Cornell University)|Feb 17, 2022
Topic ModelingComputer Science46 citations
TL;DR

The paper presents ST-MoE, a large-scale sparse expert model design guide, introduces router z-loss to stabilize training, and demonstrates state-of-the-art transfer performance with a 269B parameter sparse model (ST-MoE-32B) across diverse NLP tasks.

ABSTRACT

Scale has opened new frontiers in natural language processing -- but at a high cost. In response, Mixture-of-Experts (MoE) and Switch Transformers have been proposed as an energy efficient path to even larger and more capable language models. But advancing the state-of-the-art across a broad set of natural language tasks has been hindered by training instabilities and uncertain quality during fine-tuning. Our work focuses on these issues and acts as a design guide. We conclude by scaling a sparse model to 269B parameters, with a computational cost comparable to a 32B dense encoder-decoder Transformer (Stable and Transferable Mixture-of-Experts or ST-MoE-32B). For the first time, a sparse model achieves state-of-the-art performance in transfer learning, across a diverse set of tasks including reasoning (SuperGLUE, ARC Easy, ARC Challenge), summarization (XSum, CNN-DM), closed book question answering (WebQA, Natural Questions), and adversarially constructed tasks (Winogrande, ANLI R3).

Motivation & Objective

  • Investigate training instabilities in sparse MoE models and identify stability- preserving design choices.
  • Develop a stability-friendly routing mechanism (router z-loss) to improve training without sacrificing quality.
  • Analyze fine-tuning protocols for sparse models and compare with dense models to understand generalization.
  • Provide architectural and training guidelines to design Pareto-efficient sparse models suitable for large-scale distributed training.

Proposed method

  • Review and quantify stability risks in sparse MoE training across multiple scale settings.
  • Introduce router z-loss to constrain router logits and stabilize end-to-end training without harming model quality.
  • Evaluate precision formats and numerical roundoff effects on MoE routing and provide mitigation insights.
  • Systematically study fine-tuning regimes, including parameter subsets, dropout, and sentinel tokens, to improve generalization.
  • Present design choices for number of experts, capacity factors, and routing algorithms to attain Pareto-efficient sparse models.
  • Pre-train and evaluate a 269B sparse model (ST-MoE-32B) showing state-of-the-art transfer performance on diverse NLP benchmarks.

Experimental results

Research questions

  • RQ1Can stability techniques stabilize sparse MoE training without sacrificing model quality?
  • RQ2How does a router-focused loss (router z-loss) affect training stability and final performance?
  • RQ3What fine-tuning protocols best generalize ST-MoE models compared to dense models across NLP tasks?
  • RQ4What architectural and routing design principles yield Pareto-efficient sparse models at scale?

Key findings

  • A large-scale stability study shows that many stabilizers trade quality for stability, while router z-loss stabilizes training with no quality loss.
  • Router z-loss improves stability and can slightly boost quality, unlike aggressive update clipping which harms performance.
  • Sparse models require different fine-tuning protocols from dense models, with sparse models benefiting from smaller batch sizes and higher learning rates.
  • Sparse models show robustness to token dropping during fine-tuning and can maintain performance with nonzero token drop under certain capacity settings.
  • ST-MoE-32B achieves state-of-the-art transfer performance across tasks including SuperGLUE, ARC Easy/Challenge, XSum, CNN-DM, WebQA, Natural Questions, Winogrande, and ANLI R3.
  • The paper provides practical design guidelines for setting the number of experts, capacity factor, and routing strategy to achieve Pareto efficiency.

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.