Skip to main content
QUICK REVIEW

[Paper Review] On the Representation Collapse of Sparse Mixture of Experts

Zewen Chi, Dong Li|arXiv (Cornell University)|Apr 20, 2022
Expert finding and Q&A systemsComputer Science16 citations
TL;DR

This paper identifies representation collapse in sparse mixture-of-experts (SMoE) models, where token representations cluster around expert centroids, degrading performance. It proposes X-MoE, which projects hidden representations to a low-dimensional hypersphere and uses L2-normalized routing scores with a learnable temperature gate, achieving consistent gains across seven multilingual benchmarks and improved routing stability.

ABSTRACT

Sparse mixture of experts provides larger model capacity while requiring a constant computational overhead. It employs the routing mechanism to distribute input tokens to the best-matched experts according to their hidden representations. However, learning such a routing mechanism encourages token clustering around expert centroids, implying a trend toward representation collapse. In this work, we propose to estimate the routing scores between tokens and experts on a low-dimensional hypersphere. We conduct extensive experiments on cross-lingual language model pre-training and fine-tuning on downstream tasks. Experimental results across seven multilingual benchmarks show that our method achieves consistent gains. We also present a comprehensive analysis on the representation and routing behaviors of our models. Our method alleviates the representation collapse issue and achieves more consistent routing than the baseline mixture-of-experts methods.

Motivation & Objective

  • To identify and analyze the under-explored issue of representation collapse in sparse mixture-of-experts (SMoE) models.
  • To improve routing stability and representation diversity in SMoE by redefining the routing scoring mechanism.
  • To enhance multilingual pre-training and fine-tuning performance through a more robust routing algorithm.
  • To achieve consistent routing behavior across multiple training runs, reducing variance in model behavior.

Proposed method

  • Project token hidden representations and expert embeddings into a lower-dimensional space before computing routing scores.
  • Apply L2 normalization to both token representations and expert embeddings to measure routing scores on a hypersphere.
  • Use a learnable temperature parameter in a soft expert gate to control expert activation, improving routing flexibility.
  • Formulate routing as a dot-product similarity between normalized representations on the hypersphere, replacing standard unnormalized dot products.
  • Integrate the new routing mechanism into Transformer-based SMoE models with top-1 routing and both softmax and sigmoid gating functions.
  • Train and evaluate the model on multilingual pre-training and downstream fine-tuning tasks to assess performance and routing consistency.

Experimental results

Research questions

  • RQ1To what extent does representation collapse manifest in sparse mixture-of-experts models during pre-training and fine-tuning?
  • RQ2Can projecting representations onto a low-dimensional hypersphere mitigate representation collapse and improve model performance?
  • RQ3How does the proposed routing mechanism affect routing consistency across different random seeds during fine-tuning?
  • RQ4Does the use of L2-normalized routing scores and a learnable temperature gate lead to more stable and effective expert assignment?
  • RQ5How does the proposed method compare to baseline SMoE models in terms of multilingual benchmark performance and representation diversity?

Key findings

  • The proposed X-MoE method achieves consistent performance gains across seven multilingual benchmarks in both pre-training and fine-tuning.
  • Representation collapse is empirically observed in SMoE models, with token representations clustering tightly around expert centroids.
  • X-MoE significantly reduces representation collapse by enforcing diversity through hyperspherical routing and L2 normalization.
  • Routing behavior in X-MoE shows high inter-run consistency, converging to similar routing patterns regardless of random seed, unlike the SMoE baseline.
  • The method improves both language modeling and downstream task performance, with gains attributed to more stable and diverse expert routing.
  • The use of a learnable temperature in the soft gate enhances routing adaptability and contributes to improved performance and stability.

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.