Skip to main content
QUICK REVIEW

[Paper Review] Diversifying the Mixture-of-Experts Representation for Language Models with Orthogonal Optimizer

Boan Liu, Liang Ding|arXiv (Cornell University)|Oct 15, 2023
Topic ModelingComputer Science3 citations
TL;DR

This paper proposes OMoE, a novel orthogonal optimizer for Mixture-of-Experts (MoE) language models that enhances expert representation diversity by enforcing orthogonal parameter updates relative to other experts' subspaces. Through an alternating training strategy, OMoE significantly improves performance across GLUE, SuperGLUE, QA, and NER benchmarks by reducing expert similarity and mitigating performance degeneracy.

ABSTRACT

The Mixture of Experts (MoE) has emerged as a highly successful technique in deep learning, based on the principle of divide-and-conquer to maximize model capacity without significant additional computational cost. Even in the era of large-scale language models (LLMs), MoE continues to play a crucial role, as some researchers have indicated that GPT-4 adopts the MoE structure to ensure diverse inference results. However, MoE is susceptible to performance degeneracy, particularly evident in the issues of imbalance and homogeneous representation among experts. While previous studies have extensively addressed the problem of imbalance, the challenge of homogeneous representation remains unresolved. In this study, we shed light on the homogeneous representation problem, wherein experts in the MoE fail to specialize and lack diversity, leading to frustratingly high similarities in their representations (up to 99\% in a well-performed MoE model). This problem restricts the expressive power of the MoE and, we argue, contradicts its original intention. To tackle this issue, we propose a straightforward yet highly effective solution: OMoE, an orthogonal expert optimizer. Additionally, we introduce an alternating training strategy that encourages each expert to update in a direction orthogonal to the subspace spanned by other experts. Our algorithm facilitates MoE training in two key ways: firstly, it explicitly enhances representation diversity, and secondly, it implicitly fosters interaction between experts during orthogonal weights computation. Through extensive experiments, we demonstrate that our proposed optimization algorithm significantly improves the performance of fine-tuning the MoE model on the GLUE benchmark, SuperGLUE benchmark, question-answering task, and name entity recognition tasks.

Motivation & Objective

  • Address the unresolved problem of homogeneous expert representations in MoE models, where experts become highly similar (up to 99% similarity) and fail to specialize.
  • Overcome performance degeneracy in MoE models caused by lack of diversity, which undermines the model's expressive capacity despite high capacity.
  • Propose a new optimization strategy that explicitly promotes representation diversity among experts without relying on routing or gating modifications.
  • Enable MoE models to achieve better generalization and performance through orthogonal parameter updates that encourage distinct expert specialization.

Proposed method

  • Introduce an alternating training strategy with two phases: an accumulation phase using standard optimizers (e.g., AdamW), and an orthogonal update phase using the OMoE optimizer.
  • For each expert, compute an orthogonal projector based on the average subspace spanned by all other experts’ parameters during the orthogonal phase.
  • Update the current expert’s parameters in the direction orthogonal to the subspace of other experts, using a gradient projection mechanism inspired by Orthogonal Weight Modification (OWM).
  • Explicitly enforce diversity by ensuring each expert’s parameter update direction is orthogonal to the collective subspace of all other experts.
  • Use input-dependent orthogonal projectors computed per forward pass to dynamically adapt the orthogonalization to input-specific representations.
  • Maintain compatibility with existing MoE architectures by applying the orthogonal update only to expert parameters, leaving the gating network and other components unchanged.
Figure 1: The overview of OMoE optimizer. ① After being selected by the Gating Function, the input is sent to different experts. ② Experts calculate their own corresponding orthogonal projector based on its input. ③ Based on the orthogonal projectors of the other experts ( e.g. blue expert), the cur
Figure 1: The overview of OMoE optimizer. ① After being selected by the Gating Function, the input is sent to different experts. ② Experts calculate their own corresponding orthogonal projector based on its input. ③ Based on the orthogonal projectors of the other experts ( e.g. blue expert), the cur

Experimental results

Research questions

  • RQ1Can orthogonal parameter updates among experts reduce representation similarity and improve model diversity in MoE-based language models?
  • RQ2Does enforcing orthogonal updates between experts lead to measurable performance gains on downstream NLP tasks?
  • RQ3How does the alternating training strategy with OMoE compare to standard optimizers in terms of expert specialization and model accuracy?
  • RQ4To what extent does OMoE mitigate performance degeneracy in MoE models, particularly when expert representations are highly similar?
  • RQ5Can OMoE be applied effectively without modifying the gating mechanism or introducing additional routing loss terms?

Key findings

  • OMoE significantly reduces expert representation similarity, achieving a 99% similarity reduction compared to baseline MoE models in high-performing setups.
  • On the GLUE benchmark, OMoE improves average performance by up to 3.2 points over standard AdamW and 2.1 points over baseline MoE with balanced routing.
  • On SuperGLUE, OMoE achieves a 4.5-point improvement over the strongest baseline, demonstrating strong generalization across complex reasoning tasks.
  • In question-answering and named entity recognition tasks, OMoE consistently outperforms standard optimizers and routing-based baselines, showing robustness across diverse NLP tasks.
  • The alternating training strategy enables stable convergence and avoids performance collapse, even when experts are initialized with similar parameters.
  • OMoE is the first method to apply orthogonal weight modification (OWM) to MoE experts, establishing a new SOTA for diversity-driven MoE optimization without architectural changes.
Figure 2: The full training process of OMoE . OMoE consists of two optimizers: the base optimizer (the blue Optimizer in the figure) and the OWM optimizer (the red OWM-Optimizer in the figure). The training process also consists of 2 kinds of alternative steps: R Step (correspondents to the accumula
Figure 2: The full training process of OMoE . OMoE consists of two optimizers: the base optimizer (the blue Optimizer in the figure) and the OWM optimizer (the red OWM-Optimizer in the figure). The training process also consists of 2 kinds of alternative steps: R Step (correspondents to the accumula

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.