[Paper Review] HyperMoE: Towards Better Mixture of Experts via Transferring Among Experts
HyperMoE introduces cross-expert knowledge transfer in Mixture of Experts via a shared hypernetwork that generates HyperExperts conditioned on unselected expert information, improving performance under sparse routing.
The Mixture of Experts (MoE) for language models has been proven effective in augmenting the capacity of models by dynamically routing each input token to a specific subset of experts for processing. Despite the success, most existing methods face a challenge for balance between sparsity and the availability of expert knowledge: enhancing performance through increased use of expert knowledge often results in diminishing sparsity during expert selection. To mitigate this contradiction, we propose HyperMoE, a novel MoE framework built upon Hypernetworks. This framework integrates the computational processes of MoE with the concept of knowledge transferring in multi-task learning. Specific modules generated based on the information of unselected experts serve as supplementary information, which allows the knowledge of experts not selected to be used while maintaining selection sparsity. Our comprehensive empirical evaluations across multiple datasets and backbones establish that HyperMoE significantly outperforms existing MoE methods under identical conditions concerning the number of experts.
Motivation & Objective
- Motivate the sparsity-vs-knowledge availability trade-off in MoE and address diminished sparsity when increasing expert usage.
- Propose HyperMoE, a HyperNetwork-based MoE framework that generates cross-expert HyperExperts using unselected-expert information.
- Enable positive transfer of knowledge to selected experts while preserving sparse expert routing.
- Demonstrate empirical gains across diverse NLP tasks and backbones compared to strong MoE baselines.
Proposed method
- Introduce HyperMoE architecture with HyperExperts generated by a shared hypernetwork conditioned on unselected-expert information.
- Define Selection Embedding to encode information about unselected experts per token.
- Use a bottleneck adapter-style conditional expert with weights D^τ_i and U^τ_i generated by the hypernetwork H_e(k^i_τ).
- Incorporate HyperExpert output in parallel with standard MoE routing via y_i = sum_r G(x_i)_r E_r(x_i) + Ŝ_i(x_i).
- Share the hypernetwork across transformer layers for cross-layer information flow and parameter efficiency.
Experimental results
Research questions
- RQ1Can cross-expert information transfer via a shared hypernetwork improve the availability of expert knowledge without sacrificing sparsity?
- RQ2Do HyperExperts conditioned on unselected-expert information provide measurable gains across diverse NLP tasks and backbones?
- RQ3How does HyperMoE perform when scaling the number of MoE experts compared to Switch Transformer baselines?
- RQ4What ablations reveal about the role of selection embeddings and hypernetwork conditioning in transfer effectiveness?
Key findings
- HyperMoE outperforms MoE and MoE-Share across GLUE and SuperGLUE benchmarks, with Avg improvements of 0.48 and 0.84 points respectively.
- On NLG tasks (XSum, CNNDM, SQuAD, WikiText), HyperMoE achieves higher Rouge-2 or Exact Match scores than baselines.
- Ablation shows that embedding-based conditioning and hypernetwork conditioning contribute to performance; removing embeddings or misconfiguring conditioning reduces accuracy.
- Increasing the number of experts (base-8, base-16, base-32) yields consistent gains for HyperMoE relative to baselines.
- HyperMoE introduces about 15% slower training and 10% slower inference compared to standard MoE, due to added HyperExpert components, indicating a favorable trade-off between performance and cost.
- selection embeddings effectively capture cross-expert information, with unselected-expert embeddings providing strong conditioning signals.
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.