Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Multi-Head Mixture-of-Experts

About

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.

Xun Wu, Shaohan Huang, Wenhui Wang, Furu Wei• 2024

Related benchmarks

TaskDatasetResultRank
Visual Question AnsweringVQA v2 (test-std)
Accuracy71.4
466
Natural Language InferenceXNLI (test)
Average Accuracy35.3
167
Visual Question AnsweringVQAv2 (test-dev)
Accuracy70.1
76
Image CaptioningCOCO Caption
CIDEr124.1
55
Visual ReasoningNLVR2 (test-p)
Accuracy77.8
21
Visual ReasoningNLVR2 (dev)
Accuracy77
16
Language UnderstandingLLM Evaluation Harness
ARC-Challenge Acc21.4
7
English-focused language modelingEnglish-focused language modeling (val)
Perplexity10.28
6
Masked multi-modal modelingMasked multi-modal modeling (val)
Perplexity10.87
6
Multi-lingual language modelingMulti-lingual language modeling (val)
Perplexity5.09
6
Showing 10 of 10 rows

Other info

Code

Follow for update