[Paper Review] Multi-Head Mixture-of-Experts
MH-MoE introduces a multi-head token-splitting mechanism that routes sub-tokens to multiple experts to achieve denser activation and finer-grained understanding, improving performance over SMoE baselines across language and multimodal tasks without extra cost.
Sparse Mixtures of Experts (SMoE) scales model capacity without significant increases in training and inference costs, but exhibits the following two issues: (1) Low expert activation, where only a small subset of experts are activated for optimization. (2) Lacking fine-grained analytical capabilities for multiple semantic concepts within individual tokens. We propose Multi-Head Mixture-of-Experts (MH-MoE), which employs a multi-head mechanism to split each token into multiple sub-tokens. These sub-tokens are then assigned to and processed by a diverse set of experts in parallel, and seamlessly reintegrated into the original token form. The multi-head mechanism enables the model to collectively attend to information from various representation spaces within different experts, while significantly enhances expert activation, thus deepens context understanding and alleviate overfitting. Moreover, our MH-MoE is straightforward to implement and decouples from other SMoE optimization methods, making it easy to integrate with other SMoE models for enhanced performance. Extensive experimental results across three tasks: English-focused language modeling, Multi-lingual language modeling and Masked multi-modality modeling tasks, demonstrate the effectiveness of MH-MoE.
Motivation & Objective
- Address low expert activation in Sparse Mixtures of Experts (SMoE) that wastes capacity when few experts are used.
- Enable finer-grained semantic understanding within tokens by distributing sub-tokens across multiple experts.
- Maintain computational and parameter efficiency while increasing the number of effectively utilized experts.
- Demonstrate effectiveness across English-focused, multilingual, and masked multi-modality modeling tasks.
Proposed method
- Apply a multi-head layer to project input tokens and split each token into h sub-tokens.
- Route sub-tokens to top-k activated experts using a gating mechanism, enabling denser activation.
- Merge sub-token outputs via a token-splitting-merging (TSM) operation and a merge layer to produce the final token representations without extra cost in subsequent layers.
- Balance training loss with a load-balancing term to mitigate expert usage skew.
- Maintain compatibility with existing SMoE frameworks and implement with minimal changes to backbones like X-MoE.
Experimental results
Research questions
- RQ1Can MH-MoE achieve denser expert activation than standard SMoE without increasing computational cost?
- RQ2Does multi-head token splitting enable finer-grained semantic understanding across languages and modalities?
- RQ3How does MH-MoE perform on English-focused, multilingual, and masked multi-modal pre-training tasks compared to Dense and X-MoE baselines?
- RQ4What is the impact of the number of heads and MLP/TSM components on performance and activation patterns?
Key findings
- MH-MoE significantly increases expert activation (e.g., up to 90.71% activation in some settings) compared to SMoE.
- MH-MoE yields finer-grained token understanding by distributing sub-tokens across diverse experts, improving representation learning.
- MH-MoE outperforms Dense and X-MoE baselines across English-focused, multilingual, and masked multi-modal tasks, with lower perplexity and higher downstream accuracy in various settings.
- Increasing the number of heads up to an optimal range (around 4–6) improves performance; beyond that, semantic content may be diluted.
- Token-Splitting-Merging (TSM) combined with an MLP layer is necessary to achieve substantial gains beyond simple TS or MLP alone.
- MH-MoE demonstrates better scalability, enabling denser activation and higher upper bounds for useful expert utilization (up to 256 experts in downstream tasks).
- Across vision-language tasks (VQA, NLVR2, COCO Captioning), MH-MoE consistently outperforms X-MoE and Dense baselines.
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.